@seamapi/http 0.7.1 → 0.8.1
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/README.md +68 -1
- package/dist/connect.cjs +111 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +146 -4
- package/lib/seam/connect/action-attempt-types.d.ts +17 -0
- package/lib/seam/connect/action-attempt-types.js +3 -0
- package/lib/seam/connect/action-attempt-types.js.map +1 -0
- 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/resolve-action-attempt.d.ts +21 -0
- package/lib/seam/connect/resolve-action-attempt.js +66 -0
- package/lib/seam/connect/resolve-action-attempt.js.map +1 -0
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +5 -0
- package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-codes.d.ts +8 -0
- package/lib/seam/connect/routes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/acs-access-groups.d.ts +5 -0
- package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs-credentials.d.ts +6 -0
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-systems.d.ts +2 -0
- package/lib/seam/connect/routes/acs-systems.js.map +1 -1
- package/lib/seam/connect/routes/acs-users.d.ts +9 -0
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts.d.ts +8 -1
- package/lib/seam/connect/routes/action-attempts.js +5 -1
- package/lib/seam/connect/routes/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions.d.ts +7 -0
- package/lib/seam/connect/routes/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews.d.ts +5 -0
- package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts.d.ts +3 -0
- package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +3 -0
- package/lib/seam/connect/routes/devices-unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/devices.d.ts +5 -0
- package/lib/seam/connect/routes/devices.js.map +1 -1
- package/lib/seam/connect/routes/events.d.ts +2 -0
- package/lib/seam/connect/routes/events.js.map +1 -1
- package/lib/seam/connect/routes/locks.d.ts +15 -2
- package/lib/seam/connect/routes/locks.js +10 -2
- package/lib/seam/connect/routes/locks.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +5 -0
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +5 -0
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +8 -0
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +8 -0
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.d.ts +4 -0
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +3 -0
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +17 -7
- package/src/lib/seam/connect/action-attempt-types.ts +22 -0
- package/src/lib/seam/connect/index.ts +8 -0
- package/src/lib/seam/connect/resolve-action-attempt.ts +125 -0
- package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +12 -0
- package/src/lib/seam/connect/routes/access-codes.ts +22 -0
- package/src/lib/seam/connect/routes/acs-access-groups.ts +13 -0
- package/src/lib/seam/connect/routes/acs-credentials.ts +15 -0
- package/src/lib/seam/connect/routes/acs-systems.ts +6 -0
- package/src/lib/seam/connect/routes/acs-users.ts +21 -0
- package/src/lib/seam/connect/routes/action-attempts.ts +23 -0
- package/src/lib/seam/connect/routes/client-sessions.ts +19 -0
- package/src/lib/seam/connect/routes/connect-webviews.ts +13 -0
- package/src/lib/seam/connect/routes/connected-accounts.ts +8 -0
- package/src/lib/seam/connect/routes/devices-unmanaged.ts +8 -0
- package/src/lib/seam/connect/routes/devices.ts +13 -0
- package/src/lib/seam/connect/routes/events.ts +6 -0
- package/src/lib/seam/connect/routes/locks.ts +43 -0
- package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +12 -0
- package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +13 -0
- package/src/lib/seam/connect/routes/thermostats.ts +18 -0
- package/src/lib/seam/connect/routes/user-identities.ts +20 -0
- package/src/lib/seam/connect/routes/webhooks.ts +11 -0
- package/src/lib/seam/connect/routes/workspaces.ts +8 -0
- package/src/lib/version.ts +1 -1
|
@@ -139,6 +139,7 @@ export class SeamHttpDevices {
|
|
|
139
139
|
method: 'post',
|
|
140
140
|
data: body,
|
|
141
141
|
})
|
|
142
|
+
|
|
142
143
|
return data.device
|
|
143
144
|
}
|
|
144
145
|
|
|
@@ -150,6 +151,7 @@ export class SeamHttpDevices {
|
|
|
150
151
|
method: 'post',
|
|
151
152
|
data: body,
|
|
152
153
|
})
|
|
154
|
+
|
|
153
155
|
return data.devices
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -162,6 +164,7 @@ export class SeamHttpDevices {
|
|
|
162
164
|
method: 'post',
|
|
163
165
|
data: body,
|
|
164
166
|
})
|
|
167
|
+
|
|
165
168
|
return data.device_providers
|
|
166
169
|
}
|
|
167
170
|
|
|
@@ -180,18 +183,24 @@ export type DevicesDeleteResponse = SetNonNullable<
|
|
|
180
183
|
Required<RouteResponse<'/devices/delete'>>
|
|
181
184
|
>
|
|
182
185
|
|
|
186
|
+
export type DevicesDeleteOptions = never
|
|
187
|
+
|
|
183
188
|
export type DevicesGetParams = RouteRequestBody<'/devices/get'>
|
|
184
189
|
|
|
185
190
|
export type DevicesGetResponse = SetNonNullable<
|
|
186
191
|
Required<RouteResponse<'/devices/get'>>
|
|
187
192
|
>
|
|
188
193
|
|
|
194
|
+
export type DevicesGetOptions = never
|
|
195
|
+
|
|
189
196
|
export type DevicesListParams = RouteRequestBody<'/devices/list'>
|
|
190
197
|
|
|
191
198
|
export type DevicesListResponse = SetNonNullable<
|
|
192
199
|
Required<RouteResponse<'/devices/list'>>
|
|
193
200
|
>
|
|
194
201
|
|
|
202
|
+
export type DevicesListOptions = never
|
|
203
|
+
|
|
195
204
|
export type DevicesListDeviceProvidersParams =
|
|
196
205
|
RouteRequestBody<'/devices/list_device_providers'>
|
|
197
206
|
|
|
@@ -199,8 +208,12 @@ export type DevicesListDeviceProvidersResponse = SetNonNullable<
|
|
|
199
208
|
Required<RouteResponse<'/devices/list_device_providers'>>
|
|
200
209
|
>
|
|
201
210
|
|
|
211
|
+
export type DevicesListDeviceProvidersOptions = never
|
|
212
|
+
|
|
202
213
|
export type DevicesUpdateBody = RouteRequestBody<'/devices/update'>
|
|
203
214
|
|
|
204
215
|
export type DevicesUpdateResponse = SetNonNullable<
|
|
205
216
|
Required<RouteResponse<'/devices/update'>>
|
|
206
217
|
>
|
|
218
|
+
|
|
219
|
+
export type DevicesUpdateOptions = never
|
|
@@ -126,6 +126,7 @@ export class SeamHttpEvents {
|
|
|
126
126
|
method: 'post',
|
|
127
127
|
data: body,
|
|
128
128
|
})
|
|
129
|
+
|
|
129
130
|
return data.event
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -135,6 +136,7 @@ export class SeamHttpEvents {
|
|
|
135
136
|
method: 'post',
|
|
136
137
|
data: body,
|
|
137
138
|
})
|
|
139
|
+
|
|
138
140
|
return data.events
|
|
139
141
|
}
|
|
140
142
|
}
|
|
@@ -145,8 +147,12 @@ export type EventsGetResponse = SetNonNullable<
|
|
|
145
147
|
Required<RouteResponse<'/events/get'>>
|
|
146
148
|
>
|
|
147
149
|
|
|
150
|
+
export type EventsGetOptions = never
|
|
151
|
+
|
|
148
152
|
export type EventsListParams = RouteRequestBody<'/events/list'>
|
|
149
153
|
|
|
150
154
|
export type EventsListResponse = SetNonNullable<
|
|
151
155
|
Required<RouteResponse<'/events/list'>>
|
|
152
156
|
>
|
|
157
|
+
|
|
158
|
+
export type EventsListOptions = never
|
|
@@ -24,7 +24,12 @@ import {
|
|
|
24
24
|
type SeamHttpOptionsWithPersonalAccessToken,
|
|
25
25
|
} from 'lib/seam/connect/options.js'
|
|
26
26
|
import { parseOptions } from 'lib/seam/connect/parse-options.js'
|
|
27
|
+
import {
|
|
28
|
+
resolveActionAttempt,
|
|
29
|
+
type ResolveActionAttemptOptions,
|
|
30
|
+
} from 'lib/seam/connect/resolve-action-attempt.js'
|
|
27
31
|
|
|
32
|
+
import { SeamHttpActionAttempts } from './action-attempts.js'
|
|
28
33
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
29
34
|
|
|
30
35
|
export class SeamHttpLocks {
|
|
@@ -126,6 +131,7 @@ export class SeamHttpLocks {
|
|
|
126
131
|
method: 'post',
|
|
127
132
|
data: body,
|
|
128
133
|
})
|
|
134
|
+
|
|
129
135
|
return data.device
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -135,28 +141,53 @@ export class SeamHttpLocks {
|
|
|
135
141
|
method: 'post',
|
|
136
142
|
data: body,
|
|
137
143
|
})
|
|
144
|
+
|
|
138
145
|
return data.devices
|
|
139
146
|
}
|
|
140
147
|
|
|
141
148
|
async lockDoor(
|
|
142
149
|
body?: LocksLockDoorBody,
|
|
150
|
+
{
|
|
151
|
+
waitForActionAttempt = false,
|
|
152
|
+
}: {
|
|
153
|
+
waitForActionAttempt?: boolean | Partial<ResolveActionAttemptOptions>
|
|
154
|
+
} = {},
|
|
143
155
|
): Promise<LocksLockDoorResponse['action_attempt']> {
|
|
144
156
|
const { data } = await this.client.request<LocksLockDoorResponse>({
|
|
145
157
|
url: '/locks/lock_door',
|
|
146
158
|
method: 'post',
|
|
147
159
|
data: body,
|
|
148
160
|
})
|
|
161
|
+
if (waitForActionAttempt != null && waitForActionAttempt !== false) {
|
|
162
|
+
return await resolveActionAttempt(
|
|
163
|
+
data.action_attempt,
|
|
164
|
+
SeamHttpActionAttempts.fromClient(this.client),
|
|
165
|
+
typeof waitForActionAttempt === 'boolean' ? {} : waitForActionAttempt,
|
|
166
|
+
)
|
|
167
|
+
}
|
|
149
168
|
return data.action_attempt
|
|
150
169
|
}
|
|
151
170
|
|
|
152
171
|
async unlockDoor(
|
|
153
172
|
body?: LocksUnlockDoorBody,
|
|
173
|
+
{
|
|
174
|
+
waitForActionAttempt = false,
|
|
175
|
+
}: {
|
|
176
|
+
waitForActionAttempt?: boolean | Partial<ResolveActionAttemptOptions>
|
|
177
|
+
} = {},
|
|
154
178
|
): Promise<LocksUnlockDoorResponse['action_attempt']> {
|
|
155
179
|
const { data } = await this.client.request<LocksUnlockDoorResponse>({
|
|
156
180
|
url: '/locks/unlock_door',
|
|
157
181
|
method: 'post',
|
|
158
182
|
data: body,
|
|
159
183
|
})
|
|
184
|
+
if (waitForActionAttempt != null && waitForActionAttempt !== false) {
|
|
185
|
+
return await resolveActionAttempt(
|
|
186
|
+
data.action_attempt,
|
|
187
|
+
SeamHttpActionAttempts.fromClient(this.client),
|
|
188
|
+
typeof waitForActionAttempt === 'boolean' ? {} : waitForActionAttempt,
|
|
189
|
+
)
|
|
190
|
+
}
|
|
160
191
|
return data.action_attempt
|
|
161
192
|
}
|
|
162
193
|
}
|
|
@@ -167,20 +198,32 @@ export type LocksGetResponse = SetNonNullable<
|
|
|
167
198
|
Required<RouteResponse<'/locks/get'>>
|
|
168
199
|
>
|
|
169
200
|
|
|
201
|
+
export type LocksGetOptions = never
|
|
202
|
+
|
|
170
203
|
export type LocksListParams = RouteRequestBody<'/locks/list'>
|
|
171
204
|
|
|
172
205
|
export type LocksListResponse = SetNonNullable<
|
|
173
206
|
Required<RouteResponse<'/locks/list'>>
|
|
174
207
|
>
|
|
175
208
|
|
|
209
|
+
export type LocksListOptions = never
|
|
210
|
+
|
|
176
211
|
export type LocksLockDoorBody = RouteRequestBody<'/locks/lock_door'>
|
|
177
212
|
|
|
178
213
|
export type LocksLockDoorResponse = SetNonNullable<
|
|
179
214
|
Required<RouteResponse<'/locks/lock_door'>>
|
|
180
215
|
>
|
|
181
216
|
|
|
217
|
+
export interface LocksLockDoorOptions {
|
|
218
|
+
waitForActionAttempt?: boolean | Partial<ResolveActionAttemptOptions>
|
|
219
|
+
}
|
|
220
|
+
|
|
182
221
|
export type LocksUnlockDoorBody = RouteRequestBody<'/locks/unlock_door'>
|
|
183
222
|
|
|
184
223
|
export type LocksUnlockDoorResponse = SetNonNullable<
|
|
185
224
|
Required<RouteResponse<'/locks/unlock_door'>>
|
|
186
225
|
>
|
|
226
|
+
|
|
227
|
+
export interface LocksUnlockDoorOptions {
|
|
228
|
+
waitForActionAttempt?: boolean | Partial<ResolveActionAttemptOptions>
|
|
229
|
+
}
|
|
@@ -148,6 +148,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
|
|
|
148
148
|
method: 'post',
|
|
149
149
|
data: body,
|
|
150
150
|
})
|
|
151
|
+
|
|
151
152
|
return data.noise_threshold
|
|
152
153
|
}
|
|
153
154
|
|
|
@@ -160,6 +161,7 @@ export class SeamHttpNoiseSensorsNoiseThresholds {
|
|
|
160
161
|
method: 'post',
|
|
161
162
|
data: body,
|
|
162
163
|
})
|
|
164
|
+
|
|
163
165
|
return data.noise_thresholds
|
|
164
166
|
}
|
|
165
167
|
|
|
@@ -179,6 +181,8 @@ export type NoiseSensorsNoiseThresholdsCreateResponse = SetNonNullable<
|
|
|
179
181
|
Required<RouteResponse<'/noise_sensors/noise_thresholds/create'>>
|
|
180
182
|
>
|
|
181
183
|
|
|
184
|
+
export type NoiseSensorsNoiseThresholdsCreateOptions = never
|
|
185
|
+
|
|
182
186
|
export type NoiseSensorsNoiseThresholdsDeleteBody =
|
|
183
187
|
RouteRequestBody<'/noise_sensors/noise_thresholds/delete'>
|
|
184
188
|
|
|
@@ -186,6 +190,8 @@ export type NoiseSensorsNoiseThresholdsDeleteResponse = SetNonNullable<
|
|
|
186
190
|
Required<RouteResponse<'/noise_sensors/noise_thresholds/delete'>>
|
|
187
191
|
>
|
|
188
192
|
|
|
193
|
+
export type NoiseSensorsNoiseThresholdsDeleteOptions = never
|
|
194
|
+
|
|
189
195
|
export type NoiseSensorsNoiseThresholdsGetParams =
|
|
190
196
|
RouteRequestBody<'/noise_sensors/noise_thresholds/get'>
|
|
191
197
|
|
|
@@ -193,6 +199,8 @@ export type NoiseSensorsNoiseThresholdsGetResponse = SetNonNullable<
|
|
|
193
199
|
Required<RouteResponse<'/noise_sensors/noise_thresholds/get'>>
|
|
194
200
|
>
|
|
195
201
|
|
|
202
|
+
export type NoiseSensorsNoiseThresholdsGetOptions = never
|
|
203
|
+
|
|
196
204
|
export type NoiseSensorsNoiseThresholdsListParams =
|
|
197
205
|
RouteRequestBody<'/noise_sensors/noise_thresholds/list'>
|
|
198
206
|
|
|
@@ -200,9 +208,13 @@ export type NoiseSensorsNoiseThresholdsListResponse = SetNonNullable<
|
|
|
200
208
|
Required<RouteResponse<'/noise_sensors/noise_thresholds/list'>>
|
|
201
209
|
>
|
|
202
210
|
|
|
211
|
+
export type NoiseSensorsNoiseThresholdsListOptions = never
|
|
212
|
+
|
|
203
213
|
export type NoiseSensorsNoiseThresholdsUpdateBody =
|
|
204
214
|
RouteRequestBody<'/noise_sensors/noise_thresholds/update'>
|
|
205
215
|
|
|
206
216
|
export type NoiseSensorsNoiseThresholdsUpdateResponse = SetNonNullable<
|
|
207
217
|
Required<RouteResponse<'/noise_sensors/noise_thresholds/update'>>
|
|
208
218
|
>
|
|
219
|
+
|
|
220
|
+
export type NoiseSensorsNoiseThresholdsUpdateOptions = never
|
|
@@ -136,6 +136,7 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
136
136
|
data: body,
|
|
137
137
|
},
|
|
138
138
|
)
|
|
139
|
+
|
|
139
140
|
return data.climate_setting_schedule
|
|
140
141
|
}
|
|
141
142
|
|
|
@@ -162,6 +163,7 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
162
163
|
method: 'post',
|
|
163
164
|
data: body,
|
|
164
165
|
})
|
|
166
|
+
|
|
165
167
|
return data.climate_setting_schedule
|
|
166
168
|
}
|
|
167
169
|
|
|
@@ -178,6 +180,7 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
178
180
|
data: body,
|
|
179
181
|
},
|
|
180
182
|
)
|
|
183
|
+
|
|
181
184
|
return data.climate_setting_schedules
|
|
182
185
|
}
|
|
183
186
|
|
|
@@ -201,6 +204,8 @@ export type ThermostatsClimateSettingSchedulesCreateResponse = SetNonNullable<
|
|
|
201
204
|
Required<RouteResponse<'/thermostats/climate_setting_schedules/create'>>
|
|
202
205
|
>
|
|
203
206
|
|
|
207
|
+
export type ThermostatsClimateSettingSchedulesCreateOptions = never
|
|
208
|
+
|
|
204
209
|
export type ThermostatsClimateSettingSchedulesDeleteBody =
|
|
205
210
|
RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>
|
|
206
211
|
|
|
@@ -208,6 +213,8 @@ export type ThermostatsClimateSettingSchedulesDeleteResponse = SetNonNullable<
|
|
|
208
213
|
Required<RouteResponse<'/thermostats/climate_setting_schedules/delete'>>
|
|
209
214
|
>
|
|
210
215
|
|
|
216
|
+
export type ThermostatsClimateSettingSchedulesDeleteOptions = never
|
|
217
|
+
|
|
211
218
|
export type ThermostatsClimateSettingSchedulesGetParams =
|
|
212
219
|
RouteRequestBody<'/thermostats/climate_setting_schedules/get'>
|
|
213
220
|
|
|
@@ -215,6 +222,8 @@ export type ThermostatsClimateSettingSchedulesGetResponse = SetNonNullable<
|
|
|
215
222
|
Required<RouteResponse<'/thermostats/climate_setting_schedules/get'>>
|
|
216
223
|
>
|
|
217
224
|
|
|
225
|
+
export type ThermostatsClimateSettingSchedulesGetOptions = never
|
|
226
|
+
|
|
218
227
|
export type ThermostatsClimateSettingSchedulesListParams =
|
|
219
228
|
RouteRequestBody<'/thermostats/climate_setting_schedules/list'>
|
|
220
229
|
|
|
@@ -222,9 +231,13 @@ export type ThermostatsClimateSettingSchedulesListResponse = SetNonNullable<
|
|
|
222
231
|
Required<RouteResponse<'/thermostats/climate_setting_schedules/list'>>
|
|
223
232
|
>
|
|
224
233
|
|
|
234
|
+
export type ThermostatsClimateSettingSchedulesListOptions = never
|
|
235
|
+
|
|
225
236
|
export type ThermostatsClimateSettingSchedulesUpdateBody =
|
|
226
237
|
RouteRequestBody<'/thermostats/climate_setting_schedules/update'>
|
|
227
238
|
|
|
228
239
|
export type ThermostatsClimateSettingSchedulesUpdateResponse = SetNonNullable<
|
|
229
240
|
Required<RouteResponse<'/thermostats/climate_setting_schedules/update'>>
|
|
230
241
|
>
|
|
242
|
+
|
|
243
|
+
export type ThermostatsClimateSettingSchedulesUpdateOptions = never
|
|
@@ -141,6 +141,7 @@ export class SeamHttpThermostats {
|
|
|
141
141
|
method: 'post',
|
|
142
142
|
data: body,
|
|
143
143
|
})
|
|
144
|
+
|
|
144
145
|
return data.thermostat
|
|
145
146
|
}
|
|
146
147
|
|
|
@@ -168,6 +169,7 @@ export class SeamHttpThermostats {
|
|
|
168
169
|
method: 'post',
|
|
169
170
|
data: body,
|
|
170
171
|
})
|
|
172
|
+
|
|
171
173
|
return data.thermostats
|
|
172
174
|
}
|
|
173
175
|
|
|
@@ -202,36 +204,48 @@ export type ThermostatsCoolResponse = SetNonNullable<
|
|
|
202
204
|
Required<RouteResponse<'/thermostats/cool'>>
|
|
203
205
|
>
|
|
204
206
|
|
|
207
|
+
export type ThermostatsCoolOptions = never
|
|
208
|
+
|
|
205
209
|
export type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>
|
|
206
210
|
|
|
207
211
|
export type ThermostatsGetResponse = SetNonNullable<
|
|
208
212
|
Required<RouteResponse<'/thermostats/get'>>
|
|
209
213
|
>
|
|
210
214
|
|
|
215
|
+
export type ThermostatsGetOptions = never
|
|
216
|
+
|
|
211
217
|
export type ThermostatsHeatBody = RouteRequestBody<'/thermostats/heat'>
|
|
212
218
|
|
|
213
219
|
export type ThermostatsHeatResponse = SetNonNullable<
|
|
214
220
|
Required<RouteResponse<'/thermostats/heat'>>
|
|
215
221
|
>
|
|
216
222
|
|
|
223
|
+
export type ThermostatsHeatOptions = never
|
|
224
|
+
|
|
217
225
|
export type ThermostatsHeatCoolBody = RouteRequestBody<'/thermostats/heat_cool'>
|
|
218
226
|
|
|
219
227
|
export type ThermostatsHeatCoolResponse = SetNonNullable<
|
|
220
228
|
Required<RouteResponse<'/thermostats/heat_cool'>>
|
|
221
229
|
>
|
|
222
230
|
|
|
231
|
+
export type ThermostatsHeatCoolOptions = never
|
|
232
|
+
|
|
223
233
|
export type ThermostatsListParams = RouteRequestBody<'/thermostats/list'>
|
|
224
234
|
|
|
225
235
|
export type ThermostatsListResponse = SetNonNullable<
|
|
226
236
|
Required<RouteResponse<'/thermostats/list'>>
|
|
227
237
|
>
|
|
228
238
|
|
|
239
|
+
export type ThermostatsListOptions = never
|
|
240
|
+
|
|
229
241
|
export type ThermostatsOffBody = RouteRequestBody<'/thermostats/off'>
|
|
230
242
|
|
|
231
243
|
export type ThermostatsOffResponse = SetNonNullable<
|
|
232
244
|
Required<RouteResponse<'/thermostats/off'>>
|
|
233
245
|
>
|
|
234
246
|
|
|
247
|
+
export type ThermostatsOffOptions = never
|
|
248
|
+
|
|
235
249
|
export type ThermostatsSetFanModeBody =
|
|
236
250
|
RouteRequestBody<'/thermostats/set_fan_mode'>
|
|
237
251
|
|
|
@@ -239,8 +253,12 @@ export type ThermostatsSetFanModeResponse = SetNonNullable<
|
|
|
239
253
|
Required<RouteResponse<'/thermostats/set_fan_mode'>>
|
|
240
254
|
>
|
|
241
255
|
|
|
256
|
+
export type ThermostatsSetFanModeOptions = never
|
|
257
|
+
|
|
242
258
|
export type ThermostatsUpdateBody = RouteRequestBody<'/thermostats/update'>
|
|
243
259
|
|
|
244
260
|
export type ThermostatsUpdateResponse = SetNonNullable<
|
|
245
261
|
Required<RouteResponse<'/thermostats/update'>>
|
|
246
262
|
>
|
|
263
|
+
|
|
264
|
+
export type ThermostatsUpdateOptions = never
|
|
@@ -136,6 +136,7 @@ export class SeamHttpUserIdentities {
|
|
|
136
136
|
method: 'post',
|
|
137
137
|
data: body,
|
|
138
138
|
})
|
|
139
|
+
|
|
139
140
|
return data.user_identity
|
|
140
141
|
}
|
|
141
142
|
|
|
@@ -147,6 +148,7 @@ export class SeamHttpUserIdentities {
|
|
|
147
148
|
method: 'post',
|
|
148
149
|
data: body,
|
|
149
150
|
})
|
|
151
|
+
|
|
150
152
|
return data.user_identity
|
|
151
153
|
}
|
|
152
154
|
|
|
@@ -171,6 +173,7 @@ export class SeamHttpUserIdentities {
|
|
|
171
173
|
method: 'post',
|
|
172
174
|
data: body,
|
|
173
175
|
})
|
|
176
|
+
|
|
174
177
|
return data.accessible_devices
|
|
175
178
|
}
|
|
176
179
|
|
|
@@ -183,6 +186,7 @@ export class SeamHttpUserIdentities {
|
|
|
183
186
|
method: 'post',
|
|
184
187
|
data: body,
|
|
185
188
|
})
|
|
189
|
+
|
|
186
190
|
return data.acs_users
|
|
187
191
|
}
|
|
188
192
|
|
|
@@ -212,6 +216,8 @@ export type UserIdentitiesAddAcsUserResponse = SetNonNullable<
|
|
|
212
216
|
Required<RouteResponse<'/user_identities/add_acs_user'>>
|
|
213
217
|
>
|
|
214
218
|
|
|
219
|
+
export type UserIdentitiesAddAcsUserOptions = never
|
|
220
|
+
|
|
215
221
|
export type UserIdentitiesCreateBody =
|
|
216
222
|
RouteRequestBody<'/user_identities/create'>
|
|
217
223
|
|
|
@@ -219,12 +225,16 @@ export type UserIdentitiesCreateResponse = SetNonNullable<
|
|
|
219
225
|
Required<RouteResponse<'/user_identities/create'>>
|
|
220
226
|
>
|
|
221
227
|
|
|
228
|
+
export type UserIdentitiesCreateOptions = never
|
|
229
|
+
|
|
222
230
|
export type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>
|
|
223
231
|
|
|
224
232
|
export type UserIdentitiesGetResponse = SetNonNullable<
|
|
225
233
|
Required<RouteResponse<'/user_identities/get'>>
|
|
226
234
|
>
|
|
227
235
|
|
|
236
|
+
export type UserIdentitiesGetOptions = never
|
|
237
|
+
|
|
228
238
|
export type UserIdentitiesGrantAccessToDeviceBody =
|
|
229
239
|
RouteRequestBody<'/user_identities/grant_access_to_device'>
|
|
230
240
|
|
|
@@ -232,6 +242,8 @@ export type UserIdentitiesGrantAccessToDeviceResponse = SetNonNullable<
|
|
|
232
242
|
Required<RouteResponse<'/user_identities/grant_access_to_device'>>
|
|
233
243
|
>
|
|
234
244
|
|
|
245
|
+
export type UserIdentitiesGrantAccessToDeviceOptions = never
|
|
246
|
+
|
|
235
247
|
export type UserIdentitiesListAccessibleDevicesParams =
|
|
236
248
|
RouteRequestBody<'/user_identities/list_accessible_devices'>
|
|
237
249
|
|
|
@@ -239,6 +251,8 @@ export type UserIdentitiesListAccessibleDevicesResponse = SetNonNullable<
|
|
|
239
251
|
Required<RouteResponse<'/user_identities/list_accessible_devices'>>
|
|
240
252
|
>
|
|
241
253
|
|
|
254
|
+
export type UserIdentitiesListAccessibleDevicesOptions = never
|
|
255
|
+
|
|
242
256
|
export type UserIdentitiesListAcsUsersParams =
|
|
243
257
|
RouteRequestBody<'/user_identities/list_acs_users'>
|
|
244
258
|
|
|
@@ -246,6 +260,8 @@ export type UserIdentitiesListAcsUsersResponse = SetNonNullable<
|
|
|
246
260
|
Required<RouteResponse<'/user_identities/list_acs_users'>>
|
|
247
261
|
>
|
|
248
262
|
|
|
263
|
+
export type UserIdentitiesListAcsUsersOptions = never
|
|
264
|
+
|
|
249
265
|
export type UserIdentitiesRemoveAcsUserBody =
|
|
250
266
|
RouteRequestBody<'/user_identities/remove_acs_user'>
|
|
251
267
|
|
|
@@ -253,9 +269,13 @@ export type UserIdentitiesRemoveAcsUserResponse = SetNonNullable<
|
|
|
253
269
|
Required<RouteResponse<'/user_identities/remove_acs_user'>>
|
|
254
270
|
>
|
|
255
271
|
|
|
272
|
+
export type UserIdentitiesRemoveAcsUserOptions = never
|
|
273
|
+
|
|
256
274
|
export type UserIdentitiesRevokeAccessToDeviceBody =
|
|
257
275
|
RouteRequestBody<'/user_identities/revoke_access_to_device'>
|
|
258
276
|
|
|
259
277
|
export type UserIdentitiesRevokeAccessToDeviceResponse = SetNonNullable<
|
|
260
278
|
Required<RouteResponse<'/user_identities/revoke_access_to_device'>>
|
|
261
279
|
>
|
|
280
|
+
|
|
281
|
+
export type UserIdentitiesRevokeAccessToDeviceOptions = never
|
|
@@ -132,6 +132,7 @@ export class SeamHttpWebhooks {
|
|
|
132
132
|
method: 'post',
|
|
133
133
|
data: body,
|
|
134
134
|
})
|
|
135
|
+
|
|
135
136
|
return data.webhook
|
|
136
137
|
}
|
|
137
138
|
|
|
@@ -149,6 +150,7 @@ export class SeamHttpWebhooks {
|
|
|
149
150
|
method: 'post',
|
|
150
151
|
data: body,
|
|
151
152
|
})
|
|
153
|
+
|
|
152
154
|
return data.webhook
|
|
153
155
|
}
|
|
154
156
|
|
|
@@ -160,6 +162,7 @@ export class SeamHttpWebhooks {
|
|
|
160
162
|
method: 'get',
|
|
161
163
|
params,
|
|
162
164
|
})
|
|
165
|
+
|
|
163
166
|
return data.webhooks
|
|
164
167
|
}
|
|
165
168
|
}
|
|
@@ -170,20 +173,28 @@ export type WebhooksCreateResponse = SetNonNullable<
|
|
|
170
173
|
Required<RouteResponse<'/webhooks/create'>>
|
|
171
174
|
>
|
|
172
175
|
|
|
176
|
+
export type WebhooksCreateOptions = never
|
|
177
|
+
|
|
173
178
|
export type WebhooksDeleteBody = RouteRequestBody<'/webhooks/delete'>
|
|
174
179
|
|
|
175
180
|
export type WebhooksDeleteResponse = SetNonNullable<
|
|
176
181
|
Required<RouteResponse<'/webhooks/delete'>>
|
|
177
182
|
>
|
|
178
183
|
|
|
184
|
+
export type WebhooksDeleteOptions = never
|
|
185
|
+
|
|
179
186
|
export type WebhooksGetParams = RouteRequestBody<'/webhooks/get'>
|
|
180
187
|
|
|
181
188
|
export type WebhooksGetResponse = SetNonNullable<
|
|
182
189
|
Required<RouteResponse<'/webhooks/get'>>
|
|
183
190
|
>
|
|
184
191
|
|
|
192
|
+
export type WebhooksGetOptions = never
|
|
193
|
+
|
|
185
194
|
export type WebhooksListParams = RouteRequestParams<'/webhooks/list'>
|
|
186
195
|
|
|
187
196
|
export type WebhooksListResponse = SetNonNullable<
|
|
188
197
|
Required<RouteResponse<'/webhooks/list'>>
|
|
189
198
|
>
|
|
199
|
+
|
|
200
|
+
export type WebhooksListOptions = never
|
|
@@ -132,6 +132,7 @@ export class SeamHttpWorkspaces {
|
|
|
132
132
|
method: 'get',
|
|
133
133
|
params,
|
|
134
134
|
})
|
|
135
|
+
|
|
135
136
|
return data.workspace
|
|
136
137
|
}
|
|
137
138
|
|
|
@@ -143,6 +144,7 @@ export class SeamHttpWorkspaces {
|
|
|
143
144
|
method: 'get',
|
|
144
145
|
params,
|
|
145
146
|
})
|
|
147
|
+
|
|
146
148
|
return data.workspaces
|
|
147
149
|
}
|
|
148
150
|
|
|
@@ -161,15 +163,21 @@ export type WorkspacesGetResponse = SetNonNullable<
|
|
|
161
163
|
Required<RouteResponse<'/workspaces/get'>>
|
|
162
164
|
>
|
|
163
165
|
|
|
166
|
+
export type WorkspacesGetOptions = never
|
|
167
|
+
|
|
164
168
|
export type WorkspacesListParams = RouteRequestParams<'/workspaces/list'>
|
|
165
169
|
|
|
166
170
|
export type WorkspacesListResponse = SetNonNullable<
|
|
167
171
|
Required<RouteResponse<'/workspaces/list'>>
|
|
168
172
|
>
|
|
169
173
|
|
|
174
|
+
export type WorkspacesListOptions = never
|
|
175
|
+
|
|
170
176
|
export type WorkspacesResetSandboxBody =
|
|
171
177
|
RouteRequestBody<'/workspaces/reset_sandbox'>
|
|
172
178
|
|
|
173
179
|
export type WorkspacesResetSandboxResponse = SetNonNullable<
|
|
174
180
|
Required<RouteResponse<'/workspaces/reset_sandbox'>>
|
|
175
181
|
>
|
|
182
|
+
|
|
183
|
+
export type WorkspacesResetSandboxOptions = never
|
package/src/lib/version.ts
CHANGED