@seamapi/types 1.383.0 → 1.385.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 +548 -137
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2068 -451
- 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/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -5
- package/lib/seam/connect/models/access-grants/access-grant.js +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +156 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +28 -0
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +28 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -0
- 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/instant-keys/index.d.ts +1 -0
- package/lib/seam/connect/models/instant-keys/index.js +2 -0
- package/lib/seam/connect/models/instant-keys/index.js.map +1 -0
- package/lib/seam/connect/models/instant-keys/instant-key.d.ts +27 -0
- package/lib/seam/connect/models/instant-keys/instant-key.js +16 -0
- package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +420 -223
- package/lib/seam/connect/openapi.js +485 -132
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1269 -33
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +5 -0
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +4 -2
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
- package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +39 -0
- package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +37 -0
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/index.ts +1 -0
- package/src/lib/seam/connect/models/instant-keys/instant-key.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +535 -166
- package/src/lib/seam/connect/route-types.ts +1395 -33
- package/src/lib/seam/connect/schemas.ts +1 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code_code_constraint, access_grant, 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, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, location, lock_device_type, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
|
|
1
|
+
export { access_code_code_constraint, access_grant, 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, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
|
|
2
2
|
export * from '../schemas.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { access_code_code_constraint, access_grant, 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, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, location, lock_device_type, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unmanaged_access_code, unmanaged_device, user_identity, webhook, } from '../models/index.js';
|
|
1
|
+
export { access_code_code_constraint, access_grant, 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, bridge, bridge_client_session, bridge_connected_system, capabilities, climate_preset, climate_setting, common_device_properties, common_event, connect_webview_device_selection_mode, connected_account, custom_metadata_input, device_capability_flags, device_metadata, device_provider, dormakaba_oracode_time_slot, enrollment_automation, seam_event as event, seam_event_type as event_type, fan_mode_setting, geolocation, instant_key, location, lock_device_type, access_code as managed_access_code, device as managed_device, noise_sensor_device_type, noise_threshold, pagination, phone, phone_number, thermostat_capability_properties, thermostat_device_type, thermostat_schedule, unmanaged_access_code, unmanaged_device, user_identity, 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,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,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,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,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,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,YAAY,EACZ,qCAAqC,EACrC,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,UAAU,IAAI,KAAK,EACnB,eAAe,IAAI,UAAU,EAC7B,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAW,IAAI,mBAAmB,EAClC,MAAM,IAAI,cAAc,EACxB,wBAAwB,EACxB,eAAe,EACf,UAAU,EACV,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,OAAO,GACR,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AccessCode, AccessCodeError, AccessCodeWarning, AcsAccessGroup, AcsCredential, AcsEncoder, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, Bridge, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceError, DeviceProvider, DeviceWarning, NoiseThreshold, SeamEvent, SeamEventType, ThermostatSchedule, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
1
|
+
export type { AccessCode, AccessCodeError, AccessCodeWarning, AcsAccessGroup, AcsCredential, AcsEncoder, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, Bridge, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, Device, DeviceError, DeviceProvider, DeviceWarning, InstantKey, NoiseThreshold, SeamEvent, SeamEventType, ThermostatSchedule, UnmanagedAccessCode, UnmanagedDevice, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
@@ -8,18 +8,19 @@ export declare const access_grant: z.ZodObject<{
|
|
|
8
8
|
display_name: z.ZodString;
|
|
9
9
|
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
10
10
|
created_at: z.ZodString;
|
|
11
|
-
|
|
11
|
+
created_access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
display_name: string;
|
|
14
14
|
created_at: string;
|
|
15
15
|
mode: "code" | "card" | "mobile_key";
|
|
16
|
-
|
|
16
|
+
created_access_method_ids: string[];
|
|
17
17
|
}, {
|
|
18
18
|
display_name: string;
|
|
19
19
|
created_at: string;
|
|
20
20
|
mode: "code" | "card" | "mobile_key";
|
|
21
|
-
|
|
21
|
+
created_access_method_ids: string[];
|
|
22
22
|
}>, "many">;
|
|
23
|
+
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
23
24
|
display_name: z.ZodString;
|
|
24
25
|
created_at: z.ZodString;
|
|
25
26
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -33,8 +34,9 @@ export declare const access_grant: z.ZodObject<{
|
|
|
33
34
|
display_name: string;
|
|
34
35
|
created_at: string;
|
|
35
36
|
mode: "code" | "card" | "mobile_key";
|
|
36
|
-
|
|
37
|
+
created_access_method_ids: string[];
|
|
37
38
|
}[];
|
|
39
|
+
access_method_ids: string[];
|
|
38
40
|
}, {
|
|
39
41
|
display_name: string;
|
|
40
42
|
created_at: string;
|
|
@@ -46,7 +48,8 @@ export declare const access_grant: z.ZodObject<{
|
|
|
46
48
|
display_name: string;
|
|
47
49
|
created_at: string;
|
|
48
50
|
mode: "code" | "card" | "mobile_key";
|
|
49
|
-
|
|
51
|
+
created_access_method_ids: string[];
|
|
50
52
|
}[];
|
|
53
|
+
access_method_ids: string[];
|
|
51
54
|
}>;
|
|
52
55
|
export type AccessGrant = z.infer<typeof access_grant>;
|
|
@@ -16,6 +16,9 @@ export const access_grant = z.object({
|
|
|
16
16
|
requested_access_methods: z
|
|
17
17
|
.array(requested_access_method)
|
|
18
18
|
.describe('Access methods that the user requested for this access grant.'),
|
|
19
|
+
access_method_ids: z
|
|
20
|
+
.array(z.string().uuid())
|
|
21
|
+
.describe('IDs of the access methods that were created for this access grant.'),
|
|
19
22
|
display_name: z.string().describe('Display name of the access grant.'),
|
|
20
23
|
created_at: z
|
|
21
24
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4EAA4E,CAC7E;IACH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,sDAAsD,CAAC;IACnE,wBAAwB,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4EAA4E,CAC7E;IACH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,sDAAsD,CAAC;IACnE,wBAAwB,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
|
|
@@ -3,16 +3,16 @@ export declare const requested_access_method: z.ZodObject<{
|
|
|
3
3
|
display_name: z.ZodString;
|
|
4
4
|
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
5
5
|
created_at: z.ZodString;
|
|
6
|
-
|
|
6
|
+
created_access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
display_name: string;
|
|
9
9
|
created_at: string;
|
|
10
10
|
mode: "code" | "card" | "mobile_key";
|
|
11
|
-
|
|
11
|
+
created_access_method_ids: string[];
|
|
12
12
|
}, {
|
|
13
13
|
display_name: string;
|
|
14
14
|
created_at: string;
|
|
15
15
|
mode: "code" | "card" | "mobile_key";
|
|
16
|
-
|
|
16
|
+
created_access_method_ids: string[];
|
|
17
17
|
}>;
|
|
18
18
|
export type RequestedAccessMethod = z.infer<typeof requested_access_method>;
|
|
@@ -8,9 +8,9 @@ export const requested_access_method = z.object({
|
|
|
8
8
|
.string()
|
|
9
9
|
.datetime()
|
|
10
10
|
.describe('Date and time at which the requested access method was added to this access grant.'),
|
|
11
|
-
|
|
11
|
+
created_access_method_ids: z
|
|
12
12
|
.array(z.string().uuid())
|
|
13
|
-
.describe('IDs of the
|
|
13
|
+
.describe('IDs of the access methods that were created for this requested access method.'),
|
|
14
14
|
}).describe(`
|
|
15
15
|
---
|
|
16
16
|
undocumented: Unreleased.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF,CACrF;IACH,
|
|
1
|
+
{"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF,CACrF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,+EAA+E,CAChF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
|
|
@@ -2947,6 +2947,162 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2947
2947
|
status: z.ZodLiteral<"pending">;
|
|
2948
2948
|
result: z.ZodNull;
|
|
2949
2949
|
error: z.ZodNull;
|
|
2950
|
+
}>, {
|
|
2951
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
2952
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2953
|
+
error: null;
|
|
2954
|
+
status: "pending";
|
|
2955
|
+
action_attempt_id: string;
|
|
2956
|
+
result: null;
|
|
2957
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2958
|
+
}, {
|
|
2959
|
+
error: null;
|
|
2960
|
+
status: "pending";
|
|
2961
|
+
action_attempt_id: string;
|
|
2962
|
+
result: null;
|
|
2963
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2964
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2965
|
+
action_attempt_id: z.ZodString;
|
|
2966
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
2967
|
+
}, {
|
|
2968
|
+
status: z.ZodLiteral<"success">;
|
|
2969
|
+
error: z.ZodNull;
|
|
2970
|
+
}>, {
|
|
2971
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
2972
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2973
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2974
|
+
error: null;
|
|
2975
|
+
status: "success";
|
|
2976
|
+
action_attempt_id: string;
|
|
2977
|
+
result: {};
|
|
2978
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2979
|
+
}, {
|
|
2980
|
+
error: null;
|
|
2981
|
+
status: "success";
|
|
2982
|
+
action_attempt_id: string;
|
|
2983
|
+
result: {};
|
|
2984
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2985
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2986
|
+
action_attempt_id: z.ZodString;
|
|
2987
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
2988
|
+
}, {
|
|
2989
|
+
status: z.ZodLiteral<"error">;
|
|
2990
|
+
result: z.ZodNull;
|
|
2991
|
+
}>, {
|
|
2992
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
2993
|
+
error: z.ZodObject<{
|
|
2994
|
+
type: z.ZodString;
|
|
2995
|
+
message: z.ZodString;
|
|
2996
|
+
}, "strip", z.ZodTypeAny, {
|
|
2997
|
+
type: string;
|
|
2998
|
+
message: string;
|
|
2999
|
+
}, {
|
|
3000
|
+
type: string;
|
|
3001
|
+
message: string;
|
|
3002
|
+
}>;
|
|
3003
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3004
|
+
error: {
|
|
3005
|
+
type: string;
|
|
3006
|
+
message: string;
|
|
3007
|
+
};
|
|
3008
|
+
status: "error";
|
|
3009
|
+
action_attempt_id: string;
|
|
3010
|
+
result: null;
|
|
3011
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
3012
|
+
}, {
|
|
3013
|
+
error: {
|
|
3014
|
+
type: string;
|
|
3015
|
+
message: string;
|
|
3016
|
+
};
|
|
3017
|
+
status: "error";
|
|
3018
|
+
action_attempt_id: string;
|
|
3019
|
+
result: null;
|
|
3020
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
3021
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3022
|
+
action_attempt_id: z.ZodString;
|
|
3023
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3024
|
+
}, {
|
|
3025
|
+
status: z.ZodLiteral<"pending">;
|
|
3026
|
+
result: z.ZodNull;
|
|
3027
|
+
error: z.ZodNull;
|
|
3028
|
+
}>, {
|
|
3029
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
3030
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3031
|
+
error: null;
|
|
3032
|
+
status: "pending";
|
|
3033
|
+
action_attempt_id: string;
|
|
3034
|
+
result: null;
|
|
3035
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3036
|
+
}, {
|
|
3037
|
+
error: null;
|
|
3038
|
+
status: "pending";
|
|
3039
|
+
action_attempt_id: string;
|
|
3040
|
+
result: null;
|
|
3041
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3042
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3043
|
+
action_attempt_id: z.ZodString;
|
|
3044
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3045
|
+
}, {
|
|
3046
|
+
status: z.ZodLiteral<"success">;
|
|
3047
|
+
error: z.ZodNull;
|
|
3048
|
+
}>, {
|
|
3049
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
3050
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3051
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3052
|
+
error: null;
|
|
3053
|
+
status: "success";
|
|
3054
|
+
action_attempt_id: string;
|
|
3055
|
+
result: {};
|
|
3056
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3057
|
+
}, {
|
|
3058
|
+
error: null;
|
|
3059
|
+
status: "success";
|
|
3060
|
+
action_attempt_id: string;
|
|
3061
|
+
result: {};
|
|
3062
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3063
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3064
|
+
action_attempt_id: z.ZodString;
|
|
3065
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3066
|
+
}, {
|
|
3067
|
+
status: z.ZodLiteral<"error">;
|
|
3068
|
+
result: z.ZodNull;
|
|
3069
|
+
}>, {
|
|
3070
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
3071
|
+
error: z.ZodObject<{
|
|
3072
|
+
type: z.ZodString;
|
|
3073
|
+
message: z.ZodString;
|
|
3074
|
+
}, "strip", z.ZodTypeAny, {
|
|
3075
|
+
type: string;
|
|
3076
|
+
message: string;
|
|
3077
|
+
}, {
|
|
3078
|
+
type: string;
|
|
3079
|
+
message: string;
|
|
3080
|
+
}>;
|
|
3081
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3082
|
+
error: {
|
|
3083
|
+
type: string;
|
|
3084
|
+
message: string;
|
|
3085
|
+
};
|
|
3086
|
+
status: "error";
|
|
3087
|
+
action_attempt_id: string;
|
|
3088
|
+
result: null;
|
|
3089
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3090
|
+
}, {
|
|
3091
|
+
error: {
|
|
3092
|
+
type: string;
|
|
3093
|
+
message: string;
|
|
3094
|
+
};
|
|
3095
|
+
status: "error";
|
|
3096
|
+
action_attempt_id: string;
|
|
3097
|
+
result: null;
|
|
3098
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
3099
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3100
|
+
action_attempt_id: z.ZodString;
|
|
3101
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
3102
|
+
}, {
|
|
3103
|
+
status: z.ZodLiteral<"pending">;
|
|
3104
|
+
result: z.ZodNull;
|
|
3105
|
+
error: z.ZodNull;
|
|
2950
3106
|
}>, {
|
|
2951
3107
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
2952
3108
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -7,6 +7,8 @@ import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspac
|
|
|
7
7
|
import { scan_credential_action_attempt } from './scan-credential.js';
|
|
8
8
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
9
9
|
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js';
|
|
10
|
+
import { simulate_keypad_code_entry_action_attempt } from './simulate-keypad-code-entry.js';
|
|
11
|
+
import { simulate_manual_lock_via_keypad_action_attempt } from './simulate-manual-lock-via-keypad.js';
|
|
10
12
|
import { unlock_door_action_attempt } from './unlock-door.js';
|
|
11
13
|
export const action_attempt = z.union([
|
|
12
14
|
...lock_door_action_attempt.options,
|
|
@@ -17,6 +19,8 @@ export const action_attempt = z.union([
|
|
|
17
19
|
...set_fan_mode_action_attempt.options,
|
|
18
20
|
...set_hvac_mode_action_attempt.options,
|
|
19
21
|
...activate_climate_preset_action_attempt.options,
|
|
22
|
+
...simulate_keypad_code_entry_action_attempt.options,
|
|
23
|
+
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
20
24
|
...deprecated_action_attempts,
|
|
21
25
|
]).describe(`
|
|
22
26
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const simulate_keypad_code_entry_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
31
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
32
|
+
}>, "strip", z.ZodTypeAny, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
38
|
+
}, {
|
|
39
|
+
error: null;
|
|
40
|
+
status: "success";
|
|
41
|
+
action_attempt_id: string;
|
|
42
|
+
result: {};
|
|
43
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
44
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
45
|
+
action_attempt_id: z.ZodString;
|
|
46
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
47
|
+
}, {
|
|
48
|
+
status: z.ZodLiteral<"error">;
|
|
49
|
+
result: z.ZodNull;
|
|
50
|
+
}>, {
|
|
51
|
+
action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
|
|
52
|
+
error: z.ZodObject<{
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
message: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}, {
|
|
59
|
+
type: string;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>, "strip", z.ZodTypeAny, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
71
|
+
}, {
|
|
72
|
+
error: {
|
|
73
|
+
type: string;
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
status: "error";
|
|
77
|
+
action_attempt_id: string;
|
|
78
|
+
result: null;
|
|
79
|
+
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
80
|
+
}>]>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z.literal('SIMULATE_KEYPAD_CODE_ENTRY');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Simulating keypad code entry.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Simulating keypad code entry succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
error,
|
|
25
|
+
})
|
|
26
|
+
.describe('Simulating keypad code entry failed.'),
|
|
27
|
+
]);
|
|
28
|
+
//# sourceMappingURL=simulate-keypad-code-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulate-keypad-code-entry.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAA;AAE3D,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,kBAAkB,CAC3E,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+BAA+B,CAAC;IAC5C,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,yCAAyC,CAAC;IACtD,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,sCAAsC,CAAC;CACpD,CACF,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const simulate_manual_lock_via_keypad_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
31
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
32
|
+
}>, "strip", z.ZodTypeAny, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
38
|
+
}, {
|
|
39
|
+
error: null;
|
|
40
|
+
status: "success";
|
|
41
|
+
action_attempt_id: string;
|
|
42
|
+
result: {};
|
|
43
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
44
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
45
|
+
action_attempt_id: z.ZodString;
|
|
46
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
47
|
+
}, {
|
|
48
|
+
status: z.ZodLiteral<"error">;
|
|
49
|
+
result: z.ZodNull;
|
|
50
|
+
}>, {
|
|
51
|
+
action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
|
|
52
|
+
error: z.ZodObject<{
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
message: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}, {
|
|
59
|
+
type: string;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>, "strip", z.ZodTypeAny, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
71
|
+
}, {
|
|
72
|
+
error: {
|
|
73
|
+
type: string;
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
status: "error";
|
|
77
|
+
action_attempt_id: string;
|
|
78
|
+
result: null;
|
|
79
|
+
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
80
|
+
}>]>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z.literal('SIMULATE_MANUAL_LOCK_VIA_KEYPAD');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const simulate_manual_lock_via_keypad_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Simulating manual lock via keypad.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Simulating manual lock via keypad succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
error,
|
|
25
|
+
})
|
|
26
|
+
.describe('Simulating manual lock via keypad failed.'),
|
|
27
|
+
]);
|
|
28
|
+
//# sourceMappingURL=simulate-manual-lock-via-keypad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulate-manual-lock-via-keypad.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAA;AAEhE,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,8CAA8C,GACzD,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7B,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,oCAAoC,CAAC;IACjD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;CACzD,CAAC,CAAA"}
|
|
@@ -10,6 +10,7 @@ export * from './connected-accounts/index.js';
|
|
|
10
10
|
export * from './custom-metadata.js';
|
|
11
11
|
export * from './devices/index.js';
|
|
12
12
|
export * from './events/index.js';
|
|
13
|
+
export * from './instant-keys/index.js';
|
|
13
14
|
export * from './locations/index.js';
|
|
14
15
|
export * from './noise-sensors/index.js';
|
|
15
16
|
export * from './pagination.js';
|
|
@@ -10,6 +10,7 @@ export * from './connected-accounts/index.js';
|
|
|
10
10
|
export * from './custom-metadata.js';
|
|
11
11
|
export * from './devices/index.js';
|
|
12
12
|
export * from './events/index.js';
|
|
13
|
+
export * from './instant-keys/index.js';
|
|
13
14
|
export * from './locations/index.js';
|
|
14
15
|
export * from './noise-sensors/index.js';
|
|
15
16
|
export * from './pagination.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,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,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,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,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './instant-key.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const instant_key: z.ZodObject<{
|
|
3
|
+
instant_key_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
instant_key_url: z.ZodString;
|
|
7
|
+
client_session_id: z.ZodString;
|
|
8
|
+
user_identity_id: z.ZodString;
|
|
9
|
+
expires_at: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
created_at: string;
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
user_identity_id: string;
|
|
14
|
+
client_session_id: string;
|
|
15
|
+
expires_at: string;
|
|
16
|
+
instant_key_id: string;
|
|
17
|
+
instant_key_url: string;
|
|
18
|
+
}, {
|
|
19
|
+
created_at: string;
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
user_identity_id: string;
|
|
22
|
+
client_session_id: string;
|
|
23
|
+
expires_at: string;
|
|
24
|
+
instant_key_id: string;
|
|
25
|
+
instant_key_url: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type InstantKey = z.infer<typeof instant_key>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const instant_key = z.object({
|
|
3
|
+
instant_key_id: z.string().uuid(),
|
|
4
|
+
workspace_id: z.string().uuid(),
|
|
5
|
+
created_at: z.string().datetime(),
|
|
6
|
+
instant_key_url: z.string().url(),
|
|
7
|
+
client_session_id: z.string().uuid(),
|
|
8
|
+
user_identity_id: z.string().uuid(),
|
|
9
|
+
expires_at: z.string().datetime(),
|
|
10
|
+
}).describe(`
|
|
11
|
+
---
|
|
12
|
+
route_path: /user_identities
|
|
13
|
+
undocumented: Unreleased.
|
|
14
|
+
---
|
|
15
|
+
`);
|
|
16
|
+
//# sourceMappingURL=instant-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instant-key.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/instant-keys/instant-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|