@seamapi/http 2.0.0 → 2.2.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/README.md +0 -30
- package/lib/seam/connect/api-error-types.js +0 -1
- package/lib/seam/connect/api-error-types.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/resources/access-code.d.ts +743 -56
- package/lib/seam/connect/resources/access-grant.d.ts +279 -10
- package/lib/seam/connect/resources/access-method.d.ts +204 -8
- package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
- package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
- package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
- package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
- package/lib/seam/connect/resources/acs-system.d.ts +227 -11
- package/lib/seam/connect/resources/acs-user.d.ts +388 -19
- package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
- package/lib/seam/connect/resources/batch.d.ts +3 -0
- package/lib/seam/connect/resources/client-session.d.ts +48 -0
- package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
- package/lib/seam/connect/resources/connected-account.d.ts +281 -12
- package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
- package/lib/seam/connect/resources/device-provider.d.ts +72 -0
- package/lib/seam/connect/resources/device.d.ts +2063 -41
- package/lib/seam/connect/resources/event.d.ts +4014 -0
- package/lib/seam/connect/resources/instant-key.d.ts +41 -0
- package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
- package/lib/seam/connect/resources/phone.d.ts +72 -0
- package/lib/seam/connect/resources/space.d.ts +54 -0
- package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
- package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
- package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
- package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
- package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
- package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
- package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
- package/lib/seam/connect/resources/user-identity.d.ts +82 -3
- package/lib/seam/connect/resources/webhook.d.ts +15 -0
- package/lib/seam/connect/resources/workspace.d.ts +45 -0
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +63 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
- package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
- package/lib/seam/connect/routes/acs/users/users.js +33 -0
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
- package/lib/seam/connect/routes/customers/customers.js +10 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
- package/lib/seam/connect/routes/devices/devices.js +23 -0
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/events/events.d.ts +99 -0
- package/lib/seam/connect/routes/events/events.js +6 -0
- package/lib/seam/connect/routes/events/events.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
- package/lib/seam/connect/routes/locks/locks.js +16 -0
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +66 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
- package/lib/seam/connect/routes/phones/phones.js +9 -0
- package/lib/seam/connect/routes/phones/phones.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
- package/lib/seam/connect/routes/spaces/spaces.js +36 -0
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -9
- package/src/lib/seam/connect/api-error-types.ts +0 -2
- package/src/lib/seam/connect/openapi.ts +2 -4
- package/src/lib/seam/connect/resources/access-code.ts +719 -35
- package/src/lib/seam/connect/resources/access-grant.ts +284 -16
- package/src/lib/seam/connect/resources/access-method.ts +205 -10
- package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
- package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
- package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
- package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
- package/src/lib/seam/connect/resources/acs-system.ts +223 -9
- package/src/lib/seam/connect/resources/acs-user.ts +382 -16
- package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
- package/src/lib/seam/connect/resources/batch.ts +3 -0
- package/src/lib/seam/connect/resources/client-session.ts +48 -0
- package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
- package/src/lib/seam/connect/resources/connected-account.ts +277 -10
- package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
- package/src/lib/seam/connect/resources/device-provider.ts +72 -0
- package/src/lib/seam/connect/resources/device.ts +2059 -39
- package/src/lib/seam/connect/resources/event.ts +4015 -0
- package/src/lib/seam/connect/resources/instant-key.ts +41 -0
- package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
- package/src/lib/seam/connect/resources/phone.ts +72 -0
- package/src/lib/seam/connect/resources/space.ts +54 -0
- package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
- package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
- package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
- package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
- package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
- package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
- package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
- package/src/lib/seam/connect/resources/user-identity.ts +87 -8
- package/src/lib/seam/connect/resources/webhook.ts +15 -0
- package/src/lib/seam/connect/resources/workspace.ts +46 -0
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
- package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
- package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
- package/src/lib/seam/connect/routes/events/events.ts +99 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
- package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
- package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
- package/src/lib/version.ts +1 -1
|
@@ -161,6 +161,15 @@ export class SeamHttpConnectWebviews {
|
|
|
161
161
|
await clientSessions.get()
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
166
|
+
*
|
|
167
|
+
* To enable a user to connect their devices or systems to Seam, they must sign in to their device or system account. To enable a user to sign in, you create a `connect_webview`. After creating the Connect Webview, you receive a URL that you can use to display the visual component of this Connect Webview for your user. You can open an iframe or new window to display the Connect Webview.
|
|
168
|
+
*
|
|
169
|
+
* You should make a new `connect_webview` for each unique login request. Each `connect_webview` tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
|
|
170
|
+
*
|
|
171
|
+
* See also: [Connect Webview Process](https://docs.seam.co/core-concepts/connect-webviews/connect-webview-process).
|
|
172
|
+
*/
|
|
164
173
|
create(
|
|
165
174
|
parameters?: ConnectWebviewsCreateParameters,
|
|
166
175
|
options: ConnectWebviewsCreateOptions = {},
|
|
@@ -174,6 +183,11 @@ export class SeamHttpConnectWebviews {
|
|
|
174
183
|
})
|
|
175
184
|
}
|
|
176
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Deletes a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
188
|
+
*
|
|
189
|
+
* You do not need to delete a Connect Webview once a user completes it. Instead, you can simply ignore completed Connect Webviews.
|
|
190
|
+
*/
|
|
177
191
|
delete(
|
|
178
192
|
parameters: ConnectWebviewsDeleteParameters,
|
|
179
193
|
options: ConnectWebviewsDeleteOptions = {},
|
|
@@ -187,6 +201,11 @@ export class SeamHttpConnectWebviews {
|
|
|
187
201
|
})
|
|
188
202
|
}
|
|
189
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Returns a specified [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
206
|
+
*
|
|
207
|
+
* Unless you're using a `custom_redirect_url`, you should poll a newly-created `connect_webview` to find out if the user has signed in or to get details about what devices they've connected.
|
|
208
|
+
*/
|
|
190
209
|
get(
|
|
191
210
|
parameters: ConnectWebviewsGetParameters,
|
|
192
211
|
options: ConnectWebviewsGetOptions = {},
|
|
@@ -200,6 +219,9 @@ export class SeamHttpConnectWebviews {
|
|
|
200
219
|
})
|
|
201
220
|
}
|
|
202
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Returns a list of all [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews).
|
|
224
|
+
*/
|
|
203
225
|
list(
|
|
204
226
|
parameters?: ConnectWebviewsListParameters,
|
|
205
227
|
options: ConnectWebviewsListOptions = {},
|
|
@@ -215,11 +237,17 @@ export class SeamHttpConnectWebviews {
|
|
|
215
237
|
}
|
|
216
238
|
|
|
217
239
|
export type ConnectWebviewsCreateParameters = {
|
|
240
|
+
/**
|
|
241
|
+
* List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.
|
|
242
|
+
*/
|
|
218
243
|
accepted_capabilities?:
|
|
219
244
|
| Array<
|
|
220
245
|
'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'
|
|
221
246
|
>
|
|
222
247
|
| undefined
|
|
248
|
+
/**
|
|
249
|
+
* Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with no filters.
|
|
250
|
+
*/
|
|
223
251
|
accepted_providers?:
|
|
224
252
|
| Array<
|
|
225
253
|
| 'hotek'
|
|
@@ -291,12 +319,33 @@ export type ConnectWebviewsCreateParameters = {
|
|
|
291
319
|
| 'slack'
|
|
292
320
|
>
|
|
293
321
|
| undefined
|
|
322
|
+
/**
|
|
323
|
+
* Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices). See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
|
|
324
|
+
*/
|
|
294
325
|
automatically_manage_new_devices?: boolean | undefined
|
|
326
|
+
/**
|
|
327
|
+
* Custom metadata that you want to associate with the Connect Webview. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview) enables you to store custom information, like customer details or internal IDs from your application. The custom metadata is then transferred to any [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) that were connected using the Connect Webview, making it easy to find and filter these resources in your [workspace](https://docs.seam.co/core-concepts/workspaces). You can also [filter Connect Webviews by custom metadata](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata).
|
|
328
|
+
*/
|
|
295
329
|
custom_metadata?: Record<string, unknown> | undefined
|
|
330
|
+
/**
|
|
331
|
+
* Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`.
|
|
332
|
+
*/
|
|
296
333
|
custom_redirect_failure_url?: string | undefined
|
|
334
|
+
/**
|
|
335
|
+
* URL that you want to redirect the user to after the provider login is complete.
|
|
336
|
+
*/
|
|
297
337
|
custom_redirect_url?: string | undefined
|
|
338
|
+
/**
|
|
339
|
+
* Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.
|
|
340
|
+
*/
|
|
298
341
|
customer_key?: string | undefined
|
|
342
|
+
/**
|
|
343
|
+
* List of provider keys to exclude from the Connect Webview. These providers will not be shown when the user tries to connect an account.
|
|
344
|
+
*/
|
|
299
345
|
excluded_providers?: Array<string> | undefined
|
|
346
|
+
/**
|
|
347
|
+
* Specifies the category of providers that you want to include. To list all providers within a category, use [`/devices/list_device_providers`](https://docs.seam.co/api/devices/list_device_providers) with the desired `provider_category` filter.
|
|
348
|
+
*/
|
|
300
349
|
provider_category?:
|
|
301
350
|
| 'stable'
|
|
302
351
|
| 'consumer_smartlocks'
|
|
@@ -308,6 +357,9 @@ export type ConnectWebviewsCreateParameters = {
|
|
|
308
357
|
| 'connectors'
|
|
309
358
|
| 'internal_beta'
|
|
310
359
|
| undefined
|
|
360
|
+
/**
|
|
361
|
+
* Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews).
|
|
362
|
+
*/
|
|
311
363
|
wait_for_device_creation?: boolean | undefined
|
|
312
364
|
}
|
|
313
365
|
|
|
@@ -324,6 +376,9 @@ export type ConnectWebviewsCreateRequest = SeamHttpRequest<
|
|
|
324
376
|
export interface ConnectWebviewsCreateOptions {}
|
|
325
377
|
|
|
326
378
|
export type ConnectWebviewsDeleteParameters = {
|
|
379
|
+
/**
|
|
380
|
+
* ID of the Connect Webview that you want to delete.
|
|
381
|
+
*/
|
|
327
382
|
connect_webview_id: string
|
|
328
383
|
}
|
|
329
384
|
|
|
@@ -337,6 +392,9 @@ export type ConnectWebviewsDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
337
392
|
export interface ConnectWebviewsDeleteOptions {}
|
|
338
393
|
|
|
339
394
|
export type ConnectWebviewsGetParameters = {
|
|
395
|
+
/**
|
|
396
|
+
* ID of the Connect Webview that you want to get.
|
|
397
|
+
*/
|
|
340
398
|
connect_webview_id: string
|
|
341
399
|
}
|
|
342
400
|
|
|
@@ -353,11 +411,29 @@ export type ConnectWebviewsGetRequest = SeamHttpRequest<
|
|
|
353
411
|
export interface ConnectWebviewsGetOptions {}
|
|
354
412
|
|
|
355
413
|
export type ConnectWebviewsListParameters = {
|
|
414
|
+
/**
|
|
415
|
+
* Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs.
|
|
416
|
+
*/
|
|
356
417
|
custom_metadata_has?: Record<string, unknown> | undefined
|
|
418
|
+
/**
|
|
419
|
+
* Customer key for which you want to list connect webviews.
|
|
420
|
+
*/
|
|
357
421
|
customer_key?: string | undefined
|
|
422
|
+
/**
|
|
423
|
+
* Maximum number of records to return per page.
|
|
424
|
+
*/
|
|
358
425
|
limit?: number | undefined
|
|
426
|
+
/**
|
|
427
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
428
|
+
*/
|
|
359
429
|
page_cursor?: string | undefined
|
|
430
|
+
/**
|
|
431
|
+
* String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`.
|
|
432
|
+
*/
|
|
360
433
|
search?: string | undefined
|
|
434
|
+
/**
|
|
435
|
+
* Your user ID for the user by which you want to filter Connect Webviews.
|
|
436
|
+
*/
|
|
361
437
|
user_identifier_key?: string | undefined
|
|
362
438
|
}
|
|
363
439
|
|
|
@@ -170,6 +170,13 @@ export class SeamHttpConnectedAccounts {
|
|
|
170
170
|
)
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Deletes a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
175
|
+
*
|
|
176
|
+
* Deleting a connected account triggers a `connected_account.deleted` event and removes the connected account and all data associated with the connected account from Seam, including devices, events, access codes, and so on. For every deleted resource, Seam sends a corresponding deleted event, but the resource is not deleted from the provider.
|
|
177
|
+
*
|
|
178
|
+
* For example, if you delete a connected account with a device that has an access code, Seam sends a `connected_account.deleted` event, a `device.deleted` event, and an `access_code.deleted` event, but Seam does not remove the access code from the device.
|
|
179
|
+
*/
|
|
173
180
|
delete(
|
|
174
181
|
parameters: ConnectedAccountsDeleteParameters,
|
|
175
182
|
options: ConnectedAccountsDeleteOptions = {},
|
|
@@ -183,6 +190,9 @@ export class SeamHttpConnectedAccounts {
|
|
|
183
190
|
})
|
|
184
191
|
}
|
|
185
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Returns a specified [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
195
|
+
*/
|
|
186
196
|
get(
|
|
187
197
|
parameters?: ConnectedAccountsGetParameters,
|
|
188
198
|
options: ConnectedAccountsGetOptions = {},
|
|
@@ -196,6 +206,9 @@ export class SeamHttpConnectedAccounts {
|
|
|
196
206
|
})
|
|
197
207
|
}
|
|
198
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Returns a list of all [connected accounts](https://docs.seam.co/core-concepts/connected-accounts).
|
|
211
|
+
*/
|
|
199
212
|
list(
|
|
200
213
|
parameters?: ConnectedAccountsListParameters,
|
|
201
214
|
options: ConnectedAccountsListOptions = {},
|
|
@@ -209,6 +222,9 @@ export class SeamHttpConnectedAccounts {
|
|
|
209
222
|
})
|
|
210
223
|
}
|
|
211
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Request a [connected account](https://docs.seam.co/core-concepts/connected-accounts) sync attempt for the specified `connected_account_id`.
|
|
227
|
+
*/
|
|
212
228
|
sync(
|
|
213
229
|
parameters: ConnectedAccountsSyncParameters,
|
|
214
230
|
options: ConnectedAccountsSyncOptions = {},
|
|
@@ -222,6 +238,9 @@ export class SeamHttpConnectedAccounts {
|
|
|
222
238
|
})
|
|
223
239
|
}
|
|
224
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Updates a [connected account](https://docs.seam.co/core-concepts/connected-accounts).
|
|
243
|
+
*/
|
|
225
244
|
update(
|
|
226
245
|
parameters: ConnectedAccountsUpdateParameters,
|
|
227
246
|
options: ConnectedAccountsUpdateOptions = {},
|
|
@@ -237,6 +256,9 @@ export class SeamHttpConnectedAccounts {
|
|
|
237
256
|
}
|
|
238
257
|
|
|
239
258
|
export type ConnectedAccountsDeleteParameters = {
|
|
259
|
+
/**
|
|
260
|
+
* ID of the connected account that you want to delete.
|
|
261
|
+
*/
|
|
240
262
|
connected_account_id: string
|
|
241
263
|
}
|
|
242
264
|
|
|
@@ -250,7 +272,13 @@ export type ConnectedAccountsDeleteRequest = SeamHttpRequest<void, undefined>
|
|
|
250
272
|
export interface ConnectedAccountsDeleteOptions {}
|
|
251
273
|
|
|
252
274
|
export type ConnectedAccountsGetParameters = {
|
|
275
|
+
/**
|
|
276
|
+
* ID of the connected account that you want to get.
|
|
277
|
+
*/
|
|
253
278
|
connected_account_id?: string | undefined
|
|
279
|
+
/**
|
|
280
|
+
* Email address associated with the connected account that you want to get.
|
|
281
|
+
*/
|
|
254
282
|
email?: string | undefined
|
|
255
283
|
}
|
|
256
284
|
|
|
@@ -269,12 +297,33 @@ export type ConnectedAccountsGetRequest = SeamHttpRequest<
|
|
|
269
297
|
export interface ConnectedAccountsGetOptions {}
|
|
270
298
|
|
|
271
299
|
export type ConnectedAccountsListParameters = {
|
|
300
|
+
/**
|
|
301
|
+
* Custom metadata pairs by which you want to filter connected accounts. Returns connected accounts with `custom_metadata` that contains all of the provided key:value pairs.
|
|
302
|
+
*/
|
|
272
303
|
custom_metadata_has?: Record<string, unknown> | undefined
|
|
304
|
+
/**
|
|
305
|
+
* Customer key by which you want to filter connected accounts.
|
|
306
|
+
*/
|
|
273
307
|
customer_key?: string | undefined
|
|
308
|
+
/**
|
|
309
|
+
* Maximum number of records to return per page.
|
|
310
|
+
*/
|
|
274
311
|
limit?: number | undefined
|
|
312
|
+
/**
|
|
313
|
+
* Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
314
|
+
*/
|
|
275
315
|
page_cursor?: string | undefined
|
|
316
|
+
/**
|
|
317
|
+
* String for which to search. Filters returned connected accounts to include all records that satisfy a partial match using `connected_account_id`, `account_type`, `customer_key`, `custom_metadata`, `user_identifier.username`, `user_identifier.email` or `user_identifier.phone`.
|
|
318
|
+
*/
|
|
276
319
|
search?: string | undefined
|
|
320
|
+
/**
|
|
321
|
+
* ID of the space by which you want to filter connected accounts.
|
|
322
|
+
*/
|
|
277
323
|
space_id?: string | undefined
|
|
324
|
+
/**
|
|
325
|
+
* Your user ID for the user by which you want to filter connected accounts.
|
|
326
|
+
*/
|
|
278
327
|
user_identifier_key?: string | undefined
|
|
279
328
|
}
|
|
280
329
|
|
|
@@ -293,6 +342,9 @@ export type ConnectedAccountsListRequest = SeamHttpRequest<
|
|
|
293
342
|
export interface ConnectedAccountsListOptions {}
|
|
294
343
|
|
|
295
344
|
export type ConnectedAccountsSyncParameters = {
|
|
345
|
+
/**
|
|
346
|
+
* ID of the connected account that you want to sync.
|
|
347
|
+
*/
|
|
296
348
|
connected_account_id: string
|
|
297
349
|
}
|
|
298
350
|
|
|
@@ -306,16 +358,34 @@ export type ConnectedAccountsSyncRequest = SeamHttpRequest<void, undefined>
|
|
|
306
358
|
export interface ConnectedAccountsSyncOptions {}
|
|
307
359
|
|
|
308
360
|
export type ConnectedAccountsUpdateParameters = {
|
|
361
|
+
/**
|
|
362
|
+
* List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.
|
|
363
|
+
*/
|
|
309
364
|
accepted_capabilities?:
|
|
310
365
|
| Array<
|
|
311
366
|
'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'
|
|
312
367
|
>
|
|
313
368
|
| undefined
|
|
369
|
+
/**
|
|
370
|
+
* Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/core-concepts/devices/managed-and-unmanaged-devices).
|
|
371
|
+
*/
|
|
314
372
|
automatically_manage_new_devices?: boolean | undefined
|
|
373
|
+
/**
|
|
374
|
+
* ID of the connected account that you want to update.
|
|
375
|
+
*/
|
|
315
376
|
connected_account_id: string
|
|
316
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).
|
|
380
|
+
*/
|
|
317
381
|
custom_metadata?: Record<string, unknown> | undefined
|
|
382
|
+
/**
|
|
383
|
+
* The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.
|
|
384
|
+
*/
|
|
318
385
|
customer_key?: string | undefined
|
|
386
|
+
/**
|
|
387
|
+
* Human-readable name for the connected account, shown in the dashboard. For example, `Booking from Airbnb House 1`.
|
|
388
|
+
*/
|
|
319
389
|
display_name?: string | undefined
|
|
320
390
|
}
|
|
321
391
|
|
|
@@ -163,6 +163,9 @@ export class SeamHttpConnectedAccountsSimulate {
|
|
|
163
163
|
await clientSessions.get()
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Simulates a connected account becoming disconnected from Seam. Only applicable for [sandbox workspaces](https://docs.seam.co/core-concepts/workspaces#sandbox-workspaces).
|
|
168
|
+
*/
|
|
166
169
|
disconnect(
|
|
167
170
|
parameters: ConnectedAccountsSimulateDisconnectParameters,
|
|
168
171
|
options: ConnectedAccountsSimulateDisconnectOptions = {},
|
|
@@ -178,6 +181,9 @@ export class SeamHttpConnectedAccountsSimulate {
|
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
export type ConnectedAccountsSimulateDisconnectParameters = {
|
|
184
|
+
/**
|
|
185
|
+
* ID of the connected account you want to simulate as disconnected.
|
|
186
|
+
*/
|
|
181
187
|
connected_account_id: string
|
|
182
188
|
}
|
|
183
189
|
|