@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.
Files changed (42) hide show
  1. package/dist/connect.cjs +410 -130
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2887 -10
  4. package/dist/index.cjs +410 -130
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
  7. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  9. package/lib/seam/connect/models/action-attempts/configure-auto-lock.d.ts +77 -0
  10. package/lib/seam/connect/models/action-attempts/configure-auto-lock.js +31 -0
  11. package/lib/seam/connect/models/action-attempts/configure-auto-lock.js.map +1 -0
  12. package/lib/seam/connect/models/batch.d.ts +166 -0
  13. package/lib/seam/connect/models/customer/customer-portal.js +6 -2
  14. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  15. package/lib/seam/connect/models/customer/user-identity-resources.js +1 -0
  16. package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
  17. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +6 -0
  18. package/lib/seam/connect/models/devices/capability-properties/lock.d.ts +6 -0
  19. package/lib/seam/connect/models/devices/capability-properties/lock.js +12 -0
  20. package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device-metadata.d.ts +7 -0
  22. package/lib/seam/connect/models/devices/device-metadata.js +3 -0
  23. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  24. package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
  25. package/lib/seam/connect/models/devices/device.d.ts +25 -0
  26. package/lib/seam/connect/models/devices/device.js +1 -0
  27. package/lib/seam/connect/models/devices/device.js.map +1 -1
  28. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +17 -0
  29. package/lib/seam/connect/openapi.d.ts +142 -0
  30. package/lib/seam/connect/openapi.js +239 -0
  31. package/lib/seam/connect/openapi.js.map +1 -1
  32. package/lib/seam/connect/route-types.d.ts +2758 -306
  33. package/package.json +1 -1
  34. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  35. package/src/lib/seam/connect/models/action-attempts/configure-auto-lock.ts +46 -0
  36. package/src/lib/seam/connect/models/customer/customer-portal.ts +6 -4
  37. package/src/lib/seam/connect/models/customer/user-identity-resources.ts +1 -0
  38. package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +12 -0
  39. package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
  40. package/src/lib/seam/connect/models/devices/device.ts +1 -0
  41. package/src/lib/seam/connect/openapi.ts +264 -0
  42. package/src/lib/seam/connect/route-types.ts +3085 -330
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.766.0",
3
+ "version": "1.768.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
- .describe(
177
- 'Deep link target resource for initial redirect. When set, the portal will navigate directly to the specified resource.',
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
@@ -29,6 +29,7 @@ export const device_capability_flags = z
29
29
  can_simulate_hub_connection: z.boolean(),
30
30
  can_simulate_hub_disconnection: z.boolean(),
31
31
  can_simulate_paid_subscription: z.boolean(),
32
+ can_configure_auto_lock: z.boolean(),
32
33
  })
33
34
  .partial()
34
35