opencodeapi

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AgentV2Info

type AgentV2Info struct {
	Color       jx.Raw                 `json:"color"`
	Description OptString              `json:"description"`
	Hidden      bool                   `json:"hidden"`
	ID          string                 `json:"id"`
	Mode        AgentV2InfoMode        `json:"mode"`
	Model       OptNilAgentV2InfoModel `json:"model"`
	Permissions PermissionV2Ruleset    `json:"permissions"`
	Request     AgentV2InfoRequest     `json:"request"`
	Steps       OptInt                 `json:"steps"`
	System      OptString              `json:"system"`
}

Ref: #/components/schemas/AgentV2Info

func (*AgentV2Info) Decode

func (s *AgentV2Info) Decode(d *jx.Decoder) error

Decode decodes AgentV2Info from json.

func (*AgentV2Info) Encode

func (s *AgentV2Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AgentV2Info) GetColor

func (s *AgentV2Info) GetColor() jx.Raw

GetColor returns the value of Color.

func (*AgentV2Info) GetDescription

func (s *AgentV2Info) GetDescription() OptString

GetDescription returns the value of Description.

func (*AgentV2Info) GetHidden

func (s *AgentV2Info) GetHidden() bool

GetHidden returns the value of Hidden.

func (*AgentV2Info) GetID

func (s *AgentV2Info) GetID() string

GetID returns the value of ID.

func (*AgentV2Info) GetMode

func (s *AgentV2Info) GetMode() AgentV2InfoMode

GetMode returns the value of Mode.

func (*AgentV2Info) GetModel

func (s *AgentV2Info) GetModel() OptNilAgentV2InfoModel

GetModel returns the value of Model.

func (*AgentV2Info) GetPermissions

func (s *AgentV2Info) GetPermissions() PermissionV2Ruleset

GetPermissions returns the value of Permissions.

func (*AgentV2Info) GetRequest

func (s *AgentV2Info) GetRequest() AgentV2InfoRequest

GetRequest returns the value of Request.

func (*AgentV2Info) GetSteps

func (s *AgentV2Info) GetSteps() OptInt

GetSteps returns the value of Steps.

func (*AgentV2Info) GetSystem

func (s *AgentV2Info) GetSystem() OptString

GetSystem returns the value of System.

func (*AgentV2Info) MarshalJSON

func (s *AgentV2Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AgentV2Info) SetColor

func (s *AgentV2Info) SetColor(val jx.Raw)

SetColor sets the value of Color.

func (*AgentV2Info) SetDescription

func (s *AgentV2Info) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*AgentV2Info) SetHidden

func (s *AgentV2Info) SetHidden(val bool)

SetHidden sets the value of Hidden.

func (*AgentV2Info) SetID

func (s *AgentV2Info) SetID(val string)

SetID sets the value of ID.

func (*AgentV2Info) SetMode

func (s *AgentV2Info) SetMode(val AgentV2InfoMode)

SetMode sets the value of Mode.

func (*AgentV2Info) SetModel

func (s *AgentV2Info) SetModel(val OptNilAgentV2InfoModel)

SetModel sets the value of Model.

func (*AgentV2Info) SetPermissions

func (s *AgentV2Info) SetPermissions(val PermissionV2Ruleset)

SetPermissions sets the value of Permissions.

func (*AgentV2Info) SetRequest

func (s *AgentV2Info) SetRequest(val AgentV2InfoRequest)

SetRequest sets the value of Request.

func (*AgentV2Info) SetSteps

func (s *AgentV2Info) SetSteps(val OptInt)

SetSteps sets the value of Steps.

func (*AgentV2Info) SetSystem

func (s *AgentV2Info) SetSystem(val OptString)

SetSystem sets the value of System.

func (*AgentV2Info) UnmarshalJSON

func (s *AgentV2Info) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AgentV2Info) Validate

func (s *AgentV2Info) Validate() error

type AgentV2InfoMode

type AgentV2InfoMode string
const (
	AgentV2InfoModeSubagent AgentV2InfoMode = "subagent"
	AgentV2InfoModePrimary  AgentV2InfoMode = "primary"
	AgentV2InfoModeAll      AgentV2InfoMode = "all"
)

func (AgentV2InfoMode) AllValues

func (AgentV2InfoMode) AllValues() []AgentV2InfoMode

AllValues returns all AgentV2InfoMode values.

func (*AgentV2InfoMode) Decode

func (s *AgentV2InfoMode) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoMode from json.

func (AgentV2InfoMode) Encode

func (s AgentV2InfoMode) Encode(e *jx.Encoder)

Encode encodes AgentV2InfoMode as json.

func (AgentV2InfoMode) MarshalJSON

func (s AgentV2InfoMode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (AgentV2InfoMode) MarshalText

func (s AgentV2InfoMode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AgentV2InfoMode) UnmarshalJSON

func (s *AgentV2InfoMode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AgentV2InfoMode) UnmarshalText

func (s *AgentV2InfoMode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AgentV2InfoMode) Validate

func (s AgentV2InfoMode) Validate() error

type AgentV2InfoModel

type AgentV2InfoModel struct {
	ID         string       `json:"id"`
	ProviderID string       `json:"providerID"`
	Variant    OptNilString `json:"variant"`
}

func (*AgentV2InfoModel) Decode

func (s *AgentV2InfoModel) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoModel from json.

func (*AgentV2InfoModel) Encode

func (s *AgentV2InfoModel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AgentV2InfoModel) GetID

func (s *AgentV2InfoModel) GetID() string

GetID returns the value of ID.

func (*AgentV2InfoModel) GetProviderID

func (s *AgentV2InfoModel) GetProviderID() string

GetProviderID returns the value of ProviderID.

func (*AgentV2InfoModel) GetVariant

func (s *AgentV2InfoModel) GetVariant() OptNilString

GetVariant returns the value of Variant.

func (*AgentV2InfoModel) MarshalJSON

func (s *AgentV2InfoModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AgentV2InfoModel) SetID

func (s *AgentV2InfoModel) SetID(val string)

SetID sets the value of ID.

func (*AgentV2InfoModel) SetProviderID

func (s *AgentV2InfoModel) SetProviderID(val string)

SetProviderID sets the value of ProviderID.

func (*AgentV2InfoModel) SetVariant

func (s *AgentV2InfoModel) SetVariant(val OptNilString)

SetVariant sets the value of Variant.

func (*AgentV2InfoModel) UnmarshalJSON

func (s *AgentV2InfoModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AgentV2InfoRequest

type AgentV2InfoRequest struct {
	Body    AgentV2InfoRequestBody    `json:"body"`
	Headers AgentV2InfoRequestHeaders `json:"headers"`
}

func (*AgentV2InfoRequest) Decode

func (s *AgentV2InfoRequest) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoRequest from json.

func (*AgentV2InfoRequest) Encode

func (s *AgentV2InfoRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AgentV2InfoRequest) GetBody

GetBody returns the value of Body.

func (*AgentV2InfoRequest) GetHeaders

GetHeaders returns the value of Headers.

func (*AgentV2InfoRequest) MarshalJSON

func (s *AgentV2InfoRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AgentV2InfoRequest) SetBody

SetBody sets the value of Body.

func (*AgentV2InfoRequest) SetHeaders

func (s *AgentV2InfoRequest) SetHeaders(val AgentV2InfoRequestHeaders)

SetHeaders sets the value of Headers.

func (*AgentV2InfoRequest) UnmarshalJSON

func (s *AgentV2InfoRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AgentV2InfoRequestBody

type AgentV2InfoRequestBody struct{}

func (*AgentV2InfoRequestBody) Decode

func (s *AgentV2InfoRequestBody) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoRequestBody from json.

func (*AgentV2InfoRequestBody) Encode

func (s *AgentV2InfoRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AgentV2InfoRequestBody) MarshalJSON

func (s *AgentV2InfoRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AgentV2InfoRequestBody) UnmarshalJSON

func (s *AgentV2InfoRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AgentV2InfoRequestHeaders

type AgentV2InfoRequestHeaders map[string]string

func (*AgentV2InfoRequestHeaders) Decode

func (s *AgentV2InfoRequestHeaders) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoRequestHeaders from json.

func (AgentV2InfoRequestHeaders) Encode

func (s AgentV2InfoRequestHeaders) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (AgentV2InfoRequestHeaders) MarshalJSON

func (s AgentV2InfoRequestHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AgentV2InfoRequestHeaders) UnmarshalJSON

func (s *AgentV2InfoRequestHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) SessionCreate

func (c *Client) SessionCreate(ctx context.Context, request OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)

SessionCreate invokes session.create operation.

Create a new OpenCode session for interacting with AI assistants and managing conversations.

POST /session

func (*Client) SessionMessage

func (c *Client) SessionMessage(ctx context.Context, request *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)

SessionMessage invokes session.message operation.

Send a message to a session.

POST /session/{sessionID}/message

func (*Client) SessionMessages

func (c *Client) SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)

SessionMessages invokes session.messages operation.

Retrieve all messages in a session, including user prompts and AI responses.

GET /session/{sessionID}/message

func (*Client) V2AgentList

func (c *Client) V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)

V2AgentList invokes v2.agent.list operation.

Retrieve currently registered agents.

GET /api/agent

func (*Client) V2HealthGet

func (c *Client) V2HealthGet(ctx context.Context) (V2HealthGetRes, error)

V2HealthGet invokes v2.health.get operation.

Check whether the API server is ready to accept requests.

GET /api/health

func (*Client) V2ModelList

func (c *Client) V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)

V2ModelList invokes v2.model.list operation.

Retrieve available models ordered by release date.

GET /api/model

func (*Client) V2PermissionRequestList

func (c *Client) V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)

V2PermissionRequestList invokes v2.permission.request.list operation.

Retrieve pending permission requests for a location.

GET /api/permission/request

func (*Client) V2ProviderList

func (c *Client) V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)

V2ProviderList invokes v2.provider.list operation.

Retrieve active AI providers so clients can show provider availability and configuration.

GET /api/provider

func (*Client) V2QuestionRequestList

func (c *Client) V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)

V2QuestionRequestList invokes v2.question.request.list operation.

Retrieve pending question requests for a location.

GET /api/question/request

func (*Client) V2SessionContext

func (c *Client) V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)

V2SessionContext invokes v2.session.context operation.

Retrieve the active context messages for a session (all messages after the last compaction).

GET /api/session/{sessionID}/context

func (*Client) V2SessionList

func (c *Client) V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)

V2SessionList invokes v2.session.list operation.

Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.

GET /api/session

func (*Client) V2SessionMessages

func (c *Client) V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)

V2SessionMessages invokes v2.session.messages operation.

Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.

GET /api/session/{sessionID}/message

func (*Client) V2SessionPermissionList

func (c *Client) V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)

V2SessionPermissionList invokes v2.session.permission.list operation.

Retrieve pending permission requests owned by a session.

GET /api/session/{sessionID}/permission

func (*Client) V2SessionPermissionReply

V2SessionPermissionReply invokes v2.session.permission.reply operation.

Respond to a pending permission request owned by a session.

POST /api/session/{sessionID}/permission/{requestID}/reply

func (*Client) V2SessionPrompt

func (c *Client) V2SessionPrompt(ctx context.Context, request *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)

V2SessionPrompt invokes v2.session.prompt operation.

Durably admit one session input and schedule agent-loop execution unless resume is false.

POST /api/session/{sessionID}/prompt

func (*Client) V2SessionQuestionReject

func (c *Client) V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)

V2SessionQuestionReject invokes v2.session.question.reject operation.

Reject a pending question request owned by a session.

POST /api/session/{sessionID}/question/{requestID}/reject

func (*Client) V2SessionQuestionReply

func (c *Client) V2SessionQuestionReply(ctx context.Context, request *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)

V2SessionQuestionReply invokes v2.session.question.reply operation.

Answer a pending question request owned by a session.

POST /api/session/{sessionID}/question/{requestID}/reply

func (*Client) V2SessionWait

func (c *Client) V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)

V2SessionWait invokes v2.session.wait operation.

Wait for a session agent loop to become idle.

POST /api/session/{sessionID}/wait

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type ConflictError

type ConflictError struct {
	Tag      ConflictErrorTag `json:"_tag"`
	Message  string           `json:"message"`
	Resource OptString        `json:"resource"`
}

Ref: #/components/schemas/ConflictError

func (*ConflictError) Decode

func (s *ConflictError) Decode(d *jx.Decoder) error

Decode decodes ConflictError from json.

func (*ConflictError) Encode

func (s *ConflictError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ConflictError) GetMessage

func (s *ConflictError) GetMessage() string

GetMessage returns the value of Message.

func (*ConflictError) GetResource

func (s *ConflictError) GetResource() OptString

GetResource returns the value of Resource.

func (*ConflictError) GetTag

func (s *ConflictError) GetTag() ConflictErrorTag

GetTag returns the value of Tag.

func (*ConflictError) MarshalJSON

func (s *ConflictError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ConflictError) SetMessage

func (s *ConflictError) SetMessage(val string)

SetMessage sets the value of Message.

func (*ConflictError) SetResource

func (s *ConflictError) SetResource(val OptString)

SetResource sets the value of Resource.

func (*ConflictError) SetTag

func (s *ConflictError) SetTag(val ConflictErrorTag)

SetTag sets the value of Tag.

func (*ConflictError) UnmarshalJSON

func (s *ConflictError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConflictError) Validate

func (s *ConflictError) Validate() error

type ConflictErrorTag

type ConflictErrorTag string
const (
	ConflictErrorTagConflictError ConflictErrorTag = "ConflictError"
)

func (ConflictErrorTag) AllValues

func (ConflictErrorTag) AllValues() []ConflictErrorTag

AllValues returns all ConflictErrorTag values.

func (*ConflictErrorTag) Decode

func (s *ConflictErrorTag) Decode(d *jx.Decoder) error

Decode decodes ConflictErrorTag from json.

func (ConflictErrorTag) Encode

func (s ConflictErrorTag) Encode(e *jx.Encoder)

Encode encodes ConflictErrorTag as json.

func (ConflictErrorTag) MarshalJSON

func (s ConflictErrorTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ConflictErrorTag) MarshalText

func (s ConflictErrorTag) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ConflictErrorTag) UnmarshalJSON

func (s *ConflictErrorTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ConflictErrorTag) UnmarshalText

func (s *ConflictErrorTag) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ConflictErrorTag) Validate

func (s ConflictErrorTag) Validate() error

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type Handler

type Handler interface {
	// SessionCreate implements session.create operation.
	//
	// Create a new OpenCode session for interacting with AI assistants and managing conversations.
	//
	// POST /session
	SessionCreate(ctx context.Context, req OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
	// SessionMessage implements session.message operation.
	//
	// Send a message to a session.
	//
	// POST /session/{sessionID}/message
	SessionMessage(ctx context.Context, req *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
	// SessionMessages implements session.messages operation.
	//
	// Retrieve all messages in a session, including user prompts and AI responses.
	//
	// GET /session/{sessionID}/message
	SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
	// V2AgentList implements v2.agent.list operation.
	//
	// Retrieve currently registered agents.
	//
	// GET /api/agent
	V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
	// V2HealthGet implements v2.health.get operation.
	//
	// Check whether the API server is ready to accept requests.
	//
	// GET /api/health
	V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
	// V2ModelList implements v2.model.list operation.
	//
	// Retrieve available models ordered by release date.
	//
	// GET /api/model
	V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
	// V2PermissionRequestList implements v2.permission.request.list operation.
	//
	// Retrieve pending permission requests for a location.
	//
	// GET /api/permission/request
	V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
	// V2ProviderList implements v2.provider.list operation.
	//
	// Retrieve active AI providers so clients can show provider availability and configuration.
	//
	// GET /api/provider
	V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
	// V2QuestionRequestList implements v2.question.request.list operation.
	//
	// Retrieve pending question requests for a location.
	//
	// GET /api/question/request
	V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
	// V2SessionContext implements v2.session.context operation.
	//
	// Retrieve the active context messages for a session (all messages after the last compaction).
	//
	// GET /api/session/{sessionID}/context
	V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
	// V2SessionList implements v2.session.list operation.
	//
	// Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or
	// cursor.previous to move through the ordered list.
	//
	// GET /api/session
	V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
	// V2SessionMessages implements v2.session.messages operation.
	//
	// Retrieve projected messages for a session. Items keep the requested order across pages; use
	// cursor.next or cursor.previous to move through the ordered timeline.
	//
	// GET /api/session/{sessionID}/message
	V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
	// V2SessionPermissionList implements v2.session.permission.list operation.
	//
	// Retrieve pending permission requests owned by a session.
	//
	// GET /api/session/{sessionID}/permission
	V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
	// V2SessionPermissionReply implements v2.session.permission.reply operation.
	//
	// Respond to a pending permission request owned by a session.
	//
	// POST /api/session/{sessionID}/permission/{requestID}/reply
	V2SessionPermissionReply(ctx context.Context, req *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (V2SessionPermissionReplyRes, error)
	// V2SessionPrompt implements v2.session.prompt operation.
	//
	// Durably admit one session input and schedule agent-loop execution unless resume is false.
	//
	// POST /api/session/{sessionID}/prompt
	V2SessionPrompt(ctx context.Context, req *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
	// V2SessionQuestionReject implements v2.session.question.reject operation.
	//
	// Reject a pending question request owned by a session.
	//
	// POST /api/session/{sessionID}/question/{requestID}/reject
	V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
	// V2SessionQuestionReply implements v2.session.question.reply operation.
	//
	// Answer a pending question request owned by a session.
	//
	// POST /api/session/{sessionID}/question/{requestID}/reply
	V2SessionQuestionReply(ctx context.Context, req *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)
	// V2SessionWait implements v2.session.wait operation.
	//
	// Wait for a session agent loop to become idle.
	//
	// POST /api/session/{sessionID}/wait
	V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type InvalidRequestError

type InvalidRequestError struct {
	Tag     InvalidRequestErrorTag `json:"_tag"`
	Field   OptString              `json:"field"`
	Kind    OptString              `json:"kind"`
	Message string                 `json:"message"`
}

Ref: #/components/schemas/InvalidRequestError

func (*InvalidRequestError) Decode

func (s *InvalidRequestError) Decode(d *jx.Decoder) error

Decode decodes InvalidRequestError from json.

func (*InvalidRequestError) Encode

func (s *InvalidRequestError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InvalidRequestError) GetField

func (s *InvalidRequestError) GetField() OptString

GetField returns the value of Field.

func (*InvalidRequestError) GetKind

func (s *InvalidRequestError) GetKind() OptString

GetKind returns the value of Kind.

func (*InvalidRequestError) GetMessage

func (s *InvalidRequestError) GetMessage() string

GetMessage returns the value of Message.

func (*InvalidRequestError) GetTag

GetTag returns the value of Tag.

func (*InvalidRequestError) MarshalJSON

func (s *InvalidRequestError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InvalidRequestError) SetField

func (s *InvalidRequestError) SetField(val OptString)

SetField sets the value of Field.

func (*InvalidRequestError) SetKind

func (s *InvalidRequestError) SetKind(val OptString)

SetKind sets the value of Kind.

func (*InvalidRequestError) SetMessage

func (s *InvalidRequestError) SetMessage(val string)

SetMessage sets the value of Message.

func (*InvalidRequestError) SetTag

SetTag sets the value of Tag.

func (*InvalidRequestError) UnmarshalJSON

func (s *InvalidRequestError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InvalidRequestError) Validate

func (s *InvalidRequestError) Validate() error

type InvalidRequestErrorTag

type InvalidRequestErrorTag string
const (
	InvalidRequestErrorTagInvalidRequestError InvalidRequestErrorTag = "InvalidRequestError"
)

func (InvalidRequestErrorTag) AllValues

AllValues returns all InvalidRequestErrorTag values.

func (*InvalidRequestErrorTag) Decode

func (s *InvalidRequestErrorTag) Decode(d *jx.Decoder) error

Decode decodes InvalidRequestErrorTag from json.

func (InvalidRequestErrorTag) Encode

func (s InvalidRequestErrorTag) Encode(e *jx.Encoder)

Encode encodes InvalidRequestErrorTag as json.

func (InvalidRequestErrorTag) MarshalJSON

func (s InvalidRequestErrorTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (InvalidRequestErrorTag) MarshalText

func (s InvalidRequestErrorTag) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*InvalidRequestErrorTag) UnmarshalJSON

func (s *InvalidRequestErrorTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*InvalidRequestErrorTag) UnmarshalText

func (s *InvalidRequestErrorTag) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (InvalidRequestErrorTag) Validate

func (s InvalidRequestErrorTag) Validate() error

type Invoker

type Invoker interface {
	// SessionCreate invokes session.create operation.
	//
	// Create a new OpenCode session for interacting with AI assistants and managing conversations.
	//
	// POST /session
	SessionCreate(ctx context.Context, request OptSessionCreateReq, params SessionCreateParams) (SessionCreateRes, error)
	// SessionMessage invokes session.message operation.
	//
	// Send a message to a session.
	//
	// POST /session/{sessionID}/message
	SessionMessage(ctx context.Context, request *SessionMessageReq, params SessionMessageParams) (SessionMessageRes, error)
	// SessionMessages invokes session.messages operation.
	//
	// Retrieve all messages in a session, including user prompts and AI responses.
	//
	// GET /session/{sessionID}/message
	SessionMessages(ctx context.Context, params SessionMessagesParams) (SessionMessagesRes, error)
	// V2AgentList invokes v2.agent.list operation.
	//
	// Retrieve currently registered agents.
	//
	// GET /api/agent
	V2AgentList(ctx context.Context, params V2AgentListParams) (V2AgentListRes, error)
	// V2HealthGet invokes v2.health.get operation.
	//
	// Check whether the API server is ready to accept requests.
	//
	// GET /api/health
	V2HealthGet(ctx context.Context) (V2HealthGetRes, error)
	// V2ModelList invokes v2.model.list operation.
	//
	// Retrieve available models ordered by release date.
	//
	// GET /api/model
	V2ModelList(ctx context.Context, params V2ModelListParams) (V2ModelListRes, error)
	// V2PermissionRequestList invokes v2.permission.request.list operation.
	//
	// Retrieve pending permission requests for a location.
	//
	// GET /api/permission/request
	V2PermissionRequestList(ctx context.Context, params V2PermissionRequestListParams) (V2PermissionRequestListRes, error)
	// V2ProviderList invokes v2.provider.list operation.
	//
	// Retrieve active AI providers so clients can show provider availability and configuration.
	//
	// GET /api/provider
	V2ProviderList(ctx context.Context, params V2ProviderListParams) (V2ProviderListRes, error)
	// V2QuestionRequestList invokes v2.question.request.list operation.
	//
	// Retrieve pending question requests for a location.
	//
	// GET /api/question/request
	V2QuestionRequestList(ctx context.Context, params V2QuestionRequestListParams) (V2QuestionRequestListRes, error)
	// V2SessionContext invokes v2.session.context operation.
	//
	// Retrieve the active context messages for a session (all messages after the last compaction).
	//
	// GET /api/session/{sessionID}/context
	V2SessionContext(ctx context.Context, params V2SessionContextParams) (V2SessionContextRes, error)
	// V2SessionList invokes v2.session.list operation.
	//
	// Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or
	// cursor.previous to move through the ordered list.
	//
	// GET /api/session
	V2SessionList(ctx context.Context, params V2SessionListParams) (V2SessionListRes, error)
	// V2SessionMessages invokes v2.session.messages operation.
	//
	// Retrieve projected messages for a session. Items keep the requested order across pages; use
	// cursor.next or cursor.previous to move through the ordered timeline.
	//
	// GET /api/session/{sessionID}/message
	V2SessionMessages(ctx context.Context, params V2SessionMessagesParams) (V2SessionMessagesRes, error)
	// V2SessionPermissionList invokes v2.session.permission.list operation.
	//
	// Retrieve pending permission requests owned by a session.
	//
	// GET /api/session/{sessionID}/permission
	V2SessionPermissionList(ctx context.Context, params V2SessionPermissionListParams) (V2SessionPermissionListRes, error)
	// V2SessionPermissionReply invokes v2.session.permission.reply operation.
	//
	// Respond to a pending permission request owned by a session.
	//
	// POST /api/session/{sessionID}/permission/{requestID}/reply
	V2SessionPermissionReply(ctx context.Context, request *V2SessionPermissionReplyReq, params V2SessionPermissionReplyParams) (V2SessionPermissionReplyRes, error)
	// V2SessionPrompt invokes v2.session.prompt operation.
	//
	// Durably admit one session input and schedule agent-loop execution unless resume is false.
	//
	// POST /api/session/{sessionID}/prompt
	V2SessionPrompt(ctx context.Context, request *V2SessionPromptReq, params V2SessionPromptParams) (V2SessionPromptRes, error)
	// V2SessionQuestionReject invokes v2.session.question.reject operation.
	//
	// Reject a pending question request owned by a session.
	//
	// POST /api/session/{sessionID}/question/{requestID}/reject
	V2SessionQuestionReject(ctx context.Context, params V2SessionQuestionRejectParams) (V2SessionQuestionRejectRes, error)
	// V2SessionQuestionReply invokes v2.session.question.reply operation.
	//
	// Answer a pending question request owned by a session.
	//
	// POST /api/session/{sessionID}/question/{requestID}/reply
	V2SessionQuestionReply(ctx context.Context, request *QuestionV2Reply, params V2SessionQuestionReplyParams) (V2SessionQuestionReplyRes, error)
	// V2SessionWait invokes v2.session.wait operation.
	//
	// Wait for a session agent loop to become idle.
	//
	// POST /api/session/{sessionID}/wait
	V2SessionWait(ctx context.Context, params V2SessionWaitParams) (V2SessionWaitRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

type Labeler struct {
	// contains filtered or unexported fields
}

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type LocationInfo

type LocationInfo struct {
	Directory   string              `json:"directory"`
	Project     LocationInfoProject `json:"project"`
	WorkspaceID OptNilString        `json:"workspaceID"`
}

Ref: #/components/schemas/LocationInfo

func (*LocationInfo) Decode

func (s *LocationInfo) Decode(d *jx.Decoder) error

Decode decodes LocationInfo from json.

func (*LocationInfo) Encode

func (s *LocationInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LocationInfo) GetDirectory

func (s *LocationInfo) GetDirectory() string

GetDirectory returns the value of Directory.

func (*LocationInfo) GetProject

func (s *LocationInfo) GetProject() LocationInfoProject

GetProject returns the value of Project.

func (*LocationInfo) GetWorkspaceID

func (s *LocationInfo) GetWorkspaceID() OptNilString

GetWorkspaceID returns the value of WorkspaceID.

func (*LocationInfo) MarshalJSON

func (s *LocationInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LocationInfo) SetDirectory

func (s *LocationInfo) SetDirectory(val string)

SetDirectory sets the value of Directory.

func (*LocationInfo) SetProject

func (s *LocationInfo) SetProject(val LocationInfoProject)

SetProject sets the value of Project.

func (*LocationInfo) SetWorkspaceID

func (s *LocationInfo) SetWorkspaceID(val OptNilString)

SetWorkspaceID sets the value of WorkspaceID.

func (*LocationInfo) UnmarshalJSON

func (s *LocationInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocationInfo) Validate

func (s *LocationInfo) Validate() error

type LocationInfoProject

type LocationInfoProject struct {
	Directory string `json:"directory"`
	ID        string `json:"id"`
}

func (*LocationInfoProject) Decode

func (s *LocationInfoProject) Decode(d *jx.Decoder) error

Decode decodes LocationInfoProject from json.

func (*LocationInfoProject) Encode

func (s *LocationInfoProject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LocationInfoProject) GetDirectory

func (s *LocationInfoProject) GetDirectory() string

GetDirectory returns the value of Directory.

func (*LocationInfoProject) GetID

func (s *LocationInfoProject) GetID() string

GetID returns the value of ID.

func (*LocationInfoProject) MarshalJSON

func (s *LocationInfoProject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LocationInfoProject) SetDirectory

func (s *LocationInfoProject) SetDirectory(val string)

SetDirectory sets the value of Directory.

func (*LocationInfoProject) SetID

func (s *LocationInfoProject) SetID(val string)

SetID sets the value of ID.

func (*LocationInfoProject) UnmarshalJSON

func (s *LocationInfoProject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LocationRef

type LocationRef struct {
	Directory   string       `json:"directory"`
	WorkspaceID OptNilString `json:"workspaceID"`
}

Ref: #/components/schemas/LocationRef

func (*LocationRef) Decode

func (s *LocationRef) Decode(d *jx.Decoder) error

Decode decodes LocationRef from json.

func (*LocationRef) Encode

func (s *LocationRef) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LocationRef) GetDirectory

func (s *LocationRef) GetDirectory() string

GetDirectory returns the value of Directory.

func (*LocationRef) GetWorkspaceID

func (s *LocationRef) GetWorkspaceID() OptNilString

GetWorkspaceID returns the value of WorkspaceID.

func (*LocationRef) MarshalJSON

func (s *LocationRef) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LocationRef) SetDirectory

func (s *LocationRef) SetDirectory(val string)

SetDirectory sets the value of Directory.

func (*LocationRef) SetWorkspaceID

func (s *LocationRef) SetWorkspaceID(val OptNilString)

SetWorkspaceID sets the value of WorkspaceID.

func (*LocationRef) UnmarshalJSON

func (s *LocationRef) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LocationRef) Validate

func (s *LocationRef) Validate() error

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type ModelV2Info

type ModelV2Info struct {
	API          jx.Raw                    `json:"api"`
	Capabilities ModelV2InfoCapabilities   `json:"capabilities"`
	Cost         []ModelV2InfoCostItem     `json:"cost"`
	Enabled      bool                      `json:"enabled"`
	Family       OptNilString              `json:"family"`
	ID           string                    `json:"id"`
	Limit        ModelV2InfoLimit          `json:"limit"`
	Name         string                    `json:"name"`
	ProviderID   string                    `json:"providerID"`
	Request      ModelV2InfoRequest        `json:"request"`
	Status       ModelV2InfoStatus         `json:"status"`
	Time         ModelV2InfoTime           `json:"time"`
	Variants     []ModelV2InfoVariantsItem `json:"variants"`
}

Ref: #/components/schemas/ModelV2Info

func (*ModelV2Info) Decode

func (s *ModelV2Info) Decode(d *jx.Decoder) error

Decode decodes ModelV2Info from json.

func (*ModelV2Info) Encode

func (s *ModelV2Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2Info) GetAPI

func (s *ModelV2Info) GetAPI() jx.Raw

GetAPI returns the value of API.

func (*ModelV2Info) GetCapabilities

func (s *ModelV2Info) GetCapabilities() ModelV2InfoCapabilities

GetCapabilities returns the value of Capabilities.

func (*ModelV2Info) GetCost

func (s *ModelV2Info) GetCost() []ModelV2InfoCostItem

GetCost returns the value of Cost.

func (*ModelV2Info) GetEnabled

func (s *ModelV2Info) GetEnabled() bool

GetEnabled returns the value of Enabled.

func (*ModelV2Info) GetFamily

func (s *ModelV2Info) GetFamily() OptNilString

GetFamily returns the value of Family.

func (*ModelV2Info) GetID

func (s *ModelV2Info) GetID() string

GetID returns the value of ID.

func (*ModelV2Info) GetLimit

func (s *ModelV2Info) GetLimit() ModelV2InfoLimit

GetLimit returns the value of Limit.

func (*ModelV2Info) GetName

func (s *ModelV2Info) GetName() string

GetName returns the value of Name.

func (*ModelV2Info) GetProviderID

func (s *ModelV2Info) GetProviderID() string

GetProviderID returns the value of ProviderID.

func (*ModelV2Info) GetRequest

func (s *ModelV2Info) GetRequest() ModelV2InfoRequest

GetRequest returns the value of Request.

func (*ModelV2Info) GetStatus

func (s *ModelV2Info) GetStatus() ModelV2InfoStatus

GetStatus returns the value of Status.

func (*ModelV2Info) GetTime

func (s *ModelV2Info) GetTime() ModelV2InfoTime

GetTime returns the value of Time.

func (*ModelV2Info) GetVariants

func (s *ModelV2Info) GetVariants() []ModelV2InfoVariantsItem

GetVariants returns the value of Variants.

func (*ModelV2Info) MarshalJSON

func (s *ModelV2Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2Info) SetAPI

func (s *ModelV2Info) SetAPI(val jx.Raw)

SetAPI sets the value of API.

func (*ModelV2Info) SetCapabilities

func (s *ModelV2Info) SetCapabilities(val ModelV2InfoCapabilities)

SetCapabilities sets the value of Capabilities.

func (*ModelV2Info) SetCost

func (s *ModelV2Info) SetCost(val []ModelV2InfoCostItem)

SetCost sets the value of Cost.

func (*ModelV2Info) SetEnabled

func (s *ModelV2Info) SetEnabled(val bool)

SetEnabled sets the value of Enabled.

func (*ModelV2Info) SetFamily

func (s *ModelV2Info) SetFamily(val OptNilString)

SetFamily sets the value of Family.

func (*ModelV2Info) SetID

func (s *ModelV2Info) SetID(val string)

SetID sets the value of ID.

func (*ModelV2Info) SetLimit

func (s *ModelV2Info) SetLimit(val ModelV2InfoLimit)

SetLimit sets the value of Limit.

func (*ModelV2Info) SetName

func (s *ModelV2Info) SetName(val string)

SetName sets the value of Name.

func (*ModelV2Info) SetProviderID

func (s *ModelV2Info) SetProviderID(val string)

SetProviderID sets the value of ProviderID.

func (*ModelV2Info) SetRequest

func (s *ModelV2Info) SetRequest(val ModelV2InfoRequest)

SetRequest sets the value of Request.

func (*ModelV2Info) SetStatus

func (s *ModelV2Info) SetStatus(val ModelV2InfoStatus)

SetStatus sets the value of Status.

func (*ModelV2Info) SetTime

func (s *ModelV2Info) SetTime(val ModelV2InfoTime)

SetTime sets the value of Time.

func (*ModelV2Info) SetVariants

func (s *ModelV2Info) SetVariants(val []ModelV2InfoVariantsItem)

SetVariants sets the value of Variants.

func (*ModelV2Info) UnmarshalJSON

func (s *ModelV2Info) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2Info) Validate

func (s *ModelV2Info) Validate() error

type ModelV2InfoCapabilities

type ModelV2InfoCapabilities struct {
	Input  []string `json:"input"`
	Output []string `json:"output"`
	Tools  bool     `json:"tools"`
}

func (*ModelV2InfoCapabilities) Decode

func (s *ModelV2InfoCapabilities) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoCapabilities from json.

func (*ModelV2InfoCapabilities) Encode

func (s *ModelV2InfoCapabilities) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoCapabilities) GetInput

func (s *ModelV2InfoCapabilities) GetInput() []string

GetInput returns the value of Input.

func (*ModelV2InfoCapabilities) GetOutput

func (s *ModelV2InfoCapabilities) GetOutput() []string

GetOutput returns the value of Output.

func (*ModelV2InfoCapabilities) GetTools

func (s *ModelV2InfoCapabilities) GetTools() bool

GetTools returns the value of Tools.

func (*ModelV2InfoCapabilities) MarshalJSON

func (s *ModelV2InfoCapabilities) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoCapabilities) SetInput

func (s *ModelV2InfoCapabilities) SetInput(val []string)

SetInput sets the value of Input.

func (*ModelV2InfoCapabilities) SetOutput

func (s *ModelV2InfoCapabilities) SetOutput(val []string)

SetOutput sets the value of Output.

func (*ModelV2InfoCapabilities) SetTools

func (s *ModelV2InfoCapabilities) SetTools(val bool)

SetTools sets the value of Tools.

func (*ModelV2InfoCapabilities) UnmarshalJSON

func (s *ModelV2InfoCapabilities) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoCapabilities) Validate

func (s *ModelV2InfoCapabilities) Validate() error

type ModelV2InfoCostItem

type ModelV2InfoCostItem struct {
	Cache  ModelV2InfoCostItemCache   `json:"cache"`
	Input  NilFloat64                 `json:"input"`
	Output float64                    `json:"output"`
	Tier   OptModelV2InfoCostItemTier `json:"tier"`
}

func (*ModelV2InfoCostItem) Decode

func (s *ModelV2InfoCostItem) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoCostItem from json.

func (*ModelV2InfoCostItem) Encode

func (s *ModelV2InfoCostItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoCostItem) GetCache

GetCache returns the value of Cache.

func (*ModelV2InfoCostItem) GetInput

func (s *ModelV2InfoCostItem) GetInput() NilFloat64

GetInput returns the value of Input.

func (*ModelV2InfoCostItem) GetOutput

func (s *ModelV2InfoCostItem) GetOutput() float64

GetOutput returns the value of Output.

func (*ModelV2InfoCostItem) GetTier

GetTier returns the value of Tier.

func (*ModelV2InfoCostItem) MarshalJSON

func (s *ModelV2InfoCostItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoCostItem) SetCache

SetCache sets the value of Cache.

func (*ModelV2InfoCostItem) SetInput

func (s *ModelV2InfoCostItem) SetInput(val NilFloat64)

SetInput sets the value of Input.

func (*ModelV2InfoCostItem) SetOutput

func (s *ModelV2InfoCostItem) SetOutput(val float64)

SetOutput sets the value of Output.

func (*ModelV2InfoCostItem) SetTier

SetTier sets the value of Tier.

func (*ModelV2InfoCostItem) UnmarshalJSON

func (s *ModelV2InfoCostItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoCostItem) Validate

func (s *ModelV2InfoCostItem) Validate() error

type ModelV2InfoCostItemCache

type ModelV2InfoCostItemCache struct {
	Read  float64 `json:"read"`
	Write float64 `json:"write"`
}

func (*ModelV2InfoCostItemCache) Decode

func (s *ModelV2InfoCostItemCache) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoCostItemCache from json.

func (*ModelV2InfoCostItemCache) Encode

func (s *ModelV2InfoCostItemCache) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoCostItemCache) GetRead

