@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
|
@@ -48,6 +48,9 @@ interface BatchResourceMap {
|
|
|
48
48
|
user_identities: UserIdentity;
|
|
49
49
|
workspaces: Workspace;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* A batch of workspace resources.
|
|
53
|
+
*/
|
|
51
54
|
export type Batch<TKey extends keyof BatchResourceMap = keyof BatchResourceMap> = {
|
|
52
55
|
[K in TKey]?: Array<BatchResourceMap[K]> | undefined;
|
|
53
56
|
};
|
|
@@ -1,14 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.
|
|
3
|
+
*
|
|
4
|
+
* You create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides.
|
|
5
|
+
*
|
|
6
|
+
* When calling the Seam API from your backend using an API key, you can pass the `user_identifier_key` as a parameter to limit results to the associated client session. For example, `/devices/list?user_identifier_key=123` only returns devices associated with the client session created with the `user_identifier_key` `123`.
|
|
7
|
+
*
|
|
8
|
+
* A client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.
|
|
9
|
+
*
|
|
10
|
+
* See also [Get Started with React](https://docs.seam.co/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
|
|
11
|
+
*/
|
|
1
12
|
export type ClientSession = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the client session.
|
|
15
|
+
*/
|
|
2
16
|
client_session_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* IDs of the [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
19
|
+
*/
|
|
3
20
|
connect_webview_ids: Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* IDs of the [connected accounts](https://docs.seam.co/core-concepts/connected-accounts) associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
23
|
+
*/
|
|
4
24
|
connected_account_ids: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) was created.
|
|
27
|
+
*/
|
|
5
28
|
created_at: string;
|
|
29
|
+
/**
|
|
30
|
+
* Customer key associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
31
|
+
*/
|
|
6
32
|
customer_key?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Number of devices associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
35
|
+
*/
|
|
7
36
|
device_count: number;
|
|
37
|
+
/**
|
|
38
|
+
* Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) expires.
|
|
39
|
+
*/
|
|
8
40
|
expires_at: string;
|
|
41
|
+
/**
|
|
42
|
+
* Client session token associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
43
|
+
*/
|
|
9
44
|
token: string;
|
|
45
|
+
/**
|
|
46
|
+
* Your user ID for the user associated with the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens).
|
|
47
|
+
*/
|
|
10
48
|
user_identifier_key: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
|
|
51
|
+
*/
|
|
11
52
|
user_identity_id?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* IDs of the [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
|
|
55
|
+
* @deprecated Use `user_identity_id` instead.
|
|
56
|
+
*/
|
|
12
57
|
user_identity_ids: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
* ID of the workspace associated with the client session.
|
|
60
|
+
*/
|
|
13
61
|
workspace_id: string;
|
|
14
62
|
};
|
|
@@ -1,21 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews).
|
|
3
|
+
*
|
|
4
|
+
* Connect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and—once your user has completed the authorization through your app—you can access and control their devices or systems using the Seam API.
|
|
5
|
+
*
|
|
6
|
+
* Connect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.
|
|
7
|
+
*
|
|
8
|
+
* To enable a user to connect their device or system account to Seam through your app, first create a `connect_webview`. Once created, this `connect_webview` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.
|
|
9
|
+
*
|
|
10
|
+
* When you create a Connect Webview, specify the desired provider category key in the `provider_category` parameter. Alternately, to specify a list of providers explicitly, use the `accepted_providers` parameter with a list of device provider keys.
|
|
11
|
+
*
|
|
12
|
+
* To list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters.
|
|
13
|
+
*/
|
|
1
14
|
export type ConnectWebview = {
|
|
15
|
+
/**
|
|
16
|
+
* High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.
|
|
17
|
+
*/
|
|
2
18
|
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'>;
|
|
19
|
+
/**
|
|
20
|
+
* List of accepted [provider keys](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
|
|
21
|
+
*/
|
|
3
22
|
accepted_providers: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates whether any provider is allowed.
|
|
25
|
+
*/
|
|
4
26
|
any_provider_allowed: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Date and time at which the user authorized (through the Connect Webview) the management of their devices.
|
|
29
|
+
*/
|
|
5
30
|
authorized_at: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether Seam should [import all new devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.
|
|
33
|
+
*/
|
|
6
34
|
automatically_manage_new_devices: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* ID of the Connect Webview.
|
|
37
|
+
*/
|
|
7
38
|
connect_webview_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the connected account associated with the Connect Webview.
|
|
41
|
+
*/
|
|
8
42
|
connected_account_id: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Date and time at which the Connect Webview was created.
|
|
45
|
+
*/
|
|
9
46
|
created_at: string;
|
|
47
|
+
/**
|
|
48
|
+
* Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
49
|
+
*/
|
|
10
50
|
custom_metadata: Record<string, unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* URL to which the Connect Webview should redirect when an unexpected error occurs.
|
|
53
|
+
*/
|
|
11
54
|
custom_redirect_failure_url: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.
|
|
57
|
+
*/
|
|
12
58
|
custom_redirect_url: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The customer key associated with this webview, if any.
|
|
61
|
+
*/
|
|
13
62
|
customer_key?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Device selection mode of the Connect Webview. Supported values: `none`, `single`, `multiple`.
|
|
65
|
+
*/
|
|
14
66
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
67
|
+
/**
|
|
68
|
+
* Indicates whether the user logged in successfully using the Connect Webview.
|
|
69
|
+
*/
|
|
15
70
|
login_successful: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
|
|
73
|
+
*/
|
|
16
74
|
selected_provider: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.
|
|
77
|
+
*/
|
|
17
78
|
status: 'pending' | 'failed' | 'authorized';
|
|
79
|
+
/**
|
|
80
|
+
* URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.
|
|
81
|
+
*/
|
|
18
82
|
url: string;
|
|
83
|
+
/**
|
|
84
|
+
* Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.
|
|
85
|
+
*/
|
|
19
86
|
wait_for_device_creation: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* ID of the workspace that contains the Connect Webview.
|
|
89
|
+
*/
|
|
20
90
|
workspace_id: string;
|
|
21
91
|
};
|
|
@@ -1,98 +1,367 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a [connected account](https://docs.seam.co/core-concepts/connected-accounts). A connected account is an external third-party account to which your user has authorized Seam to get access, for example, an August account with a list of door locks.
|
|
3
|
+
*/
|
|
1
4
|
export type ConnectedAccount = {
|
|
5
|
+
/**
|
|
6
|
+
* List of capabilities that were accepted during the account connection process.
|
|
7
|
+
*/
|
|
2
8
|
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control' | 'camera'>;
|
|
9
|
+
/**
|
|
10
|
+
* Type of connected account.
|
|
11
|
+
*/
|
|
3
12
|
account_type?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Display name for the connected account type.
|
|
15
|
+
*/
|
|
4
16
|
account_type_display_name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Indicates whether Seam should [import all new devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for management by the Seam API.
|
|
19
|
+
*/
|
|
5
20
|
automatically_manage_new_devices: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* ID of the connected account.
|
|
23
|
+
*/
|
|
6
24
|
connected_account_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time at which the connected account was created.
|
|
27
|
+
*/
|
|
7
28
|
created_at?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.
|
|
31
|
+
*/
|
|
8
32
|
custom_metadata: Record<string, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Your unique key for the customer associated with this connected account.
|
|
35
|
+
*/
|
|
9
36
|
customer_key?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Default reservation check-in time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration — set during the connect_webview for providers like Lodgify whose API does not expose check-in times.
|
|
39
|
+
*/
|
|
10
40
|
default_checkin_time?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Default reservation check-out time for this connected account, as `HH:mm` (24-hour). Sourced from the connector configuration.
|
|
43
|
+
*/
|
|
11
44
|
default_checkout_time?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Display name for the connected account.
|
|
47
|
+
*/
|
|
12
48
|
display_name: string;
|
|
13
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Errors associated with the connected account.
|
|
51
|
+
*/
|
|
52
|
+
errors: Array<
|
|
53
|
+
/**
|
|
54
|
+
* Indicates that the account is disconnected.
|
|
55
|
+
*/
|
|
56
|
+
{
|
|
57
|
+
/**
|
|
58
|
+
* Date and time at which Seam created the error.
|
|
59
|
+
*/
|
|
14
60
|
created_at: string;
|
|
61
|
+
/**
|
|
62
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
63
|
+
*/
|
|
15
64
|
error_code: 'account_disconnected';
|
|
65
|
+
/**
|
|
66
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
67
|
+
*/
|
|
16
68
|
is_bridge_error?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
71
|
+
*/
|
|
17
72
|
is_connected_account_error?: boolean | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
75
|
+
*/
|
|
18
76
|
message: string;
|
|
19
|
-
}
|
|
77
|
+
} /**
|
|
78
|
+
* Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).
|
|
79
|
+
*/ | {
|
|
80
|
+
/**
|
|
81
|
+
* Date and time at which Seam created the error.
|
|
82
|
+
*/
|
|
20
83
|
created_at: string;
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
86
|
+
*/
|
|
21
87
|
error_code: 'bridge_disconnected';
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
90
|
+
*/
|
|
22
91
|
is_bridge_error?: boolean | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
94
|
+
*/
|
|
23
95
|
is_connected_account_error?: boolean | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
98
|
+
*/
|
|
24
99
|
message: string;
|
|
25
|
-
}
|
|
100
|
+
} /**
|
|
101
|
+
* Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.
|
|
102
|
+
*/ | {
|
|
103
|
+
/**
|
|
104
|
+
* Date and time at which Seam created the error.
|
|
105
|
+
*/
|
|
26
106
|
created_at: string;
|
|
107
|
+
/**
|
|
108
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
109
|
+
*/
|
|
27
110
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
111
|
+
/**
|
|
112
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
113
|
+
*/
|
|
28
114
|
is_bridge_error?: boolean | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
117
|
+
*/
|
|
29
118
|
is_connected_account_error?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
121
|
+
*/
|
|
30
122
|
message: string;
|
|
123
|
+
/**
|
|
124
|
+
* Salto KS metadata associated with the connected account that has an error.
|
|
125
|
+
*/
|
|
31
126
|
salto_ks_metadata: {
|
|
127
|
+
/**
|
|
128
|
+
* Salto sites associated with the connected account that has an error.
|
|
129
|
+
*/
|
|
32
130
|
sites?: Array<{
|
|
131
|
+
/**
|
|
132
|
+
* ID of a Salto site associated with the connected account that has an error.
|
|
133
|
+
*/
|
|
33
134
|
site_id?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Name of a Salto site associated with the connected account that has an error.
|
|
137
|
+
*/
|
|
34
138
|
site_name?: string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Subscription limit of site users for a Salto site associated with the connected account that has an error.
|
|
141
|
+
*/
|
|
35
142
|
site_user_subscription_limit?: number | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Count of subscribed site users for a Salto site associated with the connected account that has an error.
|
|
145
|
+
*/
|
|
36
146
|
subscribed_site_user_count?: number | undefined;
|
|
37
147
|
}> | undefined;
|
|
38
148
|
};
|
|
39
|
-
}
|
|
149
|
+
} /**
|
|
150
|
+
* Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
151
|
+
*/ | {
|
|
152
|
+
/**
|
|
153
|
+
* Date and time at which Seam created the error.
|
|
154
|
+
*/
|
|
40
155
|
created_at: string;
|
|
156
|
+
/**
|
|
157
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
158
|
+
*/
|
|
41
159
|
error_code: 'dormakaba_sites_disconnected';
|
|
160
|
+
/**
|
|
161
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
162
|
+
*/
|
|
42
163
|
is_bridge_error?: boolean | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
166
|
+
*/
|
|
43
167
|
is_connected_account_error?: boolean | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
170
|
+
*/
|
|
44
171
|
message: string;
|
|
45
172
|
}>;
|
|
173
|
+
/**
|
|
174
|
+
* For iCal connected accounts, the platform that produced the feed (for example, `airbnb`, `vrbo`, or `booking`), or `unknown` when it could not be determined. Intended for rendering the source platform's logo.
|
|
175
|
+
*/
|
|
46
176
|
ical_feed_origin?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* For iCal connected accounts, the feed URL for the connection. Sourced from the connector configuration.
|
|
179
|
+
*/
|
|
47
180
|
ical_url?: string | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Logo URL for the connected account provider.
|
|
183
|
+
*/
|
|
48
184
|
image_url?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.
|
|
187
|
+
*/
|
|
49
188
|
time_zone?: string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* User identifier associated with the connected account.
|
|
191
|
+
* @deprecated Use `display_name` instead.
|
|
192
|
+
*/
|
|
50
193
|
user_identifier?: {
|
|
194
|
+
/**
|
|
195
|
+
* API URL for the user identifier associated with the connected account.
|
|
196
|
+
*/
|
|
51
197
|
api_url?: string | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Email address of the user identifier associated with the connected account.
|
|
200
|
+
*/
|
|
52
201
|
email?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Indicates whether the user identifier associated with the connected account is exclusive.
|
|
204
|
+
*/
|
|
53
205
|
exclusive?: boolean | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Phone number of the user identifier associated with the connected account.
|
|
208
|
+
*/
|
|
54
209
|
phone?: string | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Username of the user identifier associated with the connected account.
|
|
212
|
+
*/
|
|
55
213
|
username?: string | undefined;
|
|
56
214
|
} | undefined;
|
|
57
|
-
|
|
215
|
+
/**
|
|
216
|
+
* Warnings associated with the connected account.
|
|
217
|
+
*/
|
|
218
|
+
warnings: Array<
|
|
219
|
+
/**
|
|
220
|
+
* Indicates that scheduled downtime is planned for the connected account.
|
|
221
|
+
*/
|
|
222
|
+
{
|
|
223
|
+
/**
|
|
224
|
+
* Date and time at which Seam created the warning.
|
|
225
|
+
*/
|
|
58
226
|
created_at: string;
|
|
227
|
+
/**
|
|
228
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
229
|
+
*/
|
|
59
230
|
message: string;
|
|
231
|
+
/**
|
|
232
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
233
|
+
*/
|
|
60
234
|
warning_code: 'scheduled_maintenance_window';
|
|
61
|
-
}
|
|
235
|
+
} /**
|
|
236
|
+
* Indicates that an unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.
|
|
237
|
+
*/ | {
|
|
238
|
+
/**
|
|
239
|
+
* Date and time at which Seam created the warning.
|
|
240
|
+
*/
|
|
62
241
|
created_at: string;
|
|
242
|
+
/**
|
|
243
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
244
|
+
*/
|
|
63
245
|
message: string;
|
|
246
|
+
/**
|
|
247
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
248
|
+
*/
|
|
64
249
|
warning_code: 'unknown_issue_with_connected_account';
|
|
65
|
-
}
|
|
250
|
+
} /**
|
|
251
|
+
* Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.
|
|
252
|
+
*/ | {
|
|
253
|
+
/**
|
|
254
|
+
* Date and time at which Seam created the warning.
|
|
255
|
+
*/
|
|
66
256
|
created_at: string;
|
|
257
|
+
/**
|
|
258
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
259
|
+
*/
|
|
67
260
|
message: string;
|
|
261
|
+
/**
|
|
262
|
+
* Salto KS metadata associated with the connected account that has a warning.
|
|
263
|
+
*/
|
|
68
264
|
salto_ks_metadata: {
|
|
265
|
+
/**
|
|
266
|
+
* Salto sites associated with the connected account that has a warning.
|
|
267
|
+
*/
|
|
69
268
|
sites?: Array<{
|
|
269
|
+
/**
|
|
270
|
+
* ID of a Salto site associated with the connected account that has a warning.
|
|
271
|
+
*/
|
|
70
272
|
site_id?: string | undefined;
|
|
273
|
+
/**
|
|
274
|
+
* Name of a Salto site associated with the connected account that has a warning.
|
|
275
|
+
*/
|
|
71
276
|
site_name?: string | undefined;
|
|
277
|
+
/**
|
|
278
|
+
* Subscription limit of site users for a Salto site associated with the connected account that has a warning.
|
|
279
|
+
*/
|
|
72
280
|
site_user_subscription_limit?: number | undefined;
|
|
281
|
+
/**
|
|
282
|
+
* Count of subscribed site users for a Salto site associated with the connected account that has a warning.
|
|
283
|
+
*/
|
|
73
284
|
subscribed_site_user_count?: number | undefined;
|
|
74
285
|
}> | undefined;
|
|
75
286
|
};
|
|
287
|
+
/**
|
|
288
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
289
|
+
*/
|
|
76
290
|
warning_code: 'salto_ks_subscription_limit_almost_reached';
|
|
77
|
-
}
|
|
291
|
+
} /**
|
|
292
|
+
* Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
|
|
293
|
+
*/ | {
|
|
294
|
+
/**
|
|
295
|
+
* Date and time at which Seam created the warning.
|
|
296
|
+
*/
|
|
78
297
|
created_at: string;
|
|
298
|
+
/**
|
|
299
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
300
|
+
*/
|
|
79
301
|
message: string;
|
|
302
|
+
/**
|
|
303
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
304
|
+
*/
|
|
80
305
|
warning_code: 'account_reauthorization_requested';
|
|
81
|
-
}
|
|
306
|
+
} /**
|
|
307
|
+
* Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam.
|
|
308
|
+
*/ | {
|
|
309
|
+
/**
|
|
310
|
+
* Date and time at which Seam created the warning.
|
|
311
|
+
*/
|
|
82
312
|
created_at: string;
|
|
313
|
+
/**
|
|
314
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
315
|
+
*/
|
|
83
316
|
message: string;
|
|
317
|
+
/**
|
|
318
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
319
|
+
*/
|
|
84
320
|
warning_code: 'being_deleted';
|
|
85
|
-
}
|
|
321
|
+
} /**
|
|
322
|
+
* Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
|
|
323
|
+
*/ | {
|
|
324
|
+
/**
|
|
325
|
+
* Date and time at which Seam created the warning.
|
|
326
|
+
*/
|
|
86
327
|
created_at: string;
|
|
328
|
+
/**
|
|
329
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
330
|
+
*/
|
|
87
331
|
message: string;
|
|
332
|
+
/**
|
|
333
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
334
|
+
*/
|
|
88
335
|
warning_code: 'provider_service_unavailable';
|
|
89
|
-
}
|
|
336
|
+
} /**
|
|
337
|
+
* Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup.
|
|
338
|
+
*/ | {
|
|
339
|
+
/**
|
|
340
|
+
* Date and time at which Seam created the warning.
|
|
341
|
+
*/
|
|
90
342
|
created_at: string;
|
|
343
|
+
/**
|
|
344
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
345
|
+
*/
|
|
91
346
|
message: string;
|
|
347
|
+
/**
|
|
348
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
349
|
+
*/
|
|
92
350
|
warning_code: 'setup_required';
|
|
93
|
-
}
|
|
351
|
+
} /**
|
|
352
|
+
* Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
|
|
353
|
+
*/ | {
|
|
354
|
+
/**
|
|
355
|
+
* Date and time at which Seam created the warning.
|
|
356
|
+
*/
|
|
94
357
|
created_at: string;
|
|
358
|
+
/**
|
|
359
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
360
|
+
*/
|
|
95
361
|
message: string;
|
|
362
|
+
/**
|
|
363
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
364
|
+
*/
|
|
96
365
|
warning_code: 'dormakaba_sites_unapproved';
|
|
97
366
|
}>;
|
|
98
367
|
};
|
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
|
|
3
|
+
*
|
|
4
|
+
* With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
|
|
5
|
+
*
|
|
6
|
+
* Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control.
|
|
7
|
+
*/
|
|
1
8
|
export type CustomerPortal = {
|
|
9
|
+
/**
|
|
10
|
+
* Date and time at which the customer portal link was created.
|
|
11
|
+
*/
|
|
2
12
|
created_at: string;
|
|
13
|
+
/**
|
|
14
|
+
* Customer key for the customer portal.
|
|
15
|
+
*/
|
|
3
16
|
customer_key: string;
|
|
17
|
+
/**
|
|
18
|
+
* Date and time at which the customer portal link expires.
|
|
19
|
+
*/
|
|
4
20
|
expires_at: string;
|
|
21
|
+
/**
|
|
22
|
+
* URL for the customer portal.
|
|
23
|
+
*/
|
|
5
24
|
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the workspace associated with the customer portal.
|
|
27
|
+
*/
|
|
6
28
|
workspace_id: string;
|
|
7
29
|
};
|