@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 +1 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { access_code, acs_access_group, acs_credential, acs_encoder, acs_entrance, acs_system, acs_user, action_attempt, bridge, bridge_client_session, client_session, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, connect_webview, connected_account, custom_metadata, device, device_provider, instant_key, noise_threshold, pagination, seam_event, thermostat_schedule, unmanaged_access_code, unmanaged_acs_access_group, unmanaged_acs_credential, unmanaged_acs_user, unmanaged_device, user_identity, webhook, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -20,6 +20,11 @@ export const access_grant = z.object({
|
|
|
20
20
|
requested_access_methods: z
|
|
21
21
|
.array(requested_access_method)
|
|
22
22
|
.describe('Access methods that the user requested for this access grant.'),
|
|
23
|
+
access_method_ids: z
|
|
24
|
+
.array(z.string().uuid())
|
|
25
|
+
.describe(
|
|
26
|
+
'IDs of the access methods that were created for this access grant.',
|
|
27
|
+
),
|
|
23
28
|
display_name: z.string().describe('Display name of the access grant.'),
|
|
24
29
|
created_at: z
|
|
25
30
|
.string()
|
|
@@ -13,9 +13,11 @@ export const requested_access_method = z.object({
|
|
|
13
13
|
.describe(
|
|
14
14
|
'Date and time at which the requested access method was added to this access grant.',
|
|
15
15
|
),
|
|
16
|
-
|
|
16
|
+
created_access_method_ids: z
|
|
17
17
|
.array(z.string().uuid())
|
|
18
|
-
.describe(
|
|
18
|
+
.describe(
|
|
19
|
+
'IDs of the access methods that were created for this requested access method.',
|
|
20
|
+
),
|
|
19
21
|
}).describe(`
|
|
20
22
|
---
|
|
21
23
|
undocumented: Unreleased.
|
|
@@ -8,6 +8,8 @@ import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspac
|
|
|
8
8
|
import { scan_credential_action_attempt } from './scan-credential.js'
|
|
9
9
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js'
|
|
10
10
|
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js'
|
|
11
|
+
import { simulate_keypad_code_entry_action_attempt } from './simulate-keypad-code-entry.js'
|
|
12
|
+
import { simulate_manual_lock_via_keypad_action_attempt } from './simulate-manual-lock-via-keypad.js'
|
|
11
13
|
import { unlock_door_action_attempt } from './unlock-door.js'
|
|
12
14
|
|
|
13
15
|
export const action_attempt = z.union([
|
|
@@ -19,6 +21,8 @@ export const action_attempt = z.union([
|
|
|
19
21
|
...set_fan_mode_action_attempt.options,
|
|
20
22
|
...set_hvac_mode_action_attempt.options,
|
|
21
23
|
...activate_climate_preset_action_attempt.options,
|
|
24
|
+
...simulate_keypad_code_entry_action_attempt.options,
|
|
25
|
+
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
22
26
|
...deprecated_action_attempts,
|
|
23
27
|
]).describe(`
|
|
24
28
|
---
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
common_failed_action_attempt,
|
|
5
|
+
common_pending_action_attempt,
|
|
6
|
+
common_succeeded_action_attempt,
|
|
7
|
+
} from './common.js'
|
|
8
|
+
|
|
9
|
+
const action_type = z.literal('SIMULATE_KEYPAD_CODE_ENTRY')
|
|
10
|
+
|
|
11
|
+
const error = z.object({
|
|
12
|
+
type: z.string(),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const result = z.object({})
|
|
17
|
+
|
|
18
|
+
export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion(
|
|
19
|
+
'status',
|
|
20
|
+
[
|
|
21
|
+
common_pending_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
})
|
|
25
|
+
.describe('Simulating keypad code entry.'),
|
|
26
|
+
common_succeeded_action_attempt
|
|
27
|
+
.extend({
|
|
28
|
+
action_type,
|
|
29
|
+
result,
|
|
30
|
+
})
|
|
31
|
+
.describe('Simulating keypad code entry succeeded.'),
|
|
32
|
+
common_failed_action_attempt
|
|
33
|
+
.extend({
|
|
34
|
+
action_type,
|
|
35
|
+
error,
|
|
36
|
+
})
|
|
37
|
+
.describe('Simulating keypad code entry failed.'),
|
|
38
|
+
],
|
|
39
|
+
)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
common_failed_action_attempt,
|
|
5
|
+
common_pending_action_attempt,
|
|
6
|
+
common_succeeded_action_attempt,
|
|
7
|
+
} from './common.js'
|
|
8
|
+
|
|
9
|
+
const action_type = z.literal('SIMULATE_MANUAL_LOCK_VIA_KEYPAD')
|
|
10
|
+
|
|
11
|
+
const error = z.object({
|
|
12
|
+
type: z.string(),
|
|
13
|
+
message: z.string(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const result = z.object({})
|
|
17
|
+
|
|
18
|
+
export const simulate_manual_lock_via_keypad_action_attempt =
|
|
19
|
+
z.discriminatedUnion('status', [
|
|
20
|
+
common_pending_action_attempt
|
|
21
|
+
.extend({
|
|
22
|
+
action_type,
|
|
23
|
+
})
|
|
24
|
+
.describe('Simulating manual lock via keypad.'),
|
|
25
|
+
common_succeeded_action_attempt
|
|
26
|
+
.extend({
|
|
27
|
+
action_type,
|
|
28
|
+
result,
|
|
29
|
+
})
|
|
30
|
+
.describe('Simulating manual lock via keypad succeeded.'),
|
|
31
|
+
common_failed_action_attempt
|
|
32
|
+
.extend({
|
|
33
|
+
action_type,
|
|
34
|
+
error,
|
|
35
|
+
})
|
|
36
|
+
.describe('Simulating manual lock via keypad failed.'),
|
|
37
|
+
])
|
|
@@ -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'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './instant-key.js'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const instant_key = z.object({
|
|
4
|
+
instant_key_id: z.string().uuid(),
|
|
5
|
+
workspace_id: z.string().uuid(),
|
|
6
|
+
created_at: z.string().datetime(),
|
|
7
|
+
instant_key_url: z.string().url(),
|
|
8
|
+
client_session_id: z.string().uuid(),
|
|
9
|
+
user_identity_id: z.string().uuid(),
|
|
10
|
+
expires_at: z.string().datetime(),
|
|
11
|
+
}).describe(`
|
|
12
|
+
---
|
|
13
|
+
route_path: /user_identities
|
|
14
|
+
undocumented: Unreleased.
|
|
15
|
+
---
|
|
16
|
+
`)
|
|
17
|
+
|
|
18
|
+
export type InstantKey = z.infer<typeof instant_key>
|