dependencymodels

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Code generated by tools/generate from schema x-known-values; DO NOT EDIT.

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Code generated by tools/generate from schema x-known-values; DO NOT EDIT.

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Package dependencymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

View Source
const (
	HomeDeviceShareTypeUnlimitedTime HomeDeviceShareType = "UNLIMITED_TIME"
	ProductCategoryMower             ProductCategory     = "roborock.mower"
	ProductCategoryUnknown           ProductCategory     = "UNKNOWN"
	ProductCategoryVacuum            ProductCategory     = "robot.vacuum.cleaner"
	ProductCategoryWashingMachine    ProductCategory     = "roborock.wm"
	ProductCategoryWetDryVacuum      ProductCategory     = "roborock.wetdryvac"
	ProductPropertyModeReadOnly      ProductPropertyMode = "ro"
	ProductPropertyModeReadWrite     ProductPropertyMode = "rw"
	ProductPropertyTypeBoolean       ProductPropertyType = "BOOL"
	ProductPropertyTypeEnum          ProductPropertyType = "ENUM"
	ProductPropertyTypeRaw           ProductPropertyType = "RAW"
	ProductPropertyTypeString        ProductPropertyType = "STRING"
	ProductPropertyTypeValue         ProductPropertyType = "VALUE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type A01QueryDatapoints

type A01QueryDatapoints struct {
	// PropertyIDs JSON-encoded property ID array, for example "[201,209]". The value is a string, not an array.
	PropertyIDs string `json:"10000"`
}

A01QueryDatapoints A01 ID_QUERY payload. The numeric-key value is a JSON string containing the ordered property ID array, matching pinned Python behavior.

type A01QueryRequest

type A01QueryRequest struct {
	// Dps A01 ID_QUERY payload. The numeric-key value is a JSON string containing the ordered property ID array, matching pinned Python behavior.
	Dps A01QueryDatapoints `json:"dps"`

	// T Unix timestamp, in seconds.
	T int64 `json:"t"`
}

A01QueryRequest Encrypted MQTT request payload before frame padding.

type A01QueryResponse

type A01QueryResponse struct {
	// Dps Known typed appliance datapoints. Additional future properties are tolerated; the public query projects only selected supported properties.
	Dps A01QueryResponse_Dps `json:"dps"`

	// T Optional appliance timestamp, in Unix seconds.
	T *int64 `json:"t,omitempty"`
}

A01QueryResponse Appliance MQTT datapoint update. Replies may be split across multiple frames; the session merges selected datapoints until every requested ID arrives.

type A01QueryResponse_Dps

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

A01QueryResponse_Dps Known typed appliance datapoints. Additional future properties are tolerated; the public query projects only selected supported properties.

func (A01QueryResponse_Dps) AsDyadStateWire

func (t A01QueryResponse_Dps) AsDyadStateWire() (DyadStateWire, error)

AsDyadStateWire returns the union data inside the A01QueryResponse_Dps as a DyadStateWire

func (A01QueryResponse_Dps) AsZeoStateWire

func (t A01QueryResponse_Dps) AsZeoStateWire() (ZeoStateWire, error)

AsZeoStateWire returns the union data inside the A01QueryResponse_Dps as a ZeoStateWire

func (*A01QueryResponse_Dps) FromDyadStateWire

func (t *A01QueryResponse_Dps) FromDyadStateWire(v DyadStateWire) error

FromDyadStateWire overwrites any union data inside the A01QueryResponse_Dps as the provided DyadStateWire

func (*A01QueryResponse_Dps) FromZeoStateWire

func (t *A01QueryResponse_Dps) FromZeoStateWire(v ZeoStateWire) error

FromZeoStateWire overwrites any union data inside the A01QueryResponse_Dps as the provided ZeoStateWire

func (A01QueryResponse_Dps) MarshalJSON

func (t A01QueryResponse_Dps) MarshalJSON() ([]byte, error)

func (*A01QueryResponse_Dps) MergeDyadStateWire

func (t *A01QueryResponse_Dps) MergeDyadStateWire(v DyadStateWire) error

MergeDyadStateWire performs a merge with any union data inside the A01QueryResponse_Dps, using the provided DyadStateWire

func (*A01QueryResponse_Dps) MergeZeoStateWire

func (t *A01QueryResponse_Dps) MergeZeoStateWire(v ZeoStateWire) error

MergeZeoStateWire performs a merge with any union data inside the A01QueryResponse_Dps, using the provided ZeoStateWire

func (*A01QueryResponse_Dps) UnmarshalJSON

func (t *A01QueryResponse_Dps) UnmarshalJSON(b []byte) error

type A01SetRequest

type A01SetRequest struct {
	// Dps Only supplied settings are published; a Zeo cycle start includes the start signal, mode, and program together.
	Dps A01SetRequest_Dps `json:"dps"`

	// T Unix timestamp, in seconds.
	T int64 `json:"t"`
}

A01SetRequest Sparse MQTT setting publication or bundled washer start payload before encryption.

type A01SetRequest_Dps

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

A01SetRequest_Dps Only supplied settings are published; a Zeo cycle start includes the start signal, mode, and program together.

func (A01SetRequest_Dps) AsSetDyadSettingsWire

func (t A01SetRequest_Dps) AsSetDyadSettingsWire() (SetDyadSettingsWire, error)

AsSetDyadSettingsWire returns the union data inside the A01SetRequest_Dps as a SetDyadSettingsWire

func (A01SetRequest_Dps) AsSetZeoSettingsWire

func (t A01SetRequest_Dps) AsSetZeoSettingsWire() (SetZeoSettingsWire, error)

AsSetZeoSettingsWire returns the union data inside the A01SetRequest_Dps as a SetZeoSettingsWire

func (A01SetRequest_Dps) AsStartZeoWire

func (t A01SetRequest_Dps) AsStartZeoWire() (StartZeoWire, error)

AsStartZeoWire returns the union data inside the A01SetRequest_Dps as a StartZeoWire

func (*A01SetRequest_Dps) FromSetDyadSettingsWire

func (t *A01SetRequest_Dps) FromSetDyadSettingsWire(v SetDyadSettingsWire) error

FromSetDyadSettingsWire overwrites any union data inside the A01SetRequest_Dps as the provided SetDyadSettingsWire

func (*A01SetRequest_Dps) FromSetZeoSettingsWire

func (t *A01SetRequest_Dps) FromSetZeoSettingsWire(v SetZeoSettingsWire) error

FromSetZeoSettingsWire overwrites any union data inside the A01SetRequest_Dps as the provided SetZeoSettingsWire

func (*A01SetRequest_Dps) FromStartZeoWire

func (t *A01SetRequest_Dps) FromStartZeoWire(v StartZeoWire) error

FromStartZeoWire overwrites any union data inside the A01SetRequest_Dps as the provided StartZeoWire

func (A01SetRequest_Dps) MarshalJSON

func (t A01SetRequest_Dps) MarshalJSON() ([]byte, error)

func (*A01SetRequest_Dps) MergeSetDyadSettingsWire

func (t *A01SetRequest_Dps) MergeSetDyadSettingsWire(v SetDyadSettingsWire) error

MergeSetDyadSettingsWire performs a merge with any union data inside the A01SetRequest_Dps, using the provided SetDyadSettingsWire

func (*A01SetRequest_Dps) MergeSetZeoSettingsWire

func (t *A01SetRequest_Dps) MergeSetZeoSettingsWire(v SetZeoSettingsWire) error

MergeSetZeoSettingsWire performs a merge with any union data inside the A01SetRequest_Dps, using the provided SetZeoSettingsWire

func (*A01SetRequest_Dps) MergeStartZeoWire

func (t *A01SetRequest_Dps) MergeStartZeoWire(v StartZeoWire) error

MergeStartZeoWire performs a merge with any union data inside the A01SetRequest_Dps, using the provided StartZeoWire

func (*A01SetRequest_Dps) UnmarshalJSON

func (t *A01SetRequest_Dps) UnmarshalJSON(b []byte) error

type Acknowledgement

type Acknowledgement = []CommandAcceptance

Acknowledgement Expected command acceptance is ["ok"].

type Agreement

type Agreement struct {
	MajorVersion         int64                      `json:"majorVersion"`
	MinorVersion         int64                      `json:"minorVersion"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

Agreement defines model for Agreement.

func (Agreement) Get

func (a Agreement) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for Agreement. Returns the specified element and whether it was found

func (Agreement) MarshalJSON

func (a Agreement) MarshalJSON() ([]byte, error)

Override default JSON handling for Agreement to handle AdditionalProperties

func (*Agreement) Set

func (a *Agreement) Set(fieldName string, value json.RawMessage)

Setter for additional properties for Agreement

func (*Agreement) UnmarshalJSON

func (a *Agreement) UnmarshalJSON(b []byte) error

Override default JSON handling for Agreement to handle AdditionalProperties

type AgreementResponse

type AgreementResponse struct {
	Code                 int                        `json:"code"`
	Data                 *Agreement                 `json:"data"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

AgreementResponse defines model for AgreementResponse.

func (AgreementResponse) Get

func (a AgreementResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for AgreementResponse. Returns the specified element and whether it was found

func (AgreementResponse) MarshalJSON

func (a AgreementResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for AgreementResponse to handle AdditionalProperties

func (*AgreementResponse) Set

func (a *AgreementResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for AgreementResponse

func (*AgreementResponse) UnmarshalJSON

func (a *AgreementResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for AgreementResponse to handle AdditionalProperties

type AppVersion

type AppVersion string

AppVersion defines model for AppVersion.

const (
	AppVersionIOS AppVersion = "4.54.02"
)

Defines values for AppVersion.

type CameraAcknowledgement

type CameraAcknowledgement = []string

CameraAcknowledgement defines model for CameraAcknowledgement.

type CameraCheckPasswordRPCJSONRequestBody

type CameraCheckPasswordRPCJSONRequestBody = CameraPasswordParameters

CameraCheckPasswordRPCJSONRequestBody defines body for CameraCheckPasswordRPC for application/json ContentType.

type CameraDeviceICE

type CameraDeviceICE struct {
	DevIce *string `json:"dev_ice,omitempty"`
	Ice    *string `json:"ice,omitempty"`
}

CameraDeviceICE defines model for CameraDeviceICE.

type CameraDeviceSDP

type CameraDeviceSDP struct {
	// DevSdp Base64 encoded answer envelope, or the retry token.
	DevSdp *string `json:"dev_sdp,omitempty"`
	Sdp    *string `json:"sdp,omitempty"`
}

CameraDeviceSDP defines model for CameraDeviceSDP.

type CameraEmptyParameters

type CameraEmptyParameters = struct{}

CameraEmptyParameters defines model for CameraEmptyParameters.

type CameraGetICERPCJSONRequestBody

type CameraGetICERPCJSONRequestBody = CameraEmptyParameters

CameraGetICERPCJSONRequestBody defines body for CameraGetICERPC for application/json ContentType.

type CameraGetSDPRPCJSONRequestBody

type CameraGetSDPRPCJSONRequestBody = CameraEmptyParameters

CameraGetSDPRPCJSONRequestBody defines body for CameraGetSDPRPC for application/json ContentType.

type CameraGetTURNRPCJSONRequestBody

type CameraGetTURNRPCJSONRequestBody = CameraEmptyParameters

CameraGetTURNRPCJSONRequestBody defines body for CameraGetTURNRPC for application/json ContentType.

type CameraICEParameters

type CameraICEParameters struct {
	Ice string `json:"ice"`
}

CameraICEParameters defines model for CameraICEParameters.

type CameraPasswordParameters

type CameraPasswordParameters struct {
	Password string `json:"password"`
}

CameraPasswordParameters defines model for CameraPasswordParameters.

type CameraPreviewParameters

type CameraPreviewParameters struct {
	Password string `json:"password"`
	Quality  string `json:"quality"`
}

CameraPreviewParameters defines model for CameraPreviewParameters.

type CameraRPCMethod

type CameraRPCMethod string

CameraRPCMethod defines model for CameraRPCMethod.

const (
	RPCCameraCheckPassword CameraRPCMethod = "check_homesec_password"
	RPCCameraGetICE        CameraRPCMethod = "get_device_ice"
	RPCCameraGetSDP        CameraRPCMethod = "get_device_sdp"
	RPCCameraGetTURN       CameraRPCMethod = "get_turn_server"
	RPCCameraSendICE       CameraRPCMethod = "send_ice_to_robot"
	RPCCameraSendSDP       CameraRPCMethod = "send_sdp_to_robot"
	RPCCameraStartPreview  CameraRPCMethod = "start_camera_preview"
	RPCCameraStopPreview   CameraRPCMethod = "stop_camera_preview"
)

Defines values for CameraRPCMethod.

type CameraSDPEnvelope

type CameraSDPEnvelope struct {
	Sdp string `json:"sdp"`

	// Type SDP negotiation direction.
	Type CameraSDPType `json:"type"`
}

CameraSDPEnvelope defines model for CameraSDPEnvelope.

type CameraSDPParameters

type CameraSDPParameters struct {
	AppSdp string `json:"app_sdp"`
}

CameraSDPParameters defines model for CameraSDPParameters.

type CameraSDPRetry

type CameraSDPRetry string

CameraSDPRetry Device requests bounded polling while answer is not ready.

const (
	CameraSDPRetryPending CameraSDPRetry = "retry"
)

Defines values for CameraSDPRetry.

type CameraSDPType

type CameraSDPType string

CameraSDPType SDP negotiation direction.

const (
	CameraSDPTypeAnswer CameraSDPType = "answer"
	CameraSDPTypeOffer  CameraSDPType = "offer"
)

Defines values for CameraSDPType.

type CameraSendICERPCJSONRequestBody

type CameraSendICERPCJSONRequestBody = CameraICEParameters

CameraSendICERPCJSONRequestBody defines body for CameraSendICERPC for application/json ContentType.

type CameraSendSDPRPCJSONRequestBody

type CameraSendSDPRPCJSONRequestBody = CameraSDPParameters

CameraSendSDPRPCJSONRequestBody defines body for CameraSendSDPRPC for application/json ContentType.

type CameraStartPreviewRPCJSONRequestBody

type CameraStartPreviewRPCJSONRequestBody = CameraPreviewParameters

CameraStartPreviewRPCJSONRequestBody defines body for CameraStartPreviewRPC for application/json ContentType.

type CameraStopPreviewRPCJSONRequestBody

type CameraStopPreviewRPCJSONRequestBody = CameraEmptyParameters

CameraStopPreviewRPCJSONRequestBody defines body for CameraStopPreviewRPC for application/json ContentType.

type CameraTURN

type CameraTURN struct {
	Credential *string `json:"credential,omitempty"`
	Pwd        *string `json:"pwd,omitempty"`
	Url        *string `json:"url,omitempty"`
	User       *string `json:"user,omitempty"`
	Username   *string `json:"username,omitempty"`
}

CameraTURN defines model for CameraTURN.

type ChargeStatus

type ChargeStatus int64

ChargeStatus Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	ChargeStatusChargeWaiting ChargeStatus = 0
	ChargeStatusCharging      ChargeStatus = 1
	ChargeStatusUnknown       ChargeStatus = -1
)

Defines values for ChargeStatus.

type CleanFinishReason

type CleanFinishReason int64

CleanFinishReason Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	CleanFinishReasonAreaUnreachable      CleanFinishReason = 61
	CleanFinishReasonAreaUnreachable2     CleanFinishReason = 62
	CleanFinishReasonBackToWashFailure    CleanFinishReason = 68
	CleanFinishReasonBreakpoint           CleanFinishReason = 32
	CleanFinishReasonBreakpoint2          CleanFinishReason = 33
	CleanFinishReasonBreakpoint4          CleanFinishReason = 102
	CleanFinishReasonCleanupInterrupted   CleanFinishReason = 24
	CleanFinishReasonCleanupInterrupted10 CleanFinishReason = 109
	CleanFinishReasonCleanupInterrupted11 CleanFinishReason = 110
	CleanFinishReasonCleanupInterrupted2  CleanFinishReason = 34
	CleanFinishReasonCleanupInterrupted3  CleanFinishReason = 64
	CleanFinishReasonCleanupInterrupted4  CleanFinishReason = 51
	CleanFinishReasonCleanupInterrupted5  CleanFinishReason = 101
	CleanFinishReasonCleanupInterrupted6  CleanFinishReason = 104
	CleanFinishReasonCleanupInterrupted7  CleanFinishReason = 105
	CleanFinishReasonCleanupInterrupted8  CleanFinishReason = 106
	CleanFinishReasonCleanupInterrupted9  CleanFinishReason = 107
	CleanFinishReasonFinishedCleaning     CleanFinishReason = 52
	CleanFinishReasonFinishedCleaning2    CleanFinishReason = 54
	CleanFinishReasonFinishedCleaning3    CleanFinishReason = 55
	CleanFinishReasonFinishedCleaning4    CleanFinishReason = 56
	CleanFinishReasonFinishedClenaing5    CleanFinishReason = 57
	CleanFinishReasonLocateFail           CleanFinishReason = 45
	CleanFinishReasonLocateFail2          CleanFinishReason = 65
	CleanFinishReasonManualInterrupt      CleanFinishReason = 21
	CleanFinishReasonManualInterrupt10    CleanFinishReason = 60
	CleanFinishReasonManualInterrupt11    CleanFinishReason = 103
	CleanFinishReasonManualInterrupt12    CleanFinishReason = 29
	CleanFinishReasonManualInterrupt2     CleanFinishReason = 21
	CleanFinishReasonManualInterrupt3     CleanFinishReason = 35
	CleanFinishReasonManualInterrupt4     CleanFinishReason = 36
	CleanFinishReasonManualInterrupt5     CleanFinishReason = 37
	CleanFinishReasonManualInterrupt6     CleanFinishReason = 43
	CleanFinishReasonManualInterrupt7     CleanFinishReason = 48
	CleanFinishReasonManualInterrupt8     CleanFinishReason = 49
	CleanFinishReasonManualInterrupt9     CleanFinishReason = 50
	CleanFinishReasonPatrolFail           CleanFinishReason = 115
	CleanFinishReasonPatrolSuccess        CleanFinishReason = 114
	CleanFinishReasonPetPatrolFail        CleanFinishReason = 117
	CleanFinishReasonPetPatrolSuccess     CleanFinishReason = 116
	CleanFinishReasonWashingError         CleanFinishReason = 67
)

Defines values for CleanFinishReason.

type CleanRecord

type CleanRecord struct {
	Area       *int64 `json:"area,omitempty"`
	AvoidCount *int64 `json:"avoid_count,omitempty"`
	Begin      *int64 `json:"begin,omitempty"`

	// CleanType Open CleanType value; future firmware values are accepted.
	CleanType            *CleanType `json:"clean_type,omitempty"`
	Complete             *int64     `json:"complete,omitempty"`
	Duration             *int64     `json:"duration,omitempty"`
	DustCollectionStatus *int64     `json:"dust_collection_status,omitempty"`
	End                  *int64     `json:"end,omitempty"`
	Error                *int64     `json:"error,omitempty"`

	// FinishReason Open CleanFinishReason value; future firmware values are accepted.
	FinishReason *CleanFinishReason `json:"finish_reason,omitempty"`
	MapFlag      *int64             `json:"map_flag,omitempty"`

	// StartType Open CleanStartType value; future firmware values are accepted.
	StartType            *CleanStartType            `json:"start_type,omitempty"`
	WashCount            *int64                     `json:"wash_count,omitempty"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

CleanRecord Presence-aware CleanRecord inventory from pinned Python V1 containers; absent fields stay absent. Cleaning area is square millimeters and durations are seconds.

func (CleanRecord) Get

func (a CleanRecord) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for CleanRecord. Returns the specified element and whether it was found

func (CleanRecord) MarshalJSON

func (a CleanRecord) MarshalJSON() ([]byte, error)

Override default JSON handling for CleanRecord to handle AdditionalProperties

func (*CleanRecord) Set

func (a *CleanRecord) Set(fieldName string, value json.RawMessage)

Setter for additional properties for CleanRecord

func (*CleanRecord) UnmarshalJSON

func (a *CleanRecord) UnmarshalJSON(b []byte) error

Override default JSON handling for CleanRecord to handle AdditionalProperties

type CleanRecordLegacy

type CleanRecordLegacy = []int64

CleanRecordLegacy Legacy numeric record tuple: begin Unix time, end Unix time, duration seconds, area square millimeters. Additional numeric columns have unknown meaning and are not projected.

type CleanRecordParts

type CleanRecordParts = []CleanRecordParts_Item

CleanRecordParts Ordered multipart record response. Each part is an object or a legacy numeric tuple; deeper arbitrary array recursion is unsupported.

type CleanRecordParts_Item

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

CleanRecordParts_Item defines model for CleanRecordParts.Item.

func (CleanRecordParts_Item) AsCleanRecord

func (t CleanRecordParts_Item) AsCleanRecord() (CleanRecord, error)

AsCleanRecord returns the union data inside the CleanRecordParts_Item as a CleanRecord

func (CleanRecordParts_Item) AsCleanRecordLegacy

func (t CleanRecordParts_Item) AsCleanRecordLegacy() (CleanRecordLegacy, error)

AsCleanRecordLegacy returns the union data inside the CleanRecordParts_Item as a CleanRecordLegacy

func (*CleanRecordParts_Item) FromCleanRecord

func (t *CleanRecordParts_Item) FromCleanRecord(v CleanRecord) error

FromCleanRecord overwrites any union data inside the CleanRecordParts_Item as the provided CleanRecord

func (*CleanRecordParts_Item) FromCleanRecordLegacy

func (t *CleanRecordParts_Item) FromCleanRecordLegacy(v CleanRecordLegacy) error

FromCleanRecordLegacy overwrites any union data inside the CleanRecordParts_Item as the provided CleanRecordLegacy

func (CleanRecordParts_Item) MarshalJSON

func (t CleanRecordParts_Item) MarshalJSON() ([]byte, error)

func (*CleanRecordParts_Item) MergeCleanRecord

func (t *CleanRecordParts_Item) MergeCleanRecord(v CleanRecord) error

MergeCleanRecord performs a merge with any union data inside the CleanRecordParts_Item, using the provided CleanRecord

func (*CleanRecordParts_Item) MergeCleanRecordLegacy

func (t *CleanRecordParts_Item) MergeCleanRecordLegacy(v CleanRecordLegacy) error

MergeCleanRecordLegacy performs a merge with any union data inside the CleanRecordParts_Item, using the provided CleanRecordLegacy

func (*CleanRecordParts_Item) UnmarshalJSON

func (t *CleanRecordParts_Item) UnmarshalJSON(b []byte) error

type CleanRecordRPCResult

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

CleanRecordRPCResult One record object, a legacy numeric tuple, or ordered multipart record objects and nested legacy tuples.

func (CleanRecordRPCResult) AsCleanRecord

func (t CleanRecordRPCResult) AsCleanRecord() (CleanRecord, error)

AsCleanRecord returns the union data inside the CleanRecordRPCResult as a CleanRecord

func (CleanRecordRPCResult) AsCleanRecordLegacy

func (t CleanRecordRPCResult) AsCleanRecordLegacy() (CleanRecordLegacy, error)

AsCleanRecordLegacy returns the union data inside the CleanRecordRPCResult as a CleanRecordLegacy

func (CleanRecordRPCResult) AsCleanRecordParts

func (t CleanRecordRPCResult) AsCleanRecordParts() (CleanRecordParts, error)

AsCleanRecordParts returns the union data inside the CleanRecordRPCResult as a CleanRecordParts

func (*CleanRecordRPCResult) FromCleanRecord

func (t *CleanRecordRPCResult) FromCleanRecord(v CleanRecord) error

FromCleanRecord overwrites any union data inside the CleanRecordRPCResult as the provided CleanRecord

func (*CleanRecordRPCResult) FromCleanRecordLegacy

func (t *CleanRecordRPCResult) FromCleanRecordLegacy(v CleanRecordLegacy) error

FromCleanRecordLegacy overwrites any union data inside the CleanRecordRPCResult as the provided CleanRecordLegacy

func (*CleanRecordRPCResult) FromCleanRecordParts

func (t *CleanRecordRPCResult) FromCleanRecordParts(v CleanRecordParts) error

FromCleanRecordParts overwrites any union data inside the CleanRecordRPCResult as the provided CleanRecordParts

func (CleanRecordRPCResult) MarshalJSON

func (t CleanRecordRPCResult) MarshalJSON() ([]byte, error)

func (*CleanRecordRPCResult) MergeCleanRecord

func (t *CleanRecordRPCResult) MergeCleanRecord(v CleanRecord) error

MergeCleanRecord performs a merge with any union data inside the CleanRecordRPCResult, using the provided CleanRecord

func (*CleanRecordRPCResult) MergeCleanRecordLegacy

func (t *CleanRecordRPCResult) MergeCleanRecordLegacy(v CleanRecordLegacy) error

MergeCleanRecordLegacy performs a merge with any union data inside the CleanRecordRPCResult, using the provided CleanRecordLegacy

func (*CleanRecordRPCResult) MergeCleanRecordParts

func (t *CleanRecordRPCResult) MergeCleanRecordParts(v CleanRecordParts) error

MergeCleanRecordParts performs a merge with any union data inside the CleanRecordRPCResult, using the provided CleanRecordParts

func (*CleanRecordRPCResult) UnmarshalJSON

func (t *CleanRecordRPCResult) UnmarshalJSON(b []byte) error

type CleanSegmentsRPCJSONRequestBody

type CleanSegmentsRPCJSONRequestBody = SegmentParameters

CleanSegmentsRPCJSONRequestBody defines body for CleanSegmentsRPC for application/json ContentType.

type CleanStartType

type CleanStartType int64

CleanStartType Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	CleanStartTypeAlexa        CleanStartType = 801
	CleanStartTypeAlipay       CleanStartType = 902
	CleanStartTypeApp          CleanStartType = 2
	CleanStartTypeAqara        CleanStartType = 903
	CleanStartTypeButton       CleanStartType = 1
	CleanStartTypeClova        CleanStartType = 811
	CleanStartTypeDingdong     CleanStartType = 809
	CleanStartTypeDuer         CleanStartType = 808
	CleanStartTypeGoogle       CleanStartType = 802
	CleanStartTypeHisense      CleanStartType = 904
	CleanStartTypeHomekit      CleanStartType = 805
	CleanStartTypeHuawei       CleanStartType = 905
	CleanStartTypeIfttt        CleanStartType = 803
	CleanStartTypeMiHome       CleanStartType = 4
	CleanStartTypeQuickStart   CleanStartType = 5
	CleanStartTypeRoutines     CleanStartType = 101
	CleanStartTypeSchedule     CleanStartType = 3
	CleanStartTypeSiri         CleanStartType = 810
	CleanStartTypeSmartWatch   CleanStartType = 821
	CleanStartTypeTmallGenie   CleanStartType = 807
	CleanStartTypeVoiceControl CleanStartType = 13
	CleanStartTypeWechat       CleanStartType = 901
	CleanStartTypeWidgetLaunch CleanStartType = 820
	CleanStartTypeXiaoai       CleanStartType = 806
	CleanStartTypeYandex       CleanStartType = 804
)

Defines values for CleanStartType.

type CleanType

type CleanType int64

CleanType Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	CleanTypeAllZone     CleanType = 1
	CleanTypeDrawZone    CleanType = 2
	CleanTypePetPatrol   CleanType = 6
	CleanTypeQuickBuild  CleanType = 4
	CleanTypeSelectZone  CleanType = 3
	CleanTypeVideoPatrol CleanType = 5
)

Defines values for CleanType.

type CleanZonesRPCJSONRequestBody

type CleanZonesRPCJSONRequestBody = ZoneParameters

CleanZonesRPCJSONRequestBody defines body for CleanZonesRPC for application/json ContentType.

type CleaningState

type CleaningState int64

CleaningState Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	CleaningStateComplete                CleaningState = 0
	CleaningStateGlobalCleanNotComplete  CleaningState = 1
	CleaningStateSegmentCleanNotComplete CleaningState = 3
	CleaningStateZoneCleanNotComplete    CleaningState = 2
)

Defines values for CleaningState.

type CleaningSummary

type CleaningSummary struct {
	CleanArea            *int64                     `json:"clean_area,omitempty"`
	CleanCount           *int64                     `json:"clean_count,omitempty"`
	CleanTime            *int64                     `json:"clean_time,omitempty"`
	DustCollectionCount  *int64                     `json:"dust_collection_count,omitempty"`
	LastCleanT           *int64                     `json:"last_clean_t,omitempty"`
	Records              *[]int64                   `json:"records,omitempty"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

CleaningSummary Presence-aware CleaningSummary inventory from pinned Python V1 containers; absent fields stay absent. Cleaning area is square millimeters and durations are seconds.

func (CleaningSummary) Get

func (a CleaningSummary) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for CleaningSummary. Returns the specified element and whether it was found

func (CleaningSummary) MarshalJSON

func (a CleaningSummary) MarshalJSON() ([]byte, error)

Override default JSON handling for CleaningSummary to handle AdditionalProperties

func (*CleaningSummary) Set

func (a *CleaningSummary) Set(fieldName string, value json.RawMessage)

Setter for additional properties for CleaningSummary

func (*CleaningSummary) UnmarshalJSON

func (a *CleaningSummary) UnmarshalJSON(b []byte) error

Override default JSON handling for CleaningSummary to handle AdditionalProperties

type CleaningSummaryCounter

type CleaningSummaryCounter = int64

CleaningSummaryCounter Legacy tuple counter; null means unavailable.

type CleaningSummaryDuration

type CleaningSummaryDuration = int64

CleaningSummaryDuration Total cleaning time in seconds when the device returns only a scalar duration.

type CleaningSummaryLegacy

type CleaningSummaryLegacy = []json.RawMessage

CleaningSummaryLegacy Ordered clean_time, clean_area, clean_count, records; fourth entry is an array of record IDs. OpenAPI 3.0 represents the heterogeneous array elements; the SDK additionally enforces numeric counters in the first three positions and record IDs in the fourth.

type CleaningSummaryRPCResult

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

CleaningSummaryRPCResult Object, single duration, ordered legacy tuple, or singleton object array as supported by the pinned Python V1 converter.

func (CleaningSummaryRPCResult) AsCleaningSummary

func (t CleaningSummaryRPCResult) AsCleaningSummary() (CleaningSummary, error)

AsCleaningSummary returns the union data inside the CleaningSummaryRPCResult as a CleaningSummary

func (CleaningSummaryRPCResult) AsCleaningSummaryDuration

func (t CleaningSummaryRPCResult) AsCleaningSummaryDuration() (CleaningSummaryDuration, error)

AsCleaningSummaryDuration returns the union data inside the CleaningSummaryRPCResult as a CleaningSummaryDuration

func (CleaningSummaryRPCResult) AsCleaningSummaryLegacy

func (t CleaningSummaryRPCResult) AsCleaningSummaryLegacy() (CleaningSummaryLegacy, error)

AsCleaningSummaryLegacy returns the union data inside the CleaningSummaryRPCResult as a CleaningSummaryLegacy

func (CleaningSummaryRPCResult) AsCleaningSummarySingletonResult

func (t CleaningSummaryRPCResult) AsCleaningSummarySingletonResult() (CleaningSummarySingletonResult, error)

AsCleaningSummarySingletonResult returns the union data inside the CleaningSummaryRPCResult as a CleaningSummarySingletonResult

func (*CleaningSummaryRPCResult) FromCleaningSummary

func (t *CleaningSummaryRPCResult) FromCleaningSummary(v CleaningSummary) error

FromCleaningSummary overwrites any union data inside the CleaningSummaryRPCResult as the provided CleaningSummary

func (*CleaningSummaryRPCResult) FromCleaningSummaryDuration

func (t *CleaningSummaryRPCResult) FromCleaningSummaryDuration(v CleaningSummaryDuration) error

FromCleaningSummaryDuration overwrites any union data inside the CleaningSummaryRPCResult as the provided CleaningSummaryDuration

func (*CleaningSummaryRPCResult) FromCleaningSummaryLegacy

func (t *CleaningSummaryRPCResult) FromCleaningSummaryLegacy(v CleaningSummaryLegacy) error

FromCleaningSummaryLegacy overwrites any union data inside the CleaningSummaryRPCResult as the provided CleaningSummaryLegacy

func (*CleaningSummaryRPCResult) FromCleaningSummarySingletonResult

func (t *CleaningSummaryRPCResult) FromCleaningSummarySingletonResult(v CleaningSummarySingletonResult) error

FromCleaningSummarySingletonResult overwrites any union data inside the CleaningSummaryRPCResult as the provided CleaningSummarySingletonResult

func (CleaningSummaryRPCResult) MarshalJSON

func (t CleaningSummaryRPCResult) MarshalJSON() ([]byte, error)

func (*CleaningSummaryRPCResult) MergeCleaningSummary

func (t *CleaningSummaryRPCResult) MergeCleaningSummary(v CleaningSummary) error

MergeCleaningSummary performs a merge with any union data inside the CleaningSummaryRPCResult, using the provided CleaningSummary

func (*CleaningSummaryRPCResult) MergeCleaningSummaryDuration

func (t *CleaningSummaryRPCResult) MergeCleaningSummaryDuration(v CleaningSummaryDuration) error

MergeCleaningSummaryDuration performs a merge with any union data inside the CleaningSummaryRPCResult, using the provided CleaningSummaryDuration

func (*CleaningSummaryRPCResult) MergeCleaningSummaryLegacy

func (t *CleaningSummaryRPCResult) MergeCleaningSummaryLegacy(v CleaningSummaryLegacy) error

MergeCleaningSummaryLegacy performs a merge with any union data inside the CleaningSummaryRPCResult, using the provided CleaningSummaryLegacy

func (*CleaningSummaryRPCResult) MergeCleaningSummarySingletonResult

func (t *CleaningSummaryRPCResult) MergeCleaningSummarySingletonResult(v CleaningSummarySingletonResult) error

MergeCleaningSummarySingletonResult performs a merge with any union data inside the CleaningSummaryRPCResult, using the provided CleaningSummarySingletonResult

func (*CleaningSummaryRPCResult) UnmarshalJSON

func (t *CleaningSummaryRPCResult) UnmarshalJSON(b []byte) error

type CleaningSummaryRecordIDs

type CleaningSummaryRecordIDs = []int64

CleaningSummaryRecordIDs Legacy tuple fourth position contains cleaning record IDs.

type CleaningSummarySingletonResult

type CleaningSummarySingletonResult = []CleaningSummary

CleaningSummarySingletonResult defines model for CleaningSummarySingletonResult.

type ClientLanguage

type ClientLanguage string

ClientLanguage defines model for ClientLanguage.

const (
	ClientLanguageEnglish ClientLanguage = "en"
)

Defines values for ClientLanguage.

type CodeLoginForm

type CodeLoginForm struct {
	Code                 string                     `json:"code"`
	Country              string                     `json:"country"`
	CountryCode          string                     `json:"countryCode"`
	Email                string                     `json:"email"`
	MajorVersion         int64                      `json:"majorVersion"`
	MinorVersion         int64                      `json:"minorVersion"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

CodeLoginForm defines model for CodeLoginForm.

func (CodeLoginForm) Get

func (a CodeLoginForm) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for CodeLoginForm. Returns the specified element and whether it was found

func (CodeLoginForm) MarshalJSON

func (a CodeLoginForm) MarshalJSON() ([]byte, error)

Override default JSON handling for CodeLoginForm to handle AdditionalProperties

func (*CodeLoginForm) Set

func (a *CodeLoginForm) Set(fieldName string, value json.RawMessage)

Setter for additional properties for CodeLoginForm

func (*CodeLoginForm) UnmarshalJSON

func (a *CodeLoginForm) UnmarshalJSON(b []byte) error

Override default JSON handling for CodeLoginForm to handle AdditionalProperties

type CodeRequest

type CodeRequest struct {
	Email                string                     `json:"email"`
	Platform             string                     `json:"platform"`
	Type                 CodeRequestType            `json:"type"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

CodeRequest defines model for CodeRequest.

func (CodeRequest) Get

func (a CodeRequest) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for CodeRequest. Returns the specified element and whether it was found

func (CodeRequest) MarshalJSON

func (a CodeRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for CodeRequest to handle AdditionalProperties

func (*CodeRequest) Set

func (a *CodeRequest) Set(fieldName string, value json.RawMessage)

Setter for additional properties for CodeRequest

func (*CodeRequest) UnmarshalJSON

func (a *CodeRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for CodeRequest to handle AdditionalProperties

type CodeRequestType

type CodeRequestType string

CodeRequestType defines model for CodeRequest.Type.

const (
	Login CodeRequestType = "login"
)

Defines values for CodeRequestType.

type CodeResponse

type CodeResponse struct {
	Code                 int                        `json:"code"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

CodeResponse defines model for CodeResponse.

func (CodeResponse) Get

func (a CodeResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for CodeResponse. Returns the specified element and whether it was found

func (CodeResponse) MarshalJSON

func (a CodeResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for CodeResponse to handle AdditionalProperties

func (*CodeResponse) Set

func (a *CodeResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for CodeResponse

func (*CodeResponse) UnmarshalJSON

func (a *CodeResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for CodeResponse to handle AdditionalProperties

type CommandAcceptance

type CommandAcceptance string

CommandAcceptance Device command acceptance token. Unknown tokens are rejected by the public operation.

const (
	CommandAcceptanceOK CommandAcceptance = "ok"
)

Defines values for CommandAcceptance.

type Consumables

type Consumables struct {
	CleaningBrushWorkTimes  *int64                     `json:"cleaning_brush_work_times,omitempty"`
	DustCollectionWorkTimes *int64                     `json:"dust_collection_work_times,omitempty"`
	FilterElementWorkTime   *int64                     `json:"filter_element_work_time,omitempty"`
	FilterWorkTime          *int64                     `json:"filter_work_time,omitempty"`
	MainBrushWorkTime       *int64                     `json:"main_brush_work_time,omitempty"`
	MoprollerWorkTime       *int64                     `json:"moproller_work_time,omitempty"`
	SensorDirtyTime         *int64                     `json:"sensor_dirty_time,omitempty"`
	SideBrushWorkTime       *int64                     `json:"side_brush_work_time,omitempty"`
	StrainerWorkTimes       *int64                     `json:"strainer_work_times,omitempty"`
	AdditionalProperties    map[string]json.RawMessage `json:"-"`
}

Consumables Presence-aware Consumables inventory from pinned Python V1 containers; absent fields stay absent. Cleaning area is square millimeters and durations are seconds.

func (Consumables) Get

func (a Consumables) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for Consumables. Returns the specified element and whether it was found

func (Consumables) MarshalJSON

func (a Consumables) MarshalJSON() ([]byte, error)

Override default JSON handling for Consumables to handle AdditionalProperties

func (*Consumables) Set

func (a *Consumables) Set(fieldName string, value json.RawMessage)

Setter for additional properties for Consumables

func (*Consumables) UnmarshalJSON

func (a *Consumables) UnmarshalJSON(b []byte) error

Override default JSON handling for Consumables to handle AdditionalProperties

type ConsumablesRPCResult

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

ConsumablesRPCResult Device returns an object or an array containing exactly one object. Unknown firmware fields remain available as raw JSON properties.

func (ConsumablesRPCResult) AsConsumables

func (t ConsumablesRPCResult) AsConsumables() (Consumables, error)

AsConsumables returns the union data inside the ConsumablesRPCResult as a Consumables

func (ConsumablesRPCResult) AsConsumablesSingletonResult

func (t ConsumablesRPCResult) AsConsumablesSingletonResult() (ConsumablesSingletonResult, error)

AsConsumablesSingletonResult returns the union data inside the ConsumablesRPCResult as a ConsumablesSingletonResult

func (*ConsumablesRPCResult) FromConsumables

func (t *ConsumablesRPCResult) FromConsumables(v Consumables) error

FromConsumables overwrites any union data inside the ConsumablesRPCResult as the provided Consumables

func (*ConsumablesRPCResult) FromConsumablesSingletonResult

func (t *ConsumablesRPCResult) FromConsumablesSingletonResult(v ConsumablesSingletonResult) error

FromConsumablesSingletonResult overwrites any union data inside the ConsumablesRPCResult as the provided ConsumablesSingletonResult

func (ConsumablesRPCResult) MarshalJSON

func (t ConsumablesRPCResult) MarshalJSON() ([]byte, error)

func (*ConsumablesRPCResult) MergeConsumables

func (t *ConsumablesRPCResult) MergeConsumables(v Consumables) error

MergeConsumables performs a merge with any union data inside the ConsumablesRPCResult, using the provided Consumables

func (*ConsumablesRPCResult) MergeConsumablesSingletonResult

func (t *ConsumablesRPCResult) MergeConsumablesSingletonResult(v ConsumablesSingletonResult) error

MergeConsumablesSingletonResult performs a merge with any union data inside the ConsumablesRPCResult, using the provided ConsumablesSingletonResult

func (*ConsumablesRPCResult) UnmarshalJSON

func (t *ConsumablesRPCResult) UnmarshalJSON(b []byte) error

type ConsumablesSingletonResult

type ConsumablesSingletonResult = []Consumables

ConsumablesSingletonResult defines model for ConsumablesSingletonResult.

type DND

type DND struct {
	Enabled              *int64                     `json:"enabled,omitempty"`
	EndHour              *int64                     `json:"end_hour,omitempty"`
	EndMinute            *int64                     `json:"end_minute,omitempty"`
	StartHour            *int64                     `json:"start_hour,omitempty"`
	StartMinute          *int64                     `json:"start_minute,omitempty"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

DND defines model for DND.

func (DND) Get

func (a DND) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for DND. Returns the specified element and whether it was found

func (DND) MarshalJSON

func (a DND) MarshalJSON() ([]byte, error)

Override default JSON handling for DND to handle AdditionalProperties

func (*DND) Set

func (a *DND) Set(fieldName string, value json.RawMessage)

Setter for additional properties for DND

func (*DND) UnmarshalJSON

func (a *DND) UnmarshalJSON(b []byte) error

Override default JSON handling for DND to handle AdditionalProperties

type DNDRPCResult

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

DNDRPCResult Device returns an object or an array containing exactly one object. Unknown firmware fields remain available as raw JSON properties.

func (DNDRPCResult) AsDND

func (t DNDRPCResult) AsDND() (DND, error)

AsDND returns the union data inside the DNDRPCResult as a DND

func (DNDRPCResult) AsDNDSingletonResult

func (t DNDRPCResult) AsDNDSingletonResult() (DNDSingletonResult, error)

AsDNDSingletonResult returns the union data inside the DNDRPCResult as a DNDSingletonResult

func (*DNDRPCResult) FromDND

func (t *DNDRPCResult) FromDND(v DND) error

FromDND overwrites any union data inside the DNDRPCResult as the provided DND

func (*DNDRPCResult) FromDNDSingletonResult

func (t *DNDRPCResult) FromDNDSingletonResult(v DNDSingletonResult) error

FromDNDSingletonResult overwrites any union data inside the DNDRPCResult as the provided DNDSingletonResult

func (DNDRPCResult) MarshalJSON

func (t DNDRPCResult) MarshalJSON() ([]byte, error)

func (*DNDRPCResult) MergeDND

func (t *DNDRPCResult) MergeDND(v DND) error

MergeDND performs a merge with any union data inside the DNDRPCResult, using the provided DND

func (*DNDRPCResult) MergeDNDSingletonResult

func (t *DNDRPCResult) MergeDNDSingletonResult(v DNDSingletonResult) error

MergeDNDSingletonResult performs a merge with any union data inside the DNDRPCResult, using the provided DNDSingletonResult

func (*DNDRPCResult) UnmarshalJSON

func (t *DNDRPCResult) UnmarshalJSON(b []byte) error

type DNDSingletonResult

type DNDSingletonResult = []DND

DNDSingletonResult defines model for DNDSingletonResult.

type DeviceErrorCode

type DeviceErrorCode int64

DeviceErrorCode Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	DeviceErrorCodeAudioError             DeviceErrorCode = 56
	DeviceErrorCodeBatteryError           DeviceErrorCode = 14
	DeviceErrorCodeBumperStuck            DeviceErrorCode = 2
	DeviceErrorCodeCannotCrossCarpet      DeviceErrorCode = 31
	DeviceErrorCodeChargingError          DeviceErrorCode = 13
	DeviceErrorCodeCheckCleanCarouse      DeviceErrorCode = 55
	DeviceErrorCodeCleanCarouselException DeviceErrorCode = 52
	DeviceErrorCodeCleanCarouselWaterFull DeviceErrorCode = 53
	DeviceErrorCodeClearBrushException    DeviceErrorCode = 42
	DeviceErrorCodeClearBrushException2   DeviceErrorCode = 43
	DeviceErrorCodeClearWaterBoxException DeviceErrorCode = 41
	DeviceErrorCodeClearWaterBoxHoare     DeviceErrorCode = 38
	DeviceErrorCodeCliffSensorError       DeviceErrorCode = 4
	DeviceErrorCodeCollectDustError3      DeviceErrorCode = 34
	DeviceErrorCodeCollectDustError4      DeviceErrorCode = 35
	DeviceErrorCodeCompassError           DeviceErrorCode = 11
	DeviceErrorCodeDirtyWaterBoxHoare     DeviceErrorCode = 39
	DeviceErrorCodeDock                   DeviceErrorCode = 19
	DeviceErrorCodeDockLocatorError       DeviceErrorCode = 22
	DeviceErrorCodeDrainWaterException    DeviceErrorCode = 49
	DeviceErrorCodeFanError               DeviceErrorCode = 18
	DeviceErrorCodeFilterBlocked          DeviceErrorCode = 29
	DeviceErrorCodeFilterScreenException  DeviceErrorCode = 44
	DeviceErrorCodeInternalError          DeviceErrorCode = 32
	DeviceErrorCodeInvisibleWallDetected  DeviceErrorCode = 30
	DeviceErrorCodeLidarBlocked           DeviceErrorCode = 1
	DeviceErrorCodeLightTouch             DeviceErrorCode = 26
	DeviceErrorCodeLowBattery             DeviceErrorCode = 12
	DeviceErrorCodeMainBrushJammed        DeviceErrorCode = 5
	DeviceErrorCodeMoppingRoller1         DeviceErrorCode = 36
	DeviceErrorCodeMoppingRoller2         DeviceErrorCode = 45
	DeviceErrorCodeMoppingRollerError2    DeviceErrorCode = 37
	DeviceErrorCodeNoDustbin              DeviceErrorCode = 9
	DeviceErrorCodeNogoZoneDetected       DeviceErrorCode = 24
	DeviceErrorCodeNone                   DeviceErrorCode = 0
	DeviceErrorCodeOpticalFlowSensorDirt  DeviceErrorCode = 20
	DeviceErrorCodeReturnToDockFail       DeviceErrorCode = 23
	DeviceErrorCodeRobotOnCarpet          DeviceErrorCode = 28
	DeviceErrorCodeRobotTilted            DeviceErrorCode = 16
	DeviceErrorCodeRobotTrapped           DeviceErrorCode = 8
	DeviceErrorCodeSideBrushError         DeviceErrorCode = 17
	DeviceErrorCodeSideBrushJammed        DeviceErrorCode = 6
	DeviceErrorCodeSinkStrainerHoare      DeviceErrorCode = 40
	DeviceErrorCodeStrainerError          DeviceErrorCode = 10
	DeviceErrorCodeTemperatureProtection  DeviceErrorCode = 51
	DeviceErrorCodeUpWaterException       DeviceErrorCode = 48
	DeviceErrorCodeVerticalBumperPressed  DeviceErrorCode = 21
	DeviceErrorCodeVibrariseJammed        DeviceErrorCode = 27
	DeviceErrorCodeVisualSensor           DeviceErrorCode = 25
	DeviceErrorCodeWallSensorDirty        DeviceErrorCode = 15
	DeviceErrorCodeWaterCarriageDrop      DeviceErrorCode = 54
	DeviceErrorCodeWheelsJammed           DeviceErrorCode = 7
	DeviceErrorCodeWheelsSuspended        DeviceErrorCode = 3
)

Defines values for DeviceErrorCode.

type DeviceState

type DeviceState int64

DeviceState Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	DeviceStateAirDryingStopping       DeviceState = 202
	DeviceStateAttachingTheMop         DeviceState = 33
	DeviceStateBackToDockWashingDuster DeviceState = 6310
	DeviceStateChargerDisconnected     DeviceState = 2
	DeviceStateCharging                DeviceState = 8
	DeviceStateChargingComplete        DeviceState = 100
	DeviceStateChargingProblem         DeviceState = 9
	DeviceStateCleanMopCleaning        DeviceState = 6302
	DeviceStateCleanMopMopping         DeviceState = 6303
	DeviceStateCleaning                DeviceState = 5
	DeviceStateDetachingTheMop         DeviceState = 34
	DeviceStateDeviceOffline           DeviceState = 101
	DeviceStateDocking                 DeviceState = 15
	DeviceStateEggAttack               DeviceState = 30
	DeviceStateEmptyingTheBin          DeviceState = 22
	DeviceStateError                   DeviceState = 12
	DeviceStateGoingToTarget           DeviceState = 16
	DeviceStateGoingToWashTheMop       DeviceState = 26
	DeviceStateIdle                    DeviceState = 3
	DeviceStateInCall                  DeviceState = 28
	DeviceStateLocked                  DeviceState = 103
	DeviceStateManualMode              DeviceState = 7
	DeviceStateMapping                 DeviceState = 29
	DeviceStatePatrol                  DeviceState = 32
	DeviceStatePaused                  DeviceState = 10
	DeviceStateRemoteControlActive     DeviceState = 4
	DeviceStateReturningHome           DeviceState = 6
	DeviceStateRobotStatusMopping      DeviceState = 6301
	DeviceStateSegmentCleanMopCleaning DeviceState = 6305
	DeviceStateSegmentCleanMopMopping  DeviceState = 6306
	DeviceStateSegmentCleaning         DeviceState = 18
	DeviceStateSegmentMopping          DeviceState = 6304
	DeviceStateShuttingDown            DeviceState = 13
	DeviceStateSpotCleaning            DeviceState = 11
	DeviceStateStarting                DeviceState = 1
	DeviceStateUnknown                 DeviceState = 0
	DeviceStateUpdating                DeviceState = 14
	DeviceStateWashingTheMop           DeviceState = 23
	DeviceStateWashingTheMop2          DeviceState = 25
	DeviceStateZonedCleanMopCleaning   DeviceState = 6308
	DeviceStateZonedCleanMopMopping    DeviceState = 6309
	DeviceStateZonedCleaning           DeviceState = 17
	DeviceStateZonedMopping            DeviceState = 6307
)

Defines values for DeviceState.

type DisableDNDRPCJSONRequestBody

type DisableDNDRPCJSONRequestBody = NoParameters

DisableDNDRPCJSONRequestBody defines body for DisableDNDRPC for application/json ContentType.

type DockErrorCode

type DockErrorCode int64

DockErrorCode Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	DockErrorCodeAutoEmptyDockFanError     DockErrorCode = 33
	DockErrorCodeAutoEmptyDockVoltageError DockErrorCode = 35
	DockErrorCodeCleaningTankFullOrBlocked DockErrorCode = 53
	DockErrorCodeDirtyTankLatchOpen        DockErrorCode = 44
	DockErrorCodeDuctBlockage              DockErrorCode = 34
	DockErrorCodeMaintenanceBrushJammed    DockErrorCode = 42
	DockErrorCodeNoDustbin                 DockErrorCode = 46
	DockErrorCodeNoDustbinOrFilter         DockErrorCode = 32
	DockErrorCodeOk                        DockErrorCode = 0
	DockErrorCodeWasteWaterTankFull        DockErrorCode = 39
	DockErrorCodeWaterEmpty                DockErrorCode = 38
)

Defines values for DockErrorCode.

type DockType

type DockType int64

DockType Open numeric enum from pinned Python V1 mappings; unknown firmware values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	DockTypeCoupleDock      DockType = 13
	DockTypeF1CDock         DockType = 46
	DockTypeF1Dock          DockType = 41
	DockTypeF1RDock         DockType = 42
	DockTypeF1SDock         DockType = 44
	DockTypeF2RDock         DockType = 43
	DockTypeHeraDock        DockType = 24
	DockTypeK1CDock         DockType = 19
	DockTypeK1CLiteDock     DockType = 28
	DockTypeK1DDock         DockType = 37
	DockTypeK1Dock          DockType = 17
	DockTypeK1RDock         DockType = 29
	DockTypeK1SDock         DockType = 20
	DockTypeK1SProDock      DockType = 26
	DockTypeO0Dock          DockType = 0
	DockTypeO1Dock          DockType = 1
	DockTypeO2Dock          DockType = 2
	DockTypeO3Dock          DockType = 3
	DockTypeO3PlusDock      DockType = 6
	DockTypeO4Dock          DockType = 7
	DockTypeO5Dock          DockType = 10
	DockTypeO6Dock          DockType = 18
	DockTypeO7Dock          DockType = 35
	DockTypeO7HDock         DockType = 45
	DockTypeOcDock          DockType = 5
	DockTypePearlDock       DockType = 8
	DockTypePearlPlusDock   DockType = 9
	DockTypeShell2CDock     DockType = 15
	DockTypeShell2EDock     DockType = 22
	DockTypeShell2EHeatDock DockType = 40
	DockTypeShell2ELiteDock DockType = 30
	DockTypeShell2SDock     DockType = 11
	DockTypeShell3CDock     DockType = 23
	DockTypeShell3Dock      DockType = 14
	DockTypeShell3PDock     DockType = 38
	DockTypeShell3SDock     DockType = 16
	DockTypeShell4DDock     DockType = 39
	DockTypeShell4PDock     DockType = 33
	DockTypeShell4RDock     DockType = 32
	DockTypeShell4RcDock    DockType = 31
	DockTypeShell4SDock     DockType = 34
	DockTypeShellEDock      DockType = 21
	DockTypeType27Dock      DockType = 27
	DockTypeUnknown         DockType = -9999
)

Defines values for DockType.

type DyadStateWire

type DyadStateWire struct {
	// Status Status appliance datapoint.
	Status *int `json:"201,omitempty"`

	// SelfCleanMode SelfCleanMode appliance datapoint.
	SelfCleanMode *int `json:"202,omitempty"`

	// SelfCleanLevel SelfCleanLevel appliance datapoint.
	SelfCleanLevel *int `json:"203,omitempty"`

	// WarmLevel WarmLevel appliance datapoint.
	WarmLevel *int `json:"204,omitempty"`

	// CleanMode CleanMode appliance datapoint.
	CleanMode *int `json:"205,omitempty"`

	// Suction Suction appliance datapoint.
	Suction *int `json:"206,omitempty"`

	// WaterLevel WaterLevel appliance datapoint.
	WaterLevel *int `json:"207,omitempty"`

	// BrushSpeed BrushSpeed appliance datapoint.
	BrushSpeed *int `json:"208,omitempty"`

	// Power Power appliance datapoint.
	Power *int `json:"209,omitempty"`

	// CountdownTime CountdownTime appliance datapoint.
	CountdownTime *int `json:"210,omitempty"`

	// AutoSelfCleanSet AutoSelfCleanSet appliance datapoint.
	AutoSelfCleanSet *int `json:"212,omitempty"`

	// AutoDry AutoDry appliance datapoint.
	AutoDry *int `json:"213,omitempty"`

	// MeshLeft MeshLeft appliance datapoint.
	MeshLeft *int `json:"214,omitempty"`

	// BrushLeft BrushLeft appliance datapoint.
	BrushLeft *int `json:"215,omitempty"`

	// Error Error appliance datapoint.
	Error *int `json:"216,omitempty"`

	// Volume Speaker volume percent, from 0 through 100.
	Volume *int `json:"221,omitempty"`

	// StandLockAutoRun StandLockAutoRun appliance datapoint.
	StandLockAutoRun *int `json:"222,omitempty"`

	// AutoSelfCleanSetMode AutoSelfCleanSetMode appliance datapoint.
	AutoSelfCleanSetMode *int `json:"223,omitempty"`

	// AutoDryMode AutoDryMode appliance datapoint.
	AutoDryMode *int `json:"224,omitempty"`

	// SilentDryDuration SilentDryDuration appliance datapoint.
	SilentDryDuration *int `json:"225,omitempty"`

	// SilentMode SilentMode appliance datapoint.
	SilentMode *int `json:"226,omitempty"`

	// SilentModeStartTime Minute of day, from 0 through 1439.
	SilentModeStartTime *int `json:"227,omitempty"`

	// SilentModeEndTime Minute of day, from 0 through 1439.
	SilentModeEndTime *int `json:"228,omitempty"`

	// RecentRunTime Comma-delimited daily cleaning durations, in minutes.
	RecentRunTime *string `json:"229,omitempty"`

	// TotalRunTime TotalRunTime appliance datapoint.
	TotalRunTime *int `json:"230,omitempty"`

	// DryCountdown DryCountdown appliance datapoint.
	DryCountdown *int `json:"237,omitempty"`
}

DyadStateWire Numeric-key A01 appliance datapoints.

type FanSpeed

type FanSpeed int

FanSpeed Open device-dependent numeric enum; future values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	FanSpeedBalanced FanSpeed = 102
	FanSpeedMax      FanSpeed = 104
	FanSpeedMaxPlus  FanSpeed = 108
	FanSpeedOff      FanSpeed = 105
	FanSpeedQuiet    FanSpeed = 101
	FanSpeedTurbo    FanSpeed = 103
)

Defines values for FanSpeed.

type GetAgreementParams

type GetAgreementParams struct {
	Country          string         `form:"country" json:"country"`
	HeaderClientlang ClientLanguage `json:"header_clientlang"`
}

GetAgreementParams defines parameters for GetAgreement.

type GetCleanRecordRPCJSONRequestBody

type GetCleanRecordRPCJSONRequestBody = IntegerParameters

GetCleanRecordRPCJSONRequestBody defines body for GetCleanRecordRPC for application/json ContentType.

type GetCleaningSummaryRPCJSONRequestBody

type GetCleaningSummaryRPCJSONRequestBody = NoParameters

GetCleaningSummaryRPCJSONRequestBody defines body for GetCleaningSummaryRPC for application/json ContentType.

type GetConsumablesRPCJSONRequestBody

type GetConsumablesRPCJSONRequestBody = NoParameters

GetConsumablesRPCJSONRequestBody defines body for GetConsumablesRPC for application/json ContentType.

type GetDNDRPCJSONRequestBody

type GetDNDRPCJSONRequestBody = NoParameters

GetDNDRPCJSONRequestBody defines body for GetDNDRPC for application/json ContentType.

type GetHomeDatav1Params

type GetHomeDatav1Params struct {
	Authorization string `json:"Authorization"`
}

GetHomeDatav1Params defines parameters for GetHomeDatav1.

type GetHomeDatav2Params

type GetHomeDatav2Params struct {
	Authorization string `json:"Authorization"`
}

GetHomeDatav2Params defines parameters for GetHomeDatav2.

type GetHomeDatav3Params

type GetHomeDatav3Params struct {
	Authorization string `json:"Authorization"`
}

GetHomeDatav3Params defines parameters for GetHomeDatav3.

type GetHomeDetailParams

type GetHomeDetailParams struct {
	Authorization  string `json:"Authorization"`
	HeaderClientid string `json:"header_clientid"`
}

GetHomeDetailParams defines parameters for GetHomeDetail.

type GetStatusRPCJSONRequestBody

type GetStatusRPCJSONRequestBody = NoParameters

GetStatusRPCJSONRequestBody defines body for GetStatusRPC for application/json ContentType.

type HomeData

type HomeData struct {
	Devices              *[]HomeDevice              `json:"devices"`
	GeoName              *json.RawMessage           `json:"geoName"`
	Id                   int64                      `json:"id"`
	Lat                  *json.RawMessage           `json:"lat"`
	Lon                  *json.RawMessage           `json:"lon"`
	Name                 string                     `json:"name"`
	Products             *[]HomeProduct             `json:"products"`
	ReceivedDevices      *[]HomeDevice              `json:"receivedDevices"`
	Rooms                *[]HomeRoom                `json:"rooms"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeData defines model for HomeData.

func (HomeData) Get

func (a HomeData) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeData. Returns the specified element and whether it was found

func (HomeData) MarshalJSON

func (a HomeData) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeData to handle AdditionalProperties

func (*HomeData) Set

func (a *HomeData) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeData

func (*HomeData) UnmarshalJSON

func (a *HomeData) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeData to handle AdditionalProperties

type HomeDataResponse

type HomeDataResponse struct {
	Code                 *int                       `json:"code"`
	Msg                  *string                    `json:"msg"`
	Result               *HomeData                  `json:"result"`
	Success              bool                       `json:"success"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeDataResponse defines model for HomeDataResponse.

func (HomeDataResponse) Get

func (a HomeDataResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeDataResponse. Returns the specified element and whether it was found

func (HomeDataResponse) MarshalJSON

func (a HomeDataResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeDataResponse to handle AdditionalProperties

func (*HomeDataResponse) Set

func (a *HomeDataResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeDataResponse

func (*HomeDataResponse) UnmarshalJSON

func (a *HomeDataResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeDataResponse to handle AdditionalProperties

type HomeDataVersion

type HomeDataVersion int

HomeDataVersion defines model for HomeDataVersion.

const (
	HomeDataVersionV1 HomeDataVersion = 1
	HomeDataVersionV2 HomeDataVersion = 2
	HomeDataVersionV3 HomeDataVersion = 3
)

Defines values for HomeDataVersion.

type HomeDetail

type HomeDetail struct {
	Name                 *string                    `json:"name"`
	RrHomeId             int64                      `json:"rrHomeId"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeDetail defines model for HomeDetail.

func (HomeDetail) Get

func (a HomeDetail) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeDetail. Returns the specified element and whether it was found

func (HomeDetail) MarshalJSON

func (a HomeDetail) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeDetail to handle AdditionalProperties

func (*HomeDetail) Set

func (a *HomeDetail) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeDetail

func (*HomeDetail) UnmarshalJSON

func (a *HomeDetail) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeDetail to handle AdditionalProperties

type HomeDetailResponse

type HomeDetailResponse struct {
	Code                 int                        `json:"code"`
	Data                 *HomeDetail                `json:"data"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeDetailResponse defines model for HomeDetailResponse.

func (HomeDetailResponse) Get

func (a HomeDetailResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeDetailResponse. Returns the specified element and whether it was found

func (HomeDetailResponse) MarshalJSON

func (a HomeDetailResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeDetailResponse to handle AdditionalProperties

func (*HomeDetailResponse) Set

func (a *HomeDetailResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeDetailResponse

func (*HomeDetailResponse) UnmarshalJSON

func (a *HomeDetailResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeDetailResponse to handle AdditionalProperties

type HomeDevice

type HomeDevice struct {
	ActiveTime   *int64            `json:"activeTime"`
	Attribute    *json.RawMessage  `json:"attribute"`
	Cid          *string           `json:"cid"`
	CreateTime   *int64            `json:"createTime"`
	DeviceStatus *HomeDeviceStatus `json:"deviceStatus"`
	Duid         string            `json:"duid"`

	// Extra JSON-encoded optional device metadata.
	Extra            *string          `json:"extra"`
	F                *bool            `json:"f"`
	FeatureSet       *string          `json:"featureSet"`
	Fv               *string          `json:"fv"`
	IconUrl          *string          `json:"iconUrl"`
	Lat              *json.RawMessage `json:"lat"`
	LocalKey         string           `json:"localKey"`
	Lon              *json.RawMessage `json:"lon"`
	Name             string           `json:"name"`
	NewFeatureSet    *string          `json:"newFeatureSet"`
	Online           *bool            `json:"online"`
	ProductId        string           `json:"productId"`
	Pv               *string          `json:"pv"`
	RoomId           *int64           `json:"roomId"`
	RuntimeEnv       *json.RawMessage `json:"runtimeEnv"`
	Setting          *json.RawMessage `json:"setting"`
	Share            *bool            `json:"share"`
	ShareExpiredTime *int64           `json:"shareExpiredTime"`
	ShareTime        *int64           `json:"shareTime"`

	// ShareType Open device sharing policy identifier.
	ShareType            *HomeDeviceShareType       `json:"shareType"`
	SilentOtaSwitch      *bool                      `json:"silentOtaSwitch"`
	Sn                   *string                    `json:"sn"`
	TimeZoneId           *string                    `json:"timeZoneId"`
	TuyaMigrated         *bool                      `json:"tuyaMigrated"`
	TuyaUuid             *string                    `json:"tuyaUuid"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeDevice defines model for HomeDevice.

func (HomeDevice) Get

func (a HomeDevice) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeDevice. Returns the specified element and whether it was found

func (HomeDevice) MarshalJSON

func (a HomeDevice) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeDevice to handle AdditionalProperties

func (*HomeDevice) Set

func (a *HomeDevice) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeDevice

func (*HomeDevice) UnmarshalJSON

func (a *HomeDevice) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeDevice to handle AdditionalProperties

type HomeDeviceShareType

type HomeDeviceShareType = string

HomeDeviceShareType Open device sharing policy identifier.

type HomeDeviceStatus

type HomeDeviceStatus struct {
	DPS10001             *string                    `json:"10001"`
	DPS10005             *string                    `json:"10005"`
	DPS10007             *string                    `json:"10007"`
	N10008               *InventoryBooleanOrInteger `json:"10008"`
	DPS101               *int64                     `json:"101"`
	DPS120               *int64                     `json:"120"`
	DPS121               *int64                     `json:"121"`
	DPS122               *int64                     `json:"122"`
	DPS123               *int64                     `json:"123"`
	DPS124               *int64                     `json:"124"`
	DPS125               *int64                     `json:"125"`
	DPS126               *int64                     `json:"126"`
	DPS127               *int64                     `json:"127"`
	DPS128               *int64                     `json:"128"`
	DPS133               *int64                     `json:"133"`
	DPS134               *int64                     `json:"134"`
	DPS135               *int64                     `json:"135"`
	DPS136               *int64                     `json:"136"`
	DPS137               *int64                     `json:"137"`
	DPS138               *int64                     `json:"138"`
	DPS139               *int64                     `json:"139"`
	DPS141               *int64                     `json:"141"`
	DPS142               *int64                     `json:"142"`
	N200                 *InventoryBooleanOrInteger `json:"200"`
	N201                 *InventoryBooleanOrInteger `json:"201"`
	N202                 *InventoryBooleanOrInteger `json:"202"`
	DPS203               *int64                     `json:"203"`
	DPS204               *int64                     `json:"204"`
	DPS205               *int64                     `json:"205"`
	N206                 *InventoryBooleanOrInteger `json:"206"`
	DPS207               *int64                     `json:"207"`
	DPS208               *int64                     `json:"208"`
	DPS209               *int64                     `json:"209"`
	DPS210               *int64                     `json:"210"`
	N211                 *InventoryBooleanOrInteger `json:"211"`
	N212                 *InventoryBooleanOrInteger `json:"212"`
	DPS213               *int64                     `json:"213"`
	DPS214               *int64                     `json:"214"`
	DPS217               *int64                     `json:"217"`
	DPS218               *int64                     `json:"218"`
	N219                 *InventoryBooleanOrInteger `json:"219"`
	DPS220               *int64                     `json:"220"`
	DPS221               *int64                     `json:"221"`
	DPS222               *int64                     `json:"222"`
	N223                 *InventoryBooleanOrInteger `json:"223"`
	DPS224               *int64                     `json:"224"`
	N225                 *InventoryBooleanOrInteger `json:"225"`
	N226                 *InventoryBooleanOrInteger `json:"226"`
	N227                 *InventoryBooleanOrInteger `json:"227"`
	N229                 *InventoryBooleanOrInteger `json:"229"`
	DPS232               *int64                     `json:"232"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeDeviceStatus defines model for HomeDeviceStatus.

func (HomeDeviceStatus) Get

func (a HomeDeviceStatus) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeDeviceStatus. Returns the specified element and whether it was found

func (HomeDeviceStatus) MarshalJSON

func (a HomeDeviceStatus) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeDeviceStatus to handle AdditionalProperties

func (*HomeDeviceStatus) Set

func (a *HomeDeviceStatus) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeDeviceStatus

func (*HomeDeviceStatus) UnmarshalJSON

func (a *HomeDeviceStatus) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeDeviceStatus to handle AdditionalProperties

type HomeProduct

type HomeProduct struct {
	Attribute  *json.RawMessage `json:"attribute"`
	Capability *int64           `json:"capability"`

	// Category Open device category. Known values are robot.vacuum.cleaner, roborock.wetdryvac, roborock.wm, roborock.mower and UNKNOWN; future strings remain valid.
	Category             ProductCategory            `json:"category"`
	Code                 *string                    `json:"code"`
	IconUrl              *string                    `json:"iconUrl"`
	Id                   string                     `json:"id"`
	Model                string                     `json:"model"`
	Name                 string                     `json:"name"`
	Schema               *[]ProductProperty         `json:"schema"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeProduct defines model for HomeProduct.

func (HomeProduct) Get

func (a HomeProduct) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeProduct. Returns the specified element and whether it was found

func (HomeProduct) MarshalJSON

func (a HomeProduct) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeProduct to handle AdditionalProperties

func (*HomeProduct) Set

func (a *HomeProduct) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeProduct

func (*HomeProduct) UnmarshalJSON

func (a *HomeProduct) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeProduct to handle AdditionalProperties

type HomeRoom

type HomeRoom struct {
	Id                   int64                      `json:"id"`
	Name                 string                     `json:"name"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

HomeRoom defines model for HomeRoom.

func (HomeRoom) Get

func (a HomeRoom) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for HomeRoom. Returns the specified element and whether it was found

func (HomeRoom) MarshalJSON

func (a HomeRoom) MarshalJSON() ([]byte, error)

Override default JSON handling for HomeRoom to handle AdditionalProperties

func (*HomeRoom) Set

func (a *HomeRoom) Set(fieldName string, value json.RawMessage)

Setter for additional properties for HomeRoom

func (*HomeRoom) UnmarshalJSON

func (a *HomeRoom) UnmarshalJSON(b []byte) error

Override default JSON handling for HomeRoom to handle AdditionalProperties

type IntegerParameters

type IntegerParameters = []int64

IntegerParameters defines model for IntegerParameters.

type InventoryBooleanOrInteger

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

InventoryBooleanOrInteger defines model for InventoryBooleanOrInteger.

func (InventoryBooleanOrInteger) AsInventoryBooleanOrInteger0

func (t InventoryBooleanOrInteger) AsInventoryBooleanOrInteger0() (InventoryBooleanOrInteger0, error)

AsInventoryBooleanOrInteger0 returns the union data inside the InventoryBooleanOrInteger as a InventoryBooleanOrInteger0

func (InventoryBooleanOrInteger) AsInventoryBooleanOrInteger1

func (t InventoryBooleanOrInteger) AsInventoryBooleanOrInteger1() (InventoryBooleanOrInteger1, error)

AsInventoryBooleanOrInteger1 returns the union data inside the InventoryBooleanOrInteger as a InventoryBooleanOrInteger1

func (*InventoryBooleanOrInteger) FromInventoryBooleanOrInteger0

func (t *InventoryBooleanOrInteger) FromInventoryBooleanOrInteger0(v InventoryBooleanOrInteger0) error

FromInventoryBooleanOrInteger0 overwrites any union data inside the InventoryBooleanOrInteger as the provided InventoryBooleanOrInteger0

func (*InventoryBooleanOrInteger) FromInventoryBooleanOrInteger1

func (t *InventoryBooleanOrInteger) FromInventoryBooleanOrInteger1(v InventoryBooleanOrInteger1) error

FromInventoryBooleanOrInteger1 overwrites any union data inside the InventoryBooleanOrInteger as the provided InventoryBooleanOrInteger1

func (InventoryBooleanOrInteger) MarshalJSON

func (t InventoryBooleanOrInteger) MarshalJSON() ([]byte, error)

func (*InventoryBooleanOrInteger) MergeInventoryBooleanOrInteger0

func (t *InventoryBooleanOrInteger) MergeInventoryBooleanOrInteger0(v InventoryBooleanOrInteger0) error

MergeInventoryBooleanOrInteger0 performs a merge with any union data inside the InventoryBooleanOrInteger, using the provided InventoryBooleanOrInteger0

func (*InventoryBooleanOrInteger) MergeInventoryBooleanOrInteger1

func (t *InventoryBooleanOrInteger) MergeInventoryBooleanOrInteger1(v InventoryBooleanOrInteger1) error

MergeInventoryBooleanOrInteger1 performs a merge with any union data inside the InventoryBooleanOrInteger, using the provided InventoryBooleanOrInteger1

func (*InventoryBooleanOrInteger) UnmarshalJSON

func (t *InventoryBooleanOrInteger) UnmarshalJSON(b []byte) error

type InventoryBooleanOrInteger0

type InventoryBooleanOrInteger0 = bool

InventoryBooleanOrInteger0 defines model for .

type InventoryBooleanOrInteger1

type InventoryBooleanOrInteger1 = int64

InventoryBooleanOrInteger1 defines model for .

type InventoryOTA

type InventoryOTA struct {
	MqttOtaData          *InventoryOTAData          `json:"mqttOtaData"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryOTA defines model for InventoryOTA.

func (InventoryOTA) Get

func (a InventoryOTA) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryOTA. Returns the specified element and whether it was found

func (InventoryOTA) MarshalJSON

func (a InventoryOTA) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryOTA to handle AdditionalProperties

func (*InventoryOTA) Set

func (a *InventoryOTA) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryOTA

func (*InventoryOTA) UnmarshalJSON

func (a *InventoryOTA) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryOTA to handle AdditionalProperties

type InventoryOTAData

type InventoryOTAData struct {
	MqttOtaStatus        *InventoryOTAStatus        `json:"mqttOtaStatus"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryOTAData defines model for InventoryOTAData.

func (InventoryOTAData) Get

func (a InventoryOTAData) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryOTAData. Returns the specified element and whether it was found

func (InventoryOTAData) MarshalJSON

func (a InventoryOTAData) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryOTAData to handle AdditionalProperties

func (*InventoryOTAData) Set

func (a *InventoryOTAData) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryOTAData

func (*InventoryOTAData) UnmarshalJSON

func (a *InventoryOTAData) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryOTAData to handle AdditionalProperties

type InventoryOTAStatus

type InventoryOTAStatus struct {
	// Status Open OTA status; IDLE is present in the pinned reference inventory.
	Status               *string                    `json:"status"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryOTAStatus defines model for InventoryOTAStatus.

func (InventoryOTAStatus) Get

func (a InventoryOTAStatus) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryOTAStatus. Returns the specified element and whether it was found

func (InventoryOTAStatus) MarshalJSON

func (a InventoryOTAStatus) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryOTAStatus to handle AdditionalProperties

func (*InventoryOTAStatus) Set

func (a *InventoryOTAStatus) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryOTAStatus

func (*InventoryOTAStatus) UnmarshalJSON

func (a *InventoryOTAStatus) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryOTAStatus to handle AdditionalProperties

type InventoryProductInfo

type InventoryProductInfo struct {
	Ip                   *string                    `json:"ip"`
	Mac                  *string                    `json:"mac"`
	Oba                  *InventoryProductOBA       `json:"oba"`
	PosixTimezone        *string                    `json:"posix_timezone"`
	Rssi                 *int                       `json:"rssi"`
	Sn                   *string                    `json:"sn"`
	Ssid                 *string                    `json:"ssid"`
	Timezone             *string                    `json:"timezone"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryProductInfo defines model for InventoryProductInfo.

func (InventoryProductInfo) Get

func (a InventoryProductInfo) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryProductInfo. Returns the specified element and whether it was found

func (InventoryProductInfo) MarshalJSON

func (a InventoryProductInfo) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryProductInfo to handle AdditionalProperties

func (*InventoryProductInfo) Set

func (a *InventoryProductInfo) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryProductInfo

func (*InventoryProductInfo) UnmarshalJSON

func (a *InventoryProductInfo) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryProductInfo to handle AdditionalProperties

type InventoryProductOBA

type InventoryProductOBA struct {
	Bom                  *string                    `json:"bom"`
	Featureset           *string                    `json:"featureset"`
	Language             *string                    `json:"language"`
	Location             *string                    `json:"location"`
	Loglevel             *string                    `json:"loglevel"`
	Logserver            *string                    `json:"logserver"`
	Name                 *string                    `json:"name"`
	Timezone             *string                    `json:"timezone"`
	Wifiplan             *string                    `json:"wifiplan"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryProductOBA defines model for InventoryProductOBA.

func (InventoryProductOBA) Get

func (a InventoryProductOBA) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryProductOBA. Returns the specified element and whether it was found

func (InventoryProductOBA) MarshalJSON

func (a InventoryProductOBA) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryProductOBA to handle AdditionalProperties

func (*InventoryProductOBA) Set

func (a *InventoryProductOBA) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryProductOBA

func (*InventoryProductOBA) UnmarshalJSON

func (a *InventoryProductOBA) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryProductOBA to handle AdditionalProperties

type InventoryProgramState

type InventoryProgramState struct {
	F                    *string                    `json:"f"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

InventoryProgramState defines model for InventoryProgramState.

func (InventoryProgramState) Get

func (a InventoryProgramState) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for InventoryProgramState. Returns the specified element and whether it was found

func (InventoryProgramState) MarshalJSON

func (a InventoryProgramState) MarshalJSON() ([]byte, error)

Override default JSON handling for InventoryProgramState to handle AdditionalProperties

func (*InventoryProgramState) Set

func (a *InventoryProgramState) Set(fieldName string, value json.RawMessage)

Setter for additional properties for InventoryProgramState

func (*InventoryProgramState) UnmarshalJSON

func (a *InventoryProgramState) UnmarshalJSON(b []byte) error

Override default JSON handling for InventoryProgramState to handle AdditionalProperties

type LoginCodeFormdataRequestBody

type LoginCodeFormdataRequestBody = CodeLoginForm

LoginCodeFormdataRequestBody defines body for LoginCode for application/x-www-form-urlencoded ContentType.

type LoginCodeParams

type LoginCodeParams struct {
	HeaderClientid    string         `json:"header_clientid"`
	HeaderClientlang  ClientLanguage `json:"header_clientlang"`
	XMercyKs          string         `json:"x-mercy-ks"`
	XMercyK           string         `json:"x-mercy-k"`
	HeaderAppversion  AppVersion     `json:"header_appversion"`
	HeaderPhonesystem PhoneSystem    `json:"header_phonesystem"`
	HeaderPhonemodel  PhoneModel     `json:"header_phonemodel"`
}

LoginCodeParams defines parameters for LoginCode.

type LoginLegacyCodeParams

type LoginLegacyCodeParams struct {
	Username       string                              `form:"username" json:"username"`
	Verifycode     string                              `form:"verifycode" json:"verifycode"`
	Verifycodetype LoginLegacyCodeParamsVerifycodetype `form:"verifycodetype" json:"verifycodetype"`
	HeaderClientid string                              `json:"header_clientid"`
}

LoginLegacyCodeParams defines parameters for LoginLegacyCode.

type LoginLegacyCodeParamsVerifycodetype

type LoginLegacyCodeParamsVerifycodetype string

LoginLegacyCodeParamsVerifycodetype defines parameters for LoginLegacyCode.

const (
	AUTHEMAILCODE LoginLegacyCodeParamsVerifycodetype = "AUTH_EMAIL_CODE"
)

Defines values for LoginLegacyCodeParamsVerifycodetype.

type LoginPasswordParams

type LoginPasswordParams struct {
	Username        string                             `form:"username" json:"username"`
	Password        string                             `form:"password" json:"password"`
	Needtwostepauth LoginPasswordParamsNeedtwostepauth `form:"needtwostepauth" json:"needtwostepauth"`
	HeaderClientid  string                             `json:"header_clientid"`
}

LoginPasswordParams defines parameters for LoginPassword.

type LoginPasswordParamsNeedtwostepauth

type LoginPasswordParamsNeedtwostepauth string

LoginPasswordParamsNeedtwostepauth defines parameters for LoginPassword.

const (
	LoginPasswordParamsNeedtwostepauthFalse LoginPasswordParamsNeedtwostepauth = "false"
)

Defines values for LoginPasswordParamsNeedtwostepauth.

type LoginResponse

type LoginResponse struct {
	Code                 int                        `json:"code"`
	Data                 *UserData                  `json:"data"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

LoginResponse defines model for LoginResponse.

func (LoginResponse) Get

func (a LoginResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for LoginResponse. Returns the specified element and whether it was found

func (LoginResponse) MarshalJSON

func (a LoginResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for LoginResponse to handle AdditionalProperties

func (*LoginResponse) Set

func (a *LoginResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for LoginResponse

func (*LoginResponse) UnmarshalJSON

func (a *LoginResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for LoginResponse to handle AdditionalProperties

type MQTTDeviceFrame

type MQTTDeviceFrame struct {
	// Payload Decrypted payload bytes, before encryption and PKCS7 padding.
	Payload  []byte `json:"payload"`
	Protocol uint16 `json:"protocol"`
	Random   uint32 `json:"random"`
	Sequence uint32 `json:"sequence"`

	// Timestamp Unix timestamp in seconds stored as an unsigned 32-bit integer.
	Timestamp uint32 `json:"timestamp"`

	// Version Three ASCII bytes identifying the binary protocol version.
	Version string `json:"version"`
}

MQTTDeviceFrame Decoded Roborock binary MQTT device frame. Fields are serialized in the documented binary header order, followed by encrypted payload and a CRC32 checksum; this is not a JSON wire envelope.

type MQTTEnvelope

type MQTTEnvelope struct {
	Dps map[string]json.RawMessage `json:"dps"`

	// T Unix timestamp in seconds.
	T int64 `json:"t"`
}

MQTTEnvelope defines model for MQTTEnvelope.

type MQTTRPCError

type MQTTRPCError struct {
	Code    *int    `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

MQTTRPCError defines model for MQTTRPCError.

type MQTTRPCRequest

type MQTTRPCRequest struct {
	Id       int64           `json:"id"`
	Method   string          `json:"method"`
	Params   json.RawMessage `json:"params"`
	Security MQTTRPCSecurity `json:"security"`
}

MQTTRPCRequest defines model for MQTTRPCRequest.

type MQTTRPCResponse

type MQTTRPCResponse struct {
	Error  *MQTTRPCError    `json:"error,omitempty"`
	Id     int64            `json:"id"`
	Result *json.RawMessage `json:"result,omitempty"`
}

MQTTRPCResponse defines model for MQTTRPCResponse.

type MQTTRPCSecurity

type MQTTRPCSecurity struct {
	// Endpoint Base64 encoding of bytes 8 through 13 of the account-key MD5.
	Endpoint string `json:"endpoint"`

	// Nonce Fresh session AES key for secured device blob responses, encoded as lowercase hex.
	Nonce string `json:"nonce"`
}

MQTTRPCSecurity defines model for MQTTRPCSecurity.

type MopMode

type MopMode int

MopMode Open device-dependent numeric enum; future values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	MopModeCustom   MopMode = 302
	MopModeDeep     MopMode = 301
	MopModeDeepPlus MopMode = 303
	MopModeStandard MopMode = 300
)

Defines values for MopMode.

type NoParameters

type NoParameters = []int64

NoParameters defines model for NoParameters.

type PauseCleaningRPCJSONRequestBody

type PauseCleaningRPCJSONRequestBody = NoParameters

PauseCleaningRPCJSONRequestBody defines body for PauseCleaningRPC for application/json ContentType.

type PhoneModel

type PhoneModel string

PhoneModel defines model for PhoneModel.

const (
	PhoneModelIPhone16 PhoneModel = "iPhone16,1"
)

Defines values for PhoneModel.

type PhoneSystem

type PhoneSystem string

PhoneSystem defines model for PhoneSystem.

const (
	PhoneSystemIOS PhoneSystem = "iOS"
)

Defines values for PhoneSystem.

type ProductCategory

type ProductCategory = string

ProductCategory Open device category. Known values are robot.vacuum.cleaner, roborock.wetdryvac, roborock.wm, roborock.mower and UNKNOWN; future strings remain valid.

type ProductProperty

type ProductProperty struct {
	Code *string `json:"code"`
	Desc *string `json:"desc"`

	// Id Property IDs are strings on V1 products and integers on Q10/A01 reference inventories.
	Id *ProductPropertyID `json:"id"`

	// Mode Open property access mode.
	Mode            *ProductPropertyMode `json:"mode"`
	Name            *string              `json:"name"`
	ProductProperty *json.RawMessage     `json:"productProperty"`

	// Property JSON-encoded ProductPropertyConstraints, or the string null. DecodeProperty exposes the typed contents.
	Property *string `json:"property"`

	// Type Open property value kind.
	Type                 *ProductPropertyType       `json:"type"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

ProductProperty defines model for ProductProperty.

func (ProductProperty) Get

func (a ProductProperty) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for ProductProperty. Returns the specified element and whether it was found

func (ProductProperty) MarshalJSON

func (a ProductProperty) MarshalJSON() ([]byte, error)

Override default JSON handling for ProductProperty to handle AdditionalProperties

func (*ProductProperty) Set

func (a *ProductProperty) Set(fieldName string, value json.RawMessage)

Setter for additional properties for ProductProperty

func (*ProductProperty) UnmarshalJSON

func (a *ProductProperty) UnmarshalJSON(b []byte) error

Override default JSON handling for ProductProperty to handle AdditionalProperties

type ProductPropertyConstraints

type ProductPropertyConstraints struct {
	Max                  *float32                   `json:"max"`
	Min                  *float32                   `json:"min"`
	Range                *[]string                  `json:"range"`
	Scale                *float32                   `json:"scale"`
	Step                 *float32                   `json:"step"`
	Unit                 *string                    `json:"unit"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

ProductPropertyConstraints defines model for ProductPropertyConstraints.

func (ProductPropertyConstraints) Get

func (a ProductPropertyConstraints) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for ProductPropertyConstraints. Returns the specified element and whether it was found

func (ProductPropertyConstraints) MarshalJSON

func (a ProductPropertyConstraints) MarshalJSON() ([]byte, error)

Override default JSON handling for ProductPropertyConstraints to handle AdditionalProperties

func (*ProductPropertyConstraints) Set

func (a *ProductPropertyConstraints) Set(fieldName string, value json.RawMessage)

Setter for additional properties for ProductPropertyConstraints

func (*ProductPropertyConstraints) UnmarshalJSON

func (a *ProductPropertyConstraints) UnmarshalJSON(b []byte) error

Override default JSON handling for ProductPropertyConstraints to handle AdditionalProperties

type ProductPropertyID

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

ProductPropertyID Property IDs are strings on V1 products and integers on Q10/A01 reference inventories.

func (ProductPropertyID) AsProductPropertyID0

func (t ProductPropertyID) AsProductPropertyID0() (ProductPropertyID0, error)

AsProductPropertyID0 returns the union data inside the ProductPropertyID as a ProductPropertyID0

func (ProductPropertyID) AsProductPropertyID1

func (t ProductPropertyID) AsProductPropertyID1() (ProductPropertyID1, error)

AsProductPropertyID1 returns the union data inside the ProductPropertyID as a ProductPropertyID1

func (*ProductPropertyID) FromProductPropertyID0

func (t *ProductPropertyID) FromProductPropertyID0(v ProductPropertyID0) error

FromProductPropertyID0 overwrites any union data inside the ProductPropertyID as the provided ProductPropertyID0

func (*ProductPropertyID) FromProductPropertyID1

func (t *ProductPropertyID) FromProductPropertyID1(v ProductPropertyID1) error

FromProductPropertyID1 overwrites any union data inside the ProductPropertyID as the provided ProductPropertyID1

func (ProductPropertyID) MarshalJSON

func (t ProductPropertyID) MarshalJSON() ([]byte, error)

func (*ProductPropertyID) MergeProductPropertyID0

func (t *ProductPropertyID) MergeProductPropertyID0(v ProductPropertyID0) error

MergeProductPropertyID0 performs a merge with any union data inside the ProductPropertyID, using the provided ProductPropertyID0

func (*ProductPropertyID) MergeProductPropertyID1

func (t *ProductPropertyID) MergeProductPropertyID1(v ProductPropertyID1) error

MergeProductPropertyID1 performs a merge with any union data inside the ProductPropertyID, using the provided ProductPropertyID1

func (*ProductPropertyID) UnmarshalJSON

func (t *ProductPropertyID) UnmarshalJSON(b []byte) error

type ProductPropertyID0

type ProductPropertyID0 = string

ProductPropertyID0 defines model for .

type ProductPropertyID1

type ProductPropertyID1 = int64

ProductPropertyID1 defines model for .

type ProductPropertyMode

type ProductPropertyMode = string

ProductPropertyMode Open property access mode.

type ProductPropertyType

type ProductPropertyType = string

ProductPropertyType Open property value kind.

type QueryA01ValuesJSONRequestBody

type QueryA01ValuesJSONRequestBody = A01QueryRequest

QueryA01ValuesJSONRequestBody defines body for QueryA01Values for application/json ContentType.

type RCCommand

type RCCommand struct {
	// Duration Movement duration in milliseconds, from 1 through 5000.
	Duration int `json:"duration"`

	// Omega Angular velocity in radians per second, from -0.8 through 0.8.
	Omega  float32 `json:"omega"`
	Seqnum int64   `json:"seqnum"`

	// Velocity Linear velocity in meters per second, from -0.3 through 0.3.
	Velocity float32 `json:"velocity"`
}

RCCommand defines model for RCCommand.

type RCEndRPCJSONRequestBody

type RCEndRPCJSONRequestBody = NoParameters

RCEndRPCJSONRequestBody defines body for RCEndRPC for application/json ContentType.

type RCMoveRPCJSONRequestBody

type RCMoveRPCJSONRequestBody = RCParameters

RCMoveRPCJSONRequestBody defines body for RCMoveRPC for application/json ContentType.

type RCParameters

type RCParameters = []RCCommand

RCParameters defines model for RCParameters.

type RCStartRPCJSONRequestBody

type RCStartRPCJSONRequestBody = NoParameters

RCStartRPCJSONRequestBody defines body for RCStartRPC for application/json ContentType.

type RCStopRPCJSONRequestBody

type RCStopRPCJSONRequestBody = NoParameters

RCStopRPCJSONRequestBody defines body for RCStopRPC for application/json ContentType.

type RPCMethod

type RPCMethod string

RPCMethod defines model for RPCMethod.

const (
	RPCCleanSegments       RPCMethod = "app_segment_clean"
	RPCCleanZones          RPCMethod = "app_zoned_clean"
	RPCDisableDND          RPCMethod = "close_dnd_timer"
	RPCGetCleanRecord      RPCMethod = "get_clean_record"
	RPCGetCleaningSummary  RPCMethod = "get_clean_summary"
	RPCGetConsumables      RPCMethod = "get_consumable"
	RPCGetDND              RPCMethod = "get_dnd_timer"
	RPCGetStatus           RPCMethod = "get_status"
	RPCPauseCleaning       RPCMethod = "app_pause"
	RPCRCEnd               RPCMethod = "app_rc_end"
	RPCRCMove              RPCMethod = "app_rc_move"
	RPCRCStart             RPCMethod = "app_rc_start"
	RPCRCStop              RPCMethod = "app_rc_stop"
	RPCReturnToDock        RPCMethod = "app_charge"
	RPCSetDND              RPCMethod = "set_dnd_timer"
	RPCSetFanSpeed         RPCMethod = "set_custom_mode"
	RPCSetMopMode          RPCMethod = "set_mop_mode"
	RPCSetWaterMode        RPCMethod = "set_water_box_custom_mode"
	RPCSpotClean           RPCMethod = "app_spot"
	RPCStartCleaning       RPCMethod = "app_start"
	RPCStartDustCollection RPCMethod = "app_start_collect_dust"
	RPCStartMopWashing     RPCMethod = "app_start_wash"
	RPCStopCleaning        RPCMethod = "app_stop"
	RPCStopDustCollection  RPCMethod = "app_stop_collect_dust"
	RPCStopMopWashing      RPCMethod = "app_stop_wash"
)

Defines values for RPCMethod.

type RRiot

type RRiot struct {
	H                    string                     `json:"h"`
	K                    string                     `json:"k"`
	R                    RRiotReference             `json:"r"`
	S                    string                     `json:"s"`
	U                    string                     `json:"u"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

RRiot defines model for RRiot.

func (RRiot) Get

func (a RRiot) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for RRiot. Returns the specified element and whether it was found

func (RRiot) MarshalJSON

func (a RRiot) MarshalJSON() ([]byte, error)

Override default JSON handling for RRiot to handle AdditionalProperties

func (*RRiot) Set

func (a *RRiot) Set(fieldName string, value json.RawMessage)

Setter for additional properties for RRiot

func (*RRiot) UnmarshalJSON

func (a *RRiot) UnmarshalJSON(b []byte) error

Override default JSON handling for RRiot to handle AdditionalProperties

type RRiotReference

type RRiotReference struct {
	A                    *string                    `json:"a"`
	L                    *string                    `json:"l"`
	M                    *string                    `json:"m"`
	R                    *string                    `json:"r"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

RRiotReference defines model for RRiotReference.

func (RRiotReference) Get

func (a RRiotReference) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for RRiotReference. Returns the specified element and whether it was found

func (RRiotReference) MarshalJSON

func (a RRiotReference) MarshalJSON() ([]byte, error)

Override default JSON handling for RRiotReference to handle AdditionalProperties

func (*RRiotReference) Set

func (a *RRiotReference) Set(fieldName string, value json.RawMessage)

Setter for additional properties for RRiotReference

func (*RRiotReference) UnmarshalJSON

func (a *RRiotReference) UnmarshalJSON(b []byte) error

Override default JSON handling for RRiotReference to handle AdditionalProperties

type RegionData

type RegionData struct {
	Country              *string                    `json:"country"`
	Countrycode          *RegionData_Countrycode    `json:"countrycode"`
	Url                  string                     `json:"url"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

RegionData defines model for RegionData.

func (RegionData) Get

func (a RegionData) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for RegionData. Returns the specified element and whether it was found

func (RegionData) MarshalJSON

func (a RegionData) MarshalJSON() ([]byte, error)

Override default JSON handling for RegionData to handle AdditionalProperties

func (*RegionData) Set

func (a *RegionData) Set(fieldName string, value json.RawMessage)

Setter for additional properties for RegionData

func (*RegionData) UnmarshalJSON

func (a *RegionData) UnmarshalJSON(b []byte) error

Override default JSON handling for RegionData to handle AdditionalProperties

type RegionDataCountrycode0

type RegionDataCountrycode0 = string

RegionDataCountrycode0 defines model for .

type RegionDataCountrycode1

type RegionDataCountrycode1 = int64

RegionDataCountrycode1 defines model for .

type RegionData_Countrycode

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

RegionData_Countrycode defines model for RegionData.Countrycode.

func (RegionData_Countrycode) AsRegionDataCountrycode0

func (t RegionData_Countrycode) AsRegionDataCountrycode0() (RegionDataCountrycode0, error)

AsRegionDataCountrycode0 returns the union data inside the RegionData_Countrycode as a RegionDataCountrycode0

func (RegionData_Countrycode) AsRegionDataCountrycode1

func (t RegionData_Countrycode) AsRegionDataCountrycode1() (RegionDataCountrycode1, error)

AsRegionDataCountrycode1 returns the union data inside the RegionData_Countrycode as a RegionDataCountrycode1

func (*RegionData_Countrycode) FromRegionDataCountrycode0

func (t *RegionData_Countrycode) FromRegionDataCountrycode0(v RegionDataCountrycode0) error

FromRegionDataCountrycode0 overwrites any union data inside the RegionData_Countrycode as the provided RegionDataCountrycode0

func (*RegionData_Countrycode) FromRegionDataCountrycode1

func (t *RegionData_Countrycode) FromRegionDataCountrycode1(v RegionDataCountrycode1) error

FromRegionDataCountrycode1 overwrites any union data inside the RegionData_Countrycode as the provided RegionDataCountrycode1

func (RegionData_Countrycode) MarshalJSON

func (t RegionData_Countrycode) MarshalJSON() ([]byte, error)

func (*RegionData_Countrycode) MergeRegionDataCountrycode0

func (t *RegionData_Countrycode) MergeRegionDataCountrycode0(v RegionDataCountrycode0) error

MergeRegionDataCountrycode0 performs a merge with any union data inside the RegionData_Countrycode, using the provided RegionDataCountrycode0

func (*RegionData_Countrycode) MergeRegionDataCountrycode1

func (t *RegionData_Countrycode) MergeRegionDataCountrycode1(v RegionDataCountrycode1) error

MergeRegionDataCountrycode1 performs a merge with any union data inside the RegionData_Countrycode, using the provided RegionDataCountrycode1

func (*RegionData_Countrycode) UnmarshalJSON

func (t *RegionData_Countrycode) UnmarshalJSON(b []byte) error

type RegionResponse

type RegionResponse struct {
	Code                 int                        `json:"code"`
	Data                 *RegionData                `json:"data"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

RegionResponse defines model for RegionResponse.

func (RegionResponse) Get

func (a RegionResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for RegionResponse. Returns the specified element and whether it was found

func (RegionResponse) MarshalJSON

func (a RegionResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for RegionResponse to handle AdditionalProperties

func (*RegionResponse) Set

func (a *RegionResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for RegionResponse

func (*RegionResponse) UnmarshalJSON

func (a *RegionResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for RegionResponse to handle AdditionalProperties

type RequestCodeFormdataRequestBody

type RequestCodeFormdataRequestBody = CodeRequest

RequestCodeFormdataRequestBody defines body for RequestCode for application/x-www-form-urlencoded ContentType.

type RequestCodeParams

type RequestCodeParams struct {
	HeaderClientid   string         `json:"header_clientid"`
	HeaderClientlang ClientLanguage `json:"header_clientlang"`
}

RequestCodeParams defines parameters for RequestCode.

type ResolveRegionParams

type ResolveRegionParams struct {
	Email           string                             `form:"email" json:"email"`
	Needtwostepauth ResolveRegionParamsNeedtwostepauth `form:"needtwostepauth" json:"needtwostepauth"`
}

ResolveRegionParams defines parameters for ResolveRegion.

type ResolveRegionParamsNeedtwostepauth

type ResolveRegionParamsNeedtwostepauth string

ResolveRegionParamsNeedtwostepauth defines parameters for ResolveRegion.

const (
	ResolveRegionParamsNeedtwostepauthFalse ResolveRegionParamsNeedtwostepauth = "false"
)

Defines values for ResolveRegionParamsNeedtwostepauth.

type ReturnToDockRPCJSONRequestBody

type ReturnToDockRPCJSONRequestBody = NoParameters

ReturnToDockRPCJSONRequestBody defines body for ReturnToDockRPC for application/json ContentType.

type SegmentCommand

type SegmentCommand struct {
	Repeat   int64   `json:"repeat"`
	Segments []int64 `json:"segments"`
}

SegmentCommand defines model for SegmentCommand.

type SegmentParameters

type SegmentParameters = []SegmentCommand

SegmentParameters defines model for SegmentParameters.

type SetA01ValuesJSONRequestBody

type SetA01ValuesJSONRequestBody = A01SetRequest

SetA01ValuesJSONRequestBody defines body for SetA01Values for application/json ContentType.

type SetDNDRPCJSONRequestBody

type SetDNDRPCJSONRequestBody = IntegerParameters

SetDNDRPCJSONRequestBody defines body for SetDNDRPC for application/json ContentType.

type SetDyadSettingsWire

type SetDyadSettingsWire struct {
	// SelfCleanMode SelfCleanMode appliance datapoint.
	SelfCleanMode *int `json:"202,omitempty"`

	// SelfCleanLevel SelfCleanLevel appliance datapoint.
	SelfCleanLevel *int `json:"203,omitempty"`

	// WarmLevel WarmLevel appliance datapoint.
	WarmLevel *int `json:"204,omitempty"`

	// CleanMode CleanMode appliance datapoint.
	CleanMode *int `json:"205,omitempty"`

	// Suction Suction appliance datapoint.
	Suction *int `json:"206,omitempty"`

	// WaterLevel WaterLevel appliance datapoint.
	WaterLevel *int `json:"207,omitempty"`

	// BrushSpeed BrushSpeed appliance datapoint.
	BrushSpeed *int `json:"208,omitempty"`

	// AutoSelfCleanSet AutoSelfCleanSet appliance datapoint.
	AutoSelfCleanSet *int `json:"212,omitempty"`

	// AutoDry AutoDry appliance datapoint.
	AutoDry *int `json:"213,omitempty"`

	// Volume Speaker volume percent, from 0 through 100.
	Volume *int `json:"221,omitempty"`

	// StandLockAutoRun StandLockAutoRun appliance datapoint.
	StandLockAutoRun *int `json:"222,omitempty"`

	// AutoSelfCleanSetMode AutoSelfCleanSetMode appliance datapoint.
	AutoSelfCleanSetMode *int `json:"223,omitempty"`

	// AutoDryMode AutoDryMode appliance datapoint.
	AutoDryMode *int `json:"224,omitempty"`

	// SilentDryDuration SilentDryDuration appliance datapoint.
	SilentDryDuration *int `json:"225,omitempty"`

	// SilentMode SilentMode appliance datapoint.
	SilentMode *int `json:"226,omitempty"`

	// SilentModeStartTime Minute of day, from 0 through 1439.
	SilentModeStartTime *int `json:"227,omitempty"`

	// SilentModeEndTime Minute of day, from 0 through 1439.
	SilentModeEndTime *int `json:"228,omitempty"`
}

SetDyadSettingsWire Sparse numeric-key A01 settings command.

type SetFanSpeedRPCJSONRequestBody

type SetFanSpeedRPCJSONRequestBody = IntegerParameters

SetFanSpeedRPCJSONRequestBody defines body for SetFanSpeedRPC for application/json ContentType.

type SetMopModeRPCJSONRequestBody

type SetMopModeRPCJSONRequestBody = IntegerParameters

SetMopModeRPCJSONRequestBody defines body for SetMopModeRPC for application/json ContentType.

type SetWaterModeRPCJSONRequestBody

type SetWaterModeRPCJSONRequestBody = IntegerParameters

SetWaterModeRPCJSONRequestBody defines body for SetWaterModeRPC for application/json ContentType.

type SetZeoSettingsWire

type SetZeoSettingsWire struct {
	// ChildLock Appliance boolean datapoint.
	ChildLock *bool `json:"206,omitempty"`

	// DetergentSet Appliance boolean datapoint.
	DetergentSet *bool `json:"211,omitempty"`

	// SoftenerSet Appliance boolean datapoint.
	SoftenerSet *bool `json:"212,omitempty"`

	// DetergentType DetergentType appliance datapoint.
	DetergentType *int `json:"213,omitempty"`

	// SoftenerType SoftenerType appliance datapoint.
	SoftenerType *int `json:"214,omitempty"`

	// Countdown Countdown appliance datapoint.
	Countdown *int `json:"217,omitempty"`

	// Sound Appliance boolean datapoint.
	Sound *bool `json:"223,omitempty"`

	// LightSetting Appliance boolean datapoint.
	LightSetting *bool `json:"229,omitempty"`

	// DetergentVolume DetergentVolume appliance datapoint.
	DetergentVolume *int `json:"230,omitempty"`

	// SoftenerVolume SoftenerVolume appliance datapoint.
	SoftenerVolume *int `json:"231,omitempty"`

	// SilentModeStartTime Minute of day, from 0 through 1439.
	SilentModeStartTime *int `json:"241,omitempty"`

	// SilentModeEndTime Minute of day, from 0 through 1439.
	SilentModeEndTime *int `json:"242,omitempty"`

	// SoftenerExpansionType SoftenerExpansionType appliance datapoint.
	SoftenerExpansionType *int `json:"245,omitempty"`

	// DetergentExpansionType DetergentExpansionType appliance datapoint.
	DetergentExpansionType *int `json:"248,omitempty"`
}

SetZeoSettingsWire Sparse numeric-key A01 settings command.

type SignKeyParams

type SignKeyParams struct {
	S              string `form:"s" json:"s"`
	HeaderClientid string `json:"header_clientid"`
}

SignKeyParams defines parameters for SignKey.

type SignResponse

type SignResponse struct {
	Code                 int                        `json:"code"`
	Data                 *SignedKey                 `json:"data"`
	Msg                  *string                    `json:"msg"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

SignResponse defines model for SignResponse.

func (SignResponse) Get

func (a SignResponse) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for SignResponse. Returns the specified element and whether it was found

func (SignResponse) MarshalJSON

func (a SignResponse) MarshalJSON() ([]byte, error)

Override default JSON handling for SignResponse to handle AdditionalProperties

func (*SignResponse) Set

func (a *SignResponse) Set(fieldName string, value json.RawMessage)

Setter for additional properties for SignResponse

func (*SignResponse) UnmarshalJSON

func (a *SignResponse) UnmarshalJSON(b []byte) error

Override default JSON handling for SignResponse to handle AdditionalProperties

type SignedKey

type SignedKey struct {
	K                    string                     `json:"k"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

SignedKey defines model for SignedKey.

func (SignedKey) Get

func (a SignedKey) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for SignedKey. Returns the specified element and whether it was found

func (SignedKey) MarshalJSON

func (a SignedKey) MarshalJSON() ([]byte, error)

Override default JSON handling for SignedKey to handle AdditionalProperties

func (*SignedKey) Set

func (a *SignedKey) Set(fieldName string, value json.RawMessage)

Setter for additional properties for SignedKey

func (*SignedKey) UnmarshalJSON

func (a *SignedKey) UnmarshalJSON(b []byte) error

Override default JSON handling for SignedKey to handle AdditionalProperties

type SpotCleanRPCJSONRequestBody

type SpotCleanRPCJSONRequestBody = NoParameters

SpotCleanRPCJSONRequestBody defines body for SpotCleanRPC for application/json ContentType.

type StartCleaningRPCJSONRequestBody

type StartCleaningRPCJSONRequestBody = NoParameters

StartCleaningRPCJSONRequestBody defines body for StartCleaningRPC for application/json ContentType.

type StartDustCollectionRPCJSONRequestBody

type StartDustCollectionRPCJSONRequestBody = NoParameters

StartDustCollectionRPCJSONRequestBody defines body for StartDustCollectionRPC for application/json ContentType.

type StartMopWashingRPCJSONRequestBody

type StartMopWashingRPCJSONRequestBody = NoParameters

StartMopWashingRPCJSONRequestBody defines body for StartMopWashingRPC for application/json ContentType.

type StartZeoWire

type StartZeoWire struct {
	// Start Schema-owned true start signal; bundled with nonzero mode and program.
	Start StartZeoWire200 `json:"200"`

	// Mode Mode appliance datapoint.
	Mode int `json:"204"`

	// Program Program appliance datapoint.
	Program int `json:"205"`

	// Temperature Temperature appliance datapoint.
	Temperature *int `json:"207,omitempty"`

	// Rinse Rinse appliance datapoint.
	Rinse *int `json:"208,omitempty"`

	// Spin Spin appliance datapoint.
	Spin *int `json:"209,omitempty"`

	// DryingMode DryingMode appliance datapoint.
	DryingMode *int `json:"210,omitempty"`

	// Soak Soak appliance datapoint.
	Soak *int `json:"233,omitempty"`

	// DryCareMode DryCareMode appliance datapoint.
	DryCareMode *int `json:"244,omitempty"`

	// DryingMethod DryingMethod appliance datapoint.
	DryingMethod *int `json:"256,omitempty"`

	// SteamVolume SteamVolume appliance datapoint.
	SteamVolume *int `json:"257,omitempty"`
}

StartZeoWire Bundled Zeo START command.

type StartZeoWire200

type StartZeoWire200 bool

StartZeoWire200 Schema-owned true start signal; bundled with nonzero mode and program.

const (
	True StartZeoWire200 = true
)

Defines values for StartZeoWire200.

type Status

type Status struct {
	AdbumperStatus     *[]int64 `json:"adbumper_status,omitempty"`
	AutoDustCollection *int64   `json:"auto_dust_collection,omitempty"`
	AvoidCount         *int64   `json:"avoid_count,omitempty"`
	BackType           *int64   `json:"back_type,omitempty"`
	Battery            *int64   `json:"battery,omitempty"`
	CameraStatus       *int64   `json:"camera_status,omitempty"`

	// ChargeStatus Open ChargeStatus value; future firmware values are accepted.
	ChargeStatus         *ChargeStatus `json:"charge_status,omitempty"`
	CleanArea            *int64        `json:"clean_area,omitempty"`
	CleanPercent         *int64        `json:"clean_percent,omitempty"`
	CleanTime            *int64        `json:"clean_time,omitempty"`
	CollisionAvoidStatus *int64        `json:"collision_avoid_status,omitempty"`
	CommonStatus         *int64        `json:"common_status,omitempty"`
	CornerCleanMode      *int64        `json:"corner_clean_mode,omitempty"`
	DebugMode            *int64        `json:"debug_mode,omitempty"`
	DistanceOff          *int64        `json:"distance_off,omitempty"`
	DndEnabled           *int64        `json:"dnd_enabled,omitempty"`

	// DockErrorStatus Open DockErrorCode value; future firmware values are accepted.
	DockErrorStatus *DockErrorCode `json:"dock_error_status,omitempty"`

	// DockType Open DockType value; future firmware values are accepted.
	DockType             *DockType `json:"dock_type,omitempty"`
	DryStatus            *int64    `json:"dry_status,omitempty"`
	Dss                  *int64    `json:"dss,omitempty"`
	DustCollectionStatus *int64    `json:"dust_collection_status,omitempty"`

	// ErrorCode Open DeviceErrorCode value; future firmware values are accepted.
	ErrorCode *DeviceErrorCode `json:"error_code,omitempty"`

	// FanPower Open FanSpeed value; future firmware values are accepted.
	FanPower              *FanSpeed `json:"fan_power,omitempty"`
	HomeSecEnablePassword *int64    `json:"home_sec_enable_password,omitempty"`
	HomeSecStatus         *int64    `json:"home_sec_status,omitempty"`

	// InCleaning Open CleaningState value; future firmware values are accepted.
	InCleaning         *CleaningState `json:"in_cleaning,omitempty"`
	InFreshState       *int64         `json:"in_fresh_state,omitempty"`
	InReturning        *int64         `json:"in_returning,omitempty"`
	InWarmup           *int64         `json:"in_warmup,omitempty"`
	IsExploring        *int64         `json:"is_exploring,omitempty"`
	IsLocating         *int64         `json:"is_locating,omitempty"`
	Kct                *int64         `json:"kct,omitempty"`
	LabStatus          *int64         `json:"lab_status,omitempty"`
	LastCleanT         *int64         `json:"last_clean_t,omitempty"`
	LockStatus         *int64         `json:"lock_status,omitempty"`
	MapPresent         *int64         `json:"map_present,omitempty"`
	MapStatus          *int64         `json:"map_status,omitempty"`
	MopForbiddenEnable *int64         `json:"mop_forbidden_enable,omitempty"`

	// MopMode Open MopMode value; future firmware values are accepted.
	MopMode       *MopMode `json:"mop_mode,omitempty"`
	MsgSeq        *int64   `json:"msg_seq,omitempty"`
	MsgVer        *int64   `json:"msg_ver,omitempty"`
	Rdt           *int64   `json:"rdt,omitempty"`
	Repeat        *int64   `json:"repeat,omitempty"`
	ReplenishMode *int64   `json:"replenish_mode,omitempty"`
	Rss           *int64   `json:"rss,omitempty"`

	// State Open DeviceState value; future firmware values are accepted.
	State                  *DeviceState `json:"state,omitempty"`
	SubdivisionSets        *int64       `json:"subdivision_sets,omitempty"`
	SwitchMapMode          *int64       `json:"switch_map_mode,omitempty"`
	UnsaveMapFlag          *int64       `json:"unsave_map_flag,omitempty"`
	UnsaveMapReason        *int64       `json:"unsave_map_reason,omitempty"`
	WashPhase              *int64       `json:"wash_phase,omitempty"`
	WashReady              *int64       `json:"wash_ready,omitempty"`
	WashStatus             *int64       `json:"wash_status,omitempty"`
	WaterBoxCarriageStatus *int64       `json:"water_box_carriage_status,omitempty"`

	// WaterBoxMode Open WaterMode value; future firmware values are accepted.
	WaterBoxMode         *WaterMode                 `json:"water_box_mode,omitempty"`
	WaterBoxStatus       *int64                     `json:"water_box_status,omitempty"`
	WaterShortageStatus  *int64                     `json:"water_shortage_status,omitempty"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

Status Presence-aware Status inventory from pinned Python V1 containers; absent fields stay absent. Cleaning area is square millimeters and durations are seconds.

func (Status) Get

func (a Status) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for Status. Returns the specified element and whether it was found

func (Status) MarshalJSON

func (a Status) MarshalJSON() ([]byte, error)

Override default JSON handling for Status to handle AdditionalProperties

func (*Status) Set

func (a *Status) Set(fieldName string, value json.RawMessage)

Setter for additional properties for Status

func (*Status) UnmarshalJSON

func (a *Status) UnmarshalJSON(b []byte) error

Override default JSON handling for Status to handle AdditionalProperties

type StatusRPCResult

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

StatusRPCResult Device returns an object or an array containing exactly one object. Unknown firmware fields remain available as raw JSON properties.

func (StatusRPCResult) AsStatus

func (t StatusRPCResult) AsStatus() (Status, error)

AsStatus returns the union data inside the StatusRPCResult as a Status

func (StatusRPCResult) AsStatusSingletonResult

func (t StatusRPCResult) AsStatusSingletonResult() (StatusSingletonResult, error)

AsStatusSingletonResult returns the union data inside the StatusRPCResult as a StatusSingletonResult

func (*StatusRPCResult) FromStatus

func (t *StatusRPCResult) FromStatus(v Status) error

FromStatus overwrites any union data inside the StatusRPCResult as the provided Status

func (*StatusRPCResult) FromStatusSingletonResult

func (t *StatusRPCResult) FromStatusSingletonResult(v StatusSingletonResult) error

FromStatusSingletonResult overwrites any union data inside the StatusRPCResult as the provided StatusSingletonResult

func (StatusRPCResult) MarshalJSON

func (t StatusRPCResult) MarshalJSON() ([]byte, error)

func (*StatusRPCResult) MergeStatus

func (t *StatusRPCResult) MergeStatus(v Status) error

MergeStatus performs a merge with any union data inside the StatusRPCResult, using the provided Status

func (*StatusRPCResult) MergeStatusSingletonResult

func (t *StatusRPCResult) MergeStatusSingletonResult(v StatusSingletonResult) error

MergeStatusSingletonResult performs a merge with any union data inside the StatusRPCResult, using the provided StatusSingletonResult

func (*StatusRPCResult) UnmarshalJSON

func (t *StatusRPCResult) UnmarshalJSON(b []byte) error

type StatusSingletonResult

type StatusSingletonResult = []Status

StatusSingletonResult defines model for StatusSingletonResult.

type StopCleaningRPCJSONRequestBody

type StopCleaningRPCJSONRequestBody = NoParameters

StopCleaningRPCJSONRequestBody defines body for StopCleaningRPC for application/json ContentType.

type StopDustCollectionRPCJSONRequestBody

type StopDustCollectionRPCJSONRequestBody = NoParameters

StopDustCollectionRPCJSONRequestBody defines body for StopDustCollectionRPC for application/json ContentType.

type StopMopWashingRPCJSONRequestBody

type StopMopWashingRPCJSONRequestBody = NoParameters

StopMopWashingRPCJSONRequestBody defines body for StopMopWashingRPC for application/json ContentType.

type UserData

type UserData struct {
	Avatarurl            *string                    `json:"avatarurl"`
	Country              *string                    `json:"country"`
	Countrycode          *string                    `json:"countrycode"`
	Nickname             *string                    `json:"nickname"`
	Region               *string                    `json:"region"`
	Rriot                RRiot                      `json:"rriot"`
	Rruid                *string                    `json:"rruid"`
	Token                *string                    `json:"token"`
	Tokentype            *string                    `json:"tokentype"`
	TuyaDeviceState      *int64                     `json:"tuyaDeviceState"`
	Uid                  *int64                     `json:"uid"`
	AdditionalProperties map[string]json.RawMessage `json:"-"`
}

UserData defines model for UserData.

func (UserData) Get

func (a UserData) Get(fieldName string) (value json.RawMessage, found bool)

Getter for additional properties for UserData. Returns the specified element and whether it was found

func (UserData) MarshalJSON

func (a UserData) MarshalJSON() ([]byte, error)

Override default JSON handling for UserData to handle AdditionalProperties

func (*UserData) Set

func (a *UserData) Set(fieldName string, value json.RawMessage)

Setter for additional properties for UserData

func (*UserData) UnmarshalJSON

func (a *UserData) UnmarshalJSON(b []byte) error

Override default JSON handling for UserData to handle AdditionalProperties

type VendorCode

type VendorCode = int

VendorCode Open vendor result code. Known values are preserved without rejecting future result codes.

const (
	VendorCodeAccountMissing     VendorCode = 2008
	VendorCodeAgreementRequired  VendorCode = 3009
	VendorCodeDeletedAccount     VendorCode = 3030
	VendorCodeInvalidAgreement   VendorCode = 3006
	VendorCodeInvalidCode        VendorCode = 2018
	VendorCodeInvalidCredentials VendorCode = 2010
	VendorCodeInvalidEmail       VendorCode = 2003
	VendorCodeMissingParameters  VendorCode = 1001
	VendorCodeSuccess            VendorCode = 200
	VendorCodeTooFrequent        VendorCode = 9002
	VendorCodeWrongRegion        VendorCode = 3039
)

type WaterMode

type WaterMode int

WaterMode Open device-dependent numeric enum; future values are preserved. This named inventory lists known constants; field contracts explicitly accept future values.

const (
	WaterModeHigh   WaterMode = 203
	WaterModeLow    WaterMode = 201
	WaterModeMedium WaterMode = 202
	WaterModeOff    WaterMode = 200
)

Defines values for WaterMode.

type ZeoStateWire

type ZeoStateWire struct {
	// Start Appliance boolean datapoint.
	Start *bool `json:"200,omitempty"`

	// Pause Appliance boolean datapoint.
	Pause *bool `json:"201,omitempty"`

	// Shutdown Appliance boolean datapoint.
	Shutdown *bool `json:"202,omitempty"`

	// Status Status appliance datapoint.
	Status *int `json:"203,omitempty"`

	// Mode Mode appliance datapoint.
	Mode *int `json:"204,omitempty"`

	// Program Program appliance datapoint.
	Program *int `json:"205,omitempty"`

	// ChildLock Appliance boolean datapoint.
	ChildLock *bool `json:"206,omitempty"`

	// Temperature Temperature appliance datapoint.
	Temperature *int `json:"207,omitempty"`

	// Rinse Rinse appliance datapoint.
	Rinse *int `json:"208,omitempty"`

	// Spin Spin appliance datapoint.
	Spin *int `json:"209,omitempty"`

	// DryingMode DryingMode appliance datapoint.
	DryingMode *int `json:"210,omitempty"`

	// DetergentSet Appliance boolean datapoint.
	DetergentSet *bool `json:"211,omitempty"`

	// SoftenerSet Appliance boolean datapoint.
	SoftenerSet *bool `json:"212,omitempty"`

	// DetergentType DetergentType appliance datapoint.
	DetergentType *int `json:"213,omitempty"`

	// SoftenerType SoftenerType appliance datapoint.
	SoftenerType *int `json:"214,omitempty"`

	// DirtDetectionStatus DirtDetectionStatus appliance datapoint.
	DirtDetectionStatus *int `json:"216,omitempty"`

	// Countdown Countdown appliance datapoint.
	Countdown *int `json:"217,omitempty"`

	// WashingLeft WashingLeft appliance datapoint.
	WashingLeft *int `json:"218,omitempty"`

	// DoorLockState Appliance boolean datapoint.
	DoorLockState *bool `json:"219,omitempty"`

	// Error Error appliance datapoint.
	Error *int `json:"220,omitempty"`

	// CustomParamSave CustomParamSave appliance datapoint.
	CustomParamSave *int `json:"221,omitempty"`

	// CustomParamGet CustomParamGet appliance datapoint.
	CustomParamGet *int `json:"222,omitempty"`

	// Sound Appliance boolean datapoint.
	Sound *bool `json:"223,omitempty"`

	// TimesAfterClean TimesAfterClean appliance datapoint.
	TimesAfterClean *int `json:"224,omitempty"`

	// DefaultSetting Appliance boolean datapoint.
	DefaultSetting *bool `json:"225,omitempty"`

	// DetergentEmpty Appliance boolean datapoint.
	DetergentEmpty *bool `json:"226,omitempty"`

	// SoftenerEmpty Appliance boolean datapoint.
	SoftenerEmpty *bool `json:"227,omitempty"`

	// LightSetting Appliance boolean datapoint.
	LightSetting *bool `json:"229,omitempty"`

	// DetergentVolume DetergentVolume appliance datapoint.
	DetergentVolume *int `json:"230,omitempty"`

	// SoftenerVolume SoftenerVolume appliance datapoint.
	SoftenerVolume *int `json:"231,omitempty"`

	// AppAuthorization AppAuthorization appliance datapoint.
	AppAuthorization *int `json:"232,omitempty"`

	// Soak Soak appliance datapoint.
	Soak *int `json:"233,omitempty"`

	// TotalTime TotalTime appliance datapoint.
	TotalTime *int `json:"234,omitempty"`

	// FeatureBits FeatureBits appliance datapoint.
	FeatureBits *int `json:"237,omitempty"`

	// CustomProgramCleaningTime CustomProgramCleaningTime appliance datapoint.
	CustomProgramCleaningTime *int `json:"239,omitempty"`

	// SilentModeStartTime Minute of day, from 0 through 1439.
	SilentModeStartTime *int `json:"241,omitempty"`

	// SilentModeEndTime Minute of day, from 0 through 1439.
	SilentModeEndTime *int `json:"242,omitempty"`

	// DryCareMode DryCareMode appliance datapoint.
	DryCareMode *int `json:"244,omitempty"`

	// SoftenerExpansionType SoftenerExpansionType appliance datapoint.
	SoftenerExpansionType *int `json:"245,omitempty"`

	// DetergentExpansionType DetergentExpansionType appliance datapoint.
	DetergentExpansionType *int `json:"248,omitempty"`

	// DryingMethod DryingMethod appliance datapoint.
	DryingMethod *int `json:"256,omitempty"`

	// SteamVolume SteamVolume appliance datapoint.
	SteamVolume *int `json:"257,omitempty"`

	// SteamCareTime SteamCareTime appliance datapoint.
	SteamCareTime *int `json:"261,omitempty"`

	// StartDryerError StartDryerError appliance datapoint.
	StartDryerError *int `json:"265,omitempty"`
}

ZeoStateWire Numeric-key A01 appliance datapoints.

type ZoneParameters

type ZoneParameters = [][]int64

ZoneParameters defines model for ZoneParameters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL