@seamapi/types 1.766.0 → 1.768.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 +410 -130
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2887 -10
- package/dist/index.cjs +410 -130
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.js +31 -0
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.js.map +1 -0
- package/lib/seam/connect/models/batch.d.ts +166 -0
- package/lib/seam/connect/models/customer/customer-portal.js +6 -2
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/customer/user-identity-resources.js +1 -0
- package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +6 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.d.ts +6 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.js +12 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +7 -0
- package/lib/seam/connect/models/devices/device-metadata.js +3 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
- package/lib/seam/connect/models/devices/device.d.ts +25 -0
- package/lib/seam/connect/models/devices/device.js +1 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +17 -0
- package/lib/seam/connect/openapi.d.ts +142 -0
- package/lib/seam/connect/openapi.js +239 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2758 -306
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/configure-auto-lock.ts +46 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +6 -4
- package/src/lib/seam/connect/models/customer/user-identity-resources.ts +1 -0
- package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +12 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
- package/src/lib/seam/connect/models/devices/device.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +264 -0
- package/src/lib/seam/connect/route-types.ts +3085 -330
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js'
|
|
4
|
+
import { configure_auto_lock_action_attempt } from './configure-auto-lock.js'
|
|
4
5
|
import { deprecated_action_attempts } from './deprecated.js'
|
|
5
6
|
import { encode_credential_action_attempt } from './encode-credential.js'
|
|
6
7
|
import { lock_door_action_attempt } from './lock-door.js'
|
|
@@ -25,6 +26,7 @@ export const action_attempt = z.union([
|
|
|
25
26
|
...simulate_keypad_code_entry_action_attempt.options,
|
|
26
27
|
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
27
28
|
...push_thermostat_programs_action_attempt.options,
|
|
29
|
+
...configure_auto_lock_action_attempt.options,
|
|
28
30
|
...deprecated_action_attempts,
|
|
29
31
|
]).describe(`
|
|
30
32
|
---
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
|
10
|
+
.literal('CONFIGURE_AUTO_LOCK')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of configuring the auto-lock on a lock.',
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
const error = z
|
|
16
|
+
.object({
|
|
17
|
+
type: z.string().describe('Type of the error.'),
|
|
18
|
+
message: z
|
|
19
|
+
.string()
|
|
20
|
+
.describe(
|
|
21
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
22
|
+
),
|
|
23
|
+
})
|
|
24
|
+
.describe('Error associated with the action.')
|
|
25
|
+
|
|
26
|
+
const result = z.object({}).describe('Result of the action.')
|
|
27
|
+
|
|
28
|
+
export const configure_auto_lock_action_attempt = z.discriminatedUnion(
|
|
29
|
+
'status',
|
|
30
|
+
[
|
|
31
|
+
common_pending_action_attempt
|
|
32
|
+
.extend({
|
|
33
|
+
action_type,
|
|
34
|
+
})
|
|
35
|
+
.describe('Configuring the auto-lock is pending.'),
|
|
36
|
+
common_succeeded_action_attempt
|
|
37
|
+
.extend({
|
|
38
|
+
action_type,
|
|
39
|
+
result,
|
|
40
|
+
})
|
|
41
|
+
.describe('Configuring the auto-lock succeeded.'),
|
|
42
|
+
common_failed_action_attempt
|
|
43
|
+
.extend({ action_type, error })
|
|
44
|
+
.describe('Configuring the auto-lock failed.'),
|
|
45
|
+
],
|
|
46
|
+
)
|
|
@@ -172,10 +172,12 @@ export const portal_configuration_base = z.object({
|
|
|
172
172
|
resource_type: z.enum(['reservation', 'space']),
|
|
173
173
|
resource_key: z.string(),
|
|
174
174
|
})
|
|
175
|
-
.optional()
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
.optional().describe(`
|
|
176
|
+
---
|
|
177
|
+
undocumented: Internal endpoint for customer portals.
|
|
178
|
+
---
|
|
179
|
+
Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.
|
|
180
|
+
`),
|
|
179
181
|
})
|
|
180
182
|
|
|
181
183
|
export const portal_configuration = portal_configuration_base
|
|
@@ -124,6 +124,7 @@ export const staff_member_resource = base_user_identity_resource.extend({
|
|
|
124
124
|
}).describe(`
|
|
125
125
|
---
|
|
126
126
|
route_path: /seam/customer/v1/staff_members
|
|
127
|
+
undocumented: Internal resource for customer portals.
|
|
127
128
|
---
|
|
128
129
|
Represents a staff member for a specific customer.
|
|
129
130
|
`)
|
|
@@ -25,4 +25,16 @@ export const lock_capability_properties = z.object({
|
|
|
25
25
|
---
|
|
26
26
|
Indicates whether the door is open.
|
|
27
27
|
`),
|
|
28
|
+
auto_lock_enabled: z.boolean().optional().describe(`
|
|
29
|
+
---
|
|
30
|
+
property_group_key: locks
|
|
31
|
+
---
|
|
32
|
+
Indicates whether automatic locking is enabled.
|
|
33
|
+
`),
|
|
34
|
+
auto_lock_delay_seconds: z.number().optional().describe(`
|
|
35
|
+
---
|
|
36
|
+
property_group_key: locks
|
|
37
|
+
---
|
|
38
|
+
The delay in seconds before the lock automatically locks after being unlocked.
|
|
39
|
+
`),
|
|
28
40
|
})
|
|
@@ -413,6 +413,11 @@ export const device_metadata = z
|
|
|
413
413
|
wifi: z
|
|
414
414
|
.boolean()
|
|
415
415
|
.describe(`Indicates whether a TTLock device supports Wi-Fi.`),
|
|
416
|
+
auto_lock_time_config: z
|
|
417
|
+
.boolean()
|
|
418
|
+
.describe(
|
|
419
|
+
`Indicates whether a TTLock device supports auto-lock time configuration.`,
|
|
420
|
+
),
|
|
416
421
|
})
|
|
417
422
|
.describe(`Features for a TTLock device.`),
|
|
418
423
|
has_gateway: z
|