func (s *ModelV2InfoCostItemCache) GetRead() float64

GetRead returns the value of Read.

func (*ModelV2InfoCostItemCache) GetWrite

func (s *ModelV2InfoCostItemCache) GetWrite() float64

GetWrite returns the value of Write.

func (*ModelV2InfoCostItemCache) MarshalJSON

func (s *ModelV2InfoCostItemCache) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoCostItemCache) SetRead

func (s *ModelV2InfoCostItemCache) SetRead(val float64)

SetRead sets the value of Read.

func (*ModelV2InfoCostItemCache) SetWrite

func (s *ModelV2InfoCostItemCache) SetWrite(val float64)

SetWrite sets the value of Write.

func (*ModelV2InfoCostItemCache) UnmarshalJSON

func (s *ModelV2InfoCostItemCache) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoCostItemCache) Validate

func (s *ModelV2InfoCostItemCache) Validate() error

type ModelV2InfoCostItemTier

type ModelV2InfoCostItemTier struct {
	Size int                         `json:"size"`
	Type ModelV2InfoCostItemTierType `json:"type"`
}

func (*ModelV2InfoCostItemTier) Decode

func (s *ModelV2InfoCostItemTier) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoCostItemTier from json.

func (*ModelV2InfoCostItemTier) Encode

func (s *ModelV2InfoCostItemTier) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoCostItemTier) GetSize

func (s *ModelV2InfoCostItemTier) GetSize() int

GetSize returns the value of Size.

func (*ModelV2InfoCostItemTier) GetType

GetType returns the value of Type.

func (*ModelV2InfoCostItemTier) MarshalJSON

func (s *ModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoCostItemTier) SetSize

func (s *ModelV2InfoCostItemTier) SetSize(val int)

SetSize sets the value of Size.

func (*ModelV2InfoCostItemTier) SetType

SetType sets the value of Type.

func (*ModelV2InfoCostItemTier) UnmarshalJSON

func (s *ModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoCostItemTier) Validate

func (s *ModelV2InfoCostItemTier) Validate() error

type ModelV2InfoCostItemTierType

type ModelV2InfoCostItemTierType string
const (
	ModelV2InfoCostItemTierTypeContext ModelV2InfoCostItemTierType = "context"
)

func (ModelV2InfoCostItemTierType) AllValues

AllValues returns all ModelV2InfoCostItemTierType values.

func (*ModelV2InfoCostItemTierType) Decode

Decode decodes ModelV2InfoCostItemTierType from json.

func (ModelV2InfoCostItemTierType) Encode

func (s ModelV2InfoCostItemTierType) Encode(e *jx.Encoder)

Encode encodes ModelV2InfoCostItemTierType as json.

func (ModelV2InfoCostItemTierType) MarshalJSON

func (s ModelV2InfoCostItemTierType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ModelV2InfoCostItemTierType) MarshalText

func (s ModelV2InfoCostItemTierType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ModelV2InfoCostItemTierType) UnmarshalJSON

func (s *ModelV2InfoCostItemTierType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoCostItemTierType) UnmarshalText

func (s *ModelV2InfoCostItemTierType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ModelV2InfoCostItemTierType) Validate

func (s ModelV2InfoCostItemTierType) Validate() error

type ModelV2InfoLimit

type ModelV2InfoLimit struct {
	Context int       `json:"context"`
	Input   OptNilInt `json:"input"`
	Output  int       `json:"output"`
}

func (*ModelV2InfoLimit) Decode

func (s *ModelV2InfoLimit) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoLimit from json.

func (*ModelV2InfoLimit) Encode

func (s *ModelV2InfoLimit) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoLimit) GetContext

func (s *ModelV2InfoLimit) GetContext() int

GetContext returns the value of Context.

func (*ModelV2InfoLimit) GetInput

func (s *ModelV2InfoLimit) GetInput() OptNilInt

GetInput returns the value of Input.

func (*ModelV2InfoLimit) GetOutput

func (s *ModelV2InfoLimit) GetOutput() int

GetOutput returns the value of Output.

func (*ModelV2InfoLimit) MarshalJSON

func (s *ModelV2InfoLimit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoLimit) SetContext

func (s *ModelV2InfoLimit) SetContext(val int)

SetContext sets the value of Context.

func (*ModelV2InfoLimit) SetInput

func (s *ModelV2InfoLimit) SetInput(val OptNilInt)

SetInput sets the value of Input.

func (*ModelV2InfoLimit) SetOutput

func (s *ModelV2InfoLimit) SetOutput(val int)

SetOutput sets the value of Output.

func (*ModelV2InfoLimit) UnmarshalJSON

