@seamapi/http 0.2.1 → 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 +12 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +129 -124
- package/lib/seam/connect/client.js +1 -0
- package/lib/seam/connect/client.js.map +1 -1
- package/lib/seam/connect/index.d.ts +1 -0
- package/lib/seam/connect/index.js +1 -0
- package/lib/seam/connect/index.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 +4 -2
- package/src/lib/seam/connect/client.ts +1 -0
- package/src/lib/seam/connect/index.ts +1 -0
- 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,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
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';
|
|
@@ -42,19 +42,19 @@ declare class SeamHttpAccessCodesUnmanaged {
|
|
|
42
42
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessCodesUnmanaged;
|
|
43
43
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessCodesUnmanaged;
|
|
44
44
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessCodesUnmanaged>;
|
|
45
|
-
convertToManaged(body
|
|
46
|
-
delete(body
|
|
47
|
-
get(body
|
|
48
|
-
list(body
|
|
49
|
-
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>;
|
|
50
50
|
}
|
|
51
51
|
type AccessCodesUnmanagedConvertToManagedBody = RouteRequestBody<'/access_codes/unmanaged/convert_to_managed'>;
|
|
52
52
|
type AccessCodesUnmanagedConvertToManagedResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/convert_to_managed'>>>;
|
|
53
53
|
type AccessCodesUnmanagedDeleteBody = RouteRequestBody<'/access_codes/unmanaged/delete'>;
|
|
54
54
|
type AccessCodesUnmanagedDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/delete'>>>;
|
|
55
|
-
type
|
|
55
|
+
type AccessCodesUnmanagedGetParams = RouteRequestBody<'/access_codes/unmanaged/get'>;
|
|
56
56
|
type AccessCodesUnmanagedGetResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/get'>>>;
|
|
57
|
-
type
|
|
57
|
+
type AccessCodesUnmanagedListParams = RouteRequestBody<'/access_codes/unmanaged/list'>;
|
|
58
58
|
type AccessCodesUnmanagedListResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/list'>>>;
|
|
59
59
|
type AccessCodesUnmanagedUpdateBody = RouteRequestBody<'/access_codes/unmanaged/update'>;
|
|
60
60
|
type AccessCodesUnmanagedUpdateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/update'>>>;
|
|
@@ -67,14 +67,14 @@ declare class SeamHttpAccessCodes {
|
|
|
67
67
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessCodes;
|
|
68
68
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessCodes>;
|
|
69
69
|
get unmanaged(): SeamHttpAccessCodesUnmanaged;
|
|
70
|
-
create(body
|
|
71
|
-
createMultiple(body
|
|
72
|
-
delete(body
|
|
73
|
-
generateCode(body
|
|
74
|
-
get(body
|
|
75
|
-
list(body
|
|
76
|
-
pullBackupAccessCode(body
|
|
77
|
-
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>;
|
|
78
78
|
}
|
|
79
79
|
type AccessCodesCreateBody = RouteRequestBody<'/access_codes/create'>;
|
|
80
80
|
type AccessCodesCreateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/create'>>>;
|
|
@@ -84,9 +84,9 @@ type AccessCodesDeleteBody = RouteRequestBody<'/access_codes/delete'>;
|
|
|
84
84
|
type AccessCodesDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/delete'>>>;
|
|
85
85
|
type AccessCodesGenerateCodeBody = RouteRequestBody<'/access_codes/generate_code'>;
|
|
86
86
|
type AccessCodesGenerateCodeResponse = SetNonNullable<Required<RouteResponse<'/access_codes/generate_code'>>>;
|
|
87
|
-
type
|
|
87
|
+
type AccessCodesGetParams = RouteRequestBody<'/access_codes/get'>;
|
|
88
88
|
type AccessCodesGetResponse = SetNonNullable<Required<RouteResponse<'/access_codes/get'>>>;
|
|
89
|
-
type
|
|
89
|
+
type AccessCodesListParams = RouteRequestBody<'/access_codes/list'>;
|
|
90
90
|
type AccessCodesListResponse = SetNonNullable<Required<RouteResponse<'/access_codes/list'>>>;
|
|
91
91
|
type AccessCodesPullBackupAccessCodeBody = RouteRequestBody<'/access_codes/pull_backup_access_code'>;
|
|
92
92
|
type AccessCodesPullBackupAccessCodeResponse = SetNonNullable<Required<RouteResponse<'/access_codes/pull_backup_access_code'>>>;
|
|
@@ -100,14 +100,14 @@ declare class SeamHttpAcsAccessGroups {
|
|
|
100
100
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsAccessGroups;
|
|
101
101
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsAccessGroups;
|
|
102
102
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsAccessGroups>;
|
|
103
|
-
addUser(body
|
|
104
|
-
create(body
|
|
105
|
-
delete(body
|
|
106
|
-
get(body
|
|
107
|
-
list(body
|
|
108
|
-
listUsers(body
|
|
109
|
-
removeUser(body
|
|
110
|
-
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>;
|
|
111
111
|
}
|
|
112
112
|
type AcsAccessGroupsAddUserBody = RouteRequestBody<'/acs/access_groups/add_user'>;
|
|
113
113
|
type AcsAccessGroupsAddUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/add_user'>>>;
|
|
@@ -115,11 +115,11 @@ type AcsAccessGroupsCreateBody = RouteRequestBody<'/acs/access_groups/create'>;
|
|
|
115
115
|
type AcsAccessGroupsCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/create'>>>;
|
|
116
116
|
type AcsAccessGroupsDeleteBody = RouteRequestBody<'/acs/access_groups/delete'>;
|
|
117
117
|
type AcsAccessGroupsDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/delete'>>>;
|
|
118
|
-
type
|
|
118
|
+
type AcsAccessGroupsGetParams = RouteRequestBody<'/acs/access_groups/get'>;
|
|
119
119
|
type AcsAccessGroupsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/get'>>>;
|
|
120
|
-
type
|
|
120
|
+
type AcsAccessGroupsListParams = RouteRequestBody<'/acs/access_groups/list'>;
|
|
121
121
|
type AcsAccessGroupsListResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/list'>>>;
|
|
122
|
-
type
|
|
122
|
+
type AcsAccessGroupsListUsersParams = RouteRequestBody<'/acs/access_groups/list_users'>;
|
|
123
123
|
type AcsAccessGroupsListUsersResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/list_users'>>>;
|
|
124
124
|
type AcsAccessGroupsRemoveUserBody = RouteRequestBody<'/acs/access_groups/remove_user'>;
|
|
125
125
|
type AcsAccessGroupsRemoveUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/remove_user'>>>;
|
|
@@ -133,18 +133,18 @@ declare class SeamHttpAcsCredentials {
|
|
|
133
133
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentials;
|
|
134
134
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentials;
|
|
135
135
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentials>;
|
|
136
|
-
create(body
|
|
137
|
-
delete(body
|
|
138
|
-
get(body
|
|
139
|
-
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']>;
|
|
140
140
|
}
|
|
141
141
|
type AcsCredentialsCreateBody = RouteRequestBody<'/acs/credentials/create'>;
|
|
142
142
|
type AcsCredentialsCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/create'>>>;
|
|
143
143
|
type AcsCredentialsDeleteBody = RouteRequestBody<'/acs/credentials/delete'>;
|
|
144
144
|
type AcsCredentialsDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/delete'>>>;
|
|
145
|
-
type
|
|
145
|
+
type AcsCredentialsGetParams = RouteRequestBody<'/acs/credentials/get'>;
|
|
146
146
|
type AcsCredentialsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/get'>>>;
|
|
147
|
-
type
|
|
147
|
+
type AcsCredentialsListParams = RouteRequestBody<'/acs/credentials/list'>;
|
|
148
148
|
type AcsCredentialsListResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/list'>>>;
|
|
149
149
|
|
|
150
150
|
declare class SeamHttpAcsSystems {
|
|
@@ -154,12 +154,12 @@ declare class SeamHttpAcsSystems {
|
|
|
154
154
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsSystems;
|
|
155
155
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsSystems;
|
|
156
156
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsSystems>;
|
|
157
|
-
get(body
|
|
158
|
-
list(body
|
|
157
|
+
get(body?: AcsSystemsGetParams): Promise<AcsSystemsGetResponse['acs_system']>;
|
|
158
|
+
list(body?: AcsSystemsListParams): Promise<AcsSystemsListResponse['acs_systems']>;
|
|
159
159
|
}
|
|
160
|
-
type
|
|
160
|
+
type AcsSystemsGetParams = RouteRequestBody<'/acs/systems/get'>;
|
|
161
161
|
type AcsSystemsGetResponse = SetNonNullable<Required<RouteResponse<'/acs/systems/get'>>>;
|
|
162
|
-
type
|
|
162
|
+
type AcsSystemsListParams = RouteRequestBody<'/acs/systems/list'>;
|
|
163
163
|
type AcsSystemsListResponse = SetNonNullable<Required<RouteResponse<'/acs/systems/list'>>>;
|
|
164
164
|
|
|
165
165
|
declare class SeamHttpAcsUsers {
|
|
@@ -169,15 +169,15 @@ declare class SeamHttpAcsUsers {
|
|
|
169
169
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsUsers;
|
|
170
170
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsUsers;
|
|
171
171
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsUsers>;
|
|
172
|
-
addToAccessGroup(body
|
|
173
|
-
create(body
|
|
174
|
-
delete(body
|
|
175
|
-
get(body
|
|
176
|
-
list(body
|
|
177
|
-
removeFromAccessGroup(body
|
|
178
|
-
suspend(body
|
|
179
|
-
unsuspend(body
|
|
180
|
-
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>;
|
|
181
181
|
}
|
|
182
182
|
type AcsUsersAddToAccessGroupBody = RouteRequestBody<'/acs/users/add_to_access_group'>;
|
|
183
183
|
type AcsUsersAddToAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/add_to_access_group'>>>;
|
|
@@ -185,9 +185,9 @@ type AcsUsersCreateBody = RouteRequestBody<'/acs/users/create'>;
|
|
|
185
185
|
type AcsUsersCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/users/create'>>>;
|
|
186
186
|
type AcsUsersDeleteBody = RouteRequestBody<'/acs/users/delete'>;
|
|
187
187
|
type AcsUsersDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/users/delete'>>>;
|
|
188
|
-
type
|
|
188
|
+
type AcsUsersGetParams = RouteRequestBody<'/acs/users/get'>;
|
|
189
189
|
type AcsUsersGetResponse = SetNonNullable<Required<RouteResponse<'/acs/users/get'>>>;
|
|
190
|
-
type
|
|
190
|
+
type AcsUsersListParams = RouteRequestBody<'/acs/users/list'>;
|
|
191
191
|
type AcsUsersListResponse = SetNonNullable<Required<RouteResponse<'/acs/users/list'>>>;
|
|
192
192
|
type AcsUsersRemoveFromAccessGroupBody = RouteRequestBody<'/acs/users/remove_from_access_group'>;
|
|
193
193
|
type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/remove_from_access_group'>>>;
|
|
@@ -218,12 +218,12 @@ declare class SeamHttpActionAttempts {
|
|
|
218
218
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpActionAttempts;
|
|
219
219
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpActionAttempts;
|
|
220
220
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpActionAttempts>;
|
|
221
|
-
get(body
|
|
222
|
-
list(body
|
|
221
|
+
get(body?: ActionAttemptsGetParams): Promise<ActionAttemptsGetResponse['action_attempt']>;
|
|
222
|
+
list(body?: ActionAttemptsListParams): Promise<ActionAttemptsListResponse['action_attempts']>;
|
|
223
223
|
}
|
|
224
|
-
type
|
|
224
|
+
type ActionAttemptsGetParams = RouteRequestBody<'/action_attempts/get'>;
|
|
225
225
|
type ActionAttemptsGetResponse = SetNonNullable<Required<RouteResponse<'/action_attempts/get'>>>;
|
|
226
|
-
type
|
|
226
|
+
type ActionAttemptsListParams = RouteRequestBody<'/action_attempts/list'>;
|
|
227
227
|
type ActionAttemptsListResponse = SetNonNullable<Required<RouteResponse<'/action_attempts/list'>>>;
|
|
228
228
|
|
|
229
229
|
declare class SeamHttpClientSessions {
|
|
@@ -233,24 +233,24 @@ declare class SeamHttpClientSessions {
|
|
|
233
233
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpClientSessions;
|
|
234
234
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpClientSessions;
|
|
235
235
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpClientSessions>;
|
|
236
|
-
create(body
|
|
237
|
-
delete(body
|
|
238
|
-
get(body
|
|
239
|
-
getOrCreate(body
|
|
240
|
-
grantAccess(body
|
|
241
|
-
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']>;
|
|
242
242
|
}
|
|
243
243
|
type ClientSessionsCreateBody = RouteRequestBody<'/client_sessions/create'>;
|
|
244
244
|
type ClientSessionsCreateResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/create'>>>;
|
|
245
245
|
type ClientSessionsDeleteBody = RouteRequestBody<'/client_sessions/delete'>;
|
|
246
246
|
type ClientSessionsDeleteResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/delete'>>>;
|
|
247
|
-
type
|
|
247
|
+
type ClientSessionsGetParams = RouteRequestBody<'/client_sessions/get'>;
|
|
248
248
|
type ClientSessionsGetResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/get'>>>;
|
|
249
249
|
type ClientSessionsGetOrCreateBody = RouteRequestBody<'/client_sessions/get_or_create'>;
|
|
250
250
|
type ClientSessionsGetOrCreateResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/get_or_create'>>>;
|
|
251
251
|
type ClientSessionsGrantAccessBody = RouteRequestBody<'/client_sessions/grant_access'>;
|
|
252
252
|
type ClientSessionsGrantAccessResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/grant_access'>>>;
|
|
253
|
-
type
|
|
253
|
+
type ClientSessionsListParams = RouteRequestBody<'/client_sessions/list'>;
|
|
254
254
|
type ClientSessionsListResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/list'>>>;
|
|
255
255
|
|
|
256
256
|
declare class SeamHttpConnectWebviews {
|
|
@@ -260,19 +260,19 @@ declare class SeamHttpConnectWebviews {
|
|
|
260
260
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectWebviews;
|
|
261
261
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectWebviews;
|
|
262
262
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectWebviews>;
|
|
263
|
-
create(body
|
|
264
|
-
delete(body
|
|
265
|
-
get(body
|
|
266
|
-
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']>;
|
|
267
267
|
view(params?: ConnectWebviewsViewParams): Promise<void>;
|
|
268
268
|
}
|
|
269
269
|
type ConnectWebviewsCreateBody = RouteRequestBody<'/connect_webviews/create'>;
|
|
270
270
|
type ConnectWebviewsCreateResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/create'>>>;
|
|
271
271
|
type ConnectWebviewsDeleteBody = RouteRequestBody<'/connect_webviews/delete'>;
|
|
272
272
|
type ConnectWebviewsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/delete'>>>;
|
|
273
|
-
type
|
|
273
|
+
type ConnectWebviewsGetParams = RouteRequestBody<'/connect_webviews/get'>;
|
|
274
274
|
type ConnectWebviewsGetResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/get'>>>;
|
|
275
|
-
type
|
|
275
|
+
type ConnectWebviewsListParams = RouteRequestBody<'/connect_webviews/list'>;
|
|
276
276
|
type ConnectWebviewsListResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/list'>>>;
|
|
277
277
|
type ConnectWebviewsViewParams = RouteRequestParams<'/connect_webviews/view'>;
|
|
278
278
|
type ConnectWebviewsViewResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/view'>>>;
|
|
@@ -284,13 +284,13 @@ declare class SeamHttpConnectedAccounts {
|
|
|
284
284
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpConnectedAccounts;
|
|
285
285
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpConnectedAccounts;
|
|
286
286
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpConnectedAccounts>;
|
|
287
|
-
delete(body
|
|
288
|
-
get(body
|
|
287
|
+
delete(body?: ConnectedAccountsDeleteBody): Promise<void>;
|
|
288
|
+
get(body?: ConnectedAccountsGetParams): Promise<ConnectedAccountsGetResponse['connected_account']>;
|
|
289
289
|
list(params?: ConnectedAccountsListParams): Promise<ConnectedAccountsListResponse['connected_accounts']>;
|
|
290
290
|
}
|
|
291
291
|
type ConnectedAccountsDeleteBody = RouteRequestBody<'/connected_accounts/delete'>;
|
|
292
292
|
type ConnectedAccountsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/delete'>>>;
|
|
293
|
-
type
|
|
293
|
+
type ConnectedAccountsGetParams = RouteRequestBody<'/connected_accounts/get'>;
|
|
294
294
|
type ConnectedAccountsGetResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/get'>>>;
|
|
295
295
|
type ConnectedAccountsListParams = RouteRequestParams<'/connected_accounts/list'>;
|
|
296
296
|
type ConnectedAccountsListResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/list'>>>;
|
|
@@ -302,13 +302,13 @@ declare class SeamHttpDevicesUnmanaged {
|
|
|
302
302
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpDevicesUnmanaged;
|
|
303
303
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpDevicesUnmanaged;
|
|
304
304
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpDevicesUnmanaged>;
|
|
305
|
-
get(body
|
|
306
|
-
list(body
|
|
307
|
-
update(body
|
|
305
|
+
get(body?: DevicesUnmanagedGetParams): Promise<DevicesUnmanagedGetResponse['device']>;
|
|
306
|
+
list(body?: DevicesUnmanagedListParams): Promise<DevicesUnmanagedListResponse['devices']>;
|
|
307
|
+
update(body?: DevicesUnmanagedUpdateBody): Promise<void>;
|
|
308
308
|
}
|
|
309
|
-
type
|
|
309
|
+
type DevicesUnmanagedGetParams = RouteRequestBody<'/devices/unmanaged/get'>;
|
|
310
310
|
type DevicesUnmanagedGetResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/get'>>>;
|
|
311
|
-
type
|
|
311
|
+
type DevicesUnmanagedListParams = RouteRequestBody<'/devices/unmanaged/list'>;
|
|
312
312
|
type DevicesUnmanagedListResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/list'>>>;
|
|
313
313
|
type DevicesUnmanagedUpdateBody = RouteRequestBody<'/devices/unmanaged/update'>;
|
|
314
314
|
type DevicesUnmanagedUpdateResponse = SetNonNullable<Required<RouteResponse<'/devices/unmanaged/update'>>>;
|
|
@@ -321,19 +321,19 @@ declare class SeamHttpDevices {
|
|
|
321
321
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpDevices;
|
|
322
322
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpDevices>;
|
|
323
323
|
get unmanaged(): SeamHttpDevicesUnmanaged;
|
|
324
|
-
delete(body
|
|
325
|
-
get(body
|
|
326
|
-
list(body
|
|
327
|
-
listDeviceProviders(body
|
|
328
|
-
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>;
|
|
329
329
|
}
|
|
330
330
|
type DevicesDeleteBody = RouteRequestBody<'/devices/delete'>;
|
|
331
331
|
type DevicesDeleteResponse = SetNonNullable<Required<RouteResponse<'/devices/delete'>>>;
|
|
332
|
-
type
|
|
332
|
+
type DevicesGetParams = RouteRequestBody<'/devices/get'>;
|
|
333
333
|
type DevicesGetResponse = SetNonNullable<Required<RouteResponse<'/devices/get'>>>;
|
|
334
|
-
type
|
|
334
|
+
type DevicesListParams = RouteRequestBody<'/devices/list'>;
|
|
335
335
|
type DevicesListResponse = SetNonNullable<Required<RouteResponse<'/devices/list'>>>;
|
|
336
|
-
type
|
|
336
|
+
type DevicesListDeviceProvidersParams = RouteRequestBody<'/devices/list_device_providers'>;
|
|
337
337
|
type DevicesListDeviceProvidersResponse = SetNonNullable<Required<RouteResponse<'/devices/list_device_providers'>>>;
|
|
338
338
|
type DevicesUpdateBody = RouteRequestBody<'/devices/update'>;
|
|
339
339
|
type DevicesUpdateResponse = SetNonNullable<Required<RouteResponse<'/devices/update'>>>;
|
|
@@ -345,12 +345,12 @@ declare class SeamHttpEvents {
|
|
|
345
345
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpEvents;
|
|
346
346
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpEvents;
|
|
347
347
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpEvents>;
|
|
348
|
-
get(body
|
|
349
|
-
list(body
|
|
348
|
+
get(body?: EventsGetParams): Promise<EventsGetResponse['event']>;
|
|
349
|
+
list(body?: EventsListParams): Promise<EventsListResponse['events']>;
|
|
350
350
|
}
|
|
351
|
-
type
|
|
351
|
+
type EventsGetParams = RouteRequestBody<'/events/get'>;
|
|
352
352
|
type EventsGetResponse = SetNonNullable<Required<RouteResponse<'/events/get'>>>;
|
|
353
|
-
type
|
|
353
|
+
type EventsListParams = RouteRequestBody<'/events/list'>;
|
|
354
354
|
type EventsListResponse = SetNonNullable<Required<RouteResponse<'/events/list'>>>;
|
|
355
355
|
|
|
356
356
|
declare class SeamHttpLocks {
|
|
@@ -360,14 +360,14 @@ declare class SeamHttpLocks {
|
|
|
360
360
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpLocks;
|
|
361
361
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpLocks;
|
|
362
362
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpLocks>;
|
|
363
|
-
get(body
|
|
364
|
-
list(body
|
|
365
|
-
lockDoor(body
|
|
366
|
-
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']>;
|
|
367
367
|
}
|
|
368
|
-
type
|
|
368
|
+
type LocksGetParams = RouteRequestBody<'/locks/get'>;
|
|
369
369
|
type LocksGetResponse = SetNonNullable<Required<RouteResponse<'/locks/get'>>>;
|
|
370
|
-
type
|
|
370
|
+
type LocksListParams = RouteRequestBody<'/locks/list'>;
|
|
371
371
|
type LocksListResponse = SetNonNullable<Required<RouteResponse<'/locks/list'>>>;
|
|
372
372
|
type LocksLockDoorBody = RouteRequestBody<'/locks/lock_door'>;
|
|
373
373
|
type LocksLockDoorResponse = SetNonNullable<Required<RouteResponse<'/locks/lock_door'>>>;
|
|
@@ -381,19 +381,19 @@ declare class SeamHttpNoiseSensorsNoiseThresholds {
|
|
|
381
381
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpNoiseSensorsNoiseThresholds;
|
|
382
382
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpNoiseSensorsNoiseThresholds;
|
|
383
383
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpNoiseSensorsNoiseThresholds>;
|
|
384
|
-
create(body
|
|
385
|
-
delete(body
|
|
386
|
-
get(body
|
|
387
|
-
list(body
|
|
388
|
-
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>;
|
|
389
389
|
}
|
|
390
390
|
type NoiseSensorsNoiseThresholdsCreateBody = RouteRequestBody<'/noise_sensors/noise_thresholds/create'>;
|
|
391
391
|
type NoiseSensorsNoiseThresholdsCreateResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/create'>>>;
|
|
392
392
|
type NoiseSensorsNoiseThresholdsDeleteBody = RouteRequestBody<'/noise_sensors/noise_thresholds/delete'>;
|
|
393
393
|
type NoiseSensorsNoiseThresholdsDeleteResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/delete'>>>;
|
|
394
|
-
type
|
|
394
|
+
type NoiseSensorsNoiseThresholdsGetParams = RouteRequestBody<'/noise_sensors/noise_thresholds/get'>;
|
|
395
395
|
type NoiseSensorsNoiseThresholdsGetResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/get'>>>;
|
|
396
|
-
type
|
|
396
|
+
type NoiseSensorsNoiseThresholdsListParams = RouteRequestBody<'/noise_sensors/noise_thresholds/list'>;
|
|
397
397
|
type NoiseSensorsNoiseThresholdsListResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/list'>>>;
|
|
398
398
|
type NoiseSensorsNoiseThresholdsUpdateBody = RouteRequestBody<'/noise_sensors/noise_thresholds/update'>;
|
|
399
399
|
type NoiseSensorsNoiseThresholdsUpdateResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/update'>>>;
|
|
@@ -415,19 +415,19 @@ declare class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
415
415
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
416
416
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
417
417
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsClimateSettingSchedules>;
|
|
418
|
-
create(body
|
|
419
|
-
delete(body
|
|
420
|
-
get(body
|
|
421
|
-
list(body
|
|
422
|
-
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>;
|
|
423
423
|
}
|
|
424
424
|
type ThermostatsClimateSettingSchedulesCreateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/create'>;
|
|
425
425
|
type ThermostatsClimateSettingSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/create'>>>;
|
|
426
426
|
type ThermostatsClimateSettingSchedulesDeleteBody = RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>;
|
|
427
427
|
type ThermostatsClimateSettingSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/delete'>>>;
|
|
428
|
-
type
|
|
428
|
+
type ThermostatsClimateSettingSchedulesGetParams = RouteRequestBody<'/thermostats/climate_setting_schedules/get'>;
|
|
429
429
|
type ThermostatsClimateSettingSchedulesGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/get'>>>;
|
|
430
|
-
type
|
|
430
|
+
type ThermostatsClimateSettingSchedulesListParams = RouteRequestBody<'/thermostats/climate_setting_schedules/list'>;
|
|
431
431
|
type ThermostatsClimateSettingSchedulesListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/list'>>>;
|
|
432
432
|
type ThermostatsClimateSettingSchedulesUpdateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/update'>;
|
|
433
433
|
type ThermostatsClimateSettingSchedulesUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/update'>>>;
|
|
@@ -440,24 +440,24 @@ declare class SeamHttpThermostats {
|
|
|
440
440
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostats;
|
|
441
441
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostats>;
|
|
442
442
|
get climateSettingSchedules(): SeamHttpThermostatsClimateSettingSchedules;
|
|
443
|
-
cool(body
|
|
444
|
-
get(body
|
|
445
|
-
heat(body
|
|
446
|
-
heatCool(body
|
|
447
|
-
list(body
|
|
448
|
-
off(body
|
|
449
|
-
setFanMode(body
|
|
450
|
-
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>;
|
|
451
451
|
}
|
|
452
452
|
type ThermostatsCoolBody = RouteRequestBody<'/thermostats/cool'>;
|
|
453
453
|
type ThermostatsCoolResponse = SetNonNullable<Required<RouteResponse<'/thermostats/cool'>>>;
|
|
454
|
-
type
|
|
454
|
+
type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>;
|
|
455
455
|
type ThermostatsGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/get'>>>;
|
|
456
456
|
type ThermostatsHeatBody = RouteRequestBody<'/thermostats/heat'>;
|
|
457
457
|
type ThermostatsHeatResponse = SetNonNullable<Required<RouteResponse<'/thermostats/heat'>>>;
|
|
458
458
|
type ThermostatsHeatCoolBody = RouteRequestBody<'/thermostats/heat_cool'>;
|
|
459
459
|
type ThermostatsHeatCoolResponse = SetNonNullable<Required<RouteResponse<'/thermostats/heat_cool'>>>;
|
|
460
|
-
type
|
|
460
|
+
type ThermostatsListParams = RouteRequestBody<'/thermostats/list'>;
|
|
461
461
|
type ThermostatsListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/list'>>>;
|
|
462
462
|
type ThermostatsOffBody = RouteRequestBody<'/thermostats/off'>;
|
|
463
463
|
type ThermostatsOffResponse = SetNonNullable<Required<RouteResponse<'/thermostats/off'>>>;
|
|
@@ -473,16 +473,16 @@ declare class SeamHttpWebhooks {
|
|
|
473
473
|
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpWebhooks;
|
|
474
474
|
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpWebhooks;
|
|
475
475
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWebhooks>;
|
|
476
|
-
create(body
|
|
477
|
-
delete(body
|
|
478
|
-
get(body
|
|
476
|
+
create(body?: WebhooksCreateBody): Promise<WebhooksCreateResponse['webhook']>;
|
|
477
|
+
delete(body?: WebhooksDeleteBody): Promise<void>;
|
|
478
|
+
get(body?: WebhooksGetParams): Promise<WebhooksGetResponse['webhook']>;
|
|
479
479
|
list(params?: WebhooksListParams): Promise<WebhooksListResponse['webhooks']>;
|
|
480
480
|
}
|
|
481
481
|
type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>;
|
|
482
482
|
type WebhooksCreateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/create'>>>;
|
|
483
483
|
type WebhooksDeleteBody = RouteRequestBody<'/webhooks/delete'>;
|
|
484
484
|
type WebhooksDeleteResponse = SetNonNullable<Required<RouteResponse<'/webhooks/delete'>>>;
|
|
485
|
-
type
|
|
485
|
+
type WebhooksGetParams = RouteRequestBody<'/webhooks/get'>;
|
|
486
486
|
type WebhooksGetResponse = SetNonNullable<Required<RouteResponse<'/webhooks/get'>>>;
|
|
487
487
|
type WebhooksListParams = RouteRequestParams<'/webhooks/list'>;
|
|
488
488
|
type WebhooksListResponse = SetNonNullable<Required<RouteResponse<'/webhooks/list'>>>;
|
|
@@ -496,7 +496,7 @@ declare class SeamHttpWorkspaces {
|
|
|
496
496
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWorkspaces>;
|
|
497
497
|
get(params?: WorkspacesGetParams): Promise<WorkspacesGetResponse['workspace']>;
|
|
498
498
|
list(params?: WorkspacesListParams): Promise<WorkspacesListResponse['workspaces']>;
|
|
499
|
-
resetSandbox(body
|
|
499
|
+
resetSandbox(body?: WorkspacesResetSandboxBody): Promise<void>;
|
|
500
500
|
}
|
|
501
501
|
type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>;
|
|
502
502
|
type WorkspacesGetResponse = SetNonNullable<Required<RouteResponse<'/workspaces/get'>>>;
|
|
@@ -527,4 +527,9 @@ declare class SeamHttp {
|
|
|
527
527
|
get workspaces(): SeamHttpWorkspaces;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
-
|
|
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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+C,MAAM,OAAO,CAAA;AAC1E,OAAO,UAAU,EAAE,EAAmB,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAY3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAsB,EAAiB,EAAE;IACpE,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI;QAAE,OAAO,OAAO,CAAC,MAAM,CAAA;IAEjD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC1B,gBAAgB;QAChB,GAAG,OAAO,CAAC,YAAY;KACxB,CAAC,CAAA;IAEF,UAAU,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,gBAAgB;QAC5B,GAAG,OAAO,CAAC,iBAAiB;KAC7B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+C,MAAM,OAAO,CAAA;AAC1E,OAAO,UAAU,EAAE,EAAmB,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAY3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAsB,EAAiB,EAAE;IACpE,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI;QAAE,OAAO,OAAO,CAAC,MAAM,CAAA;IAEjD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC1B,gBAAgB;QAChB,GAAG,OAAO,CAAC,YAAY;KACxB,CAAC,CAAA;IAEF,sEAAsE;IACtE,UAAU,CAAC,MAAM,EAAE;QACjB,OAAO,EAAE,CAAC;QACV,UAAU,EAAE,gBAAgB;QAC5B,GAAG,OAAO,CAAC,iBAAiB;KAC7B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import version from '../../../lib/version.js';
|
|
1
2
|
import { getAuthHeaders } from './auth.js';
|
|
2
3
|
import { isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, } from './options.js';
|
|
3
4
|
const defaultEndpoint = 'https://connect.getseam.com';
|
|
5
|
+
const sdkHeaders = {
|
|
6
|
+
'seam-sdk-name': 'seamapi/javascript-http',
|
|
7
|
+
'seam-sdk-version': version,
|
|
8
|
+
};
|
|
4
9
|
export const parseOptions = (apiKeyOrOptions) => {
|
|
5
10
|
const options = getNormalizedOptions(apiKeyOrOptions);
|
|
6
11
|
if (isSeamHttpOptionsWithClient(options))
|
|
@@ -13,6 +18,7 @@ export const parseOptions = (apiKeyOrOptions) => {
|
|
|
13
18
|
headers: {
|
|
14
19
|
...getAuthHeaders(options),
|
|
15
20
|
...options.axiosOptions?.headers,
|
|
21
|
+
...sdkHeaders,
|
|
16
22
|
},
|
|
17
23
|
},
|
|
18
24
|
axiosRetryOptions: {
|