@seamapi/types 1.462.0 → 1.464.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +179 -146
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +354 -316
- package/dist/index.cjs +179 -146
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +4 -4
- package/lib/seam/connect/models/access-codes/managed-access-code.js +2 -2
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +6 -6
- package/lib/seam/connect/models/access-grants/access-grant.js +1 -2
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-access-group.js +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-credential.js +1 -1
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-encoder.js +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +12 -11
- package/lib/seam/connect/models/acs/acs-system.js +3 -2
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +5 -4
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +3 -2
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +266 -243
- package/lib/seam/connect/models/batch.js +3 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +2 -2
- package/lib/seam/connect/models/bridges/bridge-client-session.js +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +4 -4
- package/lib/seam/connect/models/connected-accounts/connected-account.js +2 -2
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +34 -0
- package/lib/seam/connect/models/customer/customer-portal.js +18 -0
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +4 -62
- package/lib/seam/connect/models/devices/device.js +2 -16
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +0 -21
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +5 -4
- package/lib/seam/connect/models/user-identities/user-identity.js +2 -2
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +82 -2
- package/lib/seam/connect/openapi.js +84 -46
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +136 -179
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +4 -4
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +1 -2
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +2 -2
- package/src/lib/seam/connect/models/acs/acs-credential.ts +4 -2
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +2 -2
- package/src/lib/seam/connect/models/acs/acs-system.ts +5 -4
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +4 -4
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +2 -2
- package/src/lib/seam/connect/models/batch.ts +3 -0
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +2 -2
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +4 -4
- package/src/lib/seam/connect/models/customer/customer-portal.ts +23 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
- package/src/lib/seam/connect/models/devices/device.ts +4 -19
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +4 -4
- package/src/lib/seam/connect/openapi.ts +88 -54
- package/src/lib/seam/connect/route-types.ts +148 -182
package/dist/index.cjs
CHANGED
|
@@ -1324,14 +1324,6 @@ var functional_offline_device = common_device_warning.extend({
|
|
|
1324
1324
|
var third_party_integration_detected = common_device_warning.extend({
|
|
1325
1325
|
warning_code: zod.z.literal("third_party_integration_detected").describe(warning_code_description2)
|
|
1326
1326
|
}).describe("Indicates that a third-party integration has been detected.");
|
|
1327
|
-
var nest_thermostat_in_manual_eco_mode = common_device_warning.extend({
|
|
1328
|
-
warning_code: zod.z.literal("nest_thermostat_in_manual_eco_mode").describe(warning_code_description2)
|
|
1329
|
-
}).describe(`
|
|
1330
|
-
---
|
|
1331
|
-
variant_group_key: thermostats
|
|
1332
|
-
---
|
|
1333
|
-
Indicates that the Nest thermostat is in manual eco mode.
|
|
1334
|
-
`);
|
|
1335
1327
|
var ttlock_lock_gateway_unlocking_not_enabled = common_device_warning.extend({
|
|
1336
1328
|
warning_code: zod.z.literal("ttlock_lock_gateway_unlocking_not_enabled").describe(warning_code_description2)
|
|
1337
1329
|
}).describe(`
|
|
@@ -1389,7 +1381,6 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
1389
1381
|
wyze_device_missing_gateway,
|
|
1390
1382
|
functional_offline_device,
|
|
1391
1383
|
third_party_integration_detected,
|
|
1392
|
-
nest_thermostat_in_manual_eco_mode,
|
|
1393
1384
|
ttlock_lock_gateway_unlocking_not_enabled,
|
|
1394
1385
|
ttlock_weak_gateway_signal,
|
|
1395
1386
|
power_saving_mode,
|
|
@@ -1413,7 +1404,6 @@ zod.z.object({
|
|
|
1413
1404
|
wyze_device_missing_gateway: wyze_device_missing_gateway.optional().nullable(),
|
|
1414
1405
|
functional_offline_device: functional_offline_device.optional().nullable(),
|
|
1415
1406
|
third_party_integration_detected: third_party_integration_detected.optional().nullable(),
|
|
1416
|
-
nest_thermostat_in_manual_eco_mode: nest_thermostat_in_manual_eco_mode.optional().nullable(),
|
|
1417
1407
|
ttlock_lock_gateway_unlocking_not_enabled: ttlock_lock_gateway_unlocking_not_enabled.optional().nullable(),
|
|
1418
1408
|
ttlock_weak_gateway_signal: ttlock_weak_gateway_signal.optional().nullable(),
|
|
1419
1409
|
power_saving_mode: power_saving_mode.optional().nullable(),
|
|
@@ -1762,7 +1752,8 @@ var DEVICE_PROVIDERS = {
|
|
|
1762
1752
|
SALTO_SPACE: "salto_space",
|
|
1763
1753
|
SENSI: "sensi",
|
|
1764
1754
|
KWIKSET2: "kwikset2",
|
|
1765
|
-
KEYNEST: "keynest"
|
|
1755
|
+
KEYNEST: "keynest",
|
|
1756
|
+
DORMAKABA_AMBIANCE: "dormakaba_ambiance"
|
|
1766
1757
|
};
|
|
1767
1758
|
var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
1768
1759
|
var PROVIDER_CATEGORY_MAP = {
|
|
@@ -1817,7 +1808,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
1817
1808
|
"latch",
|
|
1818
1809
|
"salto_ks",
|
|
1819
1810
|
"assa_abloy_vostio",
|
|
1820
|
-
"salto_space"
|
|
1811
|
+
"salto_space",
|
|
1812
|
+
"dormakaba_ambiance"
|
|
1821
1813
|
],
|
|
1822
1814
|
internal_beta: ALL_DEVICE_PROVIDERS
|
|
1823
1815
|
};
|
|
@@ -2807,6 +2799,7 @@ var acs_system_external_type = zod.z.enum([
|
|
|
2807
2799
|
"assa_abloy_credential_service",
|
|
2808
2800
|
"latch_building",
|
|
2809
2801
|
"dormakaba_community_site",
|
|
2802
|
+
"dormakaba_ambiance_site",
|
|
2810
2803
|
"legic_connect_credential_service",
|
|
2811
2804
|
"assa_abloy_vostio",
|
|
2812
2805
|
"assa_abloy_vostio_credential_service"
|
|
@@ -3844,6 +3837,90 @@ var client_session = zod.z.object({
|
|
|
3844
3837
|
|
|
3845
3838
|
See also [Get Started with React](https://docs.seam.co/latest/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
|
|
3846
3839
|
`);
|
|
3840
|
+
var connect_webview_device_selection_mode = zod.z.enum([
|
|
3841
|
+
"none",
|
|
3842
|
+
"single",
|
|
3843
|
+
"multiple"
|
|
3844
|
+
]);
|
|
3845
|
+
var connect_webview = zod.z.object({
|
|
3846
|
+
connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
|
|
3847
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
3848
|
+
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview."
|
|
3849
|
+
),
|
|
3850
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the Connect Webview was created."),
|
|
3851
|
+
connected_account_id: zod.z.string().uuid().nullable().describe(
|
|
3852
|
+
"ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview."
|
|
3853
|
+
),
|
|
3854
|
+
url: zod.z.string().url().describe(
|
|
3855
|
+
"URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user."
|
|
3856
|
+
),
|
|
3857
|
+
device_selection_mode: connect_webview_device_selection_mode,
|
|
3858
|
+
// TODO: Use enum value.
|
|
3859
|
+
accepted_providers: zod.z.array(zod.z.string()).describe(
|
|
3860
|
+
"List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
3861
|
+
),
|
|
3862
|
+
accepted_capabilities: zod.z.array(provider_capability).describe(
|
|
3863
|
+
"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`."
|
|
3864
|
+
),
|
|
3865
|
+
accepted_devices: zod.z.array(zod.z.string()).describe(
|
|
3866
|
+
`
|
|
3867
|
+
---
|
|
3868
|
+
undocumented: Unused. Will be removed.
|
|
3869
|
+
deprecated: Unused. Will be removed.
|
|
3870
|
+
---
|
|
3871
|
+
`
|
|
3872
|
+
),
|
|
3873
|
+
any_device_allowed: zod.z.boolean().describe(
|
|
3874
|
+
`
|
|
3875
|
+
---
|
|
3876
|
+
undocumented: Unused. Will be removed.
|
|
3877
|
+
deprecated: Unused. Will be removed.
|
|
3878
|
+
---
|
|
3879
|
+
`
|
|
3880
|
+
),
|
|
3881
|
+
any_provider_allowed: zod.z.boolean().describe("Indicates whether any provider is allowed."),
|
|
3882
|
+
login_successful: zod.z.boolean().describe(
|
|
3883
|
+
"Indicates whether the user logged in successfully using the Connect Webview."
|
|
3884
|
+
),
|
|
3885
|
+
status: zod.z.enum(["pending", "failed", "authorized"]).describe(
|
|
3886
|
+
"Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview."
|
|
3887
|
+
),
|
|
3888
|
+
custom_redirect_url: zod.z.string().url().nullable().describe(
|
|
3889
|
+
"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."
|
|
3890
|
+
),
|
|
3891
|
+
custom_redirect_failure_url: zod.z.string().url().nullable().describe(
|
|
3892
|
+
"URL to which the Connect Webview should redirect when an unexpected error occurs."
|
|
3893
|
+
),
|
|
3894
|
+
custom_metadata,
|
|
3895
|
+
automatically_manage_new_devices: zod.z.boolean().describe(
|
|
3896
|
+
"Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/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."
|
|
3897
|
+
),
|
|
3898
|
+
wait_for_device_creation: zod.z.boolean().describe(
|
|
3899
|
+
"Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview."
|
|
3900
|
+
),
|
|
3901
|
+
authorized_at: zod.z.string().datetime().nullable().describe(
|
|
3902
|
+
"Date and time at which the user authorized (through the Connect Webview) the management of their devices."
|
|
3903
|
+
),
|
|
3904
|
+
selected_provider: zod.z.string().nullable().describe(
|
|
3905
|
+
"Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
3906
|
+
),
|
|
3907
|
+
customer_key: zod.z.string().optional().describe("The customer key associated with this webview, if any.")
|
|
3908
|
+
}).describe(`
|
|
3909
|
+
---
|
|
3910
|
+
route_path: /connect_webviews
|
|
3911
|
+
---
|
|
3912
|
+
Represents a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).
|
|
3913
|
+
|
|
3914
|
+
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\u2014once your user has completed the authorization through your app\u2014you can access and control their devices or systems using the Seam API.
|
|
3915
|
+
|
|
3916
|
+
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.
|
|
3917
|
+
|
|
3918
|
+
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.
|
|
3919
|
+
|
|
3920
|
+
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.
|
|
3921
|
+
|
|
3922
|
+
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.
|
|
3923
|
+
`);
|
|
3847
3924
|
var space = zod.z.object({
|
|
3848
3925
|
space_id: zod.z.string().uuid().describe("ID of the space."),
|
|
3849
3926
|
workspace_id: zod.z.string().uuid().describe(
|
|
@@ -4033,7 +4110,8 @@ zod.z.object({
|
|
|
4033
4110
|
client_sessions: client_session.array().optional(),
|
|
4034
4111
|
unmanaged_acs_users: unmanaged_acs_user.array().optional(),
|
|
4035
4112
|
unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
|
|
4036
|
-
unmanaged_devices: unmanaged_device.array().optional()
|
|
4113
|
+
unmanaged_devices: unmanaged_device.array().optional(),
|
|
4114
|
+
connect_webviews: connect_webview.array().optional()
|
|
4037
4115
|
}).describe("A batch of workspace resources.");
|
|
4038
4116
|
var batch = zod.z.object({
|
|
4039
4117
|
batch_type: zod.z.enum([
|
|
@@ -4055,7 +4133,8 @@ var batch = zod.z.object({
|
|
|
4055
4133
|
client_sessions: client_session.array().optional(),
|
|
4056
4134
|
unmanaged_acs_users: unmanaged_acs_user.array().optional(),
|
|
4057
4135
|
unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
|
|
4058
|
-
unmanaged_devices: unmanaged_device.array().optional()
|
|
4136
|
+
unmanaged_devices: unmanaged_device.array().optional(),
|
|
4137
|
+
connect_webviews: connect_webview.array().optional()
|
|
4059
4138
|
}).describe("A batch of workspace resources.");
|
|
4060
4139
|
var bridge = zod.z.object({
|
|
4061
4140
|
bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
|
|
@@ -4134,90 +4213,6 @@ var bridge_client_session = zod.z.object({
|
|
|
4134
4213
|
---
|
|
4135
4214
|
Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
|
|
4136
4215
|
`);
|
|
4137
|
-
var connect_webview_device_selection_mode = zod.z.enum([
|
|
4138
|
-
"none",
|
|
4139
|
-
"single",
|
|
4140
|
-
"multiple"
|
|
4141
|
-
]);
|
|
4142
|
-
var connect_webview = zod.z.object({
|
|
4143
|
-
connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
|
|
4144
|
-
workspace_id: zod.z.string().uuid().describe(
|
|
4145
|
-
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview."
|
|
4146
|
-
),
|
|
4147
|
-
created_at: zod.z.string().datetime().describe("Date and time at which the Connect Webview was created."),
|
|
4148
|
-
connected_account_id: zod.z.string().uuid().nullable().describe(
|
|
4149
|
-
"ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview."
|
|
4150
|
-
),
|
|
4151
|
-
url: zod.z.string().url().describe(
|
|
4152
|
-
"URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user."
|
|
4153
|
-
),
|
|
4154
|
-
device_selection_mode: connect_webview_device_selection_mode,
|
|
4155
|
-
// TODO: Use enum value.
|
|
4156
|
-
accepted_providers: zod.z.array(zod.z.string()).describe(
|
|
4157
|
-
"List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
4158
|
-
),
|
|
4159
|
-
accepted_capabilities: zod.z.array(provider_capability).describe(
|
|
4160
|
-
"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`."
|
|
4161
|
-
),
|
|
4162
|
-
accepted_devices: zod.z.array(zod.z.string()).describe(
|
|
4163
|
-
`
|
|
4164
|
-
---
|
|
4165
|
-
undocumented: Unused. Will be removed.
|
|
4166
|
-
deprecated: Unused. Will be removed.
|
|
4167
|
-
---
|
|
4168
|
-
`
|
|
4169
|
-
),
|
|
4170
|
-
any_device_allowed: zod.z.boolean().describe(
|
|
4171
|
-
`
|
|
4172
|
-
---
|
|
4173
|
-
undocumented: Unused. Will be removed.
|
|
4174
|
-
deprecated: Unused. Will be removed.
|
|
4175
|
-
---
|
|
4176
|
-
`
|
|
4177
|
-
),
|
|
4178
|
-
any_provider_allowed: zod.z.boolean().describe("Indicates whether any provider is allowed."),
|
|
4179
|
-
login_successful: zod.z.boolean().describe(
|
|
4180
|
-
"Indicates whether the user logged in successfully using the Connect Webview."
|
|
4181
|
-
),
|
|
4182
|
-
status: zod.z.enum(["pending", "failed", "authorized"]).describe(
|
|
4183
|
-
"Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview."
|
|
4184
|
-
),
|
|
4185
|
-
custom_redirect_url: zod.z.string().url().nullable().describe(
|
|
4186
|
-
"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."
|
|
4187
|
-
),
|
|
4188
|
-
custom_redirect_failure_url: zod.z.string().url().nullable().describe(
|
|
4189
|
-
"URL to which the Connect Webview should redirect when an unexpected error occurs."
|
|
4190
|
-
),
|
|
4191
|
-
custom_metadata,
|
|
4192
|
-
automatically_manage_new_devices: zod.z.boolean().describe(
|
|
4193
|
-
"Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/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."
|
|
4194
|
-
),
|
|
4195
|
-
wait_for_device_creation: zod.z.boolean().describe(
|
|
4196
|
-
"Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview."
|
|
4197
|
-
),
|
|
4198
|
-
authorized_at: zod.z.string().datetime().nullable().describe(
|
|
4199
|
-
"Date and time at which the user authorized (through the Connect Webview) the management of their devices."
|
|
4200
|
-
),
|
|
4201
|
-
selected_provider: zod.z.string().nullable().describe(
|
|
4202
|
-
"Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews)."
|
|
4203
|
-
),
|
|
4204
|
-
customer_key: zod.z.string().optional().describe("The customer key associated with this webview, if any.")
|
|
4205
|
-
}).describe(`
|
|
4206
|
-
---
|
|
4207
|
-
route_path: /connect_webviews
|
|
4208
|
-
---
|
|
4209
|
-
Represents a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).
|
|
4210
|
-
|
|
4211
|
-
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\u2014once your user has completed the authorization through your app\u2014you can access and control their devices or systems using the Seam API.
|
|
4212
|
-
|
|
4213
|
-
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.
|
|
4214
|
-
|
|
4215
|
-
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.
|
|
4216
|
-
|
|
4217
|
-
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.
|
|
4218
|
-
|
|
4219
|
-
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.
|
|
4220
|
-
`);
|
|
4221
4216
|
var common_event = zod.z.object({
|
|
4222
4217
|
event_id: zod.z.string().uuid().describe("ID of the event."),
|
|
4223
4218
|
workspace_id: zod.z.string().uuid().describe(
|
|
@@ -7004,6 +6999,7 @@ var openapi_default = {
|
|
|
7004
6999
|
ends_at: {
|
|
7005
7000
|
description: "Date and time at which the Access Grant ends.",
|
|
7006
7001
|
format: "date-time",
|
|
7002
|
+
nullable: true,
|
|
7007
7003
|
type: "string"
|
|
7008
7004
|
},
|
|
7009
7005
|
instant_key_url: {
|
|
@@ -7087,7 +7083,9 @@ var openapi_default = {
|
|
|
7087
7083
|
"access_method_ids",
|
|
7088
7084
|
"name",
|
|
7089
7085
|
"display_name",
|
|
7090
|
-
"created_at"
|
|
7086
|
+
"created_at",
|
|
7087
|
+
"starts_at",
|
|
7088
|
+
"ends_at"
|
|
7091
7089
|
],
|
|
7092
7090
|
type: "object",
|
|
7093
7091
|
"x-draft": "Early access.",
|
|
@@ -8208,6 +8206,7 @@ var openapi_default = {
|
|
|
8208
8206
|
"assa_abloy_credential_service",
|
|
8209
8207
|
"latch_building",
|
|
8210
8208
|
"dormakaba_community_site",
|
|
8209
|
+
"dormakaba_ambiance_site",
|
|
8211
8210
|
"legic_connect_credential_service",
|
|
8212
8211
|
"assa_abloy_vostio",
|
|
8213
8212
|
"assa_abloy_vostio_credential_service"
|
|
@@ -8258,6 +8257,7 @@ var openapi_default = {
|
|
|
8258
8257
|
"assa_abloy_credential_service",
|
|
8259
8258
|
"latch_building",
|
|
8260
8259
|
"dormakaba_community_site",
|
|
8260
|
+
"dormakaba_ambiance_site",
|
|
8261
8261
|
"legic_connect_credential_service",
|
|
8262
8262
|
"assa_abloy_vostio",
|
|
8263
8263
|
"assa_abloy_vostio_credential_service"
|
|
@@ -16548,28 +16548,6 @@ var openapi_default = {
|
|
|
16548
16548
|
required: ["message", "created_at", "warning_code"],
|
|
16549
16549
|
type: "object"
|
|
16550
16550
|
},
|
|
16551
|
-
{
|
|
16552
|
-
description: "Indicates that the Nest thermostat is in manual eco mode.",
|
|
16553
|
-
properties: {
|
|
16554
|
-
created_at: {
|
|
16555
|
-
description: "Date and time at which Seam created the warning.",
|
|
16556
|
-
format: "date-time",
|
|
16557
|
-
type: "string"
|
|
16558
|
-
},
|
|
16559
|
-
message: {
|
|
16560
|
-
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
16561
|
-
type: "string"
|
|
16562
|
-
},
|
|
16563
|
-
warning_code: {
|
|
16564
|
-
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
16565
|
-
enum: ["nest_thermostat_in_manual_eco_mode"],
|
|
16566
|
-
type: "string"
|
|
16567
|
-
}
|
|
16568
|
-
},
|
|
16569
|
-
required: ["message", "created_at", "warning_code"],
|
|
16570
|
-
type: "object",
|
|
16571
|
-
"x-variant-group-key": "thermostats"
|
|
16572
|
-
},
|
|
16573
16551
|
{
|
|
16574
16552
|
description: 'Indicates that the Remote Unlock feature is not enabled in the settings."',
|
|
16575
16553
|
properties: {
|
|
@@ -16936,7 +16914,8 @@ var openapi_default = {
|
|
|
16936
16914
|
"salto_space",
|
|
16937
16915
|
"sensi",
|
|
16938
16916
|
"kwikset2",
|
|
16939
|
-
"keynest"
|
|
16917
|
+
"keynest",
|
|
16918
|
+
"dormakaba_ambiance"
|
|
16940
16919
|
],
|
|
16941
16920
|
type: "string"
|
|
16942
16921
|
},
|
|
@@ -27473,28 +27452,6 @@ var openapi_default = {
|
|
|
27473
27452
|
required: ["message", "created_at", "warning_code"],
|
|
27474
27453
|
type: "object"
|
|
27475
27454
|
},
|
|
27476
|
-
{
|
|
27477
|
-
description: "Indicates that the Nest thermostat is in manual eco mode.",
|
|
27478
|
-
properties: {
|
|
27479
|
-
created_at: {
|
|
27480
|
-
description: "Date and time at which Seam created the warning.",
|
|
27481
|
-
format: "date-time",
|
|
27482
|
-
type: "string"
|
|
27483
|
-
},
|
|
27484
|
-
message: {
|
|
27485
|
-
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
27486
|
-
type: "string"
|
|
27487
|
-
},
|
|
27488
|
-
warning_code: {
|
|
27489
|
-
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
27490
|
-
enum: ["nest_thermostat_in_manual_eco_mode"],
|
|
27491
|
-
type: "string"
|
|
27492
|
-
}
|
|
27493
|
-
},
|
|
27494
|
-
required: ["message", "created_at", "warning_code"],
|
|
27495
|
-
type: "object",
|
|
27496
|
-
"x-variant-group-key": "thermostats"
|
|
27497
|
-
},
|
|
27498
27455
|
{
|
|
27499
27456
|
description: 'Indicates that the Remote Unlock feature is not enabled in the settings."',
|
|
27500
27457
|
properties: {
|
|
@@ -30541,7 +30498,9 @@ var openapi_default = {
|
|
|
30541
30498
|
type: "array"
|
|
30542
30499
|
},
|
|
30543
30500
|
ends_at: {
|
|
30501
|
+
default: null,
|
|
30544
30502
|
description: "Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.",
|
|
30503
|
+
nullable: true,
|
|
30545
30504
|
type: "string"
|
|
30546
30505
|
},
|
|
30547
30506
|
location: {
|
|
@@ -31297,7 +31256,6 @@ var openapi_default = {
|
|
|
31297
31256
|
starts_at: {
|
|
31298
31257
|
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
31299
31258
|
format: "date-time",
|
|
31300
|
-
nullable: true,
|
|
31301
31259
|
type: "string"
|
|
31302
31260
|
}
|
|
31303
31261
|
},
|
|
@@ -31364,7 +31322,6 @@ var openapi_default = {
|
|
|
31364
31322
|
starts_at: {
|
|
31365
31323
|
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
31366
31324
|
format: "date-time",
|
|
31367
|
-
nullable: true,
|
|
31368
31325
|
type: "string"
|
|
31369
31326
|
}
|
|
31370
31327
|
},
|
|
@@ -31761,6 +31718,12 @@ var openapi_default = {
|
|
|
31761
31718
|
},
|
|
31762
31719
|
type: "array"
|
|
31763
31720
|
},
|
|
31721
|
+
connect_webviews: {
|
|
31722
|
+
items: {
|
|
31723
|
+
$ref: "#/components/schemas/connect_webview"
|
|
31724
|
+
},
|
|
31725
|
+
type: "array"
|
|
31726
|
+
},
|
|
31764
31727
|
devices: {
|
|
31765
31728
|
items: { $ref: "#/components/schemas/device" },
|
|
31766
31729
|
type: "array"
|
|
@@ -31912,6 +31875,12 @@ var openapi_default = {
|
|
|
31912
31875
|
},
|
|
31913
31876
|
type: "array"
|
|
31914
31877
|
},
|
|
31878
|
+
connect_webviews: {
|
|
31879
|
+
items: {
|
|
31880
|
+
$ref: "#/components/schemas/connect_webview"
|
|
31881
|
+
},
|
|
31882
|
+
type: "array"
|
|
31883
|
+
},
|
|
31915
31884
|
devices: {
|
|
31916
31885
|
items: { $ref: "#/components/schemas/device" },
|
|
31917
31886
|
type: "array"
|
|
@@ -39080,6 +39049,7 @@ var openapi_default = {
|
|
|
39080
39049
|
"sensi",
|
|
39081
39050
|
"kwikset2",
|
|
39082
39051
|
"keynest",
|
|
39052
|
+
"dormakaba_ambiance",
|
|
39083
39053
|
"yale_access",
|
|
39084
39054
|
"hid_cm",
|
|
39085
39055
|
"google_nest"
|
|
@@ -40096,6 +40066,11 @@ var openapi_default = {
|
|
|
40096
40066
|
{
|
|
40097
40067
|
default: {
|
|
40098
40068
|
features: {
|
|
40069
|
+
configure: {
|
|
40070
|
+
allow_access_automation_rule_customization: false,
|
|
40071
|
+
allow_instant_key_customization: false,
|
|
40072
|
+
exclude: false
|
|
40073
|
+
},
|
|
40099
40074
|
connect: { exclude: false },
|
|
40100
40075
|
manage_devices: { exclude: false },
|
|
40101
40076
|
organize: { exclude: false }
|
|
@@ -40107,6 +40082,28 @@ var openapi_default = {
|
|
|
40107
40082
|
features: {
|
|
40108
40083
|
default: {},
|
|
40109
40084
|
properties: {
|
|
40085
|
+
configure: {
|
|
40086
|
+
default: {},
|
|
40087
|
+
description: "Configuration for the configure feature.",
|
|
40088
|
+
properties: {
|
|
40089
|
+
allow_access_automation_rule_customization: {
|
|
40090
|
+
default: false,
|
|
40091
|
+
description: "Indicates whether the customer can customize the access automation rules for their properties.",
|
|
40092
|
+
type: "boolean"
|
|
40093
|
+
},
|
|
40094
|
+
allow_instant_key_customization: {
|
|
40095
|
+
default: false,
|
|
40096
|
+
description: "Indicates whether the customer can customize the Instant Key profile for their properties.",
|
|
40097
|
+
type: "boolean"
|
|
40098
|
+
},
|
|
40099
|
+
exclude: {
|
|
40100
|
+
default: false,
|
|
40101
|
+
description: "Whether to exclude this feature from the portal.",
|
|
40102
|
+
type: "boolean"
|
|
40103
|
+
}
|
|
40104
|
+
},
|
|
40105
|
+
type: "object"
|
|
40106
|
+
},
|
|
40110
40107
|
connect: {
|
|
40111
40108
|
default: {},
|
|
40112
40109
|
description: "Configuration for the connect accounts feature.",
|
|
@@ -48788,6 +48785,18 @@ var openapi_default = {
|
|
|
48788
48785
|
},
|
|
48789
48786
|
features: {
|
|
48790
48787
|
properties: {
|
|
48788
|
+
configure: {
|
|
48789
|
+
properties: {
|
|
48790
|
+
allow_access_automation_rule_customization: {
|
|
48791
|
+
type: "boolean"
|
|
48792
|
+
},
|
|
48793
|
+
allow_instant_key_customization: {
|
|
48794
|
+
type: "boolean"
|
|
48795
|
+
},
|
|
48796
|
+
exclude: { type: "boolean" }
|
|
48797
|
+
},
|
|
48798
|
+
type: "object"
|
|
48799
|
+
},
|
|
48791
48800
|
connect: {
|
|
48792
48801
|
properties: { exclude: { type: "boolean" } },
|
|
48793
48802
|
type: "object"
|
|
@@ -48869,6 +48878,18 @@ var openapi_default = {
|
|
|
48869
48878
|
},
|
|
48870
48879
|
features: {
|
|
48871
48880
|
properties: {
|
|
48881
|
+
configure: {
|
|
48882
|
+
properties: {
|
|
48883
|
+
allow_access_automation_rule_customization: {
|
|
48884
|
+
type: "boolean"
|
|
48885
|
+
},
|
|
48886
|
+
allow_instant_key_customization: {
|
|
48887
|
+
type: "boolean"
|
|
48888
|
+
},
|
|
48889
|
+
exclude: { type: "boolean" }
|
|
48890
|
+
},
|
|
48891
|
+
type: "object"
|
|
48892
|
+
},
|
|
48872
48893
|
connect: {
|
|
48873
48894
|
properties: { exclude: { type: "boolean" } },
|
|
48874
48895
|
type: "object"
|
|
@@ -58264,6 +58285,12 @@ var openapi_default = {
|
|
|
58264
58285
|
},
|
|
58265
58286
|
type: "array"
|
|
58266
58287
|
},
|
|
58288
|
+
connect_webviews: {
|
|
58289
|
+
items: {
|
|
58290
|
+
$ref: "#/components/schemas/connect_webview"
|
|
58291
|
+
},
|
|
58292
|
+
type: "array"
|
|
58293
|
+
},
|
|
58267
58294
|
devices: {
|
|
58268
58295
|
items: { $ref: "#/components/schemas/device" },
|
|
58269
58296
|
type: "array"
|
|
@@ -58392,6 +58419,12 @@ var openapi_default = {
|
|
|
58392
58419
|
},
|
|
58393
58420
|
type: "array"
|
|
58394
58421
|
},
|
|
58422
|
+
connect_webviews: {
|
|
58423
|
+
items: {
|
|
58424
|
+
$ref: "#/components/schemas/connect_webview"
|
|
58425
|
+
},
|
|
58426
|
+
type: "array"
|
|
58427
|
+
},
|
|
58395
58428
|
devices: {
|
|
58396
58429
|
items: { $ref: "#/components/schemas/device" },
|
|
58397
58430
|
type: "array"
|