func (s *ModelV2InfoLimit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoRequest

type ModelV2InfoRequest struct {
	Body       ModelV2InfoRequestBody          `json:"body"`
	Generation OptModelV2InfoRequestGeneration `json:"generation"`
	Headers    ModelV2InfoRequestHeaders       `json:"headers"`
	Options    *ModelV2InfoRequestOptions      `json:"options"`
	Variant    OptNilString                    `json:"variant"`
}

func (*ModelV2InfoRequest) Decode

func (s *ModelV2InfoRequest) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoRequest from json.

func (*ModelV2InfoRequest) Encode

func (s *ModelV2InfoRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoRequest) GetBody

GetBody returns the value of Body.

func (*ModelV2InfoRequest) GetGeneration

GetGeneration returns the value of Generation.

func (*ModelV2InfoRequest) GetHeaders

GetHeaders returns the value of Headers.

func (*ModelV2InfoRequest) GetOptions

GetOptions returns the value of Options.

func (*ModelV2InfoRequest) GetVariant

func (s *ModelV2InfoRequest) GetVariant() OptNilString

GetVariant returns the value of Variant.

func (*ModelV2InfoRequest) MarshalJSON

func (s *ModelV2InfoRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoRequest) SetBody

SetBody sets the value of Body.

func (*ModelV2InfoRequest) SetGeneration

SetGeneration sets the value of Generation.

func (*ModelV2InfoRequest) SetHeaders

func (s *ModelV2InfoRequest) SetHeaders(val ModelV2InfoRequestHeaders)

SetHeaders sets the value of Headers.

func (*ModelV2InfoRequest) SetOptions

func (s *ModelV2InfoRequest) SetOptions(val *ModelV2InfoRequestOptions)

SetOptions sets the value of Options.

func (*ModelV2InfoRequest) SetVariant

func (s *ModelV2InfoRequest) SetVariant(val OptNilString)

SetVariant sets the value of Variant.

func (*ModelV2InfoRequest) UnmarshalJSON

func (s *ModelV2InfoRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoRequestBody

type ModelV2InfoRequestBody struct{}

func (*ModelV2InfoRequestBody) Decode

func (s *ModelV2InfoRequestBody) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoRequestBody from json.

func (*ModelV2InfoRequestBody) Encode

func (s *ModelV2InfoRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoRequestBody) MarshalJSON

func (s *ModelV2InfoRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoRequestBody) UnmarshalJSON

func (s *ModelV2InfoRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoRequestGeneration

type ModelV2InfoRequestGeneration struct {
	FrequencyPenalty jx.Raw   `json:"frequencyPenalty"`
	MaxTokens        jx.Raw   `json:"maxTokens"`
	PresencePenalty  jx.Raw   `json:"presencePenalty"`
	Seed             jx.Raw   `json:"seed"`
	Stop             []string `json:"stop"`
	Temperature      jx.Raw   `json:"temperature"`
	TopK             jx.Raw   `json:"topK"`
	TopP             jx.Raw   `json:"topP"`
}

func (*ModelV2InfoRequestGeneration) Decode

Decode decodes ModelV2InfoRequestGeneration from json.

func (*ModelV2InfoRequestGeneration) Encode

func (s *ModelV2InfoRequestGeneration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoRequestGeneration) GetFrequencyPenalty

func (s *ModelV2InfoRequestGeneration) GetFrequencyPenalty() jx.Raw

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*ModelV2InfoRequestGeneration) GetMaxTokens

func (s *ModelV2InfoRequestGeneration) GetMaxTokens() jx.Raw

GetMaxTokens returns the value of MaxTokens.

func (*ModelV2InfoRequestGeneration) GetPresencePenalty

func (s *ModelV2InfoRequestGeneration) GetPresencePenalty() jx.Raw

GetPresencePenalty returns the value of PresencePenalty.

func (*ModelV2InfoRequestGeneration) GetSeed

func (s *ModelV2InfoRequestGeneration) GetSeed() jx.Raw

GetSeed returns the value of Seed.

func (*ModelV2InfoRequestGeneration) GetStop

func (s *ModelV2InfoRequestGeneration) GetStop() []string

GetStop returns the value of Stop.

func (*ModelV2InfoRequestGeneration) GetTemperature

func (s *ModelV2InfoRequestGeneration) GetTemperature() jx.Raw

GetTemperature returns the value of Temperature.

func (*ModelV2InfoRequestGeneration) GetTopK

func (s *ModelV2InfoRequestGeneration) GetTopK() jx.Raw

GetTopK returns the value of TopK.

func (*ModelV2InfoRequestGeneration) GetTopP

func (s *ModelV2InfoRequestGeneration) GetTopP() jx.Raw

GetTopP returns the value of TopP.

func (*ModelV2InfoRequestGeneration) MarshalJSON

func (s *ModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoRequestGeneration) SetFrequencyPenalty

func (s *ModelV2InfoRequestGeneration) SetFrequencyPenalty(val jx.Raw)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*ModelV2InfoRequestGeneration) SetMaxTokens

func (s *ModelV2InfoRequestGeneration) SetMaxTokens(val jx.Raw)

SetMaxTokens sets the value of MaxTokens.

func (*ModelV2InfoRequestGeneration) SetPresencePenalty

func (s *ModelV2InfoRequestGeneration) SetPresencePenalty(val jx.Raw)

SetPresencePenalty sets the value of PresencePenalty.

func (*ModelV2InfoRequestGeneration) SetSeed

func (s *ModelV2InfoRequestGeneration) SetSeed(val jx.Raw)

SetSeed sets the value of Seed.

func (*ModelV2InfoRequestGeneration) SetStop

func (s *ModelV2InfoRequestGeneration) SetStop(val []string)

SetStop sets the value of Stop.

func (*ModelV2InfoRequestGeneration) SetTemperature

func (s *ModelV2InfoRequestGeneration) SetTemperature(val jx.Raw)

SetTemperature sets the value of Temperature.

func (*ModelV2InfoRequestGeneration) SetTopK

func (s *ModelV2InfoRequestGeneration) SetTopK(val jx.Raw)

SetTopK sets the value of TopK.

func (*ModelV2InfoRequestGeneration) SetTopP

func (s *ModelV2InfoRequestGeneration) SetTopP(val jx.Raw)

SetTopP sets the value of TopP.

func (*ModelV2InfoRequestGeneration) UnmarshalJSON

func (s *ModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoRequestHeaders

type ModelV2InfoRequestHeaders map[string]string

func (*ModelV2InfoRequestHeaders) Decode

func (s *ModelV2InfoRequestHeaders) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoRequestHeaders from json.

func (ModelV2InfoRequestHeaders) Encode

func (s ModelV2InfoRequestHeaders) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (ModelV2InfoRequestHeaders) MarshalJSON

func (s ModelV2InfoRequestHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoRequestHeaders) UnmarshalJSON

func (s *ModelV2InfoRequestHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoRequestOptions

type ModelV2InfoRequestOptions struct{}

func (*ModelV2InfoRequestOptions) Decode

func (s *ModelV2InfoRequestOptions) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoRequestOptions from json.

func (*ModelV2InfoRequestOptions) Encode

func (s *ModelV2InfoRequestOptions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoRequestOptions) MarshalJSON

func (s *ModelV2InfoRequestOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoRequestOptions) UnmarshalJSON

func (s *ModelV2InfoRequestOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoStatus

type ModelV2InfoStatus string
const (
	ModelV2InfoStatusAlpha      ModelV2InfoStatus = "alpha"
	ModelV2InfoStatusBeta       ModelV2InfoStatus = "beta"
	ModelV2InfoStatusDeprecated ModelV2InfoStatus = "deprecated"
	ModelV2InfoStatusActive     ModelV2InfoStatus = "active"
)

func (ModelV2InfoStatus) AllValues

func (ModelV2InfoStatus) AllValues() []ModelV2InfoStatus

AllValues returns all ModelV2InfoStatus values.

func (*ModelV2InfoStatus) Decode

func (s *ModelV2InfoStatus) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoStatus from json.

func (ModelV2InfoStatus) Encode

func (s ModelV2InfoStatus) Encode(e *jx.Encoder)

Encode encodes ModelV2InfoStatus as json.

func (ModelV2InfoStatus) MarshalJSON

func (s ModelV2InfoStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ModelV2InfoStatus) MarshalText

func (s ModelV2InfoStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ModelV2InfoStatus) UnmarshalJSON

func (s *ModelV2InfoStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ModelV2InfoStatus) UnmarshalText

func (s *ModelV2InfoStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ModelV2InfoStatus) Validate

func (s ModelV2InfoStatus) Validate() error

type ModelV2InfoTime

type ModelV2InfoTime struct {
	Released jx.Raw `json:"released"`
}

func (*ModelV2InfoTime) Decode

func (s *ModelV2InfoTime) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoTime from json.

func (*ModelV2InfoTime) Encode

func (s *ModelV2InfoTime) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoTime) GetReleased

func (s *ModelV2InfoTime) GetReleased() jx.Raw

GetReleased returns the value of Released.

func (*ModelV2InfoTime) MarshalJSON

func (s *ModelV2InfoTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoTime) SetReleased

func (s *ModelV2InfoTime) SetReleased(val jx.Raw)

SetReleased sets the value of Released.

func (*ModelV2InfoTime) UnmarshalJSON

func (s *ModelV2InfoTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoVariantsItem

type ModelV2InfoVariantsItem struct {
	Body       ModelV2InfoVariantsItemBody          `json:"body"`
	Generation OptModelV2InfoVariantsItemGeneration `json:"generation"`
	Headers    ModelV2InfoVariantsItemHeaders       `json:"headers"`
	ID         string                               `json:"id"`
	Options    *ModelV2InfoVariantsItemOptions      `json:"options"`
}

func (*ModelV2InfoVariantsItem) Decode

func (s *ModelV2InfoVariantsItem) Decode(d *jx.Decoder) error

Decode decodes ModelV2InfoVariantsItem from json.

func (*ModelV2InfoVariantsItem) Encode

func (s *ModelV2InfoVariantsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoVariantsItem) GetBody

GetBody returns the value of Body.

func (*ModelV2InfoVariantsItem) GetGeneration

GetGeneration returns the value of Generation.

func (*ModelV2InfoVariantsItem) GetHeaders

GetHeaders returns the value of Headers.

func (*ModelV2InfoVariantsItem) GetID

func (s *ModelV2InfoVariantsItem) GetID() string

GetID returns the value of ID.

func (*ModelV2InfoVariantsItem) GetOptions

GetOptions returns the value of Options.

func (*ModelV2InfoVariantsItem) MarshalJSON

func (s *ModelV2InfoVariantsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoVariantsItem) SetBody

SetBody sets the value of Body.

func (*ModelV2InfoVariantsItem) SetGeneration

SetGeneration sets the value of Generation.

func (*ModelV2InfoVariantsItem) SetHeaders

SetHeaders sets the value of Headers.

func (*ModelV2InfoVariantsItem) SetID

func (s *ModelV2InfoVariantsItem) SetID(val string)

SetID sets the value of ID.

func (*ModelV2InfoVariantsItem) SetOptions

SetOptions sets the value of Options.

func (*ModelV2InfoVariantsItem) UnmarshalJSON

func (s *ModelV2InfoVariantsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoVariantsItemBody

type ModelV2InfoVariantsItemBody struct{}

func (*ModelV2InfoVariantsItemBody) Decode

Decode decodes ModelV2InfoVariantsItemBody from json.

func (*ModelV2InfoVariantsItemBody) Encode

func (s *ModelV2InfoVariantsItemBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModelV2InfoVariantsItemBody) MarshalJSON

func (s *ModelV2InfoVariantsItemBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoVariantsItemBody) UnmarshalJSON

func (s *ModelV2InfoVariantsItemBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoVariantsItemGeneration

type ModelV2InfoVariantsItemGeneration struct {
	FrequencyPenalty jx.Raw   `json:"frequencyPenalty"`
	MaxTokens        jx.Raw   `json:"maxTokens"`
	PresencePenalty  jx.Raw   `json:"presencePenalty"`
	Seed             jx.Raw   `json:"seed"`
	Stop             []string `json:"stop"`
	Temperature      jx.Raw   `json:"temperature"`
	TopK             jx.Raw   `json:"topK"`
	TopP             jx.Raw   `json:"topP"`
}

func (*ModelV2InfoVariantsItemGeneration) Decode

Decode decodes ModelV2InfoVariantsItemGeneration from json.

func (*ModelV2InfoVariantsItemGeneration) Encode

Encode implements json.Marshaler.

func (*ModelV2InfoVariantsItemGeneration) GetFrequencyPenalty

func (s *ModelV2InfoVariantsItemGeneration) GetFrequencyPenalty() jx.Raw

GetFrequencyPenalty returns the value of FrequencyPenalty.

func (*ModelV2InfoVariantsItemGeneration) GetMaxTokens

func (s *ModelV2InfoVariantsItemGeneration) GetMaxTokens() jx.Raw

GetMaxTokens returns the value of MaxTokens.

func (*ModelV2InfoVariantsItemGeneration) GetPresencePenalty

func (s *ModelV2InfoVariantsItemGeneration) GetPresencePenalty() jx.Raw

GetPresencePenalty returns the value of PresencePenalty.

func (*ModelV2InfoVariantsItemGeneration) GetSeed

GetSeed returns the value of Seed.

func (*ModelV2InfoVariantsItemGeneration) GetStop

GetStop returns the value of Stop.

func (*ModelV2InfoVariantsItemGeneration) GetTemperature

func (s *ModelV2InfoVariantsItemGeneration) GetTemperature() jx.Raw

GetTemperature returns the value of Temperature.

func (*ModelV2InfoVariantsItemGeneration) GetTopK

GetTopK returns the value of TopK.

func (*ModelV2InfoVariantsItemGeneration) GetTopP

GetTopP returns the value of TopP.

func (*ModelV2InfoVariantsItemGeneration) MarshalJSON

func (s *ModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoVariantsItemGeneration) SetFrequencyPenalty

func (s *ModelV2InfoVariantsItemGeneration) SetFrequencyPenalty(val jx.Raw)

SetFrequencyPenalty sets the value of FrequencyPenalty.

func (*ModelV2InfoVariantsItemGeneration) SetMaxTokens

func (s *ModelV2InfoVariantsItemGeneration) SetMaxTokens(val jx.Raw)

SetMaxTokens sets the value of MaxTokens.

func (*ModelV2InfoVariantsItemGeneration) SetPresencePenalty

func (s *ModelV2InfoVariantsItemGeneration) SetPresencePenalty(val jx.Raw)

SetPresencePenalty sets the value of PresencePenalty.

func (*ModelV2InfoVariantsItemGeneration) SetSeed

func (s *ModelV2InfoVariantsItemGeneration) SetSeed(val jx.Raw)

SetSeed sets the value of Seed.

func (*ModelV2InfoVariantsItemGeneration) SetStop

func (s *ModelV2InfoVariantsItemGeneration) SetStop(val []string)

SetStop sets the value of Stop.

func (*ModelV2InfoVariantsItemGeneration) SetTemperature

func (s *ModelV2InfoVariantsItemGeneration) SetTemperature(val jx.Raw)

SetTemperature sets the value of Temperature.

func (*ModelV2InfoVariantsItemGeneration) SetTopK

func (s *ModelV2InfoVariantsItemGeneration) SetTopK(val jx.Raw)

SetTopK sets the value of TopK.

func (*ModelV2InfoVariantsItemGeneration) SetTopP

func (s *ModelV2InfoVariantsItemGeneration) SetTopP(val jx.Raw)

SetTopP sets the value of TopP.

func (*ModelV2InfoVariantsItemGeneration) UnmarshalJSON

func (s *ModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoVariantsItemHeaders

type ModelV2InfoVariantsItemHeaders map[string]string

func (*ModelV2InfoVariantsItemHeaders) Decode

Decode decodes ModelV2InfoVariantsItemHeaders from json.

func (ModelV2InfoVariantsItemHeaders) Encode

Encode implements json.Marshaler.

func (ModelV2InfoVariantsItemHeaders) MarshalJSON

func (s ModelV2InfoVariantsItemHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoVariantsItemHeaders) UnmarshalJSON

func (s *ModelV2InfoVariantsItemHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModelV2InfoVariantsItemOptions

type ModelV2InfoVariantsItemOptions struct{}

func (*ModelV2InfoVariantsItemOptions) Decode

Decode decodes ModelV2InfoVariantsItemOptions from json.

func (*ModelV2InfoVariantsItemOptions) Encode

Encode implements json.Marshaler.

func (*ModelV2InfoVariantsItemOptions) MarshalJSON

func (s *ModelV2InfoVariantsItemOptions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModelV2InfoVariantsItemOptions) UnmarshalJSON

func (s *ModelV2InfoVariantsItemOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilFloat64

type NilFloat64 struct {
	Value float64
	Null  bool
}

NilFloat64 is nullable float64.

func NewNilFloat64

func NewNilFloat64(v float64) NilFloat64

NewNilFloat64 returns new NilFloat64 with value set to v.

func (*NilFloat64) Decode

func (o *NilFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (NilFloat64) Encode

func (o NilFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (NilFloat64) Get

func (o NilFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilFloat64) IsNull

func (o NilFloat64) IsNull() bool

IsNull returns true if value is Null.

func (NilFloat64) MarshalJSON

func (s NilFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilFloat64) Or

func (o NilFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*NilFloat64) SetTo

func (o *NilFloat64) SetTo(v float64)

SetTo sets value to v.

func (*NilFloat64) SetToNull

func (o *NilFloat64) SetToNull()

SetToNull sets value to null.

func (*NilFloat64) UnmarshalJSON

func (s *NilFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	SessionCreateOperation            OperationName = "SessionCreate"
	SessionMessageOperation           OperationName = "SessionMessage"
	SessionMessagesOperation          OperationName = "SessionMessages"
	V2AgentListOperation              OperationName = "V2AgentList"
	V2HealthGetOperation              OperationName = "V2HealthGet"
	V2ModelListOperation              OperationName = "V2ModelList"
	V2PermissionRequestListOperation  OperationName = "V2PermissionRequestList"
	V2ProviderListOperation           OperationName = "V2ProviderList"
	V2QuestionRequestListOperation    OperationName = "V2QuestionRequestList"
	V2SessionContextOperation         OperationName = "V2SessionContext"
	V2SessionListOperation            OperationName = "V2SessionList"
	V2SessionMessagesOperation        OperationName = "V2SessionMessages"
	V2SessionPermissionListOperation  OperationName = "V2SessionPermissionList"
	V2SessionPermissionReplyOperation OperationName = "V2SessionPermissionReply"
	V2SessionPromptOperation          OperationName = "V2SessionPrompt"
	V2SessionQuestionRejectOperation  OperationName = "V2SessionQuestionReject"
	V2SessionQuestionReplyOperation   OperationName = "V2SessionQuestionReply"
	V2SessionWaitOperation            OperationName = "V2SessionWait"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptModelV2InfoCostItemTier

type OptModelV2InfoCostItemTier struct {
	Value ModelV2InfoCostItemTier
	Set   bool
}

OptModelV2InfoCostItemTier is optional ModelV2InfoCostItemTier.

func NewOptModelV2InfoCostItemTier

func NewOptModelV2InfoCostItemTier(v ModelV2InfoCostItemTier) OptModelV2InfoCostItemTier

NewOptModelV2InfoCostItemTier returns new OptModelV2InfoCostItemTier with value set to v.

func (*OptModelV2InfoCostItemTier) Decode

Decode decodes ModelV2InfoCostItemTier from json.

func (OptModelV2InfoCostItemTier) Encode

func (o OptModelV2InfoCostItemTier) Encode(e *jx.Encoder)

Encode encodes ModelV2InfoCostItemTier as json.

func (OptModelV2InfoCostItemTier) Get

Get returns value and boolean that denotes whether value was set.

func (OptModelV2InfoCostItemTier) IsSet

func (o OptModelV2InfoCostItemTier) IsSet() bool

IsSet returns true if OptModelV2InfoCostItemTier was set.

func (OptModelV2InfoCostItemTier) MarshalJSON

func (s OptModelV2InfoCostItemTier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptModelV2InfoCostItemTier) Or

Or returns value if set, or given parameter if does not.

func (*OptModelV2InfoCostItemTier) Reset

func (o *OptModelV2InfoCostItemTier) Reset()

Reset unsets value.

func (*OptModelV2InfoCostItemTier) SetTo

SetTo sets value to v.

func (*OptModelV2InfoCostItemTier) UnmarshalJSON

func (s *OptModelV2InfoCostItemTier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptModelV2InfoRequestGeneration

type OptModelV2InfoRequestGeneration struct {
	Value ModelV2InfoRequestGeneration
	Set   bool
}

OptModelV2InfoRequestGeneration is optional ModelV2InfoRequestGeneration.

func NewOptModelV2InfoRequestGeneration

func NewOptModelV2InfoRequestGeneration(v ModelV2InfoRequestGeneration) OptModelV2InfoRequestGeneration

NewOptModelV2InfoRequestGeneration returns new OptModelV2InfoRequestGeneration with value set to v.

func (*OptModelV2InfoRequestGeneration) Decode

Decode decodes ModelV2InfoRequestGeneration from json.

func (OptModelV2InfoRequestGeneration) Encode

Encode encodes ModelV2InfoRequestGeneration as json.

func (OptModelV2InfoRequestGeneration) Get

Get returns value and boolean that denotes whether value was set.

func (OptModelV2InfoRequestGeneration) IsSet

IsSet returns true if OptModelV2InfoRequestGeneration was set.

func (OptModelV2InfoRequestGeneration) MarshalJSON

func (s OptModelV2InfoRequestGeneration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptModelV2InfoRequestGeneration) Or

Or returns value if set, or given parameter if does not.

func (*OptModelV2InfoRequestGeneration) Reset

Reset unsets value.

func (*OptModelV2InfoRequestGeneration) SetTo

SetTo sets value to v.

func (*OptModelV2InfoRequestGeneration) UnmarshalJSON

func (s *OptModelV2InfoRequestGeneration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptModelV2InfoVariantsItemGeneration

type OptModelV2InfoVariantsItemGeneration struct {
	Value ModelV2InfoVariantsItemGeneration
	Set   bool
}

OptModelV2InfoVariantsItemGeneration is optional ModelV2InfoVariantsItemGeneration.

func NewOptModelV2InfoVariantsItemGeneration

func NewOptModelV2InfoVariantsItemGeneration(v ModelV2InfoVariantsItemGeneration) OptModelV2InfoVariantsItemGeneration

NewOptModelV2InfoVariantsItemGeneration returns new OptModelV2InfoVariantsItemGeneration with value set to v.

func (*OptModelV2InfoVariantsItemGeneration) Decode

Decode decodes ModelV2InfoVariantsItemGeneration from json.

func (OptModelV2InfoVariantsItemGeneration) Encode

Encode encodes ModelV2InfoVariantsItemGeneration as json.

func (OptModelV2InfoVariantsItemGeneration) Get

Get returns value and boolean that denotes whether value was set.

func (OptModelV2InfoVariantsItemGeneration) IsSet

IsSet returns true if OptModelV2InfoVariantsItemGeneration was set.

func (OptModelV2InfoVariantsItemGeneration) MarshalJSON

func (s OptModelV2InfoVariantsItemGeneration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptModelV2InfoVariantsItemGeneration) Or

Or returns value if set, or given parameter if does not.

func (*OptModelV2InfoVariantsItemGeneration) Reset

Reset unsets value.

func (*OptModelV2InfoVariantsItemGeneration) SetTo

SetTo sets value to v.

func (*OptModelV2InfoVariantsItemGeneration) UnmarshalJSON

func (s *OptModelV2InfoVariantsItemGeneration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilAgentV2InfoModel

type OptNilAgentV2InfoModel struct {
	Value AgentV2InfoModel
	Set   bool
	Null  bool
}

OptNilAgentV2InfoModel is optional nullable AgentV2InfoModel.

func NewOptNilAgentV2InfoModel

func NewOptNilAgentV2InfoModel(v AgentV2InfoModel) OptNilAgentV2InfoModel

NewOptNilAgentV2InfoModel returns new OptNilAgentV2InfoModel with value set to v.

func (*OptNilAgentV2InfoModel) Decode

func (o *OptNilAgentV2InfoModel) Decode(d *jx.Decoder) error

Decode decodes AgentV2InfoModel from json.

func (OptNilAgentV2InfoModel) Encode

func (o OptNilAgentV2InfoModel) Encode(e *jx.Encoder)

Encode encodes AgentV2InfoModel as json.

func (OptNilAgentV2InfoModel) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilAgentV2InfoModel) IsEmpty

func (o OptNilAgentV2InfoModel) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilAgentV2InfoModel) IsNull

func (o OptNilAgentV2InfoModel) IsNull() bool

IsNull returns true if value is Null.

func (OptNilAgentV2InfoModel) IsSet

func (o OptNilAgentV2InfoModel) IsSet() bool

IsSet returns true if OptNilAgentV2InfoModel was set.

func (OptNilAgentV2InfoModel) MarshalJSON

func (s OptNilAgentV2InfoModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilAgentV2InfoModel) Or

Or returns value if set, or given parameter if does not.

func (*OptNilAgentV2InfoModel) Reset

func (o *OptNilAgentV2InfoModel) Reset()

Reset unsets value.

func (*OptNilAgentV2InfoModel) SetTo

SetTo sets value to v.

func (*OptNilAgentV2InfoModel) SetToNull

func (o *OptNilAgentV2InfoModel) SetToNull()

SetToNull sets value to null.

func (*OptNilAgentV2InfoModel) UnmarshalJSON

func (s *OptNilAgentV2InfoModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilFloat64

type OptNilFloat64 struct {
	Value float64
	Set   bool
	Null  bool
}

OptNilFloat64 is optional nullable float64.

func NewOptNilFloat64

func NewOptNilFloat64(v float64) OptNilFloat64

NewOptNilFloat64 returns new OptNilFloat64 with value set to v.

func (*OptNilFloat64) Decode

func (o *OptNilFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptNilFloat64) Encode

func (o OptNilFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptNilFloat64) Get

func (o OptNilFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilFloat64) IsEmpty

func (o OptNilFloat64) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilFloat64) IsNull

func (o OptNilFloat64) IsNull() bool

IsNull returns true if value is Null.

func (OptNilFloat64) IsSet

func (o OptNilFloat64) IsSet() bool

IsSet returns true if OptNilFloat64 was set.

func (OptNilFloat64) MarshalJSON

func (s OptNilFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilFloat64) Or

func (o OptNilFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptNilFloat64) Reset

func (o *OptNilFloat64) Reset()

Reset unsets value.

func (*OptNilFloat64) SetTo

func (o *OptNilFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptNilFloat64) SetToNull

func (o *OptNilFloat64) SetToNull()

SetToNull sets value to null.

func (*OptNilFloat64) UnmarshalJSON

func (s *OptNilFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (*OptNilInt) Decode

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsEmpty

func (o OptNilInt) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsNull returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetToNull sets value to null.

func (*OptNilInt) UnmarshalJSON

func (s *OptNilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionCreateReqModel

type OptNilSessionCreateReqModel struct {
	Value SessionCreateReqModel
	Set   bool
	Null  bool
}

OptNilSessionCreateReqModel is optional nullable SessionCreateReqModel.

func NewOptNilSessionCreateReqModel

func NewOptNilSessionCreateReqModel(v SessionCreateReqModel) OptNilSessionCreateReqModel

NewOptNilSessionCreateReqModel returns new OptNilSessionCreateReqModel with value set to v.

func (*OptNilSessionCreateReqModel) Decode

Decode decodes SessionCreateReqModel from json.

func (OptNilSessionCreateReqModel) Encode

func (o OptNilSessionCreateReqModel) Encode(e *jx.Encoder)

Encode encodes SessionCreateReqModel as json.

func (OptNilSessionCreateReqModel) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionCreateReqModel) IsEmpty

func (o OptNilSessionCreateReqModel) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilSessionCreateReqModel) IsNull

func (o OptNilSessionCreateReqModel) IsNull() bool

IsNull returns true if value is Null.

func (OptNilSessionCreateReqModel) IsSet

IsSet returns true if OptNilSessionCreateReqModel was set.

func (OptNilSessionCreateReqModel) MarshalJSON

func (s OptNilSessionCreateReqModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionCreateReqModel) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionCreateReqModel) Reset

func (o *OptNilSessionCreateReqModel) Reset()

Reset unsets value.

func (*OptNilSessionCreateReqModel) SetTo

SetTo sets value to v.

func (*OptNilSessionCreateReqModel) SetToNull

func (o *OptNilSessionCreateReqModel) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionCreateReqModel) UnmarshalJSON

func (s *OptNilSessionCreateReqModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionModel

type OptNilSessionModel struct {
	Value SessionModel
	Set   bool
	Null  bool
}

OptNilSessionModel is optional nullable SessionModel.

func NewOptNilSessionModel

func NewOptNilSessionModel(v SessionModel) OptNilSessionModel

NewOptNilSessionModel returns new OptNilSessionModel with value set to v.

func (*OptNilSessionModel) Decode

func (o *OptNilSessionModel) Decode(d *jx.Decoder) error

Decode decodes SessionModel from json.

func (OptNilSessionModel) Encode

func (o OptNilSessionModel) Encode(e *jx.Encoder)

Encode encodes SessionModel as json.

func (OptNilSessionModel) Get

func (o OptNilSessionModel) Get() (v SessionModel, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionModel) IsEmpty

func (o OptNilSessionModel) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilSessionModel) IsNull

func (o OptNilSessionModel) IsNull() bool

IsNull returns true if value is Null.

func (OptNilSessionModel) IsSet

func (o OptNilSessionModel) IsSet() bool

IsSet returns true if OptNilSessionModel was set.

func (OptNilSessionModel) MarshalJSON

func (s OptNilSessionModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionModel) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionModel) Reset

func (o *OptNilSessionModel) Reset()

Reset unsets value.

func (*OptNilSessionModel) SetTo

func (o *OptNilSessionModel) SetTo(v SessionModel)

SetTo sets value to v.

func (*OptNilSessionModel) SetToNull

func (o *OptNilSessionModel) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionModel) UnmarshalJSON

func (s *OptNilSessionModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSessionV2InfoModel

type OptNilSessionV2InfoModel struct {
	Value SessionV2InfoModel
	Set   bool
	Null  bool
}

OptNilSessionV2InfoModel is optional nullable SessionV2InfoModel.

func NewOptNilSessionV2InfoModel

func NewOptNilSessionV2InfoModel(v SessionV2InfoModel) OptNilSessionV2InfoModel

NewOptNilSessionV2InfoModel returns new OptNilSessionV2InfoModel with value set to v.

func (*OptNilSessionV2InfoModel) Decode

func (o *OptNilSessionV2InfoModel) Decode(d *jx.Decoder) error

Decode decodes SessionV2InfoModel from json.

func (OptNilSessionV2InfoModel) Encode

func (o OptNilSessionV2InfoModel) Encode(e *jx.Encoder)

Encode encodes SessionV2InfoModel as json.

func (OptNilSessionV2InfoModel) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSessionV2InfoModel) IsEmpty

func (o OptNilSessionV2InfoModel) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilSessionV2InfoModel) IsNull

func (o OptNilSessionV2InfoModel) IsNull() bool

IsNull returns true if value is Null.

func (OptNilSessionV2InfoModel) IsSet

func (o OptNilSessionV2InfoModel) IsSet() bool

IsSet returns true if OptNilSessionV2InfoModel was set.

func (OptNilSessionV2InfoModel) MarshalJSON

func (s OptNilSessionV2InfoModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSessionV2InfoModel) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSessionV2InfoModel) Reset

func (o *OptNilSessionV2InfoModel) Reset()

Reset unsets value.

func (*OptNilSessionV2InfoModel) SetTo

SetTo sets value to v.

func (*OptNilSessionV2InfoModel) SetToNull

func (o *OptNilSessionV2InfoModel) SetToNull()

SetToNull sets value to null.

func (*OptNilSessionV2InfoModel) UnmarshalJSON

func (s *OptNilSessionV2InfoModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsEmpty

func (o OptNilString) IsEmpty() bool

IsEmpty returns true if the field was omitted from the payload (not Set and not Null).

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsNull returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPermissionV2Source

type OptPermissionV2Source struct {
	Value PermissionV2Source
	Set   bool
}

OptPermissionV2Source is optional PermissionV2Source.

func NewOptPermissionV2Source

func NewOptPermissionV2Source(v PermissionV2Source) OptPermissionV2Source

NewOptPermissionV2Source returns new OptPermissionV2Source with value set to v.

func (*OptPermissionV2Source) Decode

func (o *OptPermissionV2Source) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Source from json.

func (OptPermissionV2Source) Encode

func (o OptPermissionV2Source) Encode(e *jx.Encoder)

Encode encodes PermissionV2Source as json.

func (OptPermissionV2Source) Get

Get returns value and boolean that denotes whether value was set.

func (OptPermissionV2Source) IsSet

func (o OptPermissionV2Source) IsSet() bool

IsSet returns true if OptPermissionV2Source was set.

func (OptPermissionV2Source) MarshalJSON

func (s OptPermissionV2Source) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPermissionV2Source) Or

Or returns value if set, or given parameter if does not.

func (*OptPermissionV2Source) Reset

func (o *OptPermissionV2Source) Reset()

Reset unsets value.

func (*OptPermissionV2Source) SetTo

SetTo sets value to v.

func (*OptPermissionV2Source) UnmarshalJSON

func (s *OptPermissionV2Source) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPromptSource

type OptPromptSource struct {
	Value PromptSource
	Set   bool
}

OptPromptSource is optional PromptSource.

func NewOptPromptSource

func NewOptPromptSource(v PromptSource) OptPromptSource

NewOptPromptSource returns new OptPromptSource with value set to v.

func (*OptPromptSource) Decode

func (o *OptPromptSource) Decode(d *jx.Decoder) error

Decode decodes PromptSource from json.

func (OptPromptSource) Encode

func (o OptPromptSource) Encode(e *jx.Encoder)

Encode encodes PromptSource as json.

func (OptPromptSource) Get

func (o OptPromptSource) Get() (v PromptSource, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPromptSource) IsSet

func (o OptPromptSource) IsSet() bool

IsSet returns true if OptPromptSource was set.

func (OptPromptSource) MarshalJSON

func (s OptPromptSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPromptSource) Or

Or returns value if set, or given parameter if does not.

func (*OptPromptSource) Reset

func (o *OptPromptSource) Reset()

Reset unsets value.

func (*OptPromptSource) SetTo

func (o *OptPromptSource) SetTo(v PromptSource)

SetTo sets value to v.

func (*OptPromptSource) UnmarshalJSON

func (s *OptPromptSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptQuestionV2Tool

type OptQuestionV2Tool struct {
	Value QuestionV2Tool
	Set   bool
}

OptQuestionV2Tool is optional QuestionV2Tool.

func NewOptQuestionV2Tool

func NewOptQuestionV2Tool(v QuestionV2Tool) OptQuestionV2Tool

NewOptQuestionV2Tool returns new OptQuestionV2Tool with value set to v.

func (*OptQuestionV2Tool) Decode

func (o *OptQuestionV2Tool) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Tool from json.

func (OptQuestionV2Tool) Encode

func (o OptQuestionV2Tool) Encode(e *jx.Encoder)

Encode encodes QuestionV2Tool as json.

func (OptQuestionV2Tool) Get

func (o OptQuestionV2Tool) Get() (v QuestionV2Tool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptQuestionV2Tool) IsSet

func (o OptQuestionV2Tool) IsSet() bool

IsSet returns true if OptQuestionV2Tool was set.

func (OptQuestionV2Tool) MarshalJSON

func (s OptQuestionV2Tool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptQuestionV2Tool) Or

Or returns value if set, or given parameter if does not.

func (*OptQuestionV2Tool) Reset

func (o *OptQuestionV2Tool) Reset()

Reset unsets value.

func (*OptQuestionV2Tool) SetTo

func (o *OptQuestionV2Tool) SetTo(v QuestionV2Tool)

SetTo sets value to v.

func (*OptQuestionV2Tool) UnmarshalJSON

func (s *OptQuestionV2Tool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSessionCreateReq

type OptSessionCreateReq struct {
	Value SessionCreateReq
	Set   bool
}

OptSessionCreateReq is optional SessionCreateReq.

func NewOptSessionCreateReq

func NewOptSessionCreateReq(v SessionCreateReq) OptSessionCreateReq

NewOptSessionCreateReq returns new OptSessionCreateReq with value set to v.

func (*OptSessionCreateReq) Decode

func (o *OptSessionCreateReq) Decode(d *jx.Decoder) error

Decode decodes SessionCreateReq from json.

func (OptSessionCreateReq) Encode

func (o OptSessionCreateReq) Encode(e *jx.Encoder)

Encode encodes SessionCreateReq as json.

func (OptSessionCreateReq) Get

func (o OptSessionCreateReq) Get() (v SessionCreateReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSessionCreateReq) IsSet

func (o OptSessionCreateReq) IsSet() bool

IsSet returns true if OptSessionCreateReq was set.

func (OptSessionCreateReq) MarshalJSON

func (s OptSessionCreateReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSessionCreateReq) Or

Or returns value if set, or given parameter if does not.

func (*OptSessionCreateReq) Reset

func (o *OptSessionCreateReq) Reset()

Reset unsets value.

func (*OptSessionCreateReq) SetTo

SetTo sets value to v.

func (*OptSessionCreateReq) UnmarshalJSON

func (s *OptSessionCreateReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSessionRevert

type OptSessionRevert struct {
	Value SessionRevert
	Set   bool
}

OptSessionRevert is optional SessionRevert.

func NewOptSessionRevert

func NewOptSessionRevert(v SessionRevert) OptSessionRevert

NewOptSessionRevert returns new OptSessionRevert with value set to v.

func (*OptSessionRevert) Decode

func (o *OptSessionRevert) Decode(d *jx.Decoder) error

Decode decodes SessionRevert from json.

func (OptSessionRevert) Encode

func (o OptSessionRevert) Encode(e *jx.Encoder)

Encode encodes SessionRevert as json.

func (OptSessionRevert) Get

func (o OptSessionRevert) Get() (v SessionRevert, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSessionRevert) IsSet

func (o OptSessionRevert) IsSet() bool

IsSet returns true if OptSessionRevert was set.

func (OptSessionRevert) MarshalJSON

func (s OptSessionRevert) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSessionRevert) Or

Or returns value if set, or given parameter if does not.

func (*OptSessionRevert) Reset

func (o *OptSessionRevert) Reset()

Reset unsets value.

func (*OptSessionRevert) SetTo

func (o *OptSessionRevert) SetTo(v SessionRevert)

SetTo sets value to v.

func (*OptSessionRevert) UnmarshalJSON

func (s *OptSessionRevert) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSessionShare

type OptSessionShare struct {
	Value SessionShare
	Set   bool
}

OptSessionShare is optional SessionShare.

func NewOptSessionShare

func NewOptSessionShare(v SessionShare) OptSessionShare

NewOptSessionShare returns new OptSessionShare with value set to v.

func (*OptSessionShare) Decode

func (o *OptSessionShare) Decode(d *jx.Decoder) error

Decode decodes SessionShare from json.

func (OptSessionShare) Encode

func (o OptSessionShare) Encode(e *jx.Encoder)

Encode encodes SessionShare as json.

func (OptSessionShare) Get

func (o OptSessionShare) Get() (v SessionShare, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSessionShare) IsSet

func (o OptSessionShare) IsSet() bool

IsSet returns true if OptSessionShare was set.

func (OptSessionShare) MarshalJSON

func (s OptSessionShare) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSessionShare) Or

Or returns value if set, or given parameter if does not.

func (*OptSessionShare) Reset

func (o *OptSessionShare) Reset()

Reset unsets value.

func (*OptSessionShare) SetTo

func (o *OptSessionShare) SetTo(v SessionShare)

SetTo sets value to v.

func (*OptSessionShare) UnmarshalJSON

func (s *OptSessionShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSessionSummary

type OptSessionSummary struct {
	Value SessionSummary
	Set   bool
}

OptSessionSummary is optional SessionSummary.

func NewOptSessionSummary

func NewOptSessionSummary(v SessionSummary) OptSessionSummary

NewOptSessionSummary returns new OptSessionSummary with value set to v.

func (*OptSessionSummary) Decode

func (o *OptSessionSummary) Decode(d *jx.Decoder) error

Decode decodes SessionSummary from json.

func (OptSessionSummary) Encode

func (o OptSessionSummary) Encode(e *jx.Encoder)

Encode encodes SessionSummary as json.

func (OptSessionSummary) Get

func (o OptSessionSummary) Get() (v SessionSummary, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSessionSummary) IsSet

func (o OptSessionSummary) IsSet() bool

IsSet returns true if OptSessionSummary was set.

func (OptSessionSummary) MarshalJSON

func (s OptSessionSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSessionSummary) Or

Or returns value if set, or given parameter if does not.

func (*OptSessionSummary) Reset

func (o *OptSessionSummary) Reset()

Reset unsets value.

func (*OptSessionSummary) SetTo

func (o *OptSessionSummary) SetTo(v SessionSummary)

SetTo sets value to v.

func (*OptSessionSummary) UnmarshalJSON

func (s *OptSessionSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSessionTokens

type OptSessionTokens struct {
	Value SessionTokens
	Set   bool
}

OptSessionTokens is optional SessionTokens.

func NewOptSessionTokens

func NewOptSessionTokens(v SessionTokens) OptSessionTokens

NewOptSessionTokens returns new OptSessionTokens with value set to v.

func (*OptSessionTokens) Decode

func (o *OptSessionTokens) Decode(d *jx.Decoder) error

Decode decodes SessionTokens from json.

func (OptSessionTokens) Encode

func (o OptSessionTokens) Encode(e *jx.Encoder)

Encode encodes SessionTokens as json.

func (OptSessionTokens) Get

func (o OptSessionTokens) Get() (v SessionTokens, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSessionTokens) IsSet

func (o OptSessionTokens) IsSet() bool

IsSet returns true if OptSessionTokens was set.

func (OptSessionTokens) MarshalJSON

func (s OptSessionTokens) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSessionTokens) Or

Or returns value if set, or given parameter if does not.

func (*OptSessionTokens) Reset

func (o *OptSessionTokens) Reset()

Reset unsets value.

func (*OptSessionTokens) SetTo

func (o *OptSessionTokens) SetTo(v SessionTokens)

SetTo sets value to v.

func (*OptSessionTokens) UnmarshalJSON

func (s *OptSessionTokens) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSnapshotFileDiffStatus

type OptSnapshotFileDiffStatus struct {
	Value SnapshotFileDiffStatus
	Set   bool
}

OptSnapshotFileDiffStatus is optional SnapshotFileDiffStatus.

func NewOptSnapshotFileDiffStatus

func NewOptSnapshotFileDiffStatus(v SnapshotFileDiffStatus) OptSnapshotFileDiffStatus

NewOptSnapshotFileDiffStatus returns new OptSnapshotFileDiffStatus with value set to v.

func (*OptSnapshotFileDiffStatus) Decode

func (o *OptSnapshotFileDiffStatus) Decode(d *jx.Decoder) error

Decode decodes SnapshotFileDiffStatus from json.

func (OptSnapshotFileDiffStatus) Encode

func (o OptSnapshotFileDiffStatus) Encode(e *jx.Encoder)

Encode encodes SnapshotFileDiffStatus as json.

func (OptSnapshotFileDiffStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptSnapshotFileDiffStatus) IsSet

func (o OptSnapshotFileDiffStatus) IsSet() bool

IsSet returns true if OptSnapshotFileDiffStatus was set.

func (OptSnapshotFileDiffStatus) MarshalJSON

func (s OptSnapshotFileDiffStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSnapshotFileDiffStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptSnapshotFileDiffStatus) Reset

func (o *OptSnapshotFileDiffStatus) Reset()

Reset unsets value.

func (*OptSnapshotFileDiffStatus) SetTo

SetTo sets value to v.

func (*OptSnapshotFileDiffStatus) UnmarshalJSON

func (s *OptSnapshotFileDiffStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptV2AgentListLocation

type OptV2AgentListLocation struct {
	Value V2AgentListLocation
	Set   bool
}

OptV2AgentListLocation is optional V2AgentListLocation.

func NewOptV2AgentListLocation

func NewOptV2AgentListLocation(v V2AgentListLocation) OptV2AgentListLocation

NewOptV2AgentListLocation returns new OptV2AgentListLocation with value set to v.

func (OptV2AgentListLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2AgentListLocation) IsSet

func (o OptV2AgentListLocation) IsSet() bool

IsSet returns true if OptV2AgentListLocation was set.

func (OptV2AgentListLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptV2AgentListLocation) Reset

func (o *OptV2AgentListLocation) Reset()

Reset unsets value.

func (*OptV2AgentListLocation) SetTo

SetTo sets value to v.

type OptV2ModelListLocation

type OptV2ModelListLocation struct {
	Value V2ModelListLocation
	Set   bool
}

OptV2ModelListLocation is optional V2ModelListLocation.

func NewOptV2ModelListLocation

func NewOptV2ModelListLocation(v V2ModelListLocation) OptV2ModelListLocation

NewOptV2ModelListLocation returns new OptV2ModelListLocation with value set to v.

func (OptV2ModelListLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2ModelListLocation) IsSet

func (o OptV2ModelListLocation) IsSet() bool

IsSet returns true if OptV2ModelListLocation was set.

func (OptV2ModelListLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptV2ModelListLocation) Reset

func (o *OptV2ModelListLocation) Reset()

Reset unsets value.

func (*OptV2ModelListLocation) SetTo

SetTo sets value to v.

type OptV2PermissionRequestListLocation

type OptV2PermissionRequestListLocation struct {
	Value V2PermissionRequestListLocation
	Set   bool
}

OptV2PermissionRequestListLocation is optional V2PermissionRequestListLocation.

func NewOptV2PermissionRequestListLocation

func NewOptV2PermissionRequestListLocation(v V2PermissionRequestListLocation) OptV2PermissionRequestListLocation

NewOptV2PermissionRequestListLocation returns new OptV2PermissionRequestListLocation with value set to v.

func (OptV2PermissionRequestListLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2PermissionRequestListLocation) IsSet

IsSet returns true if OptV2PermissionRequestListLocation was set.

func (OptV2PermissionRequestListLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptV2PermissionRequestListLocation) Reset

Reset unsets value.

func (*OptV2PermissionRequestListLocation) SetTo

SetTo sets value to v.

type OptV2ProviderListLocation

type OptV2ProviderListLocation struct {
	Value V2ProviderListLocation
	Set   bool
}

OptV2ProviderListLocation is optional V2ProviderListLocation.

func NewOptV2ProviderListLocation

func NewOptV2ProviderListLocation(v V2ProviderListLocation) OptV2ProviderListLocation

NewOptV2ProviderListLocation returns new OptV2ProviderListLocation with value set to v.

func (OptV2ProviderListLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2ProviderListLocation) IsSet

func (o OptV2ProviderListLocation) IsSet() bool

IsSet returns true if OptV2ProviderListLocation was set.

func (OptV2ProviderListLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptV2ProviderListLocation) Reset

func (o *OptV2ProviderListLocation) Reset()

Reset unsets value.

func (*OptV2ProviderListLocation) SetTo

SetTo sets value to v.

type OptV2QuestionRequestListLocation

type OptV2QuestionRequestListLocation struct {
	Value V2QuestionRequestListLocation
	Set   bool
}

OptV2QuestionRequestListLocation is optional V2QuestionRequestListLocation.

func NewOptV2QuestionRequestListLocation

func NewOptV2QuestionRequestListLocation(v V2QuestionRequestListLocation) OptV2QuestionRequestListLocation

NewOptV2QuestionRequestListLocation returns new OptV2QuestionRequestListLocation with value set to v.

func (OptV2QuestionRequestListLocation) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2QuestionRequestListLocation) IsSet

IsSet returns true if OptV2QuestionRequestListLocation was set.

func (OptV2QuestionRequestListLocation) Or

Or returns value if set, or given parameter if does not.

func (*OptV2QuestionRequestListLocation) Reset

Reset unsets value.

func (*OptV2QuestionRequestListLocation) SetTo

SetTo sets value to v.

type OptV2SessionListOrder

type OptV2SessionListOrder struct {
	Value V2SessionListOrder
	Set   bool
}

OptV2SessionListOrder is optional V2SessionListOrder.

func NewOptV2SessionListOrder

func NewOptV2SessionListOrder(v V2SessionListOrder) OptV2SessionListOrder

NewOptV2SessionListOrder returns new OptV2SessionListOrder with value set to v.

func (OptV2SessionListOrder) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2SessionListOrder) IsSet

func (o OptV2SessionListOrder) IsSet() bool

IsSet returns true if OptV2SessionListOrder was set.

func (OptV2SessionListOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptV2SessionListOrder) Reset

func (o *OptV2SessionListOrder) Reset()

Reset unsets value.

func (*OptV2SessionListOrder) SetTo

SetTo sets value to v.

type OptV2SessionMessagesOrder

type OptV2SessionMessagesOrder struct {
	Value V2SessionMessagesOrder
	Set   bool
}

OptV2SessionMessagesOrder is optional V2SessionMessagesOrder.

func NewOptV2SessionMessagesOrder

func NewOptV2SessionMessagesOrder(v V2SessionMessagesOrder) OptV2SessionMessagesOrder

NewOptV2SessionMessagesOrder returns new OptV2SessionMessagesOrder with value set to v.

func (OptV2SessionMessagesOrder) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2SessionMessagesOrder) IsSet

func (o OptV2SessionMessagesOrder) IsSet() bool

IsSet returns true if OptV2SessionMessagesOrder was set.

func (OptV2SessionMessagesOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptV2SessionMessagesOrder) Reset

func (o *OptV2SessionMessagesOrder) Reset()

Reset unsets value.

func (*OptV2SessionMessagesOrder) SetTo

SetTo sets value to v.

type OptV2SessionPromptReqDelivery

type OptV2SessionPromptReqDelivery struct {
	Value V2SessionPromptReqDelivery
	Set   bool
}

OptV2SessionPromptReqDelivery is optional V2SessionPromptReqDelivery.

func NewOptV2SessionPromptReqDelivery

func NewOptV2SessionPromptReqDelivery(v V2SessionPromptReqDelivery) OptV2SessionPromptReqDelivery

NewOptV2SessionPromptReqDelivery returns new OptV2SessionPromptReqDelivery with value set to v.

func (*OptV2SessionPromptReqDelivery) Decode

Decode decodes V2SessionPromptReqDelivery from json.

func (OptV2SessionPromptReqDelivery) Encode

Encode encodes V2SessionPromptReqDelivery as json.

func (OptV2SessionPromptReqDelivery) Get

Get returns value and boolean that denotes whether value was set.

func (OptV2SessionPromptReqDelivery) IsSet

IsSet returns true if OptV2SessionPromptReqDelivery was set.

func (OptV2SessionPromptReqDelivery) MarshalJSON

func (s OptV2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptV2SessionPromptReqDelivery) Or

Or returns value if set, or given parameter if does not.

func (*OptV2SessionPromptReqDelivery) Reset

func (o *OptV2SessionPromptReqDelivery) Reset()

Reset unsets value.

func (*OptV2SessionPromptReqDelivery) SetTo

SetTo sets value to v.

func (*OptV2SessionPromptReqDelivery) UnmarshalJSON

func (s *OptV2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PermissionAction

type PermissionAction string

Ref: #/components/schemas/PermissionAction

const (
	PermissionActionAllow PermissionAction = "allow"
	PermissionActionDeny  PermissionAction = "deny"
	PermissionActionAsk   PermissionAction = "ask"
)

func (PermissionAction) AllValues

func (PermissionAction) AllValues() []PermissionAction

AllValues returns all PermissionAction values.

func (*PermissionAction) Decode

func (s *PermissionAction) Decode(d *jx.Decoder) error

Decode decodes PermissionAction from json.

func (PermissionAction) Encode

func (s PermissionAction) Encode(e *jx.Encoder)

Encode encodes PermissionAction as json.

func (PermissionAction) MarshalJSON

func (s PermissionAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PermissionAction) MarshalText

func (s PermissionAction) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PermissionAction) UnmarshalJSON

func (s *PermissionAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionAction) UnmarshalText

func (s *PermissionAction) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PermissionAction) Validate

func (s PermissionAction) Validate() error

type PermissionRule

type PermissionRule struct {
	Action     PermissionAction `json:"action"`
	Pattern    string           `json:"pattern"`
	Permission string           `json:"permission"`
}

Ref: #/components/schemas/PermissionRule

func (*PermissionRule) Decode

func (s *PermissionRule) Decode(d *jx.Decoder) error

Decode decodes PermissionRule from json.

func (*PermissionRule) Encode

func (s *PermissionRule) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PermissionRule) GetAction

func (s *PermissionRule) GetAction() PermissionAction

GetAction returns the value of Action.

func (*PermissionRule) GetPattern

func (s *PermissionRule) GetPattern() string

GetPattern returns the value of Pattern.

func (*PermissionRule) GetPermission

func (s *PermissionRule) GetPermission() string

GetPermission returns the value of Permission.

func (*PermissionRule) MarshalJSON

func (s *PermissionRule) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionRule) SetAction

func (s *PermissionRule) SetAction(val PermissionAction)

SetAction sets the value of Action.

func (*PermissionRule) SetPattern

func (s *PermissionRule) SetPattern(val string)

SetPattern sets the value of Pattern.

func (*PermissionRule) SetPermission

func (s *PermissionRule) SetPermission(val string)

SetPermission sets the value of Permission.

func (*PermissionRule) UnmarshalJSON

func (s *PermissionRule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionRule) Validate

func (s *PermissionRule) Validate() error

type PermissionRuleset

type PermissionRuleset []PermissionRule

func (*PermissionRuleset) Decode

func (s *PermissionRuleset) Decode(d *jx.Decoder) error

Decode decodes PermissionRuleset from json.

func (PermissionRuleset) Encode

func (s PermissionRuleset) Encode(e *jx.Encoder)

Encode encodes PermissionRuleset as json.

func (PermissionRuleset) MarshalJSON

func (s PermissionRuleset) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionRuleset) UnmarshalJSON

func (s *PermissionRuleset) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PermissionRuleset) Validate

func (s PermissionRuleset) Validate() error

type PermissionV2Effect

type PermissionV2Effect string

Ref: #/components/schemas/PermissionV2Effect

const (
	PermissionV2EffectAllow PermissionV2Effect = "allow"
	PermissionV2EffectDeny  PermissionV2Effect = "deny"
	PermissionV2EffectAsk   PermissionV2Effect = "ask"
)

func (PermissionV2Effect) AllValues

func (PermissionV2Effect) AllValues() []PermissionV2Effect

AllValues returns all PermissionV2Effect values.

func (*PermissionV2Effect) Decode

func (s *PermissionV2Effect) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Effect from json.

func (PermissionV2Effect) Encode

func (s PermissionV2Effect) Encode(e *jx.Encoder)

Encode encodes PermissionV2Effect as json.

func (PermissionV2Effect) MarshalJSON

func (s PermissionV2Effect) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PermissionV2Effect) MarshalText

func (s PermissionV2Effect) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PermissionV2Effect) UnmarshalJSON

