Skip to content

Commit

Permalink
Release v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 4, 2023
1 parent e5d4391 commit 770d485
Show file tree
Hide file tree
Showing 26 changed files with 516 additions and 2,754 deletions.
42 changes: 21 additions & 21 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import (
type Client interface {
AccessCodes() AccessCodesClient
ActionAttempts() ActionAttemptsClient
ClientSessions() ClientSessionsClient
ConnectedAccounts() ConnectedAccountsClient
ConnectWebviews() ConnectWebviewsClient
Devices() DevicesClient
ClientSessions() ClientSessionsClient
Events() EventsClient
Health() HealthClient
ConnectWebviews() ConnectWebviewsClient
Locks() LocksClient
NoiseSensors() noisesensors.Client
Thermostats() ThermostatsClient
Webhooks() WebhooksClient
Workspaces() WorkspacesClient
NoiseSensors() noisesensors.Client
}

func NewClient(opts ...core.ClientOption) Client {
Expand All @@ -35,17 +35,17 @@ func NewClient(opts ...core.ClientOption) Client {
header: options.ToHeader(),
accessCodesClient: NewAccessCodesClient(opts...),
actionAttemptsClient: NewActionAttemptsClient(opts...),
clientSessionsClient: NewClientSessionsClient(opts...),
connectedAccountsClient: NewConnectedAccountsClient(opts...),
connectWebviewsClient: NewConnectWebviewsClient(opts...),
devicesClient: NewDevicesClient(opts...),
clientSessionsClient: NewClientSessionsClient(opts...),
eventsClient: NewEventsClient(opts...),
healthClient: NewHealthClient(opts...),
connectWebviewsClient: NewConnectWebviewsClient(opts...),
locksClient: NewLocksClient(opts...),
noiseSensorsClient: noisesensors.NewClient(opts...),
thermostatsClient: NewThermostatsClient(opts...),
webhooksClient: NewWebhooksClient(opts...),
workspacesClient: NewWorkspacesClient(opts...),
noiseSensorsClient: noisesensors.NewClient(opts...),
}
}

Expand All @@ -55,17 +55,17 @@ type client struct {
header http.Header
accessCodesClient AccessCodesClient
actionAttemptsClient ActionAttemptsClient
clientSessionsClient ClientSessionsClient
connectedAccountsClient ConnectedAccountsClient
connectWebviewsClient ConnectWebviewsClient
devicesClient DevicesClient
clientSessionsClient ClientSessionsClient
eventsClient EventsClient
healthClient HealthClient
connectWebviewsClient ConnectWebviewsClient
locksClient LocksClient
noiseSensorsClient noisesensors.Client
thermostatsClient ThermostatsClient
webhooksClient WebhooksClient
workspacesClient WorkspacesClient
noiseSensorsClient noisesensors.Client
}

func (c *client) AccessCodes() AccessCodesClient {
Expand All @@ -76,16 +76,20 @@ func (c *client) ActionAttempts() ActionAttemptsClient {
return c.actionAttemptsClient
}

func (c *client) ClientSessions() ClientSessionsClient {
return c.clientSessionsClient
}

func (c *client) ConnectedAccounts() ConnectedAccountsClient {
return c.connectedAccountsClient
}

func (c *client) Devices() DevicesClient {
return c.devicesClient
func (c *client) ConnectWebviews() ConnectWebviewsClient {
return c.connectWebviewsClient
}

func (c *client) ClientSessions() ClientSessionsClient {
return c.clientSessionsClient
func (c *client) Devices() DevicesClient {
return c.devicesClient
}

func (c *client) Events() EventsClient {
Expand All @@ -96,14 +100,14 @@ func (c *client) Health() HealthClient {
return c.healthClient
}

func (c *client) ConnectWebviews() ConnectWebviewsClient {
return c.connectWebviewsClient
}

func (c *client) Locks() LocksClient {
return c.locksClient
}

func (c *client) NoiseSensors() noisesensors.Client {
return c.noiseSensorsClient
}

func (c *client) Thermostats() ThermostatsClient {
return c.thermostatsClient
}
Expand All @@ -115,7 +119,3 @@ func (c *client) Webhooks() WebhooksClient {
func (c *client) Workspaces() WorkspacesClient {
return c.workspacesClient
}

func (c *client) NoiseSensors() noisesensors.Client {
return c.noiseSensorsClient
}
2 changes: 1 addition & 1 deletion device.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

type Device struct {
DeviceId string `json:"device_id"`
DeviceType DeviceDeviceType `json:"device_type,omitempty"`
DeviceType DeviceType `json:"device_type,omitempty"`
CapabilitiesSupported []DeviceCapabilitiesSupportedItem `json:"capabilities_supported,omitempty"`
Properties *DeviceProperties `json:"properties,omitempty"`
Location *any `json:"location,omitempty"`
Expand Down
185 changes: 0 additions & 185 deletions device_device_type.go

This file was deleted.

Loading

0 comments on commit 770d485

Please sign in to comment.