@seamapi/http 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +33 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +170 -127
- package/lib/seam/connect/client.d.ts +3 -3
- package/lib/seam/connect/client.js +1 -0
- package/lib/seam/connect/client.js.map +1 -1
- package/lib/seam/connect/index.d.ts +2 -0
- package/lib/seam/connect/index.js +2 -0
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/options.d.ts +4 -2
- package/lib/seam/connect/options.js.map +1 -1
- package/lib/seam/connect/parse-options.js +6 -0
- package/lib/seam/connect/parse-options.js.map +1 -1
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +7 -7
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +10 -10
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups.d.ts +11 -11
- package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials.d.ts +6 -6
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-systems.d.ts +4 -4
- package/lib/seam/connect/routes/acs-systems.js.map +1 -1
- package/lib/seam/connect/routes/acs-users.d.ts +11 -11
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts.d.ts +4 -4
- package/lib/seam/connect/routes/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions.d.ts +8 -8
- package/lib/seam/connect/routes/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews.d.ts +6 -6
- package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +3 -3
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +5 -5
- package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/devices.d.ts +8 -8
- package/lib/seam/connect/routes/devices.js.map +1 -1
- package/lib/seam/connect/routes/events.d.ts +4 -4
- package/lib/seam/connect/routes/events.js.map +1 -1
- package/lib/seam/connect/routes/locks.d.ts +6 -6
- package/lib/seam/connect/routes/locks.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +7 -7
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +7 -7
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +10 -10
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.d.ts +4 -4
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +1 -1
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/version.d.ts +2 -0
- package/lib/version.js +3 -0
- package/lib/version.js.map +1 -0
- package/package.json +6 -2
- package/src/lib/seam/connect/client.ts +4 -3
- package/src/lib/seam/connect/index.ts +2 -0
- package/src/lib/seam/connect/options.ts +3 -2
- package/src/lib/seam/connect/parse-options.ts +8 -0
- package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +7 -7
- package/src/lib/seam/connect/routes/access-codes.ts +10 -10
- package/src/lib/seam/connect/routes/acs-access-groups.ts +12 -11
- package/src/lib/seam/connect/routes/acs-credentials.ts +6 -6
- package/src/lib/seam/connect/routes/acs-systems.ts +4 -4
- package/src/lib/seam/connect/routes/acs-users.ts +13 -11
- package/src/lib/seam/connect/routes/action-attempts.ts +4 -4
- package/src/lib/seam/connect/routes/client-sessions.ts +8 -8
- package/src/lib/seam/connect/routes/connect-webviews.ts +7 -6
- package/src/lib/seam/connect/routes/connected-accounts.ts +3 -3
- package/src/lib/seam/connect/routes/devices-unmanaged.ts +6 -5
- package/src/lib/seam/connect/routes/devices.ts +10 -8
- package/src/lib/seam/connect/routes/events.ts +4 -4
- package/src/lib/seam/connect/routes/locks.ts +6 -6
- package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +7 -7
- package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +7 -7
- package/src/lib/seam/connect/routes/thermostats.ts +10 -10
- package/src/lib/seam/connect/routes/webhooks.ts +4 -4
- package/src/lib/seam/connect/routes/workspaces.ts +1 -1
- package/src/lib/version.ts +3 -0
package/dist/connect.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, CustomParamsSerializer } from 'axios';
|
|
2
2
|
import { AxiosRetry } from 'axios-retry';
|
|
3
3
|
import { RouteRequestBody, RouteResponse, RouteRequestParams } from '@seamapi/types/connect';
|
|
4
4
|
import { SetNonNullable } from 'type-fest';
|
|
5
5
|
|
|
6
|
-
type Client =
|
|
6
|
+
type Client = AxiosInstance;
|
|
7
7
|
interface ClientOptions {
|
|
8
8
|
axiosOptions?: AxiosRequestConfig;
|
|
9
9
|
axiosRetryOptions?: AxiosRetryConfig;
|
|
@@ -15,8 +15,10 @@ type SeamHttpOptions = SeamHttpOptionsFromEnv | SeamHttpOptionsWithClient | Seam
|
|
|
15
15
|
interface SeamHttpCommonOptions extends ClientOptions {
|
|
16
16
|
endpoint?: string;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
interface SeamHttpFromPublishableKeyOptions extends SeamHttpCommonOptions {
|
|
19
|
+
}
|
|
20
|
+
interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {
|
|
21
|
+
}
|
|
20
22
|
interface SeamHttpOptionsWithClient {
|
|
21
23
|
client: Client;
|
|
22
24
|
}
|
|
@@ -40,19 +42,22 @@ declare class SeamHttpAccessCodesUnmanaged {
|
|
|
40
42
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessCodesUnmanaged;
|
|
41
43
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessCodesUnmanaged;
|
|
42
44
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessCodesUnmanaged>;
|
|
43
|
-
convertToManaged(body
|
|
44
|
-
delete(body
|
|
45
|
-
get(body
|
|
46
|
-
list(body
|
|
47
|
-
update(body
|
|
45
|
+
convertToManaged(body?: AccessCodesUnmanagedConvertToManagedBody): Promise<void>;
|
|
46
|
+
delete(body?: AccessCodesUnmanagedDeleteBody): Promise<void>;
|
|
47
|
+
get(body?: AccessCodesUnmanagedGetParams): Promise<AccessCodesUnmanagedGetResponse['access_code']>;
|
|
48
|
+
list(body?: AccessCodesUnmanagedListParams): Promise<AccessCodesUnmanagedListResponse['access_codes']>;
|
|
49
|
+
update(body?: AccessCodesUnmanagedUpdateBody): Promise<void>;
|
|
48
50
|
}
|
|
49
51
|
type AccessCodesUnmanagedConvertToManagedBody = RouteRequestBody<'/access_codes/unmanaged/convert_to_managed'>;
|
|
52
|
+
type AccessCodesUnmanagedConvertToManagedResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/convert_to_managed'>>>;
|
|
50
53
|
type AccessCodesUnmanagedDeleteBody = RouteRequestBody<'/access_codes/unmanaged/delete'>;
|
|
51
|
-
type
|
|
54
|
+
type AccessCodesUnmanagedDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/delete'>>>;
|
|
55
|
+
type AccessCodesUnmanagedGetParams = RouteRequestBody<'/access_codes/unmanaged/get'>;
|
|
52
56
|
type AccessCodesUnmanagedGetResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/get'>>>;
|
|
53
|
-
type
|
|
57
|
+
type AccessCodesUnmanagedListParams = RouteRequestBody<'/access_codes/unmanaged/list'>;
|
|
54
58
|
type AccessCodesUnmanagedListResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/list'>>>;
|
|
55
59
|
type AccessCodesUnmanagedUpdateBody = RouteRequestBody<'/access_codes/unmanaged/update'>;
|
|
60
|
+
type AccessCodesUnmanagedUpdateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/update'>>>;
|
|
56
61
|
|
|
57
62
|
declare class SeamHttpAccessCodes {
|
|
58
63
|
client: Client;
|
|
@@ -62,29 +67,31 @@ declare class SeamHttpAccessCodes {
|
|
|
62
67
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessCodes;
|
|
63
68
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessCodes>;
|
|
64
69
|
get unmanaged(): SeamHttpAccessCodesUnmanaged;
|
|
65
|
-
create(body
|
|
66
|
-
createMultiple(body
|
|
67
|
-
delete(body
|
|
68
|
-
generateCode(body
|
|
69
|
-
get(body
|
|
70
|
-
list(body
|
|
71
|
-
pullBackupAccessCode(body
|
|
72
|
-
update(body
|
|
70
|
+
create(body?: AccessCodesCreateBody): Promise<AccessCodesCreateResponse['access_code']>;
|
|
71
|
+
createMultiple(body?: AccessCodesCreateMultipleBody): Promise<AccessCodesCreateMultipleResponse['access_codes']>;
|
|
72
|
+
delete(body?: AccessCodesDeleteBody): Promise<void>;
|
|
73
|
+
generateCode(body?: AccessCodesGenerateCodeBody): Promise<AccessCodesGenerateCodeResponse['generated_code']>;
|
|
74
|
+
get(body?: AccessCodesGetParams): Promise<AccessCodesGetResponse['access_code']>;
|
|
75
|
+
list(body?: AccessCodesListParams): Promise<AccessCodesListResponse['access_codes']>;
|
|
76
|
+
pullBackupAccessCode(body?: AccessCodesPullBackupAccessCodeBody): Promise<AccessCodesPullBackupAccessCodeResponse['backup_access_code']>;
|
|
77
|
+
update(body?: AccessCodesUpdateBody): Promise<void>;
|
|
73
78
|
}
|
|
74
79
|
type AccessCodesCreateBody = RouteRequestBody<'/access_codes/create'>;
|
|
75
80
|
type AccessCodesCreateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/create'>>>;
|
|
76
81
|
type AccessCodesCreateMultipleBody = RouteRequestBody<'/access_codes/create_multiple'>;
|
|
77
82
|
type AccessCodesCreateMultipleResponse = SetNonNullable<Required<RouteResponse<'/access_codes/create_multiple'>>>;
|
|
78
83
|
type AccessCodesDeleteBody = RouteRequestBody<'/access_codes/delete'>;
|
|
84
|
+
type AccessCodesDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/delete'>>>;
|
|
79
85
|
type AccessCodesGenerateCodeBody = RouteRequestBody<'/access_codes/generate_code'>;
|
|
80
86
|
type AccessCodesGenerateCodeResponse = SetNonNullable<Required<RouteResponse<'/access_codes/generate_code'>>>;
|
|
81
|
-
type
|
|
87
|
+
type AccessCodesGetParams = RouteRequestBody<'/access_codes/get'>;
|
|
82
88
|
type AccessCodesGetResponse = SetNonNullable<Required<RouteResponse<'/access_codes/get'>>>;
|
|
83
|
-
type
|
|
89
|
+
type AccessCodesListParams = RouteRequestBody<'/access_codes/list'>;
|
|
84
90
|
type AccessCodesListResponse = SetNonNullable<Required<RouteResponse<'/access_codes/list'>>>;
|
|
85
91
|
type AccessCodesPullBackupAccessCodeBody = RouteRequestBody<'/access_codes/pull_backup_access_code'>;
|
|
86
92
|
type AccessCodesPullBackupAccessCodeResponse = SetNonNullable<Required<RouteResponse<'/access_codes/pull_backup_access_code'>>>;
|
|
87
93
|
type AccessCodesUpdateBody = RouteRequestBody<'/access_codes/update'>;
|
|
94
|
+
type AccessCodesUpdateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/update'>>>;
|
|
88
95
|
|
|
89
96
|
declare class SeamHttpAcsAccessGroups {
|
|
90
97
|
client: Client;
|
|
@@ -93,27 +100,31 @@ declare class SeamHttpAcsAccessGroups {
|
|
|
93
100
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsAccessGroups;
|
|
94
101
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsAccessGroups;
|
|
95
102
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsAccessGroups>;
|
|
96
|
-
addUser(body
|
|
97
|
-
create(body
|
|
98
|
-
delete(body
|
|
99
|
-
get(body
|
|
100
|
-
list(body
|
|
101
|
-
listUsers(body
|
|
102
|
-
removeUser(body
|
|
103
|
-
update(body
|
|
103
|
+
addUser(body?: AcsAccessGroupsAddUserBody): Promise<void>;
|
|
104
|
+
create(body?: AcsAccessGroupsCreateBody): Promise<AcsAccessGroupsCreateResponse['acs_access_group']>;
|
|
105
|
+
delete(body?: AcsAccessGroupsDeleteBody): Promise<void>;
|
|
106
|
+
get(body?: AcsAccessGroupsGetParams): Promise<AcsAccessGroupsGetResponse['acs_access_group']>;
|
|
107
|
+
list(body?: AcsAccessGroupsListParams): Promise<AcsAccessGroupsListResponse['acs_access_groups']>;
|
|
108
|
+
listUsers(body?: AcsAccessGroupsListUsersParams): Promise<AcsAccessGroupsListUsersResponse['acs_users']>;
|
|
109
|
+
removeUser(body?: AcsAccessGroupsRemoveUserBody): Promise<void>;
|
|
110
|
+
update(body?: AcsAccessGroupsUpdateBody): Promise<void>;
|
|
104
111
|
}
|
|
105
112
|
type AcsAccessGroupsAddUserBody = RouteRequestBody<'/acs/access_groups/add_user'>;
|
|
113
|
+
type AcsAccessGroupsAddUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/add_user'>>>;
|
|
106
114
|
type AcsAccessGroupsCreateBody = RouteRequestBody<'/acs/access_groups/create'>;
|
|
107
115
|
type AcsAccessGroupsCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/create'>>>;
|
|
108
116
|
type AcsAccessGroupsDeleteBody = RouteRequestBody<'/acs/access_groups/delete'>;
|
|
109
|
-
type
|
|
117
|
+
type AcsAccessGroupsDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/delete'>>>;
|
|
118
|
+
type AcsAccessGroupsGetParams = RouteRequestBody<'/acs/access_groups/get'>;
|
|
110
119
|
type AcsAccessGroupsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/get'>>>;
|
|
111
|
-
type
|
|
120
|
+
type AcsAccessGroupsListParams = RouteRequestBody<'/acs/access_groups/list'>;
|
|
112
121
|
type AcsAccessGroupsListResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/list'>>>;
|
|
113
|
-
type
|
|
122
|
+
type AcsAccessGroupsListUsersParams = RouteRequestBody<'/acs/access_groups/list_users'>;
|
|
114
123
|
type AcsAccessGroupsListUsersResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/list_users'>>>;
|
|
115
124
|
type AcsAccessGroupsRemoveUserBody = RouteRequestBody<'/acs/access_groups/remove_user'>;
|
|
125
|
+
type AcsAccessGroupsRemoveUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/remove_user'>>>;
|
|
116
126
|
type AcsAccessGroupsUpdateBody = RouteRequestBody<'/acs/access_groups/update'>;
|
|
127
|
+
type AcsAccessGroupsUpdateResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/update'>>>;
|
|
117
128
|
|
|
118
129
|
declare class SeamHttpAcsCredentials {
|
|
119
130
|
client: Client;
|
|
@@ -122,17 +133,18 @@ declare class SeamHttpAcsCredentials {
|
|
|
122
133
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentials;
|
|
123
134
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentials;
|
|
124
135
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentials>;
|
|
125
|
-
create(body
|
|
126
|
-
delete(body
|
|
127
|
-
get(body
|
|
128
|
-
list(body
|
|
136
|
+
create(body?: AcsCredentialsCreateBody): Promise<AcsCredentialsCreateResponse['acs_credential']>;
|
|
137
|
+
delete(body?: AcsCredentialsDeleteBody): Promise<void>;
|
|
138
|
+
get(body?: AcsCredentialsGetParams): Promise<AcsCredentialsGetResponse['acs_credential']>;
|
|
139
|
+
list(body?: AcsCredentialsListParams): Promise<AcsCredentialsListResponse['acs_credentials']>;
|
|
129
140
|
}
|
|
130
141
|
type AcsCredentialsCreateBody = RouteRequestBody<'/acs/credentials/create'>;
|
|
131
142
|
type AcsCredentialsCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/create'>>>;
|
|
132
143
|
type AcsCredentialsDeleteBody = RouteRequestBody<'/acs/credentials/delete'>;
|
|
133
|
-
type
|
|
144
|
+
type AcsCredentialsDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/delete'>>>;
|
|
145
|
+
type AcsCredentialsGetParams = RouteRequestBody<'/acs/credentials/get'>;
|
|
134
146
|
type AcsCredentialsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/get'>>>;
|
|
135
|
-
type
|
|
147
|
+
type AcsCredentialsListParams = RouteRequestBody<'/acs/credentials/list'>;
|
|
136
148
|
type AcsCredentialsListResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/list'>>>;
|
|
137
149
|
|
|
138
150
|
declare class SeamHttpAcsSystems {
|
|
@@ -142,12 +154,12 @@ declare class SeamHttpAcsSystems {
|
|
|
142
154
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsSystems;
|
|
143
155
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsSystems;
|
|
144
156
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsSystems>;
|
|
145
|
-
get(body
|
|
146
|
-
list(body
|
|
157
|
+
get(body?: AcsSystemsGetParams): Promise<AcsSystemsGetResponse['acs_system']>;
|
|
158
|
+
list(body?: AcsSystemsListParams): Promise<AcsSystemsListResponse['acs_systems']>;
|
|
147
159
|
}
|
|
148
|
-
type
|
|
160
|
+
type AcsSystemsGetParams = RouteRequestBody<'/acs/systems/get'>;
|
|
149
161
|
type AcsSystemsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/systems/get'>>>;
|
|
150
|
-
type
|
|
162
|
+
type AcsSystemsListParams = RouteRequestBody<'/acs/systems/list'>;
|
|
151
163
|
type AcsSystemsListResponse = SetNonNullable<Required<RouteResponse<'/acs/systems/list'>>>;
|
|
152
164
|
|
|
153
165
|
declare class SeamHttpAcsUsers {
|
|
@@ -157,28 +169,34 @@ declare class SeamHttpAcsUsers {
|
|
|
157
169
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsUsers;
|
|
158
170
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsUsers;
|
|
159
171
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsUsers>;
|
|
160
|
-
addToAccessGroup(body
|
|
161
|
-
create(body
|
|
162
|
-
delete(body
|
|
163
|
-
get(body
|
|
164
|
-
list(body
|
|
165
|
-
removeFromAccessGroup(body
|
|
166
|
-
suspend(body
|
|
167
|
-
unsuspend(body
|
|
168
|
-
update(body
|
|
172
|
+
addToAccessGroup(body?: AcsUsersAddToAccessGroupBody): Promise<void>;
|
|
173
|
+
create(body?: AcsUsersCreateBody): Promise<AcsUsersCreateResponse['acs_user']>;
|
|
174
|
+
delete(body?: AcsUsersDeleteBody): Promise<void>;
|
|
175
|
+
get(body?: AcsUsersGetParams): Promise<AcsUsersGetResponse['acs_user']>;
|
|
176
|
+
list(body?: AcsUsersListParams): Promise<AcsUsersListResponse['acs_users']>;
|
|
177
|
+
removeFromAccessGroup(body?: AcsUsersRemoveFromAccessGroupBody): Promise<void>;
|
|
178
|
+
suspend(body?: AcsUsersSuspendBody): Promise<void>;
|
|
179
|
+
unsuspend(body?: AcsUsersUnsuspendBody): Promise<void>;
|
|
180
|
+
update(body?: AcsUsersUpdateBody): Promise<void>;
|
|
169
181
|
}
|
|
170
182
|
type AcsUsersAddToAccessGroupBody = RouteRequestBody<'/acs/users/add_to_access_group'>;
|
|
183
|
+
type AcsUsersAddToAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/add_to_access_group'>>>;
|
|
171
184
|
type AcsUsersCreateBody = RouteRequestBody<'/acs/users/create'>;
|
|
172
185
|
type AcsUsersCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/users/create'>>>;
|
|
173
186
|
type AcsUsersDeleteBody = RouteRequestBody<'/acs/users/delete'>;
|
|
174
|
-
type
|
|
187
|
+
type AcsUsersDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/users/delete'>>>;
|
|
188
|
+
type AcsUsersGetParams = RouteRequestBody<'/acs/users/get'>;
|
|
175
189
|
type AcsUsersGetResponse = SetNonNullable<Required<RouteResponse<'/acs/users/get'>>>;
|
|
176
|
-
type
|
|
190
|
+
type AcsUsersListParams = RouteRequestBody<'/acs/users/list'>;
|
|
177
191
|
type AcsUsersListResponse = SetNonNullable<Required<RouteResponse<'/acs/users/list'>>>;
|
|
178
192
|
type AcsUsersRemoveFromAccessGroupBody = RouteRequestBody<'/acs/users/remove_from_access_group'>;
|
|
193
|
+
type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/remove_from_access_group'>>>;
|
|
179
194
|
type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'>;
|
|
195
|
+
type AcsUsersSuspendResponse = SetNonNullable<Required<RouteResponse<'/acs/users/suspend'>>>;
|
|
180
196
|
type AcsUsersUnsuspendBody = RouteRequestBody<'/acs/users/unsuspend'>;
|
|
197
|
+
type AcsUsersUnsuspendResponse = SetNonNullable<Required<RouteResponse<'/acs/users/unsuspend'>>>;
|
|
181
198
|
type AcsUsersUpdateBody = RouteRequestBody<'/acs/users/update'>;
|
|
199
|
+
type AcsUsersUpdateResponse = SetNonNullable<Required<RouteResponse<'/acs/users/update'>>>;
|
|
182
200
|
|
|
183
201
|
declare class SeamHttpAcs {
|
|
184
202
|
client: Client;
|
|
@@ -200,12 +218,12 @@ declare class SeamHttpActionAttempts {
|
|
|
200
218
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpActionAttempts;
|
|
201
219
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpActionAttempts;
|
|
202
220
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpActionAttempts>;
|
|
203
|
-
get(body
|
|
204
|
-
list(body
|
|
221
|
+
get(body?: ActionAttemptsGetParams): Promise<ActionAttemptsGetResponse['action_attempt']>;
|
|
222
|
+
list(body?: ActionAttemptsListParams): Promise<ActionAttemptsListResponse['action_attempts']>;
|
|
205
223
|
}
|
|
206
|
-
type
|
|
224
|
+
type ActionAttemptsGetParams = RouteRequestBody<'/action_attempts/get'>;
|
|
207
225
|
type ActionAttemptsGetResponse = SetNonNullable<Required<RouteResponse<'/action_attempts/get'>>>;
|
|
208
|
-
type
|
|
226
|
+
type ActionAttemptsListParams = RouteRequestBody<'/action_attempts/list'>;
|
|
209
227
|
type ActionAttemptsListResponse = SetNonNullable<Required<RouteResponse<'/action_attempts/list'>>>;
|
|
210
228
|
|
|
211
229
|
declare class SeamHttpClientSessions {
|
|
@@ -215,23 +233,24 @@ declare class SeamHttpClientSessions {
|
|
|
215
233
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpClientSessions;
|
|
216
234
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpClientSessions;
|
|
217
235
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpClientSessions>;
|
|
218
|
-
create(body
|
|
219
|
-
delete(body
|
|
220
|
-
get(body
|
|
221
|
-
getOrCreate(body
|
|
222
|
-
grantAccess(body
|
|
223
|
-
list(body
|
|
236
|
+
create(body?: ClientSessionsCreateBody): Promise<ClientSessionsCreateResponse['client_session']>;
|
|
237
|
+
delete(body?: ClientSessionsDeleteBody): Promise<void>;
|
|
238
|
+
get(body?: ClientSessionsGetParams): Promise<ClientSessionsGetResponse['client_session']>;
|
|
239
|
+
getOrCreate(body?: ClientSessionsGetOrCreateBody): Promise<ClientSessionsGetOrCreateResponse['client_session']>;
|
|
240
|
+
grantAccess(body?: ClientSessionsGrantAccessBody): Promise<ClientSessionsGrantAccessResponse['client_session']>;
|
|
241
|
+
list(body?: ClientSessionsListParams): Promise<ClientSessionsListResponse['client_sessions']>;
|
|
224
242
|
}
|
|
225
243
|
type ClientSessionsCreateBody = RouteRequestBody<'/client_sessions/create'>;
|
|
226
244
|
type ClientSessionsCreateResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/create'>>>;
|
|
227
245
|
type ClientSessionsDeleteBody = RouteRequestBody<'/client_sessions/delete'>;
|
|
228
|
-
type
|
|
246
|
+
type ClientSessionsDeleteResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/delete'>>>;
|
|
247
|
+
type ClientSessionsGetParams = RouteRequestBody<'/client_sessions/get'>;
|
|
229
248
|
type ClientSessionsGetResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/get'>>>;
|
|
230
249
|
type ClientSessionsGetOrCreateBody = RouteRequestBody<'/client_sessions/get_or_create'>;
|
|
231
250
|
type ClientSessionsGetOrCreateResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/get_or_create'>>>;
|
|
232
251
|
type ClientSessionsGrantAccessBody = RouteRequestBody<'/client_sessions/grant_access'>;
|
|
233
252
|
type ClientSessionsGrantAccessResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/grant_access'>>>;
|
|
234
|
-
type
|
|
253
|
+
type ClientSessionsListParams = RouteRequestBody<'/client_sessions/list'>;
|
|
235
254
|
type ClientSessionsListResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/list'>>>;
|
|
236
255
|
|
|
237
256
|
declare class SeamHttpConnectWebviews {
|
|
@@ -241,20 +260,22 @@ declare class SeamHttpConnectWebviews {
|
|
|
241
260
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectWebviews;
|
|
242
261
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectWebviews;
|
|
243
262
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectWebviews>;
|
|
244
|
-
create(body
|
|
245
|
-
delete(body
|
|
246
|
-
get(body
|
|
247
|
-
list(body
|
|
263
|
+
create(body?: ConnectWebviewsCreateBody): Promise<ConnectWebviewsCreateResponse['connect_webview']>;
|
|
264
|
+
delete(body?: ConnectWebviewsDeleteBody): Promise<void>;
|
|
265
|
+
get(body?: ConnectWebviewsGetParams): Promise<ConnectWebviewsGetResponse['connect_webview']>;
|
|
266
|
+
list(body?: ConnectWebviewsListParams): Promise<ConnectWebviewsListResponse['connect_webviews']>;
|
|
248
267
|
view(params?: ConnectWebviewsViewParams): Promise<void>;
|
|
249
268
|
}
|
|
250
269
|
type ConnectWebviewsCreateBody = RouteRequestBody<'/connect_webviews/create'>;
|
|
251
270
|
type ConnectWebviewsCreateResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/create'>>>;
|
|
252
271
|
type ConnectWebviewsDeleteBody = RouteRequestBody<'/connect_webviews/delete'>;
|
|
253
|
-
type
|
|
272
|
+
type ConnectWebviewsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/delete'>>>;
|
|
273
|
+
type ConnectWebviewsGetParams = RouteRequestBody<'/connect_webviews/get'>;
|
|
254
274
|
type ConnectWebviewsGetResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/get'>>>;
|
|
255
|
-
type
|
|
275
|
+
type ConnectWebviewsListParams = RouteRequestBody<'/connect_webviews/list'>;
|
|
256
276
|
type ConnectWebviewsListResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/list'>>>;
|
|
257
277
|
type ConnectWebviewsViewParams = RouteRequestParams<'/connect_webviews/view'>;
|
|
278
|
+
type ConnectWebviewsViewResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/view'>>>;
|
|
258
279
|
|
|
259
280
|
declare class SeamHttpConnectedAccounts {
|
|
260
281
|
client: Client;
|
|
@@ -263,12 +284,13 @@ declare class SeamHttpConnectedAccounts {
|
|
|
263
284
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectedAccounts;
|
|
264
285
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectedAccounts;
|
|
265
286
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectedAccounts>;
|
|
266
|
-
delete(body
|
|
267
|
-
get(body
|
|
287
|
+
delete(body?: ConnectedAccountsDeleteBody): Promise<void>;
|
|
288
|
+
get(body?: ConnectedAccountsGetParams): Promise<ConnectedAccountsGetResponse['connected_account']>;
|
|
268
289
|
list(params?: ConnectedAccountsListParams): Promise<ConnectedAccountsListResponse['connected_accounts']>;
|
|
269
290
|
}
|
|
270
291
|
type ConnectedAccountsDeleteBody = RouteRequestBody<'/connected_accounts/delete'>;
|
|
271
|
-
type
|
|
292
|
+
type ConnectedAccountsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/delete'>>>;
|
|
293
|
+
type ConnectedAccountsGetParams = RouteRequestBody<'/connected_accounts/get'>;
|
|
272
294
|
type ConnectedAccountsGetResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/get'>>>;
|
|
273
295
|
type ConnectedAccountsListParams = RouteRequestParams<'/connected_accounts/list'>;
|
|
274
296
|
type ConnectedAccountsListResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/list'>>>;
|
|
@@ -280,15 +302,16 @@ declare class SeamHttpDevicesUnmanaged {
|
|
|
280
302
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpDevicesUnmanaged;
|
|
281
303
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpDevicesUnmanaged;
|
|
282
304
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpDevicesUnmanaged>;
|
|
283
|
-
get(body
|
|
284
|
-
list(body
|
|
285
|
-
update(body
|
|
305
|
+
get(body?: DevicesUnmanagedGetParams): Promise<DevicesUnmanagedGetResponse['device']>;
|
|
306
|
+
list(body?: DevicesUnmanagedListParams): Promise<DevicesUnmanagedListResponse['devices']>;
|
|
307
|
+
update(body?: DevicesUnmanagedUpdateBody): Promise<void>;
|
|
286
308
|
}
|
|
287
|
-
type
|
|
309
|
+
type DevicesUnmanagedGetParams = RouteRequestBody<'/devices/unmanaged/get'>;
|
|
288
310
|
type DevicesUnmanagedGetResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/get'>>>;
|
|
289
|
-
type
|
|
311
|
+
type DevicesUnmanagedListParams = RouteRequestBody<'/devices/unmanaged/list'>;
|
|
290
312
|
type DevicesUnmanagedListResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/list'>>>;
|
|
291
313
|
type DevicesUnmanagedUpdateBody = RouteRequestBody<'/devices/unmanaged/update'>;
|
|
314
|
+
type DevicesUnmanagedUpdateResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/update'>>>;
|
|
292
315
|
|
|
293
316
|
declare class SeamHttpDevices {
|
|
294
317
|
client: Client;
|
|
@@ -298,20 +321,22 @@ declare class SeamHttpDevices {
|
|
|
298
321
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpDevices;
|
|
299
322
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpDevices>;
|
|
300
323
|
get unmanaged(): SeamHttpDevicesUnmanaged;
|
|
301
|
-
delete(body
|
|
302
|
-
get(body
|
|
303
|
-
list(body
|
|
304
|
-
listDeviceProviders(body
|
|
305
|
-
update(body
|
|
324
|
+
delete(body?: DevicesDeleteBody): Promise<void>;
|
|
325
|
+
get(body?: DevicesGetParams): Promise<DevicesGetResponse['device']>;
|
|
326
|
+
list(body?: DevicesListParams): Promise<DevicesListResponse['devices']>;
|
|
327
|
+
listDeviceProviders(body?: DevicesListDeviceProvidersParams): Promise<DevicesListDeviceProvidersResponse['device_providers']>;
|
|
328
|
+
update(body?: DevicesUpdateBody): Promise<void>;
|
|
306
329
|
}
|
|
307
330
|
type DevicesDeleteBody = RouteRequestBody<'/devices/delete'>;
|
|
308
|
-
type
|
|
331
|
+
type DevicesDeleteResponse = SetNonNullable<Required<RouteResponse<'/devices/delete'>>>;
|
|
332
|
+
type DevicesGetParams = RouteRequestBody<'/devices/get'>;
|
|
309
333
|
type DevicesGetResponse = SetNonNullable<Required<RouteResponse<'/devices/get'>>>;
|
|
310
|
-
type
|
|
334
|
+
type DevicesListParams = RouteRequestBody<'/devices/list'>;
|
|
311
335
|
type DevicesListResponse = SetNonNullable<Required<RouteResponse<'/devices/list'>>>;
|
|
312
|
-
type
|
|
336
|
+
type DevicesListDeviceProvidersParams = RouteRequestBody<'/devices/list_device_providers'>;
|
|
313
337
|
type DevicesListDeviceProvidersResponse = SetNonNullable<Required<RouteResponse<'/devices/list_device_providers'>>>;
|
|
314
338
|
type DevicesUpdateBody = RouteRequestBody<'/devices/update'>;
|
|
339
|
+
type DevicesUpdateResponse = SetNonNullable<Required<RouteResponse<'/devices/update'>>>;
|
|
315
340
|
|
|
316
341
|
declare class SeamHttpEvents {
|
|
317
342
|
client: Client;
|
|
@@ -320,12 +345,12 @@ declare class SeamHttpEvents {
|
|
|
320
345
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpEvents;
|
|
321
346
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpEvents;
|
|
322
347
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpEvents>;
|
|
323
|
-
get(body
|
|
324
|
-
list(body
|
|
348
|
+
get(body?: EventsGetParams): Promise<EventsGetResponse['event']>;
|
|
349
|
+
list(body?: EventsListParams): Promise<EventsListResponse['events']>;
|
|
325
350
|
}
|
|
326
|
-
type
|
|
351
|
+
type EventsGetParams = RouteRequestBody<'/events/get'>;
|
|
327
352
|
type EventsGetResponse = SetNonNullable<Required<RouteResponse<'/events/get'>>>;
|
|
328
|
-
type
|
|
353
|
+
type EventsListParams = RouteRequestBody<'/events/list'>;
|
|
329
354
|
type EventsListResponse = SetNonNullable<Required<RouteResponse<'/events/list'>>>;
|
|
330
355
|
|
|
331
356
|
declare class SeamHttpLocks {
|
|
@@ -335,14 +360,14 @@ declare class SeamHttpLocks {
|
|
|
335
360
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpLocks;
|
|
336
361
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpLocks;
|
|
337
362
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpLocks>;
|
|
338
|
-
get(body
|
|
339
|
-
list(body
|
|
340
|
-
lockDoor(body
|
|
341
|
-
unlockDoor(body
|
|
363
|
+
get(body?: LocksGetParams): Promise<LocksGetResponse['device']>;
|
|
364
|
+
list(body?: LocksListParams): Promise<LocksListResponse['devices']>;
|
|
365
|
+
lockDoor(body?: LocksLockDoorBody): Promise<LocksLockDoorResponse['action_attempt']>;
|
|
366
|
+
unlockDoor(body?: LocksUnlockDoorBody): Promise<LocksUnlockDoorResponse['action_attempt']>;
|
|
342
367
|
}
|
|
343
|
-
type
|
|
368
|
+
type LocksGetParams = RouteRequestBody<'/locks/get'>;
|
|
344
369
|
type LocksGetResponse = SetNonNullable<Required<RouteResponse<'/locks/get'>>>;
|
|
345
|
-
type
|
|
370
|
+
type LocksListParams = RouteRequestBody<'/locks/list'>;
|
|
346
371
|
type LocksListResponse = SetNonNullable<Required<RouteResponse<'/locks/list'>>>;
|
|
347
372
|
type LocksLockDoorBody = RouteRequestBody<'/locks/lock_door'>;
|
|
348
373
|
type LocksLockDoorResponse = SetNonNullable<Required<RouteResponse<'/locks/lock_door'>>>;
|
|
@@ -356,19 +381,22 @@ declare class SeamHttpNoiseSensorsNoiseThresholds {
|
|
|
356
381
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpNoiseSensorsNoiseThresholds;
|
|
357
382
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpNoiseSensorsNoiseThresholds;
|
|
358
383
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpNoiseSensorsNoiseThresholds>;
|
|
359
|
-
create(body
|
|
360
|
-
delete(body
|
|
361
|
-
get(body
|
|
362
|
-
list(body
|
|
363
|
-
update(body
|
|
384
|
+
create(body?: NoiseSensorsNoiseThresholdsCreateBody): Promise<void>;
|
|
385
|
+
delete(body?: NoiseSensorsNoiseThresholdsDeleteBody): Promise<void>;
|
|
386
|
+
get(body?: NoiseSensorsNoiseThresholdsGetParams): Promise<NoiseSensorsNoiseThresholdsGetResponse['noise_threshold']>;
|
|
387
|
+
list(body?: NoiseSensorsNoiseThresholdsListParams): Promise<NoiseSensorsNoiseThresholdsListResponse['noise_thresholds']>;
|
|
388
|
+
update(body?: NoiseSensorsNoiseThresholdsUpdateBody): Promise<void>;
|
|
364
389
|
}
|
|
365
390
|
type NoiseSensorsNoiseThresholdsCreateBody = RouteRequestBody<'/noise_sensors/noise_thresholds/create'>;
|
|
391
|
+
type NoiseSensorsNoiseThresholdsCreateResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/create'>>>;
|
|
366
392
|
type NoiseSensorsNoiseThresholdsDeleteBody = RouteRequestBody<'/noise_sensors/noise_thresholds/delete'>;
|
|
367
|
-
type
|
|
393
|
+
type NoiseSensorsNoiseThresholdsDeleteResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/delete'>>>;
|
|
394
|
+
type NoiseSensorsNoiseThresholdsGetParams = RouteRequestBody<'/noise_sensors/noise_thresholds/get'>;
|
|
368
395
|
type NoiseSensorsNoiseThresholdsGetResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/get'>>>;
|
|
369
|
-
type
|
|
396
|
+
type NoiseSensorsNoiseThresholdsListParams = RouteRequestBody<'/noise_sensors/noise_thresholds/list'>;
|
|
370
397
|
type NoiseSensorsNoiseThresholdsListResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/list'>>>;
|
|
371
398
|
type NoiseSensorsNoiseThresholdsUpdateBody = RouteRequestBody<'/noise_sensors/noise_thresholds/update'>;
|
|
399
|
+
type NoiseSensorsNoiseThresholdsUpdateResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/update'>>>;
|
|
372
400
|
|
|
373
401
|
declare class SeamHttpNoiseSensors {
|
|
374
402
|
client: Client;
|
|
@@ -387,20 +415,22 @@ declare class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
387
415
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
388
416
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
389
417
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsClimateSettingSchedules>;
|
|
390
|
-
create(body
|
|
391
|
-
delete(body
|
|
392
|
-
get(body
|
|
393
|
-
list(body
|
|
394
|
-
update(body
|
|
418
|
+
create(body?: ThermostatsClimateSettingSchedulesCreateBody): Promise<ThermostatsClimateSettingSchedulesCreateResponse['climate_setting_schedule']>;
|
|
419
|
+
delete(body?: ThermostatsClimateSettingSchedulesDeleteBody): Promise<void>;
|
|
420
|
+
get(body?: ThermostatsClimateSettingSchedulesGetParams): Promise<ThermostatsClimateSettingSchedulesGetResponse['climate_setting_schedule']>;
|
|
421
|
+
list(body?: ThermostatsClimateSettingSchedulesListParams): Promise<ThermostatsClimateSettingSchedulesListResponse['climate_setting_schedules']>;
|
|
422
|
+
update(body?: ThermostatsClimateSettingSchedulesUpdateBody): Promise<void>;
|
|
395
423
|
}
|
|
396
424
|
type ThermostatsClimateSettingSchedulesCreateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/create'>;
|
|
397
425
|
type ThermostatsClimateSettingSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/create'>>>;
|
|
398
426
|
type ThermostatsClimateSettingSchedulesDeleteBody = RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>;
|
|
399
|
-
type
|
|
427
|
+
type ThermostatsClimateSettingSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/delete'>>>;
|
|
428
|
+
type ThermostatsClimateSettingSchedulesGetParams = RouteRequestBody<'/thermostats/climate_setting_schedules/get'>;
|
|
400
429
|
type ThermostatsClimateSettingSchedulesGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/get'>>>;
|
|
401
|
-
type
|
|
430
|
+
type ThermostatsClimateSettingSchedulesListParams = RouteRequestBody<'/thermostats/climate_setting_schedules/list'>;
|
|
402
431
|
type ThermostatsClimateSettingSchedulesListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/list'>>>;
|
|
403
432
|
type ThermostatsClimateSettingSchedulesUpdateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/update'>;
|
|
433
|
+
type ThermostatsClimateSettingSchedulesUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/update'>>>;
|
|
404
434
|
|
|
405
435
|
declare class SeamHttpThermostats {
|
|
406
436
|
client: Client;
|
|
@@ -410,25 +440,31 @@ declare class SeamHttpThermostats {
|
|
|
410
440
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostats;
|
|
411
441
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostats>;
|
|
412
442
|
get climateSettingSchedules(): SeamHttpThermostatsClimateSettingSchedules;
|
|
413
|
-
cool(body
|
|
414
|
-
get(body
|
|
415
|
-
heat(body
|
|
416
|
-
heatCool(body
|
|
417
|
-
list(body
|
|
418
|
-
off(body
|
|
419
|
-
setFanMode(body
|
|
420
|
-
update(body
|
|
443
|
+
cool(body?: ThermostatsCoolBody): Promise<void>;
|
|
444
|
+
get(body?: ThermostatsGetParams): Promise<ThermostatsGetResponse['thermostat']>;
|
|
445
|
+
heat(body?: ThermostatsHeatBody): Promise<void>;
|
|
446
|
+
heatCool(body?: ThermostatsHeatCoolBody): Promise<void>;
|
|
447
|
+
list(body?: ThermostatsListParams): Promise<ThermostatsListResponse['thermostats']>;
|
|
448
|
+
off(body?: ThermostatsOffBody): Promise<void>;
|
|
449
|
+
setFanMode(body?: ThermostatsSetFanModeBody): Promise<void>;
|
|
450
|
+
update(body?: ThermostatsUpdateBody): Promise<void>;
|
|
421
451
|
}
|
|
422
452
|
type ThermostatsCoolBody = RouteRequestBody<'/thermostats/cool'>;
|
|
423
|
-
type
|
|
453
|
+
type ThermostatsCoolResponse = SetNonNullable<Required<RouteResponse<'/thermostats/cool'>>>;
|
|
454
|
+
type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>;
|
|
424
455
|
type ThermostatsGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/get'>>>;
|
|
425
456
|
type ThermostatsHeatBody = RouteRequestBody<'/thermostats/heat'>;
|
|
457
|
+
type ThermostatsHeatResponse = SetNonNullable<Required<RouteResponse<'/thermostats/heat'>>>;
|
|
426
458
|
type ThermostatsHeatCoolBody = RouteRequestBody<'/thermostats/heat_cool'>;
|
|
427
|
-
type
|
|
459
|
+
type ThermostatsHeatCoolResponse = SetNonNullable<Required<RouteResponse<'/thermostats/heat_cool'>>>;
|
|
460
|
+
type ThermostatsListParams = RouteRequestBody<'/thermostats/list'>;
|
|
428
461
|
type ThermostatsListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/list'>>>;
|
|
429
462
|
type ThermostatsOffBody = RouteRequestBody<'/thermostats/off'>;
|
|
463
|
+
type ThermostatsOffResponse = SetNonNullable<Required<RouteResponse<'/thermostats/off'>>>;
|
|
430
464
|
type ThermostatsSetFanModeBody = RouteRequestBody<'/thermostats/set_fan_mode'>;
|
|
465
|
+
type ThermostatsSetFanModeResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_fan_mode'>>>;
|
|
431
466
|
type ThermostatsUpdateBody = RouteRequestBody<'/thermostats/update'>;
|
|
467
|
+
type ThermostatsUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/update'>>>;
|
|
432
468
|
|
|
433
469
|
declare class SeamHttpWebhooks {
|
|
434
470
|
client: Client;
|
|
@@ -437,15 +473,16 @@ declare class SeamHttpWebhooks {
|
|
|
437
473
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpWebhooks;
|
|
438
474
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpWebhooks;
|
|
439
475
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWebhooks>;
|
|
440
|
-
create(body
|
|
441
|
-
delete(body
|
|
442
|
-
get(body
|
|
476
|
+
create(body?: WebhooksCreateBody): Promise<WebhooksCreateResponse['webhook']>;
|
|
477
|
+
delete(body?: WebhooksDeleteBody): Promise<void>;
|
|
478
|
+
get(body?: WebhooksGetParams): Promise<WebhooksGetResponse['webhook']>;
|
|
443
479
|
list(params?: WebhooksListParams): Promise<WebhooksListResponse['webhooks']>;
|
|
444
480
|
}
|
|
445
481
|
type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>;
|
|
446
482
|
type WebhooksCreateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/create'>>>;
|
|
447
483
|
type WebhooksDeleteBody = RouteRequestBody<'/webhooks/delete'>;
|
|
448
|
-
type
|
|
484
|
+
type WebhooksDeleteResponse = SetNonNullable<Required<RouteResponse<'/webhooks/delete'>>>;
|
|
485
|
+
type WebhooksGetParams = RouteRequestBody<'/webhooks/get'>;
|
|
449
486
|
type WebhooksGetResponse = SetNonNullable<Required<RouteResponse<'/webhooks/get'>>>;
|
|
450
487
|
type WebhooksListParams = RouteRequestParams<'/webhooks/list'>;
|
|
451
488
|
type WebhooksListResponse = SetNonNullable<Required<RouteResponse<'/webhooks/list'>>>;
|
|
@@ -459,13 +496,14 @@ declare class SeamHttpWorkspaces {
|
|
|
459
496
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWorkspaces>;
|
|
460
497
|
get(params?: WorkspacesGetParams): Promise<WorkspacesGetResponse['workspace']>;
|
|
461
498
|
list(params?: WorkspacesListParams): Promise<WorkspacesListResponse['workspaces']>;
|
|
462
|
-
resetSandbox(body
|
|
499
|
+
resetSandbox(body?: WorkspacesResetSandboxBody): Promise<void>;
|
|
463
500
|
}
|
|
464
501
|
type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>;
|
|
465
502
|
type WorkspacesGetResponse = SetNonNullable<Required<RouteResponse<'/workspaces/get'>>>;
|
|
466
503
|
type WorkspacesListParams = RouteRequestParams<'/workspaces/list'>;
|
|
467
504
|
type WorkspacesListResponse = SetNonNullable<Required<RouteResponse<'/workspaces/list'>>>;
|
|
468
505
|
type WorkspacesResetSandboxBody = RouteRequestBody<'/workspaces/reset_sandbox'>;
|
|
506
|
+
type WorkspacesResetSandboxResponse = SetNonNullable<Required<RouteResponse<'/workspaces/reset_sandbox'>>>;
|
|
469
507
|
|
|
470
508
|
declare class SeamHttp {
|
|
471
509
|
client: Client;
|
|
@@ -489,4 +527,9 @@ declare class SeamHttp {
|
|
|
489
527
|
get workspaces(): SeamHttpWorkspaces;
|
|
490
528
|
}
|
|
491
529
|
|
|
492
|
-
|
|
530
|
+
declare const paramsSerializer: CustomParamsSerializer;
|
|
531
|
+
declare class UnserializableParamError extends Error {
|
|
532
|
+
constructor(name: string, message: string);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export { AccessCodesCreateBody, AccessCodesCreateMultipleBody, AccessCodesCreateMultipleResponse, AccessCodesCreateResponse, AccessCodesDeleteBody, AccessCodesDeleteResponse, AccessCodesGenerateCodeBody, AccessCodesGenerateCodeResponse, AccessCodesGetParams, AccessCodesGetResponse, AccessCodesListParams, AccessCodesListResponse, AccessCodesPullBackupAccessCodeBody, AccessCodesPullBackupAccessCodeResponse, AccessCodesUnmanagedConvertToManagedBody, AccessCodesUnmanagedConvertToManagedResponse, AccessCodesUnmanagedDeleteBody, AccessCodesUnmanagedDeleteResponse, AccessCodesUnmanagedGetParams, AccessCodesUnmanagedGetResponse, AccessCodesUnmanagedListParams, AccessCodesUnmanagedListResponse, AccessCodesUnmanagedUpdateBody, AccessCodesUnmanagedUpdateResponse, AccessCodesUpdateBody, AccessCodesUpdateResponse, AcsAccessGroupsAddUserBody, AcsAccessGroupsAddUserResponse, AcsAccessGroupsCreateBody, AcsAccessGroupsCreateResponse, AcsAccessGroupsDeleteBody, AcsAccessGroupsDeleteResponse, AcsAccessGroupsGetParams, AcsAccessGroupsGetResponse, AcsAccessGroupsListParams, AcsAccessGroupsListResponse, AcsAccessGroupsListUsersParams, AcsAccessGroupsListUsersResponse, AcsAccessGroupsRemoveUserBody, AcsAccessGroupsRemoveUserResponse, AcsAccessGroupsUpdateBody, AcsAccessGroupsUpdateResponse, AcsCredentialsCreateBody, AcsCredentialsCreateResponse, AcsCredentialsDeleteBody, AcsCredentialsDeleteResponse, AcsCredentialsGetParams, AcsCredentialsGetResponse, AcsCredentialsListParams, AcsCredentialsListResponse, AcsSystemsGetParams, AcsSystemsGetResponse, AcsSystemsListParams, AcsSystemsListResponse, AcsUsersAddToAccessGroupBody, AcsUsersAddToAccessGroupResponse, AcsUsersCreateBody, AcsUsersCreateResponse, AcsUsersDeleteBody, AcsUsersDeleteResponse, AcsUsersGetParams, AcsUsersGetResponse, AcsUsersListParams, AcsUsersListResponse, AcsUsersRemoveFromAccessGroupBody, AcsUsersRemoveFromAccessGroupResponse, AcsUsersSuspendBody, AcsUsersSuspendResponse, AcsUsersUnsuspendBody, AcsUsersUnsuspendResponse, AcsUsersUpdateBody, AcsUsersUpdateResponse, ActionAttemptsGetParams, ActionAttemptsGetResponse, ActionAttemptsListParams, ActionAttemptsListResponse, ClientSessionsCreateBody, ClientSessionsCreateResponse, ClientSessionsDeleteBody, ClientSessionsDeleteResponse, ClientSessionsGetOrCreateBody, ClientSessionsGetOrCreateResponse, ClientSessionsGetParams, ClientSessionsGetResponse, ClientSessionsGrantAccessBody, ClientSessionsGrantAccessResponse, ClientSessionsListParams, ClientSessionsListResponse, ConnectWebviewsCreateBody, ConnectWebviewsCreateResponse, ConnectWebviewsDeleteBody, ConnectWebviewsDeleteResponse, ConnectWebviewsGetParams, ConnectWebviewsGetResponse, ConnectWebviewsListParams, ConnectWebviewsListResponse, ConnectWebviewsViewParams, ConnectWebviewsViewResponse, ConnectedAccountsDeleteBody, ConnectedAccountsDeleteResponse, ConnectedAccountsGetParams, ConnectedAccountsGetResponse, ConnectedAccountsListParams, ConnectedAccountsListResponse, DevicesDeleteBody, DevicesDeleteResponse, DevicesGetParams, DevicesGetResponse, DevicesListDeviceProvidersParams, DevicesListDeviceProvidersResponse, DevicesListParams, DevicesListResponse, DevicesUnmanagedGetParams, DevicesUnmanagedGetResponse, DevicesUnmanagedListParams, DevicesUnmanagedListResponse, DevicesUnmanagedUpdateBody, DevicesUnmanagedUpdateResponse, DevicesUpdateBody, DevicesUpdateResponse, EventsGetParams, EventsGetResponse, EventsListParams, EventsListResponse, LocksGetParams, LocksGetResponse, LocksListParams, LocksListResponse, LocksLockDoorBody, LocksLockDoorResponse, LocksUnlockDoorBody, LocksUnlockDoorResponse, NoiseSensorsNoiseThresholdsCreateBody, NoiseSensorsNoiseThresholdsCreateResponse, NoiseSensorsNoiseThresholdsDeleteBody, NoiseSensorsNoiseThresholdsDeleteResponse, NoiseSensorsNoiseThresholdsGetParams, NoiseSensorsNoiseThresholdsGetResponse, NoiseSensorsNoiseThresholdsListParams, NoiseSensorsNoiseThresholdsListResponse, NoiseSensorsNoiseThresholdsUpdateBody, NoiseSensorsNoiseThresholdsUpdateResponse, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesUnmanaged, SeamHttpEvents, SeamHttpFromPublishableKeyOptions, SeamHttpInvalidOptionsError, SeamHttpLocks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpOptions, SeamHttpOptionsFromEnv, SeamHttpOptionsWithApiKey, SeamHttpOptionsWithClient, SeamHttpOptionsWithClientSessionToken, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpWebhooks, SeamHttpWorkspaces, ThermostatsClimateSettingSchedulesCreateBody, ThermostatsClimateSettingSchedulesCreateResponse, ThermostatsClimateSettingSchedulesDeleteBody, ThermostatsClimateSettingSchedulesDeleteResponse, ThermostatsClimateSettingSchedulesGetParams, ThermostatsClimateSettingSchedulesGetResponse, ThermostatsClimateSettingSchedulesListParams, ThermostatsClimateSettingSchedulesListResponse, ThermostatsClimateSettingSchedulesUpdateBody, ThermostatsClimateSettingSchedulesUpdateResponse, ThermostatsCoolBody, ThermostatsCoolResponse, ThermostatsGetParams, ThermostatsGetResponse, ThermostatsHeatBody, ThermostatsHeatCoolBody, ThermostatsHeatCoolResponse, ThermostatsHeatResponse, ThermostatsListParams, ThermostatsListResponse, ThermostatsOffBody, ThermostatsOffResponse, ThermostatsSetFanModeBody, ThermostatsSetFanModeResponse, ThermostatsUpdateBody, ThermostatsUpdateResponse, UnserializableParamError, WebhooksCreateBody, WebhooksCreateResponse, WebhooksDeleteBody, WebhooksDeleteResponse, WebhooksGetParams, WebhooksGetResponse, WebhooksListParams, WebhooksListResponse, WorkspacesGetParams, WorkspacesGetResponse, WorkspacesListParams, WorkspacesListResponse, WorkspacesResetSandboxBody, WorkspacesResetSandboxResponse, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, paramsSerializer };
|