func (s *PermissionV2Effect) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2Effect) UnmarshalText

func (s *PermissionV2Effect) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PermissionV2Effect) Validate

func (s PermissionV2Effect) Validate() error

type PermissionV2Reply

type PermissionV2Reply string

Ref: #/components/schemas/PermissionV2Reply

const (
	PermissionV2ReplyOnce   PermissionV2Reply = "once"
	PermissionV2ReplyAlways PermissionV2Reply = "always"
	PermissionV2ReplyReject PermissionV2Reply = "reject"
)

func (PermissionV2Reply) AllValues

func (PermissionV2Reply) AllValues() []PermissionV2Reply

AllValues returns all PermissionV2Reply values.

func (*PermissionV2Reply) Decode

func (s *PermissionV2Reply) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Reply from json.

func (PermissionV2Reply) Encode

func (s PermissionV2Reply) Encode(e *jx.Encoder)

Encode encodes PermissionV2Reply as json.

func (PermissionV2Reply) MarshalJSON

func (s PermissionV2Reply) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PermissionV2Reply) MarshalText

func (s PermissionV2Reply) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PermissionV2Reply) UnmarshalJSON

func (s *PermissionV2Reply) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2Reply) UnmarshalText

func (s *PermissionV2Reply) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PermissionV2Reply) Validate

func (s PermissionV2Reply) Validate() error

type PermissionV2Request

type PermissionV2Request struct {
	Action    string                       `json:"action"`
	ID        string                       `json:"id"`
	Metadata  *PermissionV2RequestMetadata `json:"metadata"`
	Resources []string                     `json:"resources"`
	Save      []string                     `json:"save"`
	SessionID string                       `json:"sessionID"`
	Source    OptPermissionV2Source        `json:"source"`
}

Ref: #/components/schemas/PermissionV2Request

func (*PermissionV2Request) Decode

func (s *PermissionV2Request) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Request from json.

func (*PermissionV2Request) Encode

func (s *PermissionV2Request) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PermissionV2Request) GetAction

func (s *PermissionV2Request) GetAction() string

GetAction returns the value of Action.

func (*PermissionV2Request) GetID

func (s *PermissionV2Request) GetID() string

GetID returns the value of ID.

func (*PermissionV2Request) GetMetadata

GetMetadata returns the value of Metadata.

func (*PermissionV2Request) GetResources

func (s *PermissionV2Request) GetResources() []string

GetResources returns the value of Resources.

func (*PermissionV2Request) GetSave

func (s *PermissionV2Request) GetSave() []string

GetSave returns the value of Save.

func (*PermissionV2Request) GetSessionID

func (s *PermissionV2Request) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*PermissionV2Request) GetSource

GetSource returns the value of Source.

func (*PermissionV2Request) MarshalJSON

func (s *PermissionV2Request) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionV2Request) SetAction

func (s *PermissionV2Request) SetAction(val string)

SetAction sets the value of Action.

func (*PermissionV2Request) SetID

func (s *PermissionV2Request) SetID(val string)

SetID sets the value of ID.

func (*PermissionV2Request) SetMetadata

func (s *PermissionV2Request) SetMetadata(val *PermissionV2RequestMetadata)

SetMetadata sets the value of Metadata.

func (*PermissionV2Request) SetResources

func (s *PermissionV2Request) SetResources(val []string)

SetResources sets the value of Resources.

func (*PermissionV2Request) SetSave

func (s *PermissionV2Request) SetSave(val []string)

SetSave sets the value of Save.

func (*PermissionV2Request) SetSessionID

func (s *PermissionV2Request) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*PermissionV2Request) SetSource

func (s *PermissionV2Request) SetSource(val OptPermissionV2Source)

SetSource sets the value of Source.

func (*PermissionV2Request) UnmarshalJSON

func (s *PermissionV2Request) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2Request) Validate

func (s *PermissionV2Request) Validate() error

type PermissionV2RequestMetadata

type PermissionV2RequestMetadata struct{}

func (*PermissionV2RequestMetadata) Decode

Decode decodes PermissionV2RequestMetadata from json.

func (*PermissionV2RequestMetadata) Encode

func (s *PermissionV2RequestMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PermissionV2RequestMetadata) MarshalJSON

func (s *PermissionV2RequestMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionV2RequestMetadata) UnmarshalJSON

func (s *PermissionV2RequestMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PermissionV2Rule

type PermissionV2Rule struct {
	Action   string             `json:"action"`
	Effect   PermissionV2Effect `json:"effect"`
	Resource string             `json:"resource"`
}

Ref: #/components/schemas/PermissionV2Rule

func (*PermissionV2Rule) Decode

func (s *PermissionV2Rule) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Rule from json.

func (*PermissionV2Rule) Encode

func (s *PermissionV2Rule) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PermissionV2Rule) GetAction

func (s *PermissionV2Rule) GetAction() string

GetAction returns the value of Action.

func (*PermissionV2Rule) GetEffect

func (s *PermissionV2Rule) GetEffect() PermissionV2Effect

GetEffect returns the value of Effect.

func (*PermissionV2Rule) GetResource

func (s *PermissionV2Rule) GetResource() string

GetResource returns the value of Resource.

func (*PermissionV2Rule) MarshalJSON

func (s *PermissionV2Rule) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionV2Rule) SetAction

func (s *PermissionV2Rule) SetAction(val string)

SetAction sets the value of Action.

func (*PermissionV2Rule) SetEffect

func (s *PermissionV2Rule) SetEffect(val PermissionV2Effect)

SetEffect sets the value of Effect.

func (*PermissionV2Rule) SetResource

func (s *PermissionV2Rule) SetResource(val string)

SetResource sets the value of Resource.

func (*PermissionV2Rule) UnmarshalJSON

func (s *PermissionV2Rule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2Rule) Validate

func (s *PermissionV2Rule) Validate() error

type PermissionV2Ruleset

type PermissionV2Ruleset []PermissionV2Rule

func (*PermissionV2Ruleset) Decode

func (s *PermissionV2Ruleset) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Ruleset from json.

func (PermissionV2Ruleset) Encode

func (s PermissionV2Ruleset) Encode(e *jx.Encoder)

Encode encodes PermissionV2Ruleset as json.

func (PermissionV2Ruleset) MarshalJSON

func (s PermissionV2Ruleset) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionV2Ruleset) UnmarshalJSON

func (s *PermissionV2Ruleset) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PermissionV2Ruleset) Validate

func (s PermissionV2Ruleset) Validate() error

type PermissionV2Source

type PermissionV2Source struct {
	CallID    string                 `json:"callID"`
	MessageID string                 `json:"messageID"`
	Type      PermissionV2SourceType `json:"type"`
}

Ref: #/components/schemas/PermissionV2Source

func (*PermissionV2Source) Decode

func (s *PermissionV2Source) Decode(d *jx.Decoder) error

Decode decodes PermissionV2Source from json.

func (*PermissionV2Source) Encode

func (s *PermissionV2Source) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PermissionV2Source) GetCallID

func (s *PermissionV2Source) GetCallID() string

GetCallID returns the value of CallID.

func (*PermissionV2Source) GetMessageID

func (s *PermissionV2Source) GetMessageID() string

GetMessageID returns the value of MessageID.

func (*PermissionV2Source) GetType

GetType returns the value of Type.

func (*PermissionV2Source) MarshalJSON

func (s *PermissionV2Source) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PermissionV2Source) SetCallID

func (s *PermissionV2Source) SetCallID(val string)

SetCallID sets the value of CallID.

func (*PermissionV2Source) SetMessageID

func (s *PermissionV2Source) SetMessageID(val string)

SetMessageID sets the value of MessageID.

func (*PermissionV2Source) SetType

SetType sets the value of Type.

func (*PermissionV2Source) UnmarshalJSON

func (s *PermissionV2Source) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2Source) Validate

func (s *PermissionV2Source) Validate() error

type PermissionV2SourceType

type PermissionV2SourceType string
const (
	PermissionV2SourceTypeTool PermissionV2SourceType = "tool"
)

func (PermissionV2SourceType) AllValues

AllValues returns all PermissionV2SourceType values.

func (*PermissionV2SourceType) Decode

func (s *PermissionV2SourceType) Decode(d *jx.Decoder) error

Decode decodes PermissionV2SourceType from json.

func (PermissionV2SourceType) Encode

func (s PermissionV2SourceType) Encode(e *jx.Encoder)

Encode encodes PermissionV2SourceType as json.

func (PermissionV2SourceType) MarshalJSON

func (s PermissionV2SourceType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PermissionV2SourceType) MarshalText

func (s PermissionV2SourceType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PermissionV2SourceType) UnmarshalJSON

func (s *PermissionV2SourceType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionV2SourceType) UnmarshalText

func (s *PermissionV2SourceType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PermissionV2SourceType) Validate

func (s PermissionV2SourceType) Validate() error

type Prompt

type Prompt struct {
	Agents     []PromptAgentAttachment     `json:"agents"`
	Files      []PromptFileAttachment      `json:"files"`
	References []PromptReferenceAttachment `json:"references"`
	Text       string                      `json:"text"`
}

Ref: #/components/schemas/Prompt

func (*Prompt) Decode

func (s *Prompt) Decode(d *jx.Decoder) error

Decode decodes Prompt from json.

func (*Prompt) Encode

func (s *Prompt) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Prompt) GetAgents

func (s *Prompt) GetAgents() []PromptAgentAttachment

GetAgents returns the value of Agents.

func (*Prompt) GetFiles

func (s *Prompt) GetFiles() []PromptFileAttachment

GetFiles returns the value of Files.

func (*Prompt) GetReferences

func (s *Prompt) GetReferences() []PromptReferenceAttachment

GetReferences returns the value of References.

func (*Prompt) GetText

func (s *Prompt) GetText() string

GetText returns the value of Text.

func (*Prompt) MarshalJSON

func (s *Prompt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Prompt) SetAgents

func (s *Prompt) SetAgents(val []PromptAgentAttachment)

SetAgents sets the value of Agents.

func (*Prompt) SetFiles

func (s *Prompt) SetFiles(val []PromptFileAttachment)

SetFiles sets the value of Files.

func (*Prompt) SetReferences

func (s *Prompt) SetReferences(val []PromptReferenceAttachment)

SetReferences sets the value of References.

func (*Prompt) SetText

func (s *Prompt) SetText(val string)

SetText sets the value of Text.

func (*Prompt) UnmarshalJSON

func (s *Prompt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Prompt) Validate

func (s *Prompt) Validate() error

type PromptAgentAttachment

type PromptAgentAttachment struct {
	Name   string          `json:"name"`
	Source OptPromptSource `json:"source"`
}

Ref: #/components/schemas/PromptAgentAttachment

func (*PromptAgentAttachment) Decode

func (s *PromptAgentAttachment) Decode(d *jx.Decoder) error

Decode decodes PromptAgentAttachment from json.

func (*PromptAgentAttachment) Encode

func (s *PromptAgentAttachment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptAgentAttachment) GetName

func (s *PromptAgentAttachment) GetName() string

GetName returns the value of Name.

func (*PromptAgentAttachment) GetSource

func (s *PromptAgentAttachment) GetSource() OptPromptSource

GetSource returns the value of Source.

func (*PromptAgentAttachment) MarshalJSON

func (s *PromptAgentAttachment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptAgentAttachment) SetName

func (s *PromptAgentAttachment) SetName(val string)

SetName sets the value of Name.

func (*PromptAgentAttachment) SetSource

func (s *PromptAgentAttachment) SetSource(val OptPromptSource)

SetSource sets the value of Source.

func (*PromptAgentAttachment) UnmarshalJSON

func (s *PromptAgentAttachment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptAgentAttachment) Validate

func (s *PromptAgentAttachment) Validate() error

type PromptFileAttachment

type PromptFileAttachment struct {
	Description OptString       `json:"description"`
	Mime        string          `json:"mime"`
	Name        OptString       `json:"name"`
	Source      OptPromptSource `json:"source"`
	URI         string          `json:"uri"`
}

Ref: #/components/schemas/PromptFileAttachment

func (*PromptFileAttachment) Decode

func (s *PromptFileAttachment) Decode(d *jx.Decoder) error

Decode decodes PromptFileAttachment from json.

func (*PromptFileAttachment) Encode

func (s *PromptFileAttachment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptFileAttachment) GetDescription

func (s *PromptFileAttachment) GetDescription() OptString

GetDescription returns the value of Description.

func (*PromptFileAttachment) GetMime

func (s *PromptFileAttachment) GetMime() string

GetMime returns the value of Mime.

func (*PromptFileAttachment) GetName

func (s *PromptFileAttachment) GetName() OptString

GetName returns the value of Name.

func (*PromptFileAttachment) GetSource

func (s *PromptFileAttachment) GetSource() OptPromptSource

GetSource returns the value of Source.

func (*PromptFileAttachment) GetURI

func (s *PromptFileAttachment) GetURI() string

GetURI returns the value of URI.

func (*PromptFileAttachment) MarshalJSON

func (s *PromptFileAttachment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptFileAttachment) SetDescription

func (s *PromptFileAttachment) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PromptFileAttachment) SetMime

func (s *PromptFileAttachment) SetMime(val string)

SetMime sets the value of Mime.

func (*PromptFileAttachment) SetName

func (s *PromptFileAttachment) SetName(val OptString)

SetName sets the value of Name.

func (*PromptFileAttachment) SetSource

func (s *PromptFileAttachment) SetSource(val OptPromptSource)

SetSource sets the value of Source.

func (*PromptFileAttachment) SetURI

func (s *PromptFileAttachment) SetURI(val string)

SetURI sets the value of URI.

func (*PromptFileAttachment) UnmarshalJSON

func (s *PromptFileAttachment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptFileAttachment) Validate

func (s *PromptFileAttachment) Validate() error

type PromptReferenceAttachment

type PromptReferenceAttachment struct {
	Branch     OptString                     `json:"branch"`
	Kind       PromptReferenceAttachmentKind `json:"kind"`
	Name       string                        `json:"name"`
	Problem    OptString                     `json:"problem"`
	Repository OptString                     `json:"repository"`
	Source     OptPromptSource               `json:"source"`
	Target     OptString                     `json:"target"`
	TargetUri  OptString                     `json:"targetUri"`
	URI        OptString                     `json:"uri"`
}

Ref: #/components/schemas/PromptReferenceAttachment

func (*PromptReferenceAttachment) Decode

func (s *PromptReferenceAttachment) Decode(d *jx.Decoder) error

Decode decodes PromptReferenceAttachment from json.

func (*PromptReferenceAttachment) Encode

func (s *PromptReferenceAttachment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptReferenceAttachment) GetBranch

func (s *PromptReferenceAttachment) GetBranch() OptString

GetBranch returns the value of Branch.

func (*PromptReferenceAttachment) GetKind

GetKind returns the value of Kind.

func (*PromptReferenceAttachment) GetName

func (s *PromptReferenceAttachment) GetName() string

GetName returns the value of Name.

func (*PromptReferenceAttachment) GetProblem

func (s *PromptReferenceAttachment) GetProblem() OptString

GetProblem returns the value of Problem.

func (*PromptReferenceAttachment) GetRepository

func (s *PromptReferenceAttachment) GetRepository() OptString

GetRepository returns the value of Repository.

func (*PromptReferenceAttachment) GetSource

GetSource returns the value of Source.

func (*PromptReferenceAttachment) GetTarget

func (s *PromptReferenceAttachment) GetTarget() OptString

GetTarget returns the value of Target.

func (*PromptReferenceAttachment) GetTargetUri

func (s *PromptReferenceAttachment) GetTargetUri() OptString

GetTargetUri returns the value of TargetUri.

func (*PromptReferenceAttachment) GetURI

GetURI returns the value of URI.

func (*PromptReferenceAttachment) MarshalJSON

func (s *PromptReferenceAttachment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptReferenceAttachment) SetBranch

func (s *PromptReferenceAttachment) SetBranch(val OptString)

SetBranch sets the value of Branch.

func (*PromptReferenceAttachment) SetKind

SetKind sets the value of Kind.

func (*PromptReferenceAttachment) SetName

func (s *PromptReferenceAttachment) SetName(val string)

SetName sets the value of Name.

func (*PromptReferenceAttachment) SetProblem

func (s *PromptReferenceAttachment) SetProblem(val OptString)

SetProblem sets the value of Problem.

func (*PromptReferenceAttachment) SetRepository

func (s *PromptReferenceAttachment) SetRepository(val OptString)

SetRepository sets the value of Repository.

func (*PromptReferenceAttachment) SetSource

func (s *PromptReferenceAttachment) SetSource(val OptPromptSource)

SetSource sets the value of Source.

func (*PromptReferenceAttachment) SetTarget

func (s *PromptReferenceAttachment) SetTarget(val OptString)

SetTarget sets the value of Target.

func (*PromptReferenceAttachment) SetTargetUri

func (s *PromptReferenceAttachment) SetTargetUri(val OptString)

SetTargetUri sets the value of TargetUri.

func (*PromptReferenceAttachment) SetURI

func (s *PromptReferenceAttachment) SetURI(val OptString)

SetURI sets the value of URI.

func (*PromptReferenceAttachment) UnmarshalJSON

func (s *PromptReferenceAttachment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptReferenceAttachment) Validate

func (s *PromptReferenceAttachment) Validate() error

type PromptReferenceAttachmentKind

type PromptReferenceAttachmentKind string
const (
	PromptReferenceAttachmentKindLocal   PromptReferenceAttachmentKind = "local"
	PromptReferenceAttachmentKindGit     PromptReferenceAttachmentKind = "git"
	PromptReferenceAttachmentKindInvalid PromptReferenceAttachmentKind = "invalid"
)

func (PromptReferenceAttachmentKind) AllValues

AllValues returns all PromptReferenceAttachmentKind values.

func (*PromptReferenceAttachmentKind) Decode

Decode decodes PromptReferenceAttachmentKind from json.

func (PromptReferenceAttachmentKind) Encode

Encode encodes PromptReferenceAttachmentKind as json.

func (PromptReferenceAttachmentKind) MarshalJSON

func (s PromptReferenceAttachmentKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PromptReferenceAttachmentKind) MarshalText

func (s PromptReferenceAttachmentKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PromptReferenceAttachmentKind) UnmarshalJSON

func (s *PromptReferenceAttachmentKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptReferenceAttachmentKind) UnmarshalText

func (s *PromptReferenceAttachmentKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PromptReferenceAttachmentKind) Validate

func (s PromptReferenceAttachmentKind) Validate() error

type PromptSource

type PromptSource struct {
	End   float64 `json:"end"`
	Start float64 `json:"start"`
	Text  string  `json:"text"`
}

Ref: #/components/schemas/PromptSource

func (*PromptSource) Decode

func (s *PromptSource) Decode(d *jx.Decoder) error

Decode decodes PromptSource from json.

func (*PromptSource) Encode

func (s *PromptSource) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PromptSource) GetEnd

func (s *PromptSource) GetEnd() float64

GetEnd returns the value of End.

func (*PromptSource) GetStart

func (s *PromptSource) GetStart() float64

GetStart returns the value of Start.

func (*PromptSource) GetText

func (s *PromptSource) GetText() string

GetText returns the value of Text.

func (*PromptSource) MarshalJSON

func (s *PromptSource) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PromptSource) SetEnd

func (s *PromptSource) SetEnd(val float64)

SetEnd sets the value of End.

func (*PromptSource) SetStart

func (s *PromptSource) SetStart(val float64)

SetStart sets the value of Start.

func (*PromptSource) SetText

func (s *PromptSource) SetText(val string)

SetText sets the value of Text.

func (*PromptSource) UnmarshalJSON

func (s *PromptSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PromptSource) Validate

func (s *PromptSource) Validate() error

type ProviderV2Info

type ProviderV2Info struct {
	API     jx.Raw                `json:"api"`
	Enabled jx.Raw                `json:"enabled"`
	Env     []string              `json:"env"`
	ID      string                `json:"id"`
	Name    string                `json:"name"`
	Request ProviderV2InfoRequest `json:"request"`
}

Ref: #/components/schemas/ProviderV2Info

func (*ProviderV2Info) Decode

func (s *ProviderV2Info) Decode(d *jx.Decoder) error

Decode decodes ProviderV2Info from json.

func (*ProviderV2Info) Encode

func (s *ProviderV2Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProviderV2Info) GetAPI

func (s *ProviderV2Info) GetAPI() jx.Raw

GetAPI returns the value of API.

func (*ProviderV2Info) GetEnabled

func (s *ProviderV2Info) GetEnabled() jx.Raw

GetEnabled returns the value of Enabled.

func (*ProviderV2Info) GetEnv

func (s *ProviderV2Info) GetEnv() []string

GetEnv returns the value of Env.

func (*ProviderV2Info) GetID

func (s *ProviderV2Info) GetID() string

GetID returns the value of ID.

func (*ProviderV2Info) GetName

func (s *ProviderV2Info) GetName() string

GetName returns the value of Name.

func (*ProviderV2Info) GetRequest

func (s *ProviderV2Info) GetRequest() ProviderV2InfoRequest

GetRequest returns the value of Request.

func (*ProviderV2Info) MarshalJSON

func (s *ProviderV2Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderV2Info) SetAPI

func (s *ProviderV2Info) SetAPI(val jx.Raw)

SetAPI sets the value of API.

func (*ProviderV2Info) SetEnabled

func (s *ProviderV2Info) SetEnabled(val jx.Raw)

SetEnabled sets the value of Enabled.

func (*ProviderV2Info) SetEnv

func (s *ProviderV2Info) SetEnv(val []string)

SetEnv sets the value of Env.

func (*ProviderV2Info) SetID

func (s *ProviderV2Info) SetID(val string)

SetID sets the value of ID.

func (*ProviderV2Info) SetName

func (s *ProviderV2Info) SetName(val string)

SetName sets the value of Name.

func (*ProviderV2Info) SetRequest

func (s *ProviderV2Info) SetRequest(val ProviderV2InfoRequest)

SetRequest sets the value of Request.

func (*ProviderV2Info) UnmarshalJSON

func (s *ProviderV2Info) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProviderV2Info) Validate

func (s *ProviderV2Info) Validate() error

type ProviderV2InfoRequest

type ProviderV2InfoRequest struct {
	Body    ProviderV2InfoRequestBody    `json:"body"`
	Headers ProviderV2InfoRequestHeaders `json:"headers"`
}

func (*ProviderV2InfoRequest) Decode

func (s *ProviderV2InfoRequest) Decode(d *jx.Decoder) error

Decode decodes ProviderV2InfoRequest from json.

func (*ProviderV2InfoRequest) Encode

func (s *ProviderV2InfoRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProviderV2InfoRequest) GetBody

GetBody returns the value of Body.

func (*ProviderV2InfoRequest) GetHeaders

GetHeaders returns the value of Headers.

func (*ProviderV2InfoRequest) MarshalJSON

func (s *ProviderV2InfoRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderV2InfoRequest) SetBody

SetBody sets the value of Body.

func (*ProviderV2InfoRequest) SetHeaders

SetHeaders sets the value of Headers.

func (*ProviderV2InfoRequest) UnmarshalJSON

func (s *ProviderV2InfoRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProviderV2InfoRequestBody

type ProviderV2InfoRequestBody struct{}

func (*ProviderV2InfoRequestBody) Decode

func (s *ProviderV2InfoRequestBody) Decode(d *jx.Decoder) error

Decode decodes ProviderV2InfoRequestBody from json.

func (*ProviderV2InfoRequestBody) Encode

func (s *ProviderV2InfoRequestBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProviderV2InfoRequestBody) MarshalJSON

func (s *ProviderV2InfoRequestBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderV2InfoRequestBody) UnmarshalJSON

func (s *ProviderV2InfoRequestBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProviderV2InfoRequestHeaders

type ProviderV2InfoRequestHeaders map[string]string

func (*ProviderV2InfoRequestHeaders) Decode

Decode decodes ProviderV2InfoRequestHeaders from json.

func (ProviderV2InfoRequestHeaders) Encode

Encode implements json.Marshaler.

func (ProviderV2InfoRequestHeaders) MarshalJSON

func (s ProviderV2InfoRequestHeaders) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderV2InfoRequestHeaders) UnmarshalJSON

func (s *ProviderV2InfoRequestHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type QuestionV2Answer

type QuestionV2Answer []string

func (*QuestionV2Answer) Decode

func (s *QuestionV2Answer) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Answer from json.

func (QuestionV2Answer) Encode

func (s QuestionV2Answer) Encode(e *jx.Encoder)

Encode encodes QuestionV2Answer as json.

func (QuestionV2Answer) MarshalJSON

func (s QuestionV2Answer) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Answer) UnmarshalJSON

func (s *QuestionV2Answer) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (QuestionV2Answer) Validate

func (s QuestionV2Answer) Validate() error

type QuestionV2Info

type QuestionV2Info struct {
	Custom OptBool `json:"custom"`
	// Very short label (max 30 chars).
	Header   string  `json:"header"`
	Multiple OptBool `json:"multiple"`
	// Available choices.
	Options []QuestionV2Option `json:"options"`
	// Complete question.
	Question string `json:"question"`
}

Ref: #/components/schemas/QuestionV2Info

func (*QuestionV2Info) Decode

func (s *QuestionV2Info) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Info from json.

func (*QuestionV2Info) Encode

func (s *QuestionV2Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QuestionV2Info) GetCustom

func (s *QuestionV2Info) GetCustom() OptBool

GetCustom returns the value of Custom.

func (*QuestionV2Info) GetHeader

func (s *QuestionV2Info) GetHeader() string

GetHeader returns the value of Header.

func (*QuestionV2Info) GetMultiple

func (s *QuestionV2Info) GetMultiple() OptBool

GetMultiple returns the value of Multiple.

func (*QuestionV2Info) GetOptions

func (s *QuestionV2Info) GetOptions() []QuestionV2Option

GetOptions returns the value of Options.

func (*QuestionV2Info) GetQuestion

func (s *QuestionV2Info) GetQuestion() string

GetQuestion returns the value of Question.

func (*QuestionV2Info) MarshalJSON

func (s *QuestionV2Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Info) SetCustom

func (s *QuestionV2Info) SetCustom(val OptBool)

SetCustom sets the value of Custom.

func (*QuestionV2Info) SetHeader

func (s *QuestionV2Info) SetHeader(val string)

SetHeader sets the value of Header.

func (*QuestionV2Info) SetMultiple

func (s *QuestionV2Info) SetMultiple(val OptBool)

SetMultiple sets the value of Multiple.

func (*QuestionV2Info) SetOptions

func (s *QuestionV2Info) SetOptions(val []QuestionV2Option)

SetOptions sets the value of Options.

func (*QuestionV2Info) SetQuestion

func (s *QuestionV2Info) SetQuestion(val string)

SetQuestion sets the value of Question.

func (*QuestionV2Info) UnmarshalJSON

func (s *QuestionV2Info) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QuestionV2Info) Validate

func (s *QuestionV2Info) Validate() error

type QuestionV2Option

type QuestionV2Option struct {
	// Explanation of choice.
	Description string `json:"description"`
	// Display text (1-5 words, concise).
	Label string `json:"label"`
}

Ref: #/components/schemas/QuestionV2Option

func (*QuestionV2Option) Decode

func (s *QuestionV2Option) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Option from json.

func (*QuestionV2Option) Encode

func (s *QuestionV2Option) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QuestionV2Option) GetDescription

func (s *QuestionV2Option) GetDescription() string

GetDescription returns the value of Description.

func (*QuestionV2Option) GetLabel

func (s *QuestionV2Option) GetLabel() string

GetLabel returns the value of Label.

func (*QuestionV2Option) MarshalJSON

func (s *QuestionV2Option) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Option) SetDescription

func (s *QuestionV2Option) SetDescription(val string)

SetDescription sets the value of Description.

func (*QuestionV2Option) SetLabel

func (s *QuestionV2Option) SetLabel(val string)

SetLabel sets the value of Label.

func (*QuestionV2Option) UnmarshalJSON

func (s *QuestionV2Option) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type QuestionV2Reply

type QuestionV2Reply struct {
	// User answers in order of questions (each answer is an array of selected labels).
	Answers []QuestionV2Answer `json:"answers"`
}

Ref: #/components/schemas/QuestionV2Reply

func (*QuestionV2Reply) Decode

func (s *QuestionV2Reply) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Reply from json.

func (*QuestionV2Reply) Encode

func (s *QuestionV2Reply) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QuestionV2Reply) GetAnswers

func (s *QuestionV2Reply) GetAnswers() []QuestionV2Answer

GetAnswers returns the value of Answers.

func (*QuestionV2Reply) MarshalJSON

func (s *QuestionV2Reply) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Reply) SetAnswers

func (s *QuestionV2Reply) SetAnswers(val []QuestionV2Answer)

SetAnswers sets the value of Answers.

func (*QuestionV2Reply) UnmarshalJSON

func (s *QuestionV2Reply) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QuestionV2Reply) Validate

func (s *QuestionV2Reply) Validate() error

type QuestionV2Request

type QuestionV2Request struct {
	ID string `json:"id"`
	// Questions to ask.
	Questions []QuestionV2Info  `json:"questions"`
	SessionID string            `json:"sessionID"`
	Tool      OptQuestionV2Tool `json:"tool"`
}

Ref: #/components/schemas/QuestionV2Request

func (*QuestionV2Request) Decode

func (s *QuestionV2Request) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Request from json.

func (*QuestionV2Request) Encode

func (s *QuestionV2Request) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QuestionV2Request) GetID

func (s *QuestionV2Request) GetID() string

GetID returns the value of ID.

func (*QuestionV2Request) GetQuestions

func (s *QuestionV2Request) GetQuestions() []QuestionV2Info

GetQuestions returns the value of Questions.

func (*QuestionV2Request) GetSessionID

func (s *QuestionV2Request) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*QuestionV2Request) GetTool

func (s *QuestionV2Request) GetTool() OptQuestionV2Tool

GetTool returns the value of Tool.

func (*QuestionV2Request) MarshalJSON

func (s *QuestionV2Request) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Request) SetID

func (s *QuestionV2Request) SetID(val string)

SetID sets the value of ID.

func (*QuestionV2Request) SetQuestions

func (s *QuestionV2Request) SetQuestions(val []QuestionV2Info)

SetQuestions sets the value of Questions.

func (*QuestionV2Request) SetSessionID

func (s *QuestionV2Request) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*QuestionV2Request) SetTool

func (s *QuestionV2Request) SetTool(val OptQuestionV2Tool)

SetTool sets the value of Tool.

func (*QuestionV2Request) UnmarshalJSON

func (s *QuestionV2Request) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*QuestionV2Request) Validate

func (s *QuestionV2Request) Validate() error

type QuestionV2Tool

type QuestionV2Tool struct {
	CallID    string `json:"callID"`
	MessageID string `json:"messageID"`
}

Ref: #/components/schemas/QuestionV2Tool

func (*QuestionV2Tool) Decode

func (s *QuestionV2Tool) Decode(d *jx.Decoder) error

Decode decodes QuestionV2Tool from json.

func (*QuestionV2Tool) Encode

func (s *QuestionV2Tool) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*QuestionV2Tool) GetCallID

func (s *QuestionV2Tool) GetCallID() string

GetCallID returns the value of CallID.

func (*QuestionV2Tool) GetMessageID

func (s *QuestionV2Tool) GetMessageID() string

GetMessageID returns the value of MessageID.

func (*QuestionV2Tool) MarshalJSON

func (s *QuestionV2Tool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*QuestionV2Tool) SetCallID

func (s *QuestionV2Tool) SetCallID(val string)

SetCallID sets the value of CallID.

func (*QuestionV2Tool) SetMessageID

func (s *QuestionV2Tool) SetMessageID(val string)

SetMessageID sets the value of MessageID.

func (*QuestionV2Tool) UnmarshalJSON

func (s *QuestionV2Tool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type ServiceUnavailableError

type ServiceUnavailableError struct {
	Tag     ServiceUnavailableErrorTag `json:"_tag"`
	Message string                     `json:"message"`
	Service OptString                  `json:"service"`
}

Ref: #/components/schemas/ServiceUnavailableError

func (*ServiceUnavailableError) Decode

func (s *ServiceUnavailableError) Decode(d *jx.Decoder) error

Decode decodes ServiceUnavailableError from json.

func (*ServiceUnavailableError) Encode

func (s *ServiceUnavailableError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ServiceUnavailableError) GetMessage

func (s *ServiceUnavailableError) GetMessage() string

GetMessage returns the value of Message.

func (*ServiceUnavailableError) GetService

func (s *ServiceUnavailableError) GetService() OptString

GetService returns the value of Service.

func (*ServiceUnavailableError) GetTag

GetTag returns the value of Tag.

func (*ServiceUnavailableError) MarshalJSON

func (s *ServiceUnavailableError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ServiceUnavailableError) SetMessage

func (s *ServiceUnavailableError) SetMessage(val string)

SetMessage sets the value of Message.

func (*ServiceUnavailableError) SetService

func (s *ServiceUnavailableError) SetService(val OptString)

SetService sets the value of Service.

func (*ServiceUnavailableError) SetTag

SetTag sets the value of Tag.

func (*ServiceUnavailableError) UnmarshalJSON

func (s *ServiceUnavailableError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ServiceUnavailableError) Validate

func (s *ServiceUnavailableError) Validate() error

type ServiceUnavailableErrorTag

type ServiceUnavailableErrorTag string
const (
	ServiceUnavailableErrorTagServiceUnavailableError ServiceUnavailableErrorTag = "ServiceUnavailableError"
)

func (ServiceUnavailableErrorTag) AllValues

AllValues returns all ServiceUnavailableErrorTag values.

func (*ServiceUnavailableErrorTag) Decode

Decode decodes ServiceUnavailableErrorTag from json.

func (ServiceUnavailableErrorTag) Encode

func (s ServiceUnavailableErrorTag) Encode(e *jx.Encoder)

Encode encodes ServiceUnavailableErrorTag as json.

func (ServiceUnavailableErrorTag) MarshalJSON

func (s ServiceUnavailableErrorTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ServiceUnavailableErrorTag) MarshalText

func (s ServiceUnavailableErrorTag) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ServiceUnavailableErrorTag) UnmarshalJSON

func (s *ServiceUnavailableErrorTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ServiceUnavailableErrorTag) UnmarshalText

func (s *ServiceUnavailableErrorTag) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ServiceUnavailableErrorTag) Validate

func (s ServiceUnavailableErrorTag) Validate() error

type Session

type Session struct {
	Agent       OptNilString       `json:"agent"`
	Cost        OptFloat64         `json:"cost"`
	Directory   string             `json:"directory"`
	ID          string             `json:"id"`
	Metadata    *SessionMetadata   `json:"metadata"`
	Model       OptNilSessionModel `json:"model"`
	ParentID    OptString          `json:"parentID"`
	Path        OptString          `json:"path"`
	Permission  PermissionRuleset  `json:"permission"`
	ProjectID   string             `json:"projectID"`
	Revert      OptSessionRevert   `json:"revert"`
	Share       OptSessionShare    `json:"share"`
	Slug        string             `json:"slug"`
	Summary     OptSessionSummary  `json:"summary"`
	Time        SessionTime        `json:"time"`
	Title       string             `json:"title"`
	Tokens      OptSessionTokens   `json:"tokens"`
	Version     string             `json:"version"`
	WorkspaceID OptNilString       `json:"workspaceID"`
}

Ref: #/components/schemas/Session

func (*Session) Decode

func (s *Session) Decode(d *jx.Decoder) error

Decode decodes Session from json.

func (*Session) Encode

func (s *Session) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Session) GetAgent

func (s *Session) GetAgent() OptNilString

GetAgent returns the value of Agent.

func (*Session) GetCost

func (s *Session) GetCost() OptFloat64

GetCost returns the value of Cost.

func (*Session) GetDirectory

func (s *Session) GetDirectory() string

GetDirectory returns the value of Directory.

func (*Session) GetID

func (s *Session) GetID() string

GetID returns the value of ID.

func (*Session) GetMetadata

func (s *Session) GetMetadata() *SessionMetadata

GetMetadata returns the value of Metadata.

func (*Session) GetModel

func (s *Session) GetModel() OptNilSessionModel

GetModel returns the value of Model.

func (*Session) GetParentID

func (s *Session) GetParentID() OptString

GetParentID returns the value of ParentID.

func (*Session) GetPath

func (s *Session) GetPath() OptString

GetPath returns the value of Path.

func (*Session) GetPermission

func (s *Session) GetPermission() PermissionRuleset

GetPermission returns the value of Permission.

func (*Session) GetProjectID

func (s *Session) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*Session) GetRevert

func (s *Session) GetRevert() OptSessionRevert

GetRevert returns the value of Revert.

func (*Session) GetShare

func (s *Session) GetShare() OptSessionShare

GetShare returns the value of Share.

func (*Session) GetSlug

func (s *Session) GetSlug() string

GetSlug returns the value of Slug.

func (*Session) GetSummary

func (s *Session) GetSummary() OptSessionSummary

GetSummary returns the value of Summary.

func (*Session) GetTime

func (s *Session) GetTime() SessionTime

GetTime returns the value of Time.

func (*Session) GetTitle

func (s *Session) GetTitle() string

GetTitle returns the value of Title.

func (*Session) GetTokens

func (s *Session) GetTokens() OptSessionTokens

GetTokens returns the value of Tokens.

func (*Session) GetVersion

func (s *Session) GetVersion() string

GetVersion returns the value of Version.

func (*Session) GetWorkspaceID

func (s *Session) GetWorkspaceID() OptNilString

GetWorkspaceID returns the value of WorkspaceID.

func (*Session) MarshalJSON

func (s *Session) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Session) SetAgent

func (s *Session) SetAgent(val OptNilString)

SetAgent sets the value of Agent.

func (*Session) SetCost

func (s *Session) SetCost(val OptFloat64)

SetCost sets the value of Cost.

func (*Session) SetDirectory

func (s *Session) SetDirectory(val string)

SetDirectory sets the value of Directory.

func (*Session) SetID

func (s *Session) SetID(val string)

SetID sets the value of ID.

func (*Session) SetMetadata

func (s *Session) SetMetadata(val *SessionMetadata)

SetMetadata sets the value of Metadata.

func (*Session) SetModel

func (s *Session) SetModel(val OptNilSessionModel)

SetModel sets the value of Model.

func (*Session) SetParentID

func (s *Session) SetParentID(val OptString)

SetParentID sets the value of ParentID.

func (*Session) SetPath

func (s *Session) SetPath(val OptString)

SetPath sets the value of Path.

func (*Session) SetPermission

func (s *Session) SetPermission(val PermissionRuleset)

SetPermission sets the value of Permission.

func (*Session) SetProjectID

func (s *Session) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*Session) SetRevert

func (s *Session) SetRevert(val OptSessionRevert)

SetRevert sets the value of Revert.

func (*Session) SetShare

func (s *Session) SetShare(val OptSessionShare)

SetShare sets the value of Share.

func (*Session) SetSlug

func (s *Session) SetSlug(val string)

SetSlug sets the value of Slug.

func (*Session) SetSummary

func (s *Session) SetSummary(val OptSessionSummary)

SetSummary sets the value of Summary.

func (*Session) SetTime

func (s *Session) SetTime(val SessionTime)

SetTime sets the value of Time.

func (*Session) SetTitle

func (s *Session) SetTitle(val string)

SetTitle sets the value of Title.

func (*Session) SetTokens

func (s *Session) SetTokens(val OptSessionTokens)

SetTokens sets the value of Tokens.

func (*Session) SetVersion

func (s *Session) SetVersion(val string)

SetVersion sets the value of Version.

func (*Session) SetWorkspaceID

func (s *Session) SetWorkspaceID(val OptNilString)

SetWorkspaceID sets the value of WorkspaceID.

func (*Session) UnmarshalJSON

func (s *Session) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Session) Validate

func (s *Session) Validate() error

type SessionCreateBadRequestApplicationJSON

type SessionCreateBadRequestApplicationJSON jx.Raw

func (*SessionCreateBadRequestApplicationJSON) Decode

Decode decodes SessionCreateBadRequestApplicationJSON from json.

func (SessionCreateBadRequestApplicationJSON) Encode

Encode encodes SessionCreateBadRequestApplicationJSON as json.

func (SessionCreateBadRequestApplicationJSON) MarshalJSON

func (s SessionCreateBadRequestApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionCreateBadRequestApplicationJSON) UnmarshalJSON

func (s *SessionCreateBadRequestApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionCreateParams

type SessionCreateParams struct {
	Directory OptString `json:",omitempty,omitzero"`
	Workspace OptString `json:",omitempty,omitzero"`
}

SessionCreateParams is parameters of session.create operation.

type SessionCreateReq

type SessionCreateReq struct {
	Agent       OptNilString                `json:"agent"`
	Metadata    *SessionCreateReqMetadata   `json:"metadata"`
	Model       OptNilSessionCreateReqModel `json:"model"`
	ParentID    OptString                   `json:"parentID"`
	Permission  PermissionRuleset           `json:"permission"`
	Title       OptString                   `json:"title"`
	WorkspaceID OptNilString                `json:"workspaceID"`
}

func (*SessionCreateReq) Decode

func (s *SessionCreateReq) Decode(d *jx.Decoder) error

Decode decodes SessionCreateReq from json.

func (*SessionCreateReq) Encode

func (s *SessionCreateReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionCreateReq) GetAgent

func (s *SessionCreateReq) GetAgent() OptNilString

GetAgent returns the value of Agent.

func (*SessionCreateReq) GetMetadata

func (s *SessionCreateReq) GetMetadata() *SessionCreateReqMetadata

GetMetadata returns the value of Metadata.

func (*SessionCreateReq) GetModel

GetModel returns the value of Model.

func (*SessionCreateReq) GetParentID

func (s *SessionCreateReq) GetParentID() OptString

GetParentID returns the value of ParentID.

func (*SessionCreateReq) GetPermission

func (s *SessionCreateReq) GetPermission() PermissionRuleset

GetPermission returns the value of Permission.

func (*SessionCreateReq) GetTitle

func (s *SessionCreateReq) GetTitle() OptString

GetTitle returns the value of Title.

func (*SessionCreateReq) GetWorkspaceID

func (s *SessionCreateReq) GetWorkspaceID() OptNilString

GetWorkspaceID returns the value of WorkspaceID.

func (*SessionCreateReq) MarshalJSON

func (s *SessionCreateReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionCreateReq) SetAgent

func (s *SessionCreateReq) SetAgent(val OptNilString)

SetAgent sets the value of Agent.

func (*SessionCreateReq) SetMetadata

func (s *SessionCreateReq) SetMetadata(val *SessionCreateReqMetadata)

SetMetadata sets the value of Metadata.

func (*SessionCreateReq) SetModel

SetModel sets the value of Model.

func (*SessionCreateReq) SetParentID

func (s *SessionCreateReq) SetParentID(val OptString)

SetParentID sets the value of ParentID.

func (*SessionCreateReq) SetPermission

func (s *SessionCreateReq) SetPermission(val PermissionRuleset)

SetPermission sets the value of Permission.

func (*SessionCreateReq) SetTitle

func (s *SessionCreateReq) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*SessionCreateReq) SetWorkspaceID

func (s *SessionCreateReq) SetWorkspaceID(val OptNilString)

SetWorkspaceID sets the value of WorkspaceID.

func (*SessionCreateReq) UnmarshalJSON

func (s *SessionCreateReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionCreateReq) Validate

func (s *SessionCreateReq) Validate() error

type SessionCreateReqMetadata

type SessionCreateReqMetadata struct{}

func (*SessionCreateReqMetadata) Decode

func (s *SessionCreateReqMetadata) Decode(d *jx.Decoder) error

Decode decodes SessionCreateReqMetadata from json.

func (*SessionCreateReqMetadata) Encode

func (s *SessionCreateReqMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionCreateReqMetadata) MarshalJSON

func (s *SessionCreateReqMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionCreateReqMetadata) UnmarshalJSON

func (s *SessionCreateReqMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionCreateReqModel

type SessionCreateReqModel struct {
	ID         string       `json:"id"`
	ProviderID string       `json:"providerID"`
	Variant    OptNilString `json:"variant"`
}

func (*SessionCreateReqModel) Decode

func (s *SessionCreateReqModel) Decode(d *jx.Decoder) error

Decode decodes SessionCreateReqModel from json.

func (*SessionCreateReqModel) Encode

func (s *SessionCreateReqModel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionCreateReqModel) GetID

func (s *SessionCreateReqModel) GetID() string

GetID returns the value of ID.

func (*SessionCreateReqModel) GetProviderID

func (s *SessionCreateReqModel) GetProviderID() string

GetProviderID returns the value of ProviderID.

func (*SessionCreateReqModel) GetVariant

func (s *SessionCreateReqModel) GetVariant() OptNilString

GetVariant returns the value of Variant.

func (*SessionCreateReqModel) MarshalJSON

func (s *SessionCreateReqModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionCreateReqModel) SetID

func (s *SessionCreateReqModel) SetID(val string)

SetID sets the value of ID.

func (*SessionCreateReqModel) SetProviderID

func (s *SessionCreateReqModel) SetProviderID(val string)

SetProviderID sets the value of ProviderID.

func (*SessionCreateReqModel) SetVariant

func (s *SessionCreateReqModel) SetVariant(val OptNilString)

SetVariant sets the value of Variant.

func (*SessionCreateReqModel) UnmarshalJSON

func (s *SessionCreateReqModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionCreateRes

type SessionCreateRes interface {
	// contains filtered or unexported methods
}

type SessionInputAdmitted

type SessionInputAdmitted struct {
	AdmittedSeq int                          `json:"admittedSeq"`
	Delivery    SessionInputAdmittedDelivery `json:"delivery"`
	ID          string                       `json:"id"`
	PromotedSeq OptInt                       `json:"promotedSeq"`
	Prompt      Prompt                       `json:"prompt"`
	SessionID   string                       `json:"sessionID"`
	TimeCreated float64                      `json:"timeCreated"`
}

Ref: #/components/schemas/SessionInputAdmitted

func (*SessionInputAdmitted) Decode

func (s *SessionInputAdmitted) Decode(d *jx.Decoder) error

Decode decodes SessionInputAdmitted from json.

func (*SessionInputAdmitted) Encode

func (s *SessionInputAdmitted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionInputAdmitted) GetAdmittedSeq

func (s *SessionInputAdmitted) GetAdmittedSeq() int

GetAdmittedSeq returns the value of AdmittedSeq.

func (*SessionInputAdmitted) GetDelivery

GetDelivery returns the value of Delivery.

func (*SessionInputAdmitted) GetID

func (s *SessionInputAdmitted) GetID() string

GetID returns the value of ID.

func (*SessionInputAdmitted) GetPromotedSeq

func (s *SessionInputAdmitted) GetPromotedSeq() OptInt

GetPromotedSeq returns the value of PromotedSeq.

func (*SessionInputAdmitted) GetPrompt

func (s *SessionInputAdmitted) GetPrompt() Prompt

GetPrompt returns the value of Prompt.

func (*SessionInputAdmitted) GetSessionID

func (s *SessionInputAdmitted) GetSessionID() string

GetSessionID returns the value of SessionID.

func (*SessionInputAdmitted) GetTimeCreated

func (s *SessionInputAdmitted) GetTimeCreated() float64

GetTimeCreated returns the value of TimeCreated.

func (*SessionInputAdmitted) MarshalJSON

func (s *SessionInputAdmitted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionInputAdmitted) SetAdmittedSeq

func (s *SessionInputAdmitted) SetAdmittedSeq(val int)

SetAdmittedSeq sets the value of AdmittedSeq.

func (*SessionInputAdmitted) SetDelivery

SetDelivery sets the value of Delivery.

func (*SessionInputAdmitted) SetID

func (s *SessionInputAdmitted) SetID(val string)

SetID sets the value of ID.

func (*SessionInputAdmitted) SetPromotedSeq

func (s *SessionInputAdmitted) SetPromotedSeq(val OptInt)

SetPromotedSeq sets the value of PromotedSeq.

func (*SessionInputAdmitted) SetPrompt

func (s *SessionInputAdmitted) SetPrompt(val Prompt)

SetPrompt sets the value of Prompt.

func (*SessionInputAdmitted) SetSessionID

func (s *SessionInputAdmitted) SetSessionID(val string)

SetSessionID sets the value of SessionID.

func (*SessionInputAdmitted) SetTimeCreated

func (s *SessionInputAdmitted) SetTimeCreated(val float64)

SetTimeCreated sets the value of TimeCreated.

func (*SessionInputAdmitted) UnmarshalJSON

func (s *SessionInputAdmitted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionInputAdmitted) Validate

func (s *SessionInputAdmitted) Validate() error

type SessionInputAdmittedDelivery

type SessionInputAdmittedDelivery string
const (
	SessionInputAdmittedDeliverySteer SessionInputAdmittedDelivery = "steer"
	SessionInputAdmittedDeliveryQueue SessionInputAdmittedDelivery = "queue"
)

func (SessionInputAdmittedDelivery) AllValues

AllValues returns all SessionInputAdmittedDelivery values.

func (*SessionInputAdmittedDelivery) Decode

Decode decodes SessionInputAdmittedDelivery from json.

func (SessionInputAdmittedDelivery) Encode

Encode encodes SessionInputAdmittedDelivery as json.

func (SessionInputAdmittedDelivery) MarshalJSON

func (s SessionInputAdmittedDelivery) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SessionInputAdmittedDelivery) MarshalText

func (s SessionInputAdmittedDelivery) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SessionInputAdmittedDelivery) UnmarshalJSON

