@seamapi/types 1.423.3 → 1.424.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 +28 -14
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +20 -6
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -4
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +3 -9
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +4 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/provider-capability.d.ts +3 -0
- package/lib/seam/connect/models/provider-capability.js +11 -0
- package/lib/seam/connect/models/provider-capability.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +9 -1
- package/lib/seam/connect/openapi.js +12 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +6 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +3 -16
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +6 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -2
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/provider-capability.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +14 -3
- package/src/lib/seam/connect/route-types.ts +12 -3
package/dist/connect.d.cts
CHANGED
|
@@ -10498,10 +10498,10 @@ declare const connect_webview: z.ZodObject<{
|
|
|
10498
10498
|
connected_account_id: string | null;
|
|
10499
10499
|
custom_metadata: Record<string, string | boolean>;
|
|
10500
10500
|
automatically_manage_new_devices: boolean;
|
|
10501
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10501
10502
|
connect_webview_id: string;
|
|
10502
10503
|
device_selection_mode: "none" | "single" | "multiple";
|
|
10503
10504
|
accepted_providers: string[];
|
|
10504
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10505
10505
|
accepted_devices: string[];
|
|
10506
10506
|
any_device_allowed: boolean;
|
|
10507
10507
|
any_provider_allowed: boolean;
|
|
@@ -10519,10 +10519,10 @@ declare const connect_webview: z.ZodObject<{
|
|
|
10519
10519
|
connected_account_id: string | null;
|
|
10520
10520
|
custom_metadata: Record<string, string | boolean>;
|
|
10521
10521
|
automatically_manage_new_devices: boolean;
|
|
10522
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10522
10523
|
connect_webview_id: string;
|
|
10523
10524
|
device_selection_mode: "none" | "single" | "multiple";
|
|
10524
10525
|
accepted_providers: string[];
|
|
10525
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10526
10526
|
accepted_devices: string[];
|
|
10527
10527
|
any_device_allowed: boolean;
|
|
10528
10528
|
any_provider_allowed: boolean;
|
|
@@ -10990,6 +10990,7 @@ declare const connected_account: z.ZodObject<{
|
|
|
10990
10990
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
10991
10991
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
10992
10992
|
customer_key: z.ZodOptional<z.ZodString>;
|
|
10993
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
10993
10994
|
}, "strip", z.ZodTypeAny, {
|
|
10994
10995
|
errors: ({
|
|
10995
10996
|
message: string;
|
|
@@ -11048,6 +11049,7 @@ declare const connected_account: z.ZodObject<{
|
|
|
11048
11049
|
})[];
|
|
11049
11050
|
custom_metadata: Record<string, string | boolean>;
|
|
11050
11051
|
automatically_manage_new_devices: boolean;
|
|
11052
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
11051
11053
|
created_at?: string | undefined;
|
|
11052
11054
|
connected_account_id?: string | undefined;
|
|
11053
11055
|
user_identifier?: {
|
|
@@ -11117,6 +11119,7 @@ declare const connected_account: z.ZodObject<{
|
|
|
11117
11119
|
})[];
|
|
11118
11120
|
custom_metadata: Record<string, string | boolean>;
|
|
11119
11121
|
automatically_manage_new_devices: boolean;
|
|
11122
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
11120
11123
|
created_at?: string | undefined;
|
|
11121
11124
|
connected_account_id?: string | undefined;
|
|
11122
11125
|
user_identifier?: {
|
|
@@ -25728,7 +25731,6 @@ declare const _default: {
|
|
|
25728
25731
|
device_selection_mode: {
|
|
25729
25732
|
enum: string[];
|
|
25730
25733
|
type: string;
|
|
25731
|
-
'x-undocumented': string;
|
|
25732
25734
|
};
|
|
25733
25735
|
login_successful: {
|
|
25734
25736
|
description: string;
|
|
@@ -25766,6 +25768,15 @@ declare const _default: {
|
|
|
25766
25768
|
connected_account: {
|
|
25767
25769
|
description: string;
|
|
25768
25770
|
properties: {
|
|
25771
|
+
accepted_capabilities: {
|
|
25772
|
+
description: string;
|
|
25773
|
+
items: {
|
|
25774
|
+
description: string;
|
|
25775
|
+
enum: string[];
|
|
25776
|
+
type: string;
|
|
25777
|
+
};
|
|
25778
|
+
type: string;
|
|
25779
|
+
};
|
|
25769
25780
|
account_type: {
|
|
25770
25781
|
description: string;
|
|
25771
25782
|
type: string;
|
|
@@ -90185,7 +90196,6 @@ interface Routes {
|
|
|
90185
90196
|
connected_account_id: string | null;
|
|
90186
90197
|
/** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
|
|
90187
90198
|
url: string;
|
|
90188
|
-
/** */
|
|
90189
90199
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
90190
90200
|
/** 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). */
|
|
90191
90201
|
accepted_providers: string[];
|
|
@@ -90265,7 +90275,6 @@ interface Routes {
|
|
|
90265
90275
|
connected_account_id: string | null;
|
|
90266
90276
|
/** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
|
|
90267
90277
|
url: string;
|
|
90268
|
-
/** */
|
|
90269
90278
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
90270
90279
|
/** 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). */
|
|
90271
90280
|
accepted_providers: string[];
|
|
@@ -90329,7 +90338,6 @@ interface Routes {
|
|
|
90329
90338
|
connected_account_id: string | null;
|
|
90330
90339
|
/** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
|
|
90331
90340
|
url: string;
|
|
90332
|
-
/** */
|
|
90333
90341
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
90334
90342
|
/** 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). */
|
|
90335
90343
|
accepted_providers: string[];
|
|
@@ -90527,6 +90535,8 @@ interface Routes {
|
|
|
90527
90535
|
automatically_manage_new_devices: boolean;
|
|
90528
90536
|
/** Your unique key for the customer associated with this connected account. */
|
|
90529
90537
|
customer_key?: string | undefined;
|
|
90538
|
+
/** List of capabilities that were accepted during the account connection process. */
|
|
90539
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
90530
90540
|
};
|
|
90531
90541
|
};
|
|
90532
90542
|
};
|
|
@@ -90673,6 +90683,8 @@ interface Routes {
|
|
|
90673
90683
|
automatically_manage_new_devices: boolean;
|
|
90674
90684
|
/** Your unique key for the customer associated with this connected account. */
|
|
90675
90685
|
customer_key?: string | undefined;
|
|
90686
|
+
/** List of capabilities that were accepted during the account connection process. */
|
|
90687
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
90676
90688
|
}>;
|
|
90677
90689
|
/** Information about the current page of results. */
|
|
90678
90690
|
pagination: {
|
|
@@ -90838,6 +90850,8 @@ interface Routes {
|
|
|
90838
90850
|
automatically_manage_new_devices: boolean;
|
|
90839
90851
|
/** Your unique key for the customer associated with this connected account. */
|
|
90840
90852
|
customer_key?: string | undefined;
|
|
90853
|
+
/** List of capabilities that were accepted during the account connection process. */
|
|
90854
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
90841
90855
|
};
|
|
90842
90856
|
};
|
|
90843
90857
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code_code_constraint, access_grant, access_grant_key_aliases, access_grant_resource, access_grant_resource_union, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, booking_resource, bridge, bridge_client_session, bridge_connected_system, building_block_type, building_resource, capabilities, climate_preset, climate_setting, common_area_resource, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, customer_data, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, facility_resource, fan_mode_setting, geolocation, guest_resource, instant_key, listing_resource, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, neutral_resource, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, phone_registration, phone_session, portal_configuration, property_resource, reservation_resource, resident_resource, room_resource, space, neutral_resource as space_resource, tenant_resource, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unit_resource, unmanaged_access_code, unmanaged_device, user_identity, user_identity_resource, user_resource, webhook, } from '../models/index.js';
|
|
1
|
+
export { access_code_code_constraint, access_grant, access_grant_key_aliases, access_grant_resource, access_grant_resource_union, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, booking_resource, bridge, bridge_client_session, bridge_connected_system, building_block_type, building_resource, capabilities, climate_preset, climate_setting, common_area_resource, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, customer_data, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, facility_resource, fan_mode_setting, geolocation, guest_resource, instant_key, listing_resource, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, neutral_resource, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, phone_registration, phone_session, portal_configuration, property_resource, provider_capability, reservation_resource, resident_resource, room_resource, space, neutral_resource as space_resource, tenant_resource, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unit_resource, unmanaged_access_code, unmanaged_device, user_identity, user_identity_resource, user_resource, webhook, } from '../models/index.js';
|
|
2
2
|
export * from '../schemas.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { access_code_code_constraint, access_grant, access_grant_key_aliases, access_grant_resource, access_grant_resource_union, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, booking_resource, bridge, bridge_client_session, bridge_connected_system, building_block_type, building_resource, capabilities, climate_preset, climate_setting, common_area_resource, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, customer_data, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, facility_resource, fan_mode_setting, geolocation, guest_resource, instant_key, listing_resource, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, neutral_resource, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, phone_registration, phone_session, portal_configuration, property_resource, reservation_resource, resident_resource, room_resource, space, neutral_resource as space_resource, tenant_resource, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unit_resource, unmanaged_access_code, unmanaged_device, user_identity, user_identity_resource, user_resource, webhook, } from '../models/index.js';
|
|
1
|
+
export { access_code_code_constraint, access_grant, access_grant_key_aliases, access_grant_resource, access_grant_resource_union, access_method, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, booking_resource, bridge, bridge_client_session, bridge_connected_system, building_block_type, building_resource, capabilities, climate_preset, climate_setting, common_area_resource, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, customer_data, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, facility_resource, fan_mode_setting, geolocation, guest_resource, instant_key, listing_resource, location, lock_device_type, magic_link, access_code as managed_access_code, device as managed_device, neutral_resource, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, phone_registration, phone_session, portal_configuration, property_resource, provider_capability, reservation_resource, resident_resource, room_resource, space, neutral_resource as space_resource, tenant_resource, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unit_resource, unmanaged_access_code, unmanaged_device, user_identity, user_identity_resource, user_resource, webhook, } from '../models/index.js';
|
|
2
2
|
export * from '../schemas.js';
|
|
3
3
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,KAAK,EACL,gBAAgB,IAAI,cAAc,EAClC,eAAe,EACf,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,OAAO,GACR,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,2BAA2B,EAC3B,aAAa,EACb,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,KAAK,EACL,gBAAgB,IAAI,cAAc,EAClC,eAAe,EACf,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,OAAO,GACR,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const connect_webview_device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
|
|
3
|
-
export declare const connect_webview_accepted_capabilities: z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>;
|
|
4
|
-
export type ConnectWebviewAcceptedCapabilities = z.infer<typeof connect_webview_accepted_capabilities>;
|
|
5
3
|
export declare const connect_webview: z.ZodObject<{
|
|
6
4
|
connect_webview_id: z.ZodString;
|
|
7
5
|
workspace_id: z.ZodString;
|
|
@@ -31,10 +29,10 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
31
29
|
connected_account_id: string | null;
|
|
32
30
|
custom_metadata: Record<string, string | boolean>;
|
|
33
31
|
automatically_manage_new_devices: boolean;
|
|
32
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
34
33
|
connect_webview_id: string;
|
|
35
34
|
device_selection_mode: "none" | "multiple" | "single";
|
|
36
35
|
accepted_providers: string[];
|
|
37
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
38
36
|
accepted_devices: string[];
|
|
39
37
|
any_device_allowed: boolean;
|
|
40
38
|
any_provider_allowed: boolean;
|
|
@@ -52,10 +50,10 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
52
50
|
connected_account_id: string | null;
|
|
53
51
|
custom_metadata: Record<string, string | boolean>;
|
|
54
52
|
automatically_manage_new_devices: boolean;
|
|
53
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
55
54
|
connect_webview_id: string;
|
|
56
55
|
device_selection_mode: "none" | "multiple" | "single";
|
|
57
56
|
accepted_providers: string[];
|
|
58
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
59
57
|
accepted_devices: string[];
|
|
60
58
|
any_device_allowed: boolean;
|
|
61
59
|
any_provider_allowed: boolean;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { custom_metadata } from '../custom-metadata.js';
|
|
3
|
+
import { provider_capability } from '../provider-capability.js';
|
|
3
4
|
export const connect_webview_device_selection_mode = z.enum([
|
|
4
5
|
'none',
|
|
5
6
|
'single',
|
|
6
7
|
'multiple',
|
|
7
|
-
])
|
|
8
|
-
---
|
|
9
|
-
undocumented: Not implemented.
|
|
10
|
-
---
|
|
11
|
-
`);
|
|
12
|
-
export const connect_webview_accepted_capabilities = z
|
|
13
|
-
.enum(['lock', 'thermostat', 'noise_sensor', 'access_control'])
|
|
14
|
-
.describe('High-level device capabilities that the Connect Webview can accept.');
|
|
8
|
+
]);
|
|
15
9
|
export const connect_webview = z.object({
|
|
16
10
|
connect_webview_id: z.string().uuid().describe('ID of the Connect Webview.'),
|
|
17
11
|
workspace_id: z
|
|
@@ -37,7 +31,7 @@ export const connect_webview = z.object({
|
|
|
37
31
|
.array(z.string())
|
|
38
32
|
.describe('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).'),
|
|
39
33
|
accepted_capabilities: z
|
|
40
|
-
.array(
|
|
34
|
+
.array(provider_capability)
|
|
41
35
|
.describe('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`.'),
|
|
42
36
|
accepted_devices: z.array(z.string()).describe(`
|
|
43
37
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gHAAgH,CACjH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,kIAAkI,CACnI;IACH,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CACP,gGAAgG,CACjG;IACH,qBAAqB,EAAE,qC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Q,EAAE;SACV,QAAQ,CACP,yNAAyN,CAC1N;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;CAeX,CAAC,CAAA"}
|
|
@@ -942,6 +942,7 @@ export declare const connected_account: z.ZodObject<{
|
|
|
942
942
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
943
943
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
944
944
|
customer_key: z.ZodOptional<z.ZodString>;
|
|
945
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
945
946
|
}, "strip", z.ZodTypeAny, {
|
|
946
947
|
errors: ({
|
|
947
948
|
message: string;
|
|
@@ -1000,6 +1001,7 @@ export declare const connected_account: z.ZodObject<{
|
|
|
1000
1001
|
})[];
|
|
1001
1002
|
custom_metadata: Record<string, string | boolean>;
|
|
1002
1003
|
automatically_manage_new_devices: boolean;
|
|
1004
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
1003
1005
|
created_at?: string | undefined;
|
|
1004
1006
|
connected_account_id?: string | undefined;
|
|
1005
1007
|
user_identifier?: {
|
|
@@ -1069,6 +1071,7 @@ export declare const connected_account: z.ZodObject<{
|
|
|
1069
1071
|
})[];
|
|
1070
1072
|
custom_metadata: Record<string, string | boolean>;
|
|
1071
1073
|
automatically_manage_new_devices: boolean;
|
|
1074
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
1072
1075
|
created_at?: string | undefined;
|
|
1073
1076
|
connected_account_id?: string | undefined;
|
|
1074
1077
|
user_identifier?: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { custom_metadata } from '../custom-metadata.js';
|
|
3
|
+
import { provider_capability } from '../provider-capability.js';
|
|
3
4
|
const common_connected_account_error = z.object({
|
|
4
5
|
created_at: z
|
|
5
6
|
.string()
|
|
@@ -213,6 +214,9 @@ export const connected_account = z.object({
|
|
|
213
214
|
.string()
|
|
214
215
|
.optional()
|
|
215
216
|
.describe('Your unique key for the customer associated with this connected account.'),
|
|
217
|
+
accepted_capabilities: z
|
|
218
|
+
.array(provider_capability)
|
|
219
|
+
.describe('List of capabilities that were accepted during the account connection process.'),
|
|
216
220
|
}).describe(`
|
|
217
221
|
---
|
|
218
222
|
route_path: /connected_accounts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;IACH,0BAA0B,EAAE,CAAC;SAC1B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E,CAChF;IACH,eAAe,EAAE,CAAC;SACf,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qHAAqH,CACtH;CACJ,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MA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AAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,yBAAyB,CAAC;SAChC,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,4QAA4Q,CAC7Q;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CACP,gFAAgF,CACjF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ProviderCapability } from '../provider-capability.js';
|
|
3
3
|
export declare const DEVICE_PROVIDERS: {
|
|
4
4
|
readonly DORMAKABA_COMMUNITY: "dormakaba_community";
|
|
5
5
|
readonly LEGIC_CONNECT: "legic_connect";
|
|
@@ -117,4 +117,4 @@ export declare const device_provider: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
117
117
|
can_simulate_disconnection?: boolean | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
export type DeviceProvider = z.infer<typeof device_provider>;
|
|
120
|
-
export declare const PROVIDER_CATEGORY_CAPABILITY_MAP: Record<ProviderCategory,
|
|
120
|
+
export declare const PROVIDER_CATEGORY_CAPABILITY_MAP: Record<ProviderCategory, ProviderCapability[]>;
|
|
@@ -21,6 +21,7 @@ export * from './pagination.js';
|
|
|
21
21
|
export * from './partner/index.js';
|
|
22
22
|
export * from './phone-number.js';
|
|
23
23
|
export * from './phones/index.js';
|
|
24
|
+
export * from './provider-capability.js';
|
|
24
25
|
export * from './spaces/index.js';
|
|
25
26
|
export * from './thermostats/index.js';
|
|
26
27
|
export * from './user-identities/index.js';
|
|
@@ -21,6 +21,7 @@ export * from './pagination.js';
|
|
|
21
21
|
export * from './partner/index.js';
|
|
22
22
|
export * from './phone-number.js';
|
|
23
23
|
export * from './phones/index.js';
|
|
24
|
+
export * from './provider-capability.js';
|
|
24
25
|
export * from './spaces/index.js';
|
|
25
26
|
export * from './thermostats/index.js';
|
|
26
27
|
export * from './user-identities/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sCAAsC,CAAA;AACpD,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sCAAsC,CAAA;AACpD,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const provider_capability = z.enum([
|
|
3
|
+
'lock',
|
|
4
|
+
'thermostat',
|
|
5
|
+
'noise_sensor',
|
|
6
|
+
'access_control',
|
|
7
|
+
]).describe(`
|
|
8
|
+
High-level device capabilities that can be restricted in connect webviews.
|
|
9
|
+
These represent the main device categories that customers can opt into.
|
|
10
|
+
`);
|
|
11
|
+
//# sourceMappingURL=provider-capability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-capability.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/provider-capability.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,MAAM;IACN,YAAY;IACZ,cAAc;IACd,gBAAgB;CACjB,CAAC,CAAC,QAAQ,CAAC;;;CAGX,CAAC,CAAA"}
|
|
@@ -3951,7 +3951,6 @@ declare const _default: {
|
|
|
3951
3951
|
device_selection_mode: {
|
|
3952
3952
|
enum: string[];
|
|
3953
3953
|
type: string;
|
|
3954
|
-
'x-undocumented': string;
|
|
3955
3954
|
};
|
|
3956
3955
|
login_successful: {
|
|
3957
3956
|
description: string;
|
|
@@ -3989,6 +3988,15 @@ declare const _default: {
|
|
|
3989
3988
|
connected_account: {
|
|
3990
3989
|
description: string;
|
|
3991
3990
|
properties: {
|
|
3991
|
+
accepted_capabilities: {
|
|
3992
|
+
description: string;
|
|
3993
|
+
items: {
|
|
3994
|
+
description: string;
|
|
3995
|
+
enum: string[];
|
|
3996
|
+
type: string;
|
|
3997
|
+
};
|
|
3998
|
+
type: string;
|
|
3999
|
+
};
|
|
3992
4000
|
account_type: {
|
|
3993
4001
|
description: string;
|
|
3994
4002
|
type: string;
|
|
@@ -7705,7 +7705,7 @@ export default {
|
|
|
7705
7705
|
accepted_capabilities: {
|
|
7706
7706
|
description: '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`.',
|
|
7707
7707
|
items: {
|
|
7708
|
-
description: 'High-level device capabilities that the
|
|
7708
|
+
description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
7709
7709
|
enum: ['lock', 'thermostat', 'noise_sensor', 'access_control'],
|
|
7710
7710
|
type: 'string',
|
|
7711
7711
|
},
|
|
@@ -7781,7 +7781,6 @@ export default {
|
|
|
7781
7781
|
device_selection_mode: {
|
|
7782
7782
|
enum: ['none', 'single', 'multiple'],
|
|
7783
7783
|
type: 'string',
|
|
7784
|
-
'x-undocumented': 'Not implemented.',
|
|
7785
7784
|
},
|
|
7786
7785
|
login_successful: {
|
|
7787
7786
|
description: 'Indicates whether the user logged in successfully using the Connect Webview.',
|
|
@@ -7840,6 +7839,15 @@ export default {
|
|
|
7840
7839
|
connected_account: {
|
|
7841
7840
|
description: 'Represents a [connected account](https://docs.seam.co/latest/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.',
|
|
7842
7841
|
properties: {
|
|
7842
|
+
accepted_capabilities: {
|
|
7843
|
+
description: 'List of capabilities that were accepted during the account connection process.',
|
|
7844
|
+
items: {
|
|
7845
|
+
description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
7846
|
+
enum: ['lock', 'thermostat', 'noise_sensor', 'access_control'],
|
|
7847
|
+
type: 'string',
|
|
7848
|
+
},
|
|
7849
|
+
type: 'array',
|
|
7850
|
+
},
|
|
7843
7851
|
account_type: {
|
|
7844
7852
|
description: 'Type of connected account.',
|
|
7845
7853
|
type: 'string',
|
|
@@ -8196,6 +8204,7 @@ export default {
|
|
|
8196
8204
|
'warnings',
|
|
8197
8205
|
'custom_metadata',
|
|
8198
8206
|
'automatically_manage_new_devices',
|
|
8207
|
+
'accepted_capabilities',
|
|
8199
8208
|
],
|
|
8200
8209
|
type: 'object',
|
|
8201
8210
|
'x-route-path': '/connected_accounts',
|
|
@@ -31682,7 +31691,7 @@ export default {
|
|
|
31682
31691
|
accepted_capabilities: {
|
|
31683
31692
|
description: '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.',
|
|
31684
31693
|
items: {
|
|
31685
|
-
description: 'High-level device capabilities that the
|
|
31694
|
+
description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
31686
31695
|
enum: [
|
|
31687
31696
|
'lock',
|
|
31688
31697
|
'thermostat',
|