@seamapi/types 1.384.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.
Files changed (30) hide show
  1. package/dist/connect.cjs +456 -137
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1668 -208
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -5
  5. package/lib/seam/connect/models/access-grants/access-grant.js +3 -0
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
  8. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
  9. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +156 -0
  11. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
  12. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +80 -0
  14. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +28 -0
  15. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -0
  16. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +80 -0
  17. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +28 -0
  18. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -0
  19. package/lib/seam/connect/openapi.d.ts +266 -175
  20. package/lib/seam/connect/openapi.js +408 -132
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +1246 -33
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/access-grants/access-grant.ts +5 -0
  25. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +4 -2
  26. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
  27. package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +39 -0
  28. package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +37 -0
  29. package/src/lib/seam/connect/openapi.ts +426 -136
  30. package/src/lib/seam/connect/route-types.ts +1372 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.384.0",
3
+ "version": "1.385.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
- provisioned_access_method_ids: z
16
+ created_access_method_ids: z
17
17
  .array(z.string().uuid())
18
- .describe('IDs of the locations to which access is being given.'),
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
+ ])