func (s *SessionInputAdmittedDelivery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionInputAdmittedDelivery) UnmarshalText

func (s *SessionInputAdmittedDelivery) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SessionInputAdmittedDelivery) Validate

func (s SessionInputAdmittedDelivery) Validate() error

type SessionMessage

type SessionMessage jx.Raw

func (*SessionMessage) Decode

func (s *SessionMessage) Decode(d *jx.Decoder) error

Decode decodes SessionMessage from json.

func (SessionMessage) Encode

func (s SessionMessage) Encode(e *jx.Encoder)

Encode encodes SessionMessage as json.

func (SessionMessage) MarshalJSON

func (s SessionMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessage) UnmarshalJSON

func (s *SessionMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageBadRequestApplicationJSON

type SessionMessageBadRequestApplicationJSON jx.Raw

func (*SessionMessageBadRequestApplicationJSON) Decode

Decode decodes SessionMessageBadRequestApplicationJSON from json.

func (SessionMessageBadRequestApplicationJSON) Encode

Encode encodes SessionMessageBadRequestApplicationJSON as json.

func (SessionMessageBadRequestApplicationJSON) MarshalJSON

func (s SessionMessageBadRequestApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageBadRequestApplicationJSON) UnmarshalJSON

func (s *SessionMessageBadRequestApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageNotFoundApplicationJSON

type SessionMessageNotFoundApplicationJSON jx.Raw

func (*SessionMessageNotFoundApplicationJSON) Decode

Decode decodes SessionMessageNotFoundApplicationJSON from json.

func (SessionMessageNotFoundApplicationJSON) Encode

Encode encodes SessionMessageNotFoundApplicationJSON as json.

func (SessionMessageNotFoundApplicationJSON) MarshalJSON

func (s SessionMessageNotFoundApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageNotFoundApplicationJSON) UnmarshalJSON

func (s *SessionMessageNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageOK

type SessionMessageOK struct {
	Info            SessionMessageOKInfo `json:"info"`
	AdditionalProps SessionMessageOKAdditional
}

func (*SessionMessageOK) Decode

func (s *SessionMessageOK) Decode(d *jx.Decoder) error

Decode decodes SessionMessageOK from json.

func (*SessionMessageOK) Encode

func (s *SessionMessageOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessageOK) GetAdditionalProps

func (s *SessionMessageOK) GetAdditionalProps() SessionMessageOKAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionMessageOK) GetInfo

GetInfo returns the value of Info.

func (*SessionMessageOK) MarshalJSON

func (s *SessionMessageOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageOK) SetAdditionalProps

func (s *SessionMessageOK) SetAdditionalProps(val SessionMessageOKAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionMessageOK) SetInfo

func (s *SessionMessageOK) SetInfo(val SessionMessageOKInfo)

SetInfo sets the value of Info.

func (*SessionMessageOK) UnmarshalJSON

func (s *SessionMessageOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageOKAdditional

type SessionMessageOKAdditional map[string]jx.Raw

func (*SessionMessageOKAdditional) Decode

Decode decodes SessionMessageOKAdditional from json.

func (SessionMessageOKAdditional) Encode

func (s SessionMessageOKAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SessionMessageOKAdditional) MarshalJSON

func (s SessionMessageOKAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageOKAdditional) UnmarshalJSON

func (s *SessionMessageOKAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageOKInfo

type SessionMessageOKInfo struct {
	ID              string `json:"id"`
	Role            string `json:"role"`
	AdditionalProps SessionMessageOKInfoAdditional
}

func (*SessionMessageOKInfo) Decode

func (s *SessionMessageOKInfo) Decode(d *jx.Decoder) error

Decode decodes SessionMessageOKInfo from json.

func (*SessionMessageOKInfo) Encode

func (s *SessionMessageOKInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessageOKInfo) GetAdditionalProps

func (s *SessionMessageOKInfo) GetAdditionalProps() SessionMessageOKInfoAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionMessageOKInfo) GetID

func (s *SessionMessageOKInfo) GetID() string

GetID returns the value of ID.

func (*SessionMessageOKInfo) GetRole

func (s *SessionMessageOKInfo) GetRole() string

GetRole returns the value of Role.

func (*SessionMessageOKInfo) MarshalJSON

func (s *SessionMessageOKInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageOKInfo) SetAdditionalProps

func (s *SessionMessageOKInfo) SetAdditionalProps(val SessionMessageOKInfoAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionMessageOKInfo) SetID

func (s *SessionMessageOKInfo) SetID(val string)

SetID sets the value of ID.

func (*SessionMessageOKInfo) SetRole

func (s *SessionMessageOKInfo) SetRole(val string)

SetRole sets the value of Role.

func (*SessionMessageOKInfo) UnmarshalJSON

func (s *SessionMessageOKInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageOKInfoAdditional

type SessionMessageOKInfoAdditional map[string]jx.Raw

func (*SessionMessageOKInfoAdditional) Decode

Decode decodes SessionMessageOKInfoAdditional from json.

func (SessionMessageOKInfoAdditional) Encode

Encode implements json.Marshaler.

func (SessionMessageOKInfoAdditional) MarshalJSON

func (s SessionMessageOKInfoAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageOKInfoAdditional) UnmarshalJSON

func (s *SessionMessageOKInfoAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageParams

type SessionMessageParams struct {
	SessionID string
	Directory OptString `json:",omitempty,omitzero"`
}

SessionMessageParams is parameters of session.message operation.

type SessionMessageReq

type SessionMessageReq struct {
	Parts     []SessionMessageReqPartsItem `json:"parts"`
	Agent     OptString                    `json:"agent"`
	MessageID OptString                    `json:"messageID"`
}

func (*SessionMessageReq) Decode

func (s *SessionMessageReq) Decode(d *jx.Decoder) error

Decode decodes SessionMessageReq from json.

func (*SessionMessageReq) Encode

func (s *SessionMessageReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessageReq) GetAgent

func (s *SessionMessageReq) GetAgent() OptString

GetAgent returns the value of Agent.

func (*SessionMessageReq) GetMessageID

func (s *SessionMessageReq) GetMessageID() OptString

GetMessageID returns the value of MessageID.

func (*SessionMessageReq) GetParts

GetParts returns the value of Parts.

func (*SessionMessageReq) MarshalJSON

func (s *SessionMessageReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageReq) SetAgent

func (s *SessionMessageReq) SetAgent(val OptString)

SetAgent sets the value of Agent.

func (*SessionMessageReq) SetMessageID

func (s *SessionMessageReq) SetMessageID(val OptString)

SetMessageID sets the value of MessageID.

func (*SessionMessageReq) SetParts

func (s *SessionMessageReq) SetParts(val []SessionMessageReqPartsItem)

SetParts sets the value of Parts.

func (*SessionMessageReq) UnmarshalJSON

func (s *SessionMessageReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionMessageReq) Validate

func (s *SessionMessageReq) Validate() error

type SessionMessageReqPartsItem

type SessionMessageReqPartsItem struct {
	Type            string    `json:"type"`
	Text            OptString `json:"text"`
	Name            OptString `json:"name"`
	ID              OptString `json:"id"`
	AdditionalProps SessionMessageReqPartsItemAdditional
}

func (*SessionMessageReqPartsItem) Decode

Decode decodes SessionMessageReqPartsItem from json.

func (*SessionMessageReqPartsItem) Encode

func (s *SessionMessageReqPartsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessageReqPartsItem) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionMessageReqPartsItem) GetID

GetID returns the value of ID.

func (*SessionMessageReqPartsItem) GetName

GetName returns the value of Name.

func (*SessionMessageReqPartsItem) GetText

GetText returns the value of Text.

func (*SessionMessageReqPartsItem) GetType

func (s *SessionMessageReqPartsItem) GetType() string

GetType returns the value of Type.

func (*SessionMessageReqPartsItem) MarshalJSON

func (s *SessionMessageReqPartsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageReqPartsItem) SetAdditionalProps

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionMessageReqPartsItem) SetID

func (s *SessionMessageReqPartsItem) SetID(val OptString)

SetID sets the value of ID.

func (*SessionMessageReqPartsItem) SetName

func (s *SessionMessageReqPartsItem) SetName(val OptString)

SetName sets the value of Name.

func (*SessionMessageReqPartsItem) SetText

func (s *SessionMessageReqPartsItem) SetText(val OptString)

SetText sets the value of Text.

func (*SessionMessageReqPartsItem) SetType

func (s *SessionMessageReqPartsItem) SetType(val string)

SetType sets the value of Type.

func (*SessionMessageReqPartsItem) UnmarshalJSON

func (s *SessionMessageReqPartsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageReqPartsItemAdditional

type SessionMessageReqPartsItemAdditional map[string]jx.Raw

func (*SessionMessageReqPartsItemAdditional) Decode

Decode decodes SessionMessageReqPartsItemAdditional from json.

func (SessionMessageReqPartsItemAdditional) Encode

Encode implements json.Marshaler.

func (SessionMessageReqPartsItemAdditional) MarshalJSON

func (s SessionMessageReqPartsItemAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessageReqPartsItemAdditional) UnmarshalJSON

func (s *SessionMessageReqPartsItemAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessageRes

type SessionMessageRes interface {
	// contains filtered or unexported methods
}

type SessionMessagesBadRequestApplicationJSON

type SessionMessagesBadRequestApplicationJSON jx.Raw

func (*SessionMessagesBadRequestApplicationJSON) Decode

Decode decodes SessionMessagesBadRequestApplicationJSON from json.

func (SessionMessagesBadRequestApplicationJSON) Encode

Encode encodes SessionMessagesBadRequestApplicationJSON as json.

func (SessionMessagesBadRequestApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesBadRequestApplicationJSON) UnmarshalJSON

func (s *SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesNotFoundApplicationJSON

type SessionMessagesNotFoundApplicationJSON jx.Raw

func (*SessionMessagesNotFoundApplicationJSON) Decode

Decode decodes SessionMessagesNotFoundApplicationJSON from json.

func (SessionMessagesNotFoundApplicationJSON) Encode

Encode encodes SessionMessagesNotFoundApplicationJSON as json.

func (SessionMessagesNotFoundApplicationJSON) MarshalJSON

func (s SessionMessagesNotFoundApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesNotFoundApplicationJSON) UnmarshalJSON

func (s *SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesOKApplicationJSON

type SessionMessagesOKApplicationJSON []SessionMessagesOKItem

func (*SessionMessagesOKApplicationJSON) Decode

Decode decodes SessionMessagesOKApplicationJSON from json.

func (SessionMessagesOKApplicationJSON) Encode

Encode encodes SessionMessagesOKApplicationJSON as json.

func (SessionMessagesOKApplicationJSON) MarshalJSON

func (s SessionMessagesOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKApplicationJSON) UnmarshalJSON

func (s *SessionMessagesOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (SessionMessagesOKApplicationJSON) Validate

type SessionMessagesOKItem

type SessionMessagesOKItem struct {
	Info            SessionMessagesOKItemInfo        `json:"info"`
	Parts           []SessionMessagesOKItemPartsItem `json:"parts"`
	AdditionalProps SessionMessagesOKItemAdditional
}

func (*SessionMessagesOKItem) Decode

func (s *SessionMessagesOKItem) Decode(d *jx.Decoder) error

Decode decodes SessionMessagesOKItem from json.

func (*SessionMessagesOKItem) Encode

func (s *SessionMessagesOKItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessagesOKItem) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionMessagesOKItem) GetInfo

GetInfo returns the value of Info.

func (*SessionMessagesOKItem) GetParts

GetParts returns the value of Parts.

func (*SessionMessagesOKItem) MarshalJSON

func (s *SessionMessagesOKItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKItem) SetAdditionalProps

func (s *SessionMessagesOKItem) SetAdditionalProps(val SessionMessagesOKItemAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionMessagesOKItem) SetInfo

SetInfo sets the value of Info.

func (*SessionMessagesOKItem) SetParts

SetParts sets the value of Parts.

func (*SessionMessagesOKItem) UnmarshalJSON

func (s *SessionMessagesOKItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionMessagesOKItem) Validate

func (s *SessionMessagesOKItem) Validate() error

type SessionMessagesOKItemAdditional

type SessionMessagesOKItemAdditional map[string]jx.Raw

func (*SessionMessagesOKItemAdditional) Decode

Decode decodes SessionMessagesOKItemAdditional from json.

func (SessionMessagesOKItemAdditional) Encode

Encode implements json.Marshaler.

func (SessionMessagesOKItemAdditional) MarshalJSON

func (s SessionMessagesOKItemAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKItemAdditional) UnmarshalJSON

func (s *SessionMessagesOKItemAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesOKItemInfo

type SessionMessagesOKItemInfo struct {
	ID              string `json:"id"`
	Role            string `json:"role"`
	AdditionalProps SessionMessagesOKItemInfoAdditional
}

func (*SessionMessagesOKItemInfo) Decode

func (s *SessionMessagesOKItemInfo) Decode(d *jx.Decoder) error

Decode decodes SessionMessagesOKItemInfo from json.

func (*SessionMessagesOKItemInfo) Encode

func (s *SessionMessagesOKItemInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessagesOKItemInfo) GetAdditionalProps

GetAdditionalProps returns the value of AdditionalProps.

func (*SessionMessagesOKItemInfo) GetID

func (s *SessionMessagesOKItemInfo) GetID() string

GetID returns the value of ID.

func (*SessionMessagesOKItemInfo) GetRole

func (s *SessionMessagesOKItemInfo) GetRole() string

GetRole returns the value of Role.

func (*SessionMessagesOKItemInfo) MarshalJSON

func (s *SessionMessagesOKItemInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKItemInfo) SetAdditionalProps

SetAdditionalProps sets the value of AdditionalProps.

func (*SessionMessagesOKItemInfo) SetID

func (s *SessionMessagesOKItemInfo) SetID(val string)

SetID sets the value of ID.

func (*SessionMessagesOKItemInfo) SetRole

func (s *SessionMessagesOKItemInfo) SetRole(val string)

SetRole sets the value of Role.

func (*SessionMessagesOKItemInfo) UnmarshalJSON

func (s *SessionMessagesOKItemInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesOKItemInfoAdditional

type SessionMessagesOKItemInfoAdditional map[string]jx.Raw

func (*SessionMessagesOKItemInfoAdditional) Decode

Decode decodes SessionMessagesOKItemInfoAdditional from json.

func (SessionMessagesOKItemInfoAdditional) Encode

Encode implements json.Marshaler.

func (SessionMessagesOKItemInfoAdditional) MarshalJSON

func (s SessionMessagesOKItemInfoAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKItemInfoAdditional) UnmarshalJSON

func (s *SessionMessagesOKItemInfoAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesOKItemPartsItem

type SessionMessagesOKItemPartsItem map[string]jx.Raw

func (*SessionMessagesOKItemPartsItem) Decode

Decode decodes SessionMessagesOKItemPartsItem from json.

func (SessionMessagesOKItemPartsItem) Encode

Encode implements json.Marshaler.

func (SessionMessagesOKItemPartsItem) MarshalJSON

func (s SessionMessagesOKItemPartsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesOKItemPartsItem) UnmarshalJSON

func (s *SessionMessagesOKItemPartsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMessagesParams

type SessionMessagesParams struct {
	SessionID string
	Directory OptString `json:",omitempty,omitzero"`
	Before    OptString `json:",omitempty,omitzero"`
	Limit     OptInt    `json:",omitempty,omitzero"`
}

SessionMessagesParams is parameters of session.messages operation.

type SessionMessagesRes

type SessionMessagesRes interface {
	// contains filtered or unexported methods
}

type SessionMessagesResponse

type SessionMessagesResponse struct {
	Cursor SessionMessagesResponseCursor `json:"cursor"`
	Data   []SessionMessage              `json:"data"`
}

Ref: #/components/schemas/SessionMessagesResponse

func (*SessionMessagesResponse) Decode

func (s *SessionMessagesResponse) Decode(d *jx.Decoder) error

Decode decodes SessionMessagesResponse from json.

func (*SessionMessagesResponse) Encode

func (s *SessionMessagesResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMessagesResponse) GetCursor

GetCursor returns the value of Cursor.

func (*SessionMessagesResponse) GetData

func (s *SessionMessagesResponse) GetData() []SessionMessage

GetData returns the value of Data.

func (*SessionMessagesResponse) MarshalJSON

func (s *SessionMessagesResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesResponse) SetCursor

SetCursor sets the value of Cursor.

func (*SessionMessagesResponse) SetData

func (s *SessionMessagesResponse) SetData(val []SessionMessage)

SetData sets the value of Data.

func (*SessionMessagesResponse) UnmarshalJSON

func (s *SessionMessagesResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionMessagesResponse) Validate

func (s *SessionMessagesResponse) Validate() error

type SessionMessagesResponseCursor

type SessionMessagesResponseCursor struct {
	Next     OptString `json:"next"`
	Previous OptString `json:"previous"`
}

func (*SessionMessagesResponseCursor) Decode

Decode decodes SessionMessagesResponseCursor from json.

func (*SessionMessagesResponseCursor) Encode

Encode implements json.Marshaler.

func (*SessionMessagesResponseCursor) GetNext

GetNext returns the value of Next.

func (*SessionMessagesResponseCursor) GetPrevious

func (s *SessionMessagesResponseCursor) GetPrevious() OptString

GetPrevious returns the value of Previous.

func (*SessionMessagesResponseCursor) MarshalJSON

func (s *SessionMessagesResponseCursor) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMessagesResponseCursor) SetNext

func (s *SessionMessagesResponseCursor) SetNext(val OptString)

SetNext sets the value of Next.

func (*SessionMessagesResponseCursor) SetPrevious

func (s *SessionMessagesResponseCursor) SetPrevious(val OptString)

SetPrevious sets the value of Previous.

func (*SessionMessagesResponseCursor) UnmarshalJSON

func (s *SessionMessagesResponseCursor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionMetadata

type SessionMetadata struct{}

func (*SessionMetadata) Decode

func (s *SessionMetadata) Decode(d *jx.Decoder) error

Decode decodes SessionMetadata from json.

func (*SessionMetadata) Encode

func (s *SessionMetadata) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionMetadata) MarshalJSON

func (s *SessionMetadata) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionMetadata) UnmarshalJSON

func (s *SessionMetadata) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionModel

type SessionModel struct {
	ID         string       `json:"id"`
	ProviderID string       `json:"providerID"`
	Variant    OptNilString `json:"variant"`
}

func (*SessionModel) Decode

func (s *SessionModel) Decode(d *jx.Decoder) error

Decode decodes SessionModel from json.

func (*SessionModel) Encode

func (s *SessionModel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionModel) GetID

func (s *SessionModel) GetID() string

GetID returns the value of ID.

func (*SessionModel) GetProviderID

func (s *SessionModel) GetProviderID() string

GetProviderID returns the value of ProviderID.

func (*SessionModel) GetVariant

func (s *SessionModel) GetVariant() OptNilString

GetVariant returns the value of Variant.

func (*SessionModel) MarshalJSON

func (s *SessionModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionModel) SetID

func (s *SessionModel) SetID(val string)

SetID sets the value of ID.

func (*SessionModel) SetProviderID

func (s *SessionModel) SetProviderID(val string)

SetProviderID sets the value of ProviderID.

func (*SessionModel) SetVariant

func (s *SessionModel) SetVariant(val OptNilString)

SetVariant sets the value of Variant.

func (*SessionModel) UnmarshalJSON

func (s *SessionModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionRevert

type SessionRevert struct {
	Diff      OptString `json:"diff"`
	MessageID string    `json:"messageID"`
	PartID    OptString `json:"partID"`
	Snapshot  OptString `json:"snapshot"`
}

func (*SessionRevert) Decode

func (s *SessionRevert) Decode(d *jx.Decoder) error

Decode decodes SessionRevert from json.

func (*SessionRevert) Encode

func (s *SessionRevert) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionRevert) GetDiff

func (s *SessionRevert) GetDiff() OptString

GetDiff returns the value of Diff.

func (*SessionRevert) GetMessageID

func (s *SessionRevert) GetMessageID() string

GetMessageID returns the value of MessageID.

func (*SessionRevert) GetPartID

func (s *SessionRevert) GetPartID() OptString

GetPartID returns the value of PartID.

func (*SessionRevert) GetSnapshot

func (s *SessionRevert) GetSnapshot() OptString

GetSnapshot returns the value of Snapshot.

func (*SessionRevert) MarshalJSON

func (s *SessionRevert) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionRevert) SetDiff

func (s *SessionRevert) SetDiff(val OptString)

SetDiff sets the value of Diff.

func (*SessionRevert) SetMessageID

func (s *SessionRevert) SetMessageID(val string)

SetMessageID sets the value of MessageID.

func (*SessionRevert) SetPartID

func (s *SessionRevert) SetPartID(val OptString)

SetPartID sets the value of PartID.

func (*SessionRevert) SetSnapshot

func (s *SessionRevert) SetSnapshot(val OptString)

SetSnapshot sets the value of Snapshot.

func (*SessionRevert) UnmarshalJSON

func (s *SessionRevert) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionRevert) Validate

func (s *SessionRevert) Validate() error

type SessionShare

type SessionShare struct {
	URL string `json:"url"`
}

func (*SessionShare) Decode

func (s *SessionShare) Decode(d *jx.Decoder) error

Decode decodes SessionShare from json.

func (*SessionShare) Encode

func (s *SessionShare) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionShare) GetURL

func (s *SessionShare) GetURL() string

GetURL returns the value of URL.

func (*SessionShare) MarshalJSON

func (s *SessionShare) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionShare) SetURL

func (s *SessionShare) SetURL(val string)

SetURL sets the value of URL.

func (*SessionShare) UnmarshalJSON

func (s *SessionShare) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionSummary

type SessionSummary struct {
	Additions float64            `json:"additions"`
	Deletions float64            `json:"deletions"`
	Diffs     []SnapshotFileDiff `json:"diffs"`
	Files     float64            `json:"files"`
}

func (*SessionSummary) Decode

func (s *SessionSummary) Decode(d *jx.Decoder) error

Decode decodes SessionSummary from json.

func (*SessionSummary) Encode

func (s *SessionSummary) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionSummary) GetAdditions

func (s *SessionSummary) GetAdditions() float64

GetAdditions returns the value of Additions.

func (*SessionSummary) GetDeletions

func (s *SessionSummary) GetDeletions() float64

GetDeletions returns the value of Deletions.

func (*SessionSummary) GetDiffs

func (s *SessionSummary) GetDiffs() []SnapshotFileDiff

GetDiffs returns the value of Diffs.

func (*SessionSummary) GetFiles

func (s *SessionSummary) GetFiles() float64

GetFiles returns the value of Files.

func (*SessionSummary) MarshalJSON

func (s *SessionSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionSummary) SetAdditions

func (s *SessionSummary) SetAdditions(val float64)

SetAdditions sets the value of Additions.

func (*SessionSummary) SetDeletions

func (s *SessionSummary) SetDeletions(val float64)

SetDeletions sets the value of Deletions.

func (*SessionSummary) SetDiffs

func (s *SessionSummary) SetDiffs(val []SnapshotFileDiff)

SetDiffs sets the value of Diffs.

func (*SessionSummary) SetFiles

func (s *SessionSummary) SetFiles(val float64)

SetFiles sets the value of Files.

func (*SessionSummary) UnmarshalJSON

func (s *SessionSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionSummary) Validate

func (s *SessionSummary) Validate() error

type SessionTime

type SessionTime struct {
	Archived   OptNilFloat64 `json:"archived"`
	Compacting OptInt        `json:"compacting"`
	Created    int           `json:"created"`
	Updated    int           `json:"updated"`
}

func (*SessionTime) Decode

func (s *SessionTime) Decode(d *jx.Decoder) error

Decode decodes SessionTime from json.

func (*SessionTime) Encode

func (s *SessionTime) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionTime) GetArchived

func (s *SessionTime) GetArchived() OptNilFloat64

GetArchived returns the value of Archived.

func (*SessionTime) GetCompacting

func (s *SessionTime) GetCompacting() OptInt

GetCompacting returns the value of Compacting.

func (*SessionTime) GetCreated

func (s *SessionTime) GetCreated() int

GetCreated returns the value of Created.

func (*SessionTime) GetUpdated

func (s *SessionTime) GetUpdated() int

GetUpdated returns the value of Updated.

func (*SessionTime) MarshalJSON

func (s *SessionTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionTime) SetArchived

func (s *SessionTime) SetArchived(val OptNilFloat64)

SetArchived sets the value of Archived.

func (*SessionTime) SetCompacting

func (s *SessionTime) SetCompacting(val OptInt)

SetCompacting sets the value of Compacting.

func (*SessionTime) SetCreated

func (s *SessionTime) SetCreated(val int)

SetCreated sets the value of Created.

func (*SessionTime) SetUpdated

func (s *SessionTime) SetUpdated(val int)

SetUpdated sets the value of Updated.

func (*SessionTime) UnmarshalJSON

func (s *SessionTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionTime) Validate

func (s *SessionTime) Validate() error

type SessionTokens

type SessionTokens struct {
	Cache     SessionTokensCache `json:"cache"`
	Input     NilFloat64         `json:"input"`
	Output    float64            `json:"output"`
	Reasoning float64            `json:"reasoning"`
}

func (*SessionTokens) Decode

func (s *SessionTokens) Decode(d *jx.Decoder) error

Decode decodes SessionTokens from json.

func (*SessionTokens) Encode

func (s *SessionTokens) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionTokens) GetCache

func (s *SessionTokens) GetCache() SessionTokensCache

GetCache returns the value of Cache.

func (*SessionTokens) GetInput

func (s *SessionTokens) GetInput() NilFloat64

GetInput returns the value of Input.

func (*SessionTokens) GetOutput

func (s *SessionTokens) GetOutput() float64

GetOutput returns the value of Output.

func (*SessionTokens) GetReasoning

func (s *SessionTokens) GetReasoning() float64

GetReasoning returns the value of Reasoning.

func (*SessionTokens) MarshalJSON

func (s *SessionTokens) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionTokens) SetCache

func (s *SessionTokens) SetCache(val SessionTokensCache)

SetCache sets the value of Cache.

func (*SessionTokens) SetInput

func (s *SessionTokens) SetInput(val NilFloat64)

SetInput sets the value of Input.

func (*SessionTokens) SetOutput

func (s *SessionTokens) SetOutput(val float64)

SetOutput sets the value of Output.

func (*SessionTokens) SetReasoning

func (s *SessionTokens) SetReasoning(val float64)

SetReasoning sets the value of Reasoning.

func (*SessionTokens) UnmarshalJSON

func (s *SessionTokens) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionTokens) Validate

