Versions in this module Expand all Collapse all v0 v0.2.0 Nov 24, 2026 v0.1.0 Nov 24, 2026 Changes in this version + func NewCheckCodeRequest(server string, body CheckCodeJSONRequestBody) (*http.Request, error) + func NewCheckCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewSendCodeRequest(server string, body SendCodeJSONRequestBody) (*http.Request, error) + func NewSendCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + type CheckCodeJSONRequestBody = CodeCheck + type CheckCodeResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCheckCodeResponse(rsp *http.Response) (*CheckCodeResponse, error) + func (r CheckCodeResponse) ContentType() string + func (r CheckCodeResponse) GetBody() []byte + func (r CheckCodeResponse) GetJSON200() ... + func (r CheckCodeResponse) GetJSONDefault() *Failure + func (r CheckCodeResponse) Status() string + func (r CheckCodeResponse) StatusCode() int + type CheckResult struct + Valid bool + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) CheckCode(ctx context.Context, body CheckCodeJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CheckCodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) SendCode(ctx context.Context, body SendCodeJSONRequestBody, ...) (*http.Response, error) + func (c *Client) SendCodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + CheckCode func(ctx context.Context, body CheckCodeJSONRequestBody, ...) (*http.Response, error) + CheckCodeWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + SendCode func(ctx context.Context, body SendCodeJSONRequestBody, ...) (*http.Response, error) + SendCodeWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) CheckCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CheckCodeResponse, error) + func (c *ClientWithResponses) CheckCodeWithResponse(ctx context.Context, body CheckCodeJSONRequestBody, ...) (*CheckCodeResponse, error) + func (c *ClientWithResponses) SendCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendCodeResponse, error) + func (c *ClientWithResponses) SendCodeWithResponse(ctx context.Context, body SendCodeJSONRequestBody, ...) (*SendCodeResponse, error) + type ClientWithResponsesInterface interface + CheckCodeWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CheckCodeResponse, error) + CheckCodeWithResponse func(ctx context.Context, body CheckCodeJSONRequestBody, ...) (*CheckCodeResponse, error) + SendCodeWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*SendCodeResponse, error) + SendCodeWithResponse func(ctx context.Context, body SendCodeJSONRequestBody, ...) (*SendCodeResponse, error) + type CodeCheck struct + Code string + Phone string + type Envelope struct + Errors []Message + Messages []Message + Success bool + type Failure struct + Errors []Message + Messages []Message + Result interface{} + Success bool + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Message struct + Code int + DocumentationUrl *string + Message string + Source ... + type NewCode struct + Code *string + ExpiresIn *int + Phone string + Send *bool + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SendCodeJSONRequestBody = NewCode + type SendCodeResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseSendCodeResponse(rsp *http.Response) (*SendCodeResponse, error) + func (r SendCodeResponse) ContentType() string + func (r SendCodeResponse) GetBody() []byte + func (r SendCodeResponse) GetJSON200() ... + func (r SendCodeResponse) GetJSONDefault() *Failure + func (r SendCodeResponse) Status() string + func (r SendCodeResponse) StatusCode() int + type SentCode struct + Code *string + ExpiresAt time.Time + Id openapi_types.UUID