func (s *SessionTokens) Validate() error

type SessionTokensCache

type SessionTokensCache struct {
	Read  float64 `json:"read"`
	Write float64 `json:"write"`
}

func (*SessionTokensCache) Decode

func (s *SessionTokensCache) Decode(d *jx.Decoder) error

Decode decodes SessionTokensCache from json.

func (*SessionTokensCache) Encode

func (s *SessionTokensCache) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionTokensCache) GetRead

func (s *SessionTokensCache) GetRead() float64

GetRead returns the value of Read.

func (*SessionTokensCache) GetWrite

func (s *SessionTokensCache) GetWrite() float64

GetWrite returns the value of Write.

func (*SessionTokensCache) MarshalJSON

func (s *SessionTokensCache) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionTokensCache) SetRead

func (s *SessionTokensCache) SetRead(val float64)

SetRead sets the value of Read.

func (*SessionTokensCache) SetWrite

func (s *SessionTokensCache) SetWrite(val float64)

SetWrite sets the value of Write.

func (*SessionTokensCache) UnmarshalJSON

func (s *SessionTokensCache) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionTokensCache) Validate

func (s *SessionTokensCache) Validate() error

type SessionV2Info

type SessionV2Info struct {
	Agent     OptNilString             `json:"agent"`
	Cost      float64                  `json:"cost"`
	ID        string                   `json:"id"`
	Location  LocationRef              `json:"location"`
	Model     OptNilSessionV2InfoModel `json:"model"`
	ParentID  OptString                `json:"parentID"`
	ProjectID string                   `json:"projectID"`
	Subpath   OptNilString             `json:"subpath"`
	Time      SessionV2InfoTime        `json:"time"`
	Title     string                   `json:"title"`
	Tokens    SessionV2InfoTokens      `json:"tokens"`
}

Ref: #/components/schemas/SessionV2Info

func (*SessionV2Info) Decode

func (s *SessionV2Info) Decode(d *jx.Decoder) error

Decode decodes SessionV2Info from json.

func (*SessionV2Info) Encode

func (s *SessionV2Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionV2Info) GetAgent

func (s *SessionV2Info) GetAgent() OptNilString

GetAgent returns the value of Agent.

func (*SessionV2Info) GetCost

func (s *SessionV2Info) GetCost() float64

GetCost returns the value of Cost.

func (*SessionV2Info) GetID

func (s *SessionV2Info) GetID() string

GetID returns the value of ID.

func (*SessionV2Info) GetLocation

func (s *SessionV2Info) GetLocation() LocationRef

GetLocation returns the value of Location.

func (*SessionV2Info) GetModel

GetModel returns the value of Model.

func (*SessionV2Info) GetParentID

func (s *SessionV2Info) GetParentID() OptString

GetParentID returns the value of ParentID.

func (*SessionV2Info) GetProjectID

func (s *SessionV2Info) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*SessionV2Info) GetSubpath

func (s *SessionV2Info) GetSubpath() OptNilString

GetSubpath returns the value of Subpath.

func (*SessionV2Info) GetTime

func (s *SessionV2Info) GetTime() SessionV2InfoTime

GetTime returns the value of Time.

func (*SessionV2Info) GetTitle

func (s *SessionV2Info) GetTitle() string

GetTitle returns the value of Title.

func (*SessionV2Info) GetTokens

func (s *SessionV2Info) GetTokens() SessionV2InfoTokens

GetTokens returns the value of Tokens.

func (*SessionV2Info) MarshalJSON

func (s *SessionV2Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionV2Info) SetAgent

func (s *SessionV2Info) SetAgent(val OptNilString)

SetAgent sets the value of Agent.

func (*SessionV2Info) SetCost

func (s *SessionV2Info) SetCost(val float64)

SetCost sets the value of Cost.

func (*SessionV2Info) SetID

func (s *SessionV2Info) SetID(val string)

SetID sets the value of ID.

func (*SessionV2Info) SetLocation

func (s *SessionV2Info) SetLocation(val LocationRef)

SetLocation sets the value of Location.

func (*SessionV2Info) SetModel

func (s *SessionV2Info) SetModel(val OptNilSessionV2InfoModel)

SetModel sets the value of Model.

func (*SessionV2Info) SetParentID

func (s *SessionV2Info) SetParentID(val OptString)

SetParentID sets the value of ParentID.

func (*SessionV2Info) SetProjectID

func (s *SessionV2Info) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*SessionV2Info) SetSubpath

func (s *SessionV2Info) SetSubpath(val OptNilString)

SetSubpath sets the value of Subpath.

func (*SessionV2Info) SetTime

func (s *SessionV2Info) SetTime(val SessionV2InfoTime)

SetTime sets the value of Time.

func (*SessionV2Info) SetTitle

func (s *SessionV2Info) SetTitle(val string)

SetTitle sets the value of Title.

func (*SessionV2Info) SetTokens

func (s *SessionV2Info) SetTokens(val SessionV2InfoTokens)

SetTokens sets the value of Tokens.

func (*SessionV2Info) UnmarshalJSON

func (s *SessionV2Info) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionV2Info) Validate

func (s *SessionV2Info) Validate() error

type SessionV2InfoModel

type SessionV2InfoModel struct {
	ID         string       `json:"id"`
	ProviderID string       `json:"providerID"`
	Variant    OptNilString `json:"variant"`
}

func (*SessionV2InfoModel) Decode

func (s *SessionV2InfoModel) Decode(d *jx.Decoder) error

Decode decodes SessionV2InfoModel from json.

func (*SessionV2InfoModel) Encode

func (s *SessionV2InfoModel) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionV2InfoModel) GetID

func (s *SessionV2InfoModel) GetID() string

GetID returns the value of ID.

func (*SessionV2InfoModel) GetProviderID

func (s *SessionV2InfoModel) GetProviderID() string

GetProviderID returns the value of ProviderID.

func (*SessionV2InfoModel) GetVariant

func (s *SessionV2InfoModel) GetVariant() OptNilString

GetVariant returns the value of Variant.

func (*SessionV2InfoModel) MarshalJSON

func (s *SessionV2InfoModel) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionV2InfoModel) SetID

func (s *SessionV2InfoModel) SetID(val string)

SetID sets the value of ID.

func (*SessionV2InfoModel) SetProviderID

func (s *SessionV2InfoModel) SetProviderID(val string)

SetProviderID sets the value of ProviderID.

func (*SessionV2InfoModel) SetVariant

func (s *SessionV2InfoModel) SetVariant(val OptNilString)

SetVariant sets the value of Variant.

func (*SessionV2InfoModel) UnmarshalJSON

func (s *SessionV2InfoModel) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SessionV2InfoTime

type SessionV2InfoTime struct {
	Archived OptNilFloat64 `json:"archived"`
	Created  NilFloat64    `json:"created"`
	Updated  NilFloat64    `json:"updated"`
}

func (*SessionV2InfoTime) Decode

func (s *SessionV2InfoTime) Decode(d *jx.Decoder) error

Decode decodes SessionV2InfoTime from json.

func (*SessionV2InfoTime) Encode

func (s *SessionV2InfoTime) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionV2InfoTime) GetArchived

func (s *SessionV2InfoTime) GetArchived() OptNilFloat64

GetArchived returns the value of Archived.

func (*SessionV2InfoTime) GetCreated

func (s *SessionV2InfoTime) GetCreated() NilFloat64

GetCreated returns the value of Created.

func (*SessionV2InfoTime) GetUpdated

func (s *SessionV2InfoTime) GetUpdated() NilFloat64

GetUpdated returns the value of Updated.

func (*SessionV2InfoTime) MarshalJSON

func (s *SessionV2InfoTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionV2InfoTime) SetArchived

func (s *SessionV2InfoTime) SetArchived(val OptNilFloat64)

SetArchived sets the value of Archived.

func (*SessionV2InfoTime) SetCreated

func (s *SessionV2InfoTime) SetCreated(val NilFloat64)

SetCreated sets the value of Created.

func (*SessionV2InfoTime) SetUpdated

func (s *SessionV2InfoTime) SetUpdated(val NilFloat64)

SetUpdated sets the value of Updated.

func (*SessionV2InfoTime) UnmarshalJSON

func (s *SessionV2InfoTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionV2InfoTime) Validate

func (s *SessionV2InfoTime) Validate() error

type SessionV2InfoTokens

type SessionV2InfoTokens struct {
	Cache     SessionV2InfoTokensCache `json:"cache"`
	Input     NilFloat64               `json:"input"`
	Output    float64                  `json:"output"`
	Reasoning float64                  `json:"reasoning"`
}

func (*SessionV2InfoTokens) Decode

func (s *SessionV2InfoTokens) Decode(d *jx.Decoder) error

Decode decodes SessionV2InfoTokens from json.

func (*SessionV2InfoTokens) Encode

func (s *SessionV2InfoTokens) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionV2InfoTokens) GetCache

GetCache returns the value of Cache.

func (*SessionV2InfoTokens) GetInput

func (s *SessionV2InfoTokens) GetInput() NilFloat64

GetInput returns the value of Input.

func (*SessionV2InfoTokens) GetOutput

func (s *SessionV2InfoTokens) GetOutput() float64

GetOutput returns the value of Output.

func (*SessionV2InfoTokens) GetReasoning

func (s *SessionV2InfoTokens) GetReasoning() float64

GetReasoning returns the value of Reasoning.

func (*SessionV2InfoTokens) MarshalJSON

func (s *SessionV2InfoTokens) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionV2InfoTokens) SetCache

SetCache sets the value of Cache.

func (*SessionV2InfoTokens) SetInput

func (s *SessionV2InfoTokens) SetInput(val NilFloat64)

SetInput sets the value of Input.

func (*SessionV2InfoTokens) SetOutput

func (s *SessionV2InfoTokens) SetOutput(val float64)

SetOutput sets the value of Output.

func (*SessionV2InfoTokens) SetReasoning

func (s *SessionV2InfoTokens) SetReasoning(val float64)

SetReasoning sets the value of Reasoning.

func (*SessionV2InfoTokens) UnmarshalJSON

func (s *SessionV2InfoTokens) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionV2InfoTokens) Validate

func (s *SessionV2InfoTokens) Validate() error

type SessionV2InfoTokensCache

type SessionV2InfoTokensCache struct {
	Read  float64 `json:"read"`
	Write float64 `json:"write"`
}

func (*SessionV2InfoTokensCache) Decode

func (s *SessionV2InfoTokensCache) Decode(d *jx.Decoder) error

Decode decodes SessionV2InfoTokensCache from json.

func (*SessionV2InfoTokensCache) Encode

func (s *SessionV2InfoTokensCache) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionV2InfoTokensCache) GetRead

func (s *SessionV2InfoTokensCache) GetRead() float64

GetRead returns the value of Read.

func (*SessionV2InfoTokensCache) GetWrite

func (s *SessionV2InfoTokensCache) GetWrite() float64

GetWrite returns the value of Write.

func (*SessionV2InfoTokensCache) MarshalJSON

func (s *SessionV2InfoTokensCache) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionV2InfoTokensCache) SetRead

func (s *SessionV2InfoTokensCache) SetRead(val float64)

SetRead sets the value of Read.

func (*SessionV2InfoTokensCache) SetWrite

func (s *SessionV2InfoTokensCache) SetWrite(val float64)

SetWrite sets the value of Write.

func (*SessionV2InfoTokensCache) UnmarshalJSON

func (s *SessionV2InfoTokensCache) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionV2InfoTokensCache) Validate

func (s *SessionV2InfoTokensCache) Validate() error

type SessionsResponse

type SessionsResponse struct {
	Cursor SessionsResponseCursor `json:"cursor"`
	Data   []SessionV2Info        `json:"data"`
}

Ref: #/components/schemas/SessionsResponse

func (*SessionsResponse) Decode

func (s *SessionsResponse) Decode(d *jx.Decoder) error

Decode decodes SessionsResponse from json.

func (*SessionsResponse) Encode

func (s *SessionsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionsResponse) GetCursor

GetCursor returns the value of Cursor.

func (*SessionsResponse) GetData

func (s *SessionsResponse) GetData() []SessionV2Info

GetData returns the value of Data.

func (*SessionsResponse) MarshalJSON

func (s *SessionsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionsResponse) SetCursor

func (s *SessionsResponse) SetCursor(val SessionsResponseCursor)

SetCursor sets the value of Cursor.

func (*SessionsResponse) SetData

func (s *SessionsResponse) SetData(val []SessionV2Info)

SetData sets the value of Data.

func (*SessionsResponse) UnmarshalJSON

func (s *SessionsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SessionsResponse) Validate

func (s *SessionsResponse) Validate() error

type SessionsResponseCursor

type SessionsResponseCursor struct {
	Next     OptString `json:"next"`
	Previous OptString `json:"previous"`
}

func (*SessionsResponseCursor) Decode

func (s *SessionsResponseCursor) Decode(d *jx.Decoder) error

Decode decodes SessionsResponseCursor from json.

func (*SessionsResponseCursor) Encode

func (s *SessionsResponseCursor) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SessionsResponseCursor) GetNext

func (s *SessionsResponseCursor) GetNext() OptString

GetNext returns the value of Next.

func (*SessionsResponseCursor) GetPrevious

func (s *SessionsResponseCursor) GetPrevious() OptString

GetPrevious returns the value of Previous.

func (*SessionsResponseCursor) MarshalJSON

func (s *SessionsResponseCursor) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SessionsResponseCursor) SetNext

func (s *SessionsResponseCursor) SetNext(val OptString)

SetNext sets the value of Next.

func (*SessionsResponseCursor) SetPrevious

func (s *SessionsResponseCursor) SetPrevious(val OptString)

SetPrevious sets the value of Previous.

func (*SessionsResponseCursor) UnmarshalJSON

func (s *SessionsResponseCursor) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SnapshotFileDiff

type SnapshotFileDiff struct {
	Additions float64                   `json:"additions"`
	Deletions float64                   `json:"deletions"`
	File      OptString                 `json:"file"`
	Patch     OptString                 `json:"patch"`
	Status    OptSnapshotFileDiffStatus `json:"status"`
}

Ref: #/components/schemas/SnapshotFileDiff

func (*SnapshotFileDiff) Decode

func (s *SnapshotFileDiff) Decode(d *jx.Decoder) error

Decode decodes SnapshotFileDiff from json.

func (*SnapshotFileDiff) Encode

func (s *SnapshotFileDiff) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SnapshotFileDiff) GetAdditions

func (s *SnapshotFileDiff) GetAdditions() float64

GetAdditions returns the value of Additions.

func (*SnapshotFileDiff) GetDeletions

func (s *SnapshotFileDiff) GetDeletions() float64

GetDeletions returns the value of Deletions.

func (*SnapshotFileDiff) GetFile

func (s *SnapshotFileDiff) GetFile() OptString

GetFile returns the value of File.

func (*SnapshotFileDiff) GetPatch

func (s *SnapshotFileDiff) GetPatch() OptString

GetPatch returns the value of Patch.

func (*SnapshotFileDiff) GetStatus

GetStatus returns the value of Status.

func (*SnapshotFileDiff) MarshalJSON

func (s *SnapshotFileDiff) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SnapshotFileDiff) SetAdditions

func (s *SnapshotFileDiff) SetAdditions(val float64)

SetAdditions sets the value of Additions.

func (*SnapshotFileDiff) SetDeletions

func (s *SnapshotFileDiff) SetDeletions(val float64)

SetDeletions sets the value of Deletions.

func (*SnapshotFileDiff) SetFile

func (s *SnapshotFileDiff) SetFile(val OptString)

SetFile sets the value of File.

func (*SnapshotFileDiff) SetPatch

func (s *SnapshotFileDiff) SetPatch(val OptString)

SetPatch sets the value of Patch.

func (*SnapshotFileDiff) SetStatus

func (s *SnapshotFileDiff) SetStatus(val OptSnapshotFileDiffStatus)

SetStatus sets the value of Status.

func (*SnapshotFileDiff) UnmarshalJSON

func (s *SnapshotFileDiff) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SnapshotFileDiff) Validate

func (s *SnapshotFileDiff) Validate() error

type SnapshotFileDiffStatus

type SnapshotFileDiffStatus string
const (
	SnapshotFileDiffStatusAdded    SnapshotFileDiffStatus = "added"
	SnapshotFileDiffStatusDeleted  SnapshotFileDiffStatus = "deleted"
	SnapshotFileDiffStatusModified SnapshotFileDiffStatus = "modified"
)

func (SnapshotFileDiffStatus) AllValues

AllValues returns all SnapshotFileDiffStatus values.

func (*SnapshotFileDiffStatus) Decode

func (s *SnapshotFileDiffStatus) Decode(d *jx.Decoder) error

Decode decodes SnapshotFileDiffStatus from json.

func (SnapshotFileDiffStatus) Encode

func (s SnapshotFileDiffStatus) Encode(e *jx.Encoder)

Encode encodes SnapshotFileDiffStatus as json.

func (SnapshotFileDiffStatus) MarshalJSON

func (s SnapshotFileDiffStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (SnapshotFileDiffStatus) MarshalText

func (s SnapshotFileDiffStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SnapshotFileDiffStatus) UnmarshalJSON

func (s *SnapshotFileDiffStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SnapshotFileDiffStatus) UnmarshalText

func (s *SnapshotFileDiffStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SnapshotFileDiffStatus) Validate

func (s SnapshotFileDiffStatus) Validate() error

type UnauthorizedError

type UnauthorizedError struct {
	Tag     UnauthorizedErrorTag `json:"_tag"`
	Message string               `json:"message"`
}

Ref: #/components/schemas/UnauthorizedError

func (*UnauthorizedError) Decode

func (s *UnauthorizedError) Decode(d *jx.Decoder) error

Decode decodes UnauthorizedError from json.

func (*UnauthorizedError) Encode

func (s *UnauthorizedError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnauthorizedError) GetMessage

func (s *UnauthorizedError) GetMessage() string

GetMessage returns the value of Message.

func (*UnauthorizedError) GetTag

GetTag returns the value of Tag.

func (*UnauthorizedError) MarshalJSON

func (s *UnauthorizedError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnauthorizedError) SetMessage

func (s *UnauthorizedError) SetMessage(val string)

SetMessage sets the value of Message.

func (*UnauthorizedError) SetTag

func (s *UnauthorizedError) SetTag(val UnauthorizedErrorTag)

SetTag sets the value of Tag.

func (*UnauthorizedError) UnmarshalJSON

func (s *UnauthorizedError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UnauthorizedError) Validate

func (s *UnauthorizedError) Validate() error

type UnauthorizedErrorTag

type UnauthorizedErrorTag string
const (
	UnauthorizedErrorTagUnauthorizedError UnauthorizedErrorTag = "UnauthorizedError"
)

func (UnauthorizedErrorTag) AllValues

AllValues returns all UnauthorizedErrorTag values.

func (*UnauthorizedErrorTag) Decode

func (s *UnauthorizedErrorTag) Decode(d *jx.Decoder) error

Decode decodes UnauthorizedErrorTag from json.

func (UnauthorizedErrorTag) Encode

func (s UnauthorizedErrorTag) Encode(e *jx.Encoder)

Encode encodes UnauthorizedErrorTag as json.

func (UnauthorizedErrorTag) MarshalJSON

func (s UnauthorizedErrorTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UnauthorizedErrorTag) MarshalText

func (s UnauthorizedErrorTag) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UnauthorizedErrorTag) UnmarshalJSON

func (s *UnauthorizedErrorTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UnauthorizedErrorTag) UnmarshalText

func (s *UnauthorizedErrorTag) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UnauthorizedErrorTag) Validate

func (s UnauthorizedErrorTag) Validate() error

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) SessionCreate

SessionCreate implements session.create operation.

Create a new OpenCode session for interacting with AI assistants and managing conversations.

POST /session

func (UnimplementedHandler) SessionMessage

SessionMessage implements session.message operation.

Send a message to a session.

POST /session/{sessionID}/message

func (UnimplementedHandler) SessionMessages

SessionMessages implements session.messages operation.

Retrieve all messages in a session, including user prompts and AI responses.

GET /session/{sessionID}/message

func (UnimplementedHandler) V2AgentList

V2AgentList implements v2.agent.list operation.

Retrieve currently registered agents.

GET /api/agent

func (UnimplementedHandler) V2HealthGet

func (UnimplementedHandler) V2HealthGet(ctx context.Context) (r V2HealthGetRes, _ error)

V2HealthGet implements v2.health.get operation.

Check whether the API server is ready to accept requests.

GET /api/health

func (UnimplementedHandler) V2ModelList

V2ModelList implements v2.model.list operation.

Retrieve available models ordered by release date.

GET /api/model

func (UnimplementedHandler) V2PermissionRequestList

V2PermissionRequestList implements v2.permission.request.list operation.

Retrieve pending permission requests for a location.

GET /api/permission/request

func (UnimplementedHandler) V2ProviderList

V2ProviderList implements v2.provider.list operation.

Retrieve active AI providers so clients can show provider availability and configuration.

GET /api/provider

func (UnimplementedHandler) V2QuestionRequestList

V2QuestionRequestList implements v2.question.request.list operation.

Retrieve pending question requests for a location.

GET /api/question/request

func (UnimplementedHandler) V2SessionContext

V2SessionContext implements v2.session.context operation.

Retrieve the active context messages for a session (all messages after the last compaction).

GET /api/session/{sessionID}/context

func (UnimplementedHandler) V2SessionList

V2SessionList implements v2.session.list operation.

Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.

GET /api/session

func (UnimplementedHandler) V2SessionMessages

V2SessionMessages implements v2.session.messages operation.

Retrieve projected messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.

GET /api/session/{sessionID}/message

func (UnimplementedHandler) V2SessionPermissionList

V2SessionPermissionList implements v2.session.permission.list operation.

Retrieve pending permission requests owned by a session.

GET /api/session/{sessionID}/permission

func (UnimplementedHandler) V2SessionPermissionReply

V2SessionPermissionReply implements v2.session.permission.reply operation.

Respond to a pending permission request owned by a session.

POST /api/session/{sessionID}/permission/{requestID}/reply

func (UnimplementedHandler) V2SessionPrompt

V2SessionPrompt implements v2.session.prompt operation.

Durably admit one session input and schedule agent-loop execution unless resume is false.

POST /api/session/{sessionID}/prompt

func (UnimplementedHandler) V2SessionQuestionReject

V2SessionQuestionReject implements v2.session.question.reject operation.

Reject a pending question request owned by a session.

POST /api/session/{sessionID}/question/{requestID}/reject

func (UnimplementedHandler) V2SessionQuestionReply

V2SessionQuestionReply implements v2.session.question.reply operation.

Answer a pending question request owned by a session.

POST /api/session/{sessionID}/question/{requestID}/reply

func (UnimplementedHandler) V2SessionWait

V2SessionWait implements v2.session.wait operation.

Wait for a session agent loop to become idle.

POST /api/session/{sessionID}/wait

type UnknownError1

type UnknownError1 struct {
	Tag     UnknownError1Tag `json:"_tag"`
	Message string           `json:"message"`
	Ref     OptString        `json:"ref"`
}

Ref: #/components/schemas/UnknownError1

func (*UnknownError1) Decode

func (s *UnknownError1) Decode(d *jx.Decoder) error

Decode decodes UnknownError1 from json.

func (*UnknownError1) Encode

func (s *UnknownError1) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnknownError1) GetMessage

func (s *UnknownError1) GetMessage() string

GetMessage returns the value of Message.

func (*UnknownError1) GetRef

func (s *UnknownError1) GetRef() OptString

GetRef returns the value of Ref.

func (*UnknownError1) GetTag

func (s *UnknownError1) GetTag() UnknownError1Tag

GetTag returns the value of Tag.

func (*UnknownError1) MarshalJSON

func (s *UnknownError1) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnknownError1) SetMessage

func (s *UnknownError1) SetMessage(val string)

SetMessage sets the value of Message.

func (*UnknownError1) SetRef

func (s *UnknownError1) SetRef(val OptString)

SetRef sets the value of Ref.

func (*UnknownError1) SetTag

func (s *UnknownError1) SetTag(val UnknownError1Tag)

SetTag sets the value of Tag.

func (*UnknownError1) UnmarshalJSON

func (s *UnknownError1) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UnknownError1) Validate

func (s *UnknownError1) Validate() error

type UnknownError1Tag

type UnknownError1Tag string
const (
	UnknownError1TagUnknownError UnknownError1Tag = "UnknownError"
)

func (UnknownError1Tag) AllValues

func (UnknownError1Tag) AllValues() []UnknownError1Tag

AllValues returns all UnknownError1Tag values.

func (*UnknownError1Tag) Decode

func (s *UnknownError1Tag) Decode(d *jx.Decoder) error

Decode decodes UnknownError1Tag from json.

func (UnknownError1Tag) Encode

func (s UnknownError1Tag) Encode(e *jx.Encoder)

Encode encodes UnknownError1Tag as json.

func (UnknownError1Tag) MarshalJSON

func (s UnknownError1Tag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UnknownError1Tag) MarshalText

func (s UnknownError1Tag) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UnknownError1Tag) UnmarshalJSON

func (s *UnknownError1Tag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UnknownError1Tag) UnmarshalText

func (s *UnknownError1Tag) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UnknownError1Tag) Validate

func (s UnknownError1Tag) Validate() error

type V2AgentListLocation

type V2AgentListLocation struct {
	Directory OptString `json:"directory"`
	Workspace OptString `json:"workspace"`
}

func (*V2AgentListLocation) DecodeURI

func (s *V2AgentListLocation) DecodeURI(d uri.Decoder) error

DecodeURI decodes V2AgentListLocation from URI form.

func (*V2AgentListLocation) EncodeURI

func (s *V2AgentListLocation) EncodeURI(e uri.Encoder) error

EncodeURI encodes V2AgentListLocation as URI form.

func (*V2AgentListLocation) GetDirectory

func (s *V2AgentListLocation) GetDirectory() OptString

GetDirectory returns the value of Directory.

func (*V2AgentListLocation) GetWorkspace

func (s *V2AgentListLocation) GetWorkspace() OptString

GetWorkspace returns the value of Workspace.

func (*V2AgentListLocation) SetDirectory

func (s *V2AgentListLocation) SetDirectory(val OptString)

SetDirectory sets the value of Directory.

func (*V2AgentListLocation) SetWorkspace

func (s *V2AgentListLocation) SetWorkspace(val OptString)

SetWorkspace sets the value of Workspace.

type V2AgentListOK

type V2AgentListOK struct {
	Data     []AgentV2Info `json:"data"`
	Location LocationInfo  `json:"location"`
}

func (*V2AgentListOK) Decode

func (s *V2AgentListOK) Decode(d *jx.Decoder) error

Decode decodes V2AgentListOK from json.

func (*V2AgentListOK) Encode

func (s *V2AgentListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2AgentListOK) GetData

func (s *V2AgentListOK) GetData() []AgentV2Info

GetData returns the value of Data.

func (*V2AgentListOK) GetLocation

func (s *V2AgentListOK) GetLocation() LocationInfo

GetLocation returns the value of Location.

func (*V2AgentListOK) MarshalJSON

func (s *V2AgentListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2AgentListOK) SetData

func (s *V2AgentListOK) SetData(val []AgentV2Info)

SetData sets the value of Data.

func (*V2AgentListOK) SetLocation

func (s *V2AgentListOK) SetLocation(val LocationInfo)

SetLocation sets the value of Location.

func (*V2AgentListOK) UnmarshalJSON

func (s *V2AgentListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2AgentListOK) Validate

func (s *V2AgentListOK) Validate() error

type V2AgentListParams

type V2AgentListParams struct {
	Location OptV2AgentListLocation `json:",omitempty,omitzero"`
}

V2AgentListParams is parameters of v2.agent.list operation.

type V2AgentListRes

type V2AgentListRes interface {
	// contains filtered or unexported methods
}

type V2HealthGetOK

type V2HealthGetOK struct {
	Healthy V2HealthGetOKHealthy `json:"healthy"`
}

func (*V2HealthGetOK) Decode

func (s *V2HealthGetOK) Decode(d *jx.Decoder) error

Decode decodes V2HealthGetOK from json.

func (*V2HealthGetOK) Encode

func (s *V2HealthGetOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2HealthGetOK) GetHealthy

func (s *V2HealthGetOK) GetHealthy() V2HealthGetOKHealthy

GetHealthy returns the value of Healthy.

func (*V2HealthGetOK) MarshalJSON

func (s *V2HealthGetOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2HealthGetOK) SetHealthy

func (s *V2HealthGetOK) SetHealthy(val V2HealthGetOKHealthy)

SetHealthy sets the value of Healthy.

func (*V2HealthGetOK) UnmarshalJSON

func (s *V2HealthGetOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2HealthGetOK) Validate

func (s *V2HealthGetOK) Validate() error

type V2HealthGetOKHealthy

type V2HealthGetOKHealthy bool
const (
	V2HealthGetOKHealthyTrue V2HealthGetOKHealthy = true
)

func (V2HealthGetOKHealthy) AllValues

AllValues returns all V2HealthGetOKHealthy values.

func (*V2HealthGetOKHealthy) Decode

func (s *V2HealthGetOKHealthy) Decode(d *jx.Decoder) error

Decode decodes V2HealthGetOKHealthy from json.

func (V2HealthGetOKHealthy) Encode

func (s V2HealthGetOKHealthy) Encode(e *jx.Encoder)

Encode encodes V2HealthGetOKHealthy as json.

func (V2HealthGetOKHealthy) MarshalJSON

func (s V2HealthGetOKHealthy) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2HealthGetOKHealthy) UnmarshalJSON

func (s *V2HealthGetOKHealthy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (V2HealthGetOKHealthy) Validate

func (s V2HealthGetOKHealthy) Validate() error

type V2HealthGetRes

type V2HealthGetRes interface {
	// contains filtered or unexported methods
}

type V2ModelListLocation

type V2ModelListLocation struct {
	Directory OptString `json:"directory"`
	Workspace OptString `json:"workspace"`
}

func (*V2ModelListLocation) DecodeURI

func (s *V2ModelListLocation) DecodeURI(d uri.Decoder) error

DecodeURI decodes V2ModelListLocation from URI form.

func (*V2ModelListLocation) EncodeURI

func (s *V2ModelListLocation) EncodeURI(e uri.Encoder) error

EncodeURI encodes V2ModelListLocation as URI form.

func (*V2ModelListLocation) GetDirectory

func (s *V2ModelListLocation) GetDirectory() OptString

GetDirectory returns the value of Directory.

func (*V2ModelListLocation) GetWorkspace

func (s *V2ModelListLocation) GetWorkspace() OptString

GetWorkspace returns the value of Workspace.

func (*V2ModelListLocation) SetDirectory

func (s *V2ModelListLocation) SetDirectory(val OptString)

SetDirectory sets the value of Directory.

func (*V2ModelListLocation) SetWorkspace

func (s *V2ModelListLocation) SetWorkspace(val OptString)

SetWorkspace sets the value of Workspace.

type V2ModelListOK

type V2ModelListOK struct {
	Data     []ModelV2Info `json:"data"`
	Location LocationInfo  `json:"location"`
}

func (*V2ModelListOK) Decode

func (s *V2ModelListOK) Decode(d *jx.Decoder) error

Decode decodes V2ModelListOK from json.

func (*V2ModelListOK) Encode

func (s *V2ModelListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2ModelListOK) GetData

func (s *V2ModelListOK) GetData() []ModelV2Info

GetData returns the value of Data.

func (*V2ModelListOK) GetLocation

func (s *V2ModelListOK) GetLocation() LocationInfo

GetLocation returns the value of Location.

func (*V2ModelListOK) MarshalJSON

func (s *V2ModelListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2ModelListOK) SetData

func (s *V2ModelListOK) SetData(val []ModelV2Info)

SetData sets the value of Data.

func (*V2ModelListOK) SetLocation

func (s *V2ModelListOK) SetLocation(val LocationInfo)

SetLocation sets the value of Location.

func (*V2ModelListOK) UnmarshalJSON

func (s *V2ModelListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2ModelListOK) Validate

func (s *V2ModelListOK) Validate() error

type V2ModelListParams

type V2ModelListParams struct {
	Location OptV2ModelListLocation `json:",omitempty,omitzero"`
}

V2ModelListParams is parameters of v2.model.list operation.

type V2ModelListRes

type V2ModelListRes interface {
	// contains filtered or unexported methods
}

type V2PermissionRequestListLocation

type V2PermissionRequestListLocation struct {
	Directory OptString `json:"directory"`
	Workspace OptString `json:"workspace"`
}

func (*V2PermissionRequestListLocation) DecodeURI

DecodeURI decodes V2PermissionRequestListLocation from URI form.

func (*V2PermissionRequestListLocation) EncodeURI

EncodeURI encodes V2PermissionRequestListLocation as URI form.

func (*V2PermissionRequestListLocation) GetDirectory

func (s *V2PermissionRequestListLocation) GetDirectory() OptString

GetDirectory returns the value of Directory.

func (*V2PermissionRequestListLocation) GetWorkspace

func (s *V2PermissionRequestListLocation) GetWorkspace() OptString

GetWorkspace returns the value of Workspace.

func (*V2PermissionRequestListLocation) SetDirectory

func (s *V2PermissionRequestListLocation) SetDirectory(val OptString)

SetDirectory sets the value of Directory.

func (*V2PermissionRequestListLocation) SetWorkspace

func (s *V2PermissionRequestListLocation) SetWorkspace(val OptString)

SetWorkspace sets the value of Workspace.

type V2PermissionRequestListOK

type V2PermissionRequestListOK struct {
	Data     []PermissionV2Request `json:"data"`
	Location LocationInfo          `json:"location"`
}

func (*V2PermissionRequestListOK) Decode

func (s *V2PermissionRequestListOK) Decode(d *jx.Decoder) error

Decode decodes V2PermissionRequestListOK from json.

func (*V2PermissionRequestListOK) Encode

func (s *V2PermissionRequestListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2PermissionRequestListOK) GetData

GetData returns the value of Data.

func (*V2PermissionRequestListOK) GetLocation

func (s *V2PermissionRequestListOK) GetLocation() LocationInfo

GetLocation returns the value of Location.

func (*V2PermissionRequestListOK) MarshalJSON

func (s *V2PermissionRequestListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2PermissionRequestListOK) SetData

SetData sets the value of Data.

func (*V2PermissionRequestListOK) SetLocation

func (s *V2PermissionRequestListOK) SetLocation(val LocationInfo)

SetLocation sets the value of Location.

func (*V2PermissionRequestListOK) UnmarshalJSON

func (s *V2PermissionRequestListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2PermissionRequestListOK) Validate

func (s *V2PermissionRequestListOK) Validate() error

type V2PermissionRequestListParams

type V2PermissionRequestListParams struct {
	Location OptV2PermissionRequestListLocation `json:",omitempty,omitzero"`
}

V2PermissionRequestListParams is parameters of v2.permission.request.list operation.

type V2PermissionRequestListRes

type V2PermissionRequestListRes interface {
	// contains filtered or unexported methods
}

type V2ProviderListLocation

type V2ProviderListLocation struct {
	Directory OptString `json:"directory"`
	Workspace OptString `json:"workspace"`
}

func (*V2ProviderListLocation) DecodeURI

func (s *V2ProviderListLocation) DecodeURI(d uri.Decoder) error

DecodeURI decodes V2ProviderListLocation from URI form.

func (*V2ProviderListLocation) EncodeURI

func (s *V2ProviderListLocation) EncodeURI(e uri.Encoder) error

EncodeURI encodes V2ProviderListLocation as URI form.

func (*V2ProviderListLocation) GetDirectory

func (s *V2ProviderListLocation) GetDirectory() OptString

GetDirectory returns the value of Directory.

func (*V2ProviderListLocation) GetWorkspace

func (s *V2ProviderListLocation) GetWorkspace() OptString

GetWorkspace returns the value of Workspace.

func (*V2ProviderListLocation) SetDirectory

func (s *V2ProviderListLocation) SetDirectory(val OptString)

SetDirectory sets the value of Directory.

func (*V2ProviderListLocation) SetWorkspace

func (s *V2ProviderListLocation) SetWorkspace(val OptString)

SetWorkspace sets the value of Workspace.

type V2ProviderListOK

type V2ProviderListOK struct {
	Data     []ProviderV2Info `json:"data"`
	Location LocationInfo     `json:"location"`
}

func (*V2ProviderListOK) Decode

func (s *V2ProviderListOK) Decode(d *jx.Decoder) error

Decode decodes V2ProviderListOK from json.

func (*V2ProviderListOK) Encode

func (s *V2ProviderListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2ProviderListOK) GetData

func (s *V2ProviderListOK) GetData() []ProviderV2Info

GetData returns the value of Data.

func (*V2ProviderListOK) GetLocation

func (s *V2ProviderListOK) GetLocation() LocationInfo

GetLocation returns the value of Location.

func (*V2ProviderListOK) MarshalJSON

func (s *V2ProviderListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2ProviderListOK) SetData

func (s *V2ProviderListOK) SetData(val []ProviderV2Info)

SetData sets the value of Data.

func (*V2ProviderListOK) SetLocation

func (s *V2ProviderListOK) SetLocation(val LocationInfo)

SetLocation sets the value of Location.

func (*V2ProviderListOK) UnmarshalJSON

func (s *V2ProviderListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2ProviderListOK) Validate

func (s *V2ProviderListOK) Validate() error

type V2ProviderListParams

type V2ProviderListParams struct {
	Location OptV2ProviderListLocation `json:",omitempty,omitzero"`
}

V2ProviderListParams is parameters of v2.provider.list operation.

type V2ProviderListRes

type V2ProviderListRes interface {
	// contains filtered or unexported methods
}

type V2QuestionRequestListLocation

type V2QuestionRequestListLocation struct {
	Directory OptString `json:"directory"`
	Workspace OptString `json:"workspace"`
}

func (*V2QuestionRequestListLocation) DecodeURI

DecodeURI decodes V2QuestionRequestListLocation from URI form.

func (*V2QuestionRequestListLocation) EncodeURI

EncodeURI encodes V2QuestionRequestListLocation as URI form.

func (*V2QuestionRequestListLocation) GetDirectory

func (s *V2QuestionRequestListLocation) GetDirectory() OptString

GetDirectory returns the value of Directory.

func (*V2QuestionRequestListLocation) GetWorkspace

func (s *V2QuestionRequestListLocation) GetWorkspace() OptString

GetWorkspace returns the value of Workspace.

func (*V2QuestionRequestListLocation) SetDirectory

func (s *V2QuestionRequestListLocation) SetDirectory(val OptString)

SetDirectory sets the value of Directory.

func (*V2QuestionRequestListLocation) SetWorkspace

func (s *V2QuestionRequestListLocation) SetWorkspace(val OptString)

SetWorkspace sets the value of Workspace.

type V2QuestionRequestListOK

type V2QuestionRequestListOK struct {
	Data     []QuestionV2Request `json:"data"`
	Location LocationInfo        `json:"location"`
}

func (*V2QuestionRequestListOK) Decode

func (s *V2QuestionRequestListOK) Decode(d *jx.Decoder) error

Decode decodes V2QuestionRequestListOK from json.

func (*V2QuestionRequestListOK) Encode

func (s *V2QuestionRequestListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2QuestionRequestListOK) GetData

GetData returns the value of Data.

func (*V2QuestionRequestListOK) GetLocation

func (s *V2QuestionRequestListOK) GetLocation() LocationInfo

GetLocation returns the value of Location.

func (*V2QuestionRequestListOK) MarshalJSON

func (s *V2QuestionRequestListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2QuestionRequestListOK) SetData

func (s *V2QuestionRequestListOK) SetData(val []QuestionV2Request)

SetData sets the value of Data.

func (*V2QuestionRequestListOK) SetLocation

func (s *V2QuestionRequestListOK) SetLocation(val LocationInfo)

SetLocation sets the value of Location.

func (*V2QuestionRequestListOK) UnmarshalJSON

func (s *V2QuestionRequestListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2QuestionRequestListOK) Validate

func (s *V2QuestionRequestListOK) Validate() error

type V2QuestionRequestListParams

type V2QuestionRequestListParams struct {
	Location OptV2QuestionRequestListLocation `json:",omitempty,omitzero"`
}

V2QuestionRequestListParams is parameters of v2.question.request.list operation.

type V2QuestionRequestListRes

type V2QuestionRequestListRes interface {
	// contains filtered or unexported methods
}

type V2SessionContextNotFoundApplicationJSON

type V2SessionContextNotFoundApplicationJSON jx.Raw

func (*V2SessionContextNotFoundApplicationJSON) Decode

Decode decodes V2SessionContextNotFoundApplicationJSON from json.

func (V2SessionContextNotFoundApplicationJSON) Encode

Encode encodes V2SessionContextNotFoundApplicationJSON as json.

func (V2SessionContextNotFoundApplicationJSON) MarshalJSON

func (s V2SessionContextNotFoundApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionContextNotFoundApplicationJSON) UnmarshalJSON

func (s *V2SessionContextNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionContextOK

type V2SessionContextOK struct {
	Data []SessionMessage `json:"data"`
}

func (*V2SessionContextOK) Decode

func (s *V2SessionContextOK) Decode(d *jx.Decoder) error

Decode decodes V2SessionContextOK from json.

func (*V2SessionContextOK) Encode

func (s *V2SessionContextOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2SessionContextOK) GetData

func (s *V2SessionContextOK) GetData() []SessionMessage

GetData returns the value of Data.

func (*V2SessionContextOK) MarshalJSON

func (s *V2SessionContextOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionContextOK) SetData

func (s *V2SessionContextOK) SetData(val []SessionMessage)

SetData sets the value of Data.

func (*V2SessionContextOK) UnmarshalJSON

func (s *V2SessionContextOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionContextOK) Validate

func (s *V2SessionContextOK) Validate() error

type V2SessionContextParams

type V2SessionContextParams struct {
	SessionID string
}

V2SessionContextParams is parameters of v2.session.context operation.

type V2SessionContextRes

type V2SessionContextRes interface {
	// contains filtered or unexported methods
}

type V2SessionListBadRequestApplicationJSON

type V2SessionListBadRequestApplicationJSON jx.Raw

func (*V2SessionListBadRequestApplicationJSON) Decode

Decode decodes V2SessionListBadRequestApplicationJSON from json.

func (V2SessionListBadRequestApplicationJSON) Encode

Encode encodes V2SessionListBadRequestApplicationJSON as json.

func (V2SessionListBadRequestApplicationJSON) MarshalJSON

func (s V2SessionListBadRequestApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionListBadRequestApplicationJSON) UnmarshalJSON

func (s *V2SessionListBadRequestApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionListOrder

type V2SessionListOrder string
const (
	V2SessionListOrderAsc  V2SessionListOrder = "asc"
	V2SessionListOrderDesc V2SessionListOrder = "desc"
)

func (V2SessionListOrder) AllValues

func (V2SessionListOrder) AllValues() []V2SessionListOrder

AllValues returns all V2SessionListOrder values.

func (V2SessionListOrder) MarshalText

func (s V2SessionListOrder) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*V2SessionListOrder) UnmarshalText

func (s *V2SessionListOrder) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (V2SessionListOrder) Validate

func (s V2SessionListOrder) Validate() error

type V2SessionListParams

type V2SessionListParams struct {
	Workspace OptString             `json:",omitempty,omitzero"`
	Limit     OptFloat64            `json:",omitempty,omitzero"`
	Order     OptV2SessionListOrder `json:",omitempty,omitzero"`
	Search    OptString             `json:",omitempty,omitzero"`
	Directory OptString             `json:",omitempty,omitzero"`
	Project   OptString             `json:",omitempty,omitzero"`
	Subpath   OptString             `json:",omitempty,omitzero"`
	Cursor    OptString             `json:",omitempty,omitzero"`
}

V2SessionListParams is parameters of v2.session.list operation.

type V2SessionListRes

type V2SessionListRes interface {
	// contains filtered or unexported methods
}

type V2SessionMessagesBadRequestApplicationJSON

type V2SessionMessagesBadRequestApplicationJSON jx.Raw

func (*V2SessionMessagesBadRequestApplicationJSON) Decode

Decode decodes V2SessionMessagesBadRequestApplicationJSON from json.

func (V2SessionMessagesBadRequestApplicationJSON) Encode

Encode encodes V2SessionMessagesBadRequestApplicationJSON as json.

func (V2SessionMessagesBadRequestApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionMessagesBadRequestApplicationJSON) UnmarshalJSON

func (s *V2SessionMessagesBadRequestApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionMessagesNotFoundApplicationJSON

type V2SessionMessagesNotFoundApplicationJSON jx.Raw

func (*V2SessionMessagesNotFoundApplicationJSON) Decode

Decode decodes V2SessionMessagesNotFoundApplicationJSON from json.

func (V2SessionMessagesNotFoundApplicationJSON) Encode

Encode encodes V2SessionMessagesNotFoundApplicationJSON as json.

func (V2SessionMessagesNotFoundApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionMessagesNotFoundApplicationJSON) UnmarshalJSON

func (s *V2SessionMessagesNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionMessagesOrder

type V2SessionMessagesOrder string
const (
	V2SessionMessagesOrderAsc  V2SessionMessagesOrder = "asc"
	V2SessionMessagesOrderDesc V2SessionMessagesOrder = "desc"
)

func (V2SessionMessagesOrder) AllValues

AllValues returns all V2SessionMessagesOrder values.

func (V2SessionMessagesOrder) MarshalText

func (s V2SessionMessagesOrder) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*V2SessionMessagesOrder) UnmarshalText

func (s *V2SessionMessagesOrder) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (V2SessionMessagesOrder) Validate

func (s V2SessionMessagesOrder) Validate() error

type V2SessionMessagesParams

type V2SessionMessagesParams struct {
	SessionID string
	Limit     OptFloat64                `json:",omitempty,omitzero"`
	Order     OptV2SessionMessagesOrder `json:",omitempty,omitzero"`
	Cursor    OptString                 `json:",omitempty,omitzero"`
}

V2SessionMessagesParams is parameters of v2.session.messages operation.

type V2SessionMessagesRes

type V2SessionMessagesRes interface {
	// contains filtered or unexported methods
}

type V2SessionPermissionListNotFoundApplicationJSON

type V2SessionPermissionListNotFoundApplicationJSON jx.Raw

func (*V2SessionPermissionListNotFoundApplicationJSON) Decode

Decode decodes V2SessionPermissionListNotFoundApplicationJSON from json.

func (V2SessionPermissionListNotFoundApplicationJSON) Encode

Encode encodes V2SessionPermissionListNotFoundApplicationJSON as json.

func (V2SessionPermissionListNotFoundApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPermissionListNotFoundApplicationJSON) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionPermissionListOK

type V2SessionPermissionListOK struct {
	Data []PermissionV2Request `json:"data"`
}

func (*V2SessionPermissionListOK) Decode

func (s *V2SessionPermissionListOK) Decode(d *jx.Decoder) error

Decode decodes V2SessionPermissionListOK from json.

func (*V2SessionPermissionListOK) Encode

func (s *V2SessionPermissionListOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2SessionPermissionListOK) GetData

GetData returns the value of Data.

func (*V2SessionPermissionListOK) MarshalJSON

func (s *V2SessionPermissionListOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPermissionListOK) SetData

SetData sets the value of Data.

func (*V2SessionPermissionListOK) UnmarshalJSON

func (s *V2SessionPermissionListOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionPermissionListOK) Validate

func (s *V2SessionPermissionListOK) Validate() error

type V2SessionPermissionListParams

type V2SessionPermissionListParams struct {
	SessionID string
}

V2SessionPermissionListParams is parameters of v2.session.permission.list operation.

type V2SessionPermissionListRes

type V2SessionPermissionListRes interface {
	// contains filtered or unexported methods
}

type V2SessionPermissionReplyNoContent

type V2SessionPermissionReplyNoContent struct{}

V2SessionPermissionReplyNoContent is response for V2SessionPermissionReply operation.

type V2SessionPermissionReplyNotFoundApplicationJSON

type V2SessionPermissionReplyNotFoundApplicationJSON jx.Raw

func (*V2SessionPermissionReplyNotFoundApplicationJSON) Decode

Decode decodes V2SessionPermissionReplyNotFoundApplicationJSON from json.

func (V2SessionPermissionReplyNotFoundApplicationJSON) Encode

Encode encodes V2SessionPermissionReplyNotFoundApplicationJSON as json.

func (V2SessionPermissionReplyNotFoundApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPermissionReplyNotFoundApplicationJSON) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionPermissionReplyParams

type V2SessionPermissionReplyParams struct {
	SessionID string
	RequestID string
}

V2SessionPermissionReplyParams is parameters of v2.session.permission.reply operation.

type V2SessionPermissionReplyReq

type V2SessionPermissionReplyReq struct {
	Message OptString         `json:"message"`
	Reply   PermissionV2Reply `json:"reply"`
}

func (*V2SessionPermissionReplyReq) Decode

Decode decodes V2SessionPermissionReplyReq from json.

func (*V2SessionPermissionReplyReq) Encode

func (s *V2SessionPermissionReplyReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2SessionPermissionReplyReq) GetMessage

func (s *V2SessionPermissionReplyReq) GetMessage() OptString

GetMessage returns the value of Message.

func (*V2SessionPermissionReplyReq) GetReply

GetReply returns the value of Reply.

func (*V2SessionPermissionReplyReq) MarshalJSON

func (s *V2SessionPermissionReplyReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPermissionReplyReq) SetMessage

func (s *V2SessionPermissionReplyReq) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*V2SessionPermissionReplyReq) SetReply

SetReply sets the value of Reply.

func (*V2SessionPermissionReplyReq) UnmarshalJSON

func (s *V2SessionPermissionReplyReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionPermissionReplyReq) Validate

func (s *V2SessionPermissionReplyReq) Validate() error

type V2SessionPermissionReplyRes

type V2SessionPermissionReplyRes interface {
	// contains filtered or unexported methods
}

type V2SessionPromptNotFoundApplicationJSON

type V2SessionPromptNotFoundApplicationJSON jx.Raw

func (*V2SessionPromptNotFoundApplicationJSON) Decode

Decode decodes V2SessionPromptNotFoundApplicationJSON from json.

func (V2SessionPromptNotFoundApplicationJSON) Encode

Encode encodes V2SessionPromptNotFoundApplicationJSON as json.

func (V2SessionPromptNotFoundApplicationJSON) MarshalJSON

func (s V2SessionPromptNotFoundApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPromptNotFoundApplicationJSON) UnmarshalJSON

func (s *V2SessionPromptNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionPromptOK

type V2SessionPromptOK struct {
	Data SessionInputAdmitted `json:"data"`
}

func (*V2SessionPromptOK) Decode

func (s *V2SessionPromptOK) Decode(d *jx.Decoder) error

Decode decodes V2SessionPromptOK from json.

func (*V2SessionPromptOK) Encode

func (s *V2SessionPromptOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2SessionPromptOK) GetData

GetData returns the value of Data.

func (*V2SessionPromptOK) MarshalJSON

func (s *V2SessionPromptOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPromptOK) SetData

func (s *V2SessionPromptOK) SetData(val SessionInputAdmitted)

SetData sets the value of Data.

func (*V2SessionPromptOK) UnmarshalJSON

func (s *V2SessionPromptOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionPromptOK) Validate

func (s *V2SessionPromptOK) Validate() error

type V2SessionPromptParams

type V2SessionPromptParams struct {
	SessionID string
}

V2SessionPromptParams is parameters of v2.session.prompt operation.

type V2SessionPromptReq

type V2SessionPromptReq struct {
	Delivery OptV2SessionPromptReqDelivery `json:"delivery"`
	ID       OptString                     `json:"id"`
	Prompt   Prompt                        `json:"prompt"`
	Resume   OptBool                       `json:"resume"`
}

func (*V2SessionPromptReq) Decode

func (s *V2SessionPromptReq) Decode(d *jx.Decoder) error

Decode decodes V2SessionPromptReq from json.

func (*V2SessionPromptReq) Encode

func (s *V2SessionPromptReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*V2SessionPromptReq) GetDelivery

GetDelivery returns the value of Delivery.

func (*V2SessionPromptReq) GetID

func (s *V2SessionPromptReq) GetID() OptString

GetID returns the value of ID.

func (*V2SessionPromptReq) GetPrompt

func (s *V2SessionPromptReq) GetPrompt() Prompt

GetPrompt returns the value of Prompt.

func (*V2SessionPromptReq) GetResume

func (s *V2SessionPromptReq) GetResume() OptBool

GetResume returns the value of Resume.

func (*V2SessionPromptReq) MarshalJSON

func (s *V2SessionPromptReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionPromptReq) SetDelivery

SetDelivery sets the value of Delivery.

func (*V2SessionPromptReq) SetID

func (s *V2SessionPromptReq) SetID(val OptString)

SetID sets the value of ID.

func (*V2SessionPromptReq) SetPrompt

func (s *V2SessionPromptReq) SetPrompt(val Prompt)

SetPrompt sets the value of Prompt.

func (*V2SessionPromptReq) SetResume

func (s *V2SessionPromptReq) SetResume(val OptBool)

SetResume sets the value of Resume.

func (*V2SessionPromptReq) UnmarshalJSON

func (s *V2SessionPromptReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionPromptReq) Validate

func (s *V2SessionPromptReq) Validate() error

type V2SessionPromptReqDelivery

type V2SessionPromptReqDelivery string
const (
	V2SessionPromptReqDeliverySteer V2SessionPromptReqDelivery = "steer"
	V2SessionPromptReqDeliveryQueue V2SessionPromptReqDelivery = "queue"
)

func (V2SessionPromptReqDelivery) AllValues

AllValues returns all V2SessionPromptReqDelivery values.

func (*V2SessionPromptReqDelivery) Decode

Decode decodes V2SessionPromptReqDelivery from json.

func (V2SessionPromptReqDelivery) Encode

func (s V2SessionPromptReqDelivery) Encode(e *jx.Encoder)

Encode encodes V2SessionPromptReqDelivery as json.

func (V2SessionPromptReqDelivery) MarshalJSON

func (s V2SessionPromptReqDelivery) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (V2SessionPromptReqDelivery) MarshalText

func (s V2SessionPromptReqDelivery) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*V2SessionPromptReqDelivery) UnmarshalJSON

func (s *V2SessionPromptReqDelivery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*V2SessionPromptReqDelivery) UnmarshalText

func (s *V2SessionPromptReqDelivery) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (V2SessionPromptReqDelivery) Validate

func (s V2SessionPromptReqDelivery) Validate() error

type V2SessionPromptRes

type V2SessionPromptRes interface {
	// contains filtered or unexported methods
}

type V2SessionQuestionRejectNoContent

type V2SessionQuestionRejectNoContent struct{}

V2SessionQuestionRejectNoContent is response for V2SessionQuestionReject operation.

type V2SessionQuestionRejectNotFoundApplicationJSON

type V2SessionQuestionRejectNotFoundApplicationJSON jx.Raw

func (*V2SessionQuestionRejectNotFoundApplicationJSON) Decode

Decode decodes V2SessionQuestionRejectNotFoundApplicationJSON from json.

func (V2SessionQuestionRejectNotFoundApplicationJSON) Encode

Encode encodes V2SessionQuestionRejectNotFoundApplicationJSON as json.

func (V2SessionQuestionRejectNotFoundApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionQuestionRejectNotFoundApplicationJSON) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionQuestionRejectParams

type V2SessionQuestionRejectParams struct {
	SessionID string
	RequestID string
}

V2SessionQuestionRejectParams is parameters of v2.session.question.reject operation.

type V2SessionQuestionRejectRes

type V2SessionQuestionRejectRes interface {
	// contains filtered or unexported methods
}

type V2SessionQuestionReplyNoContent

type V2SessionQuestionReplyNoContent struct{}

V2SessionQuestionReplyNoContent is response for V2SessionQuestionReply operation.

type V2SessionQuestionReplyNotFoundApplicationJSON

type V2SessionQuestionReplyNotFoundApplicationJSON jx.Raw

func (*V2SessionQuestionReplyNotFoundApplicationJSON) Decode

Decode decodes V2SessionQuestionReplyNotFoundApplicationJSON from json.

func (V2SessionQuestionReplyNotFoundApplicationJSON) Encode

Encode encodes V2SessionQuestionReplyNotFoundApplicationJSON as json.

func (V2SessionQuestionReplyNotFoundApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionQuestionReplyNotFoundApplicationJSON) UnmarshalJSON

func (s *V2SessionQuestionReplyNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionQuestionReplyParams

type V2SessionQuestionReplyParams struct {
	SessionID string
	RequestID string
}

V2SessionQuestionReplyParams is parameters of v2.session.question.reply operation.

type V2SessionQuestionReplyRes

type V2SessionQuestionReplyRes interface {
	// contains filtered or unexported methods
}

type V2SessionWaitNoContent

type V2SessionWaitNoContent struct{}

V2SessionWaitNoContent is response for V2SessionWait operation.

type V2SessionWaitNotFoundApplicationJSON

type V2SessionWaitNotFoundApplicationJSON jx.Raw

func (*V2SessionWaitNotFoundApplicationJSON) Decode

Decode decodes V2SessionWaitNotFoundApplicationJSON from json.

func (V2SessionWaitNotFoundApplicationJSON) Encode

Encode encodes V2SessionWaitNotFoundApplicationJSON as json.

func (V2SessionWaitNotFoundApplicationJSON) MarshalJSON

func (s V2SessionWaitNotFoundApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*V2SessionWaitNotFoundApplicationJSON) UnmarshalJSON

func (s *V2SessionWaitNotFoundApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type V2SessionWaitParams

type V2SessionWaitParams struct {
	SessionID string
}

V2SessionWaitParams is parameters of v2.session.wait operation.

type V2SessionWaitRes

type V2SessionWaitRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL