@seamapi/types 1.459.0 → 1.460.1

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 (41) hide show
  1. package/dist/connect.cjs +489 -127
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2612 -713
  4. package/dist/index.cjs +489 -127
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
  7. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
  9. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
  10. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
  11. package/lib/seam/connect/models/batch.d.ts +3279 -237
  12. package/lib/seam/connect/models/batch.js +7 -0
  13. package/lib/seam/connect/models/batch.js.map +1 -1
  14. package/lib/seam/connect/models/customer/access-grant-resources.d.ts +18 -18
  15. package/lib/seam/connect/models/customer/access-grant-resources.js +2 -1
  16. package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
  17. package/lib/seam/connect/models/customer/customer-data.d.ts +15 -15
  18. package/lib/seam/connect/models/devices/device-metadata.d.ts +108 -0
  19. package/lib/seam/connect/models/devices/device-metadata.js +67 -0
  20. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device-provider.d.ts +1 -0
  22. package/lib/seam/connect/models/devices/device-provider.js +1 -0
  23. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  24. package/lib/seam/connect/models/devices/device.d.ts +152 -0
  25. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +108 -0
  26. package/lib/seam/connect/models/phones/phone-session.d.ts +181 -14
  27. package/lib/seam/connect/models/phones/phone-session.js +3 -0
  28. package/lib/seam/connect/models/phones/phone-session.js.map +1 -1
  29. package/lib/seam/connect/openapi.d.ts +300 -33
  30. package/lib/seam/connect/openapi.js +447 -113
  31. package/lib/seam/connect/openapi.js.map +1 -1
  32. package/lib/seam/connect/route-types.d.ts +1354 -179
  33. package/package.json +1 -1
  34. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  35. package/src/lib/seam/connect/models/batch.ts +7 -0
  36. package/src/lib/seam/connect/models/customer/access-grant-resources.ts +2 -1
  37. package/src/lib/seam/connect/models/devices/device-metadata.ts +68 -0
  38. package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
  39. package/src/lib/seam/connect/models/phones/phone-session.ts +5 -0
  40. package/src/lib/seam/connect/openapi.ts +481 -113
  41. package/src/lib/seam/connect/route-types.ts +1558 -189
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.459.0",
3
+ "version": "1.460.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -4,6 +4,7 @@ export {
4
4
  access_grant_key_aliases,
5
5
  access_grant_resource,
6
6
  access_grant_resource_union,
7
+ access_grants_batch,
7
8
  access_method,
8
9
  acs_access_group,
9
10
  acs_access_group_external_type,
@@ -1,6 +1,8 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { acs_system } from './acs/acs-system.js'
3
4
  import { acs_entrance } from './acs/index.js'
5
+ import { connected_account } from './connected-accounts/index.js'
4
6
  import { device } from './devices/index.js'
5
7
  import { space } from './spaces/index.js'
6
8
  import { user_identity } from './user-identities/index.js'
@@ -12,6 +14,8 @@ export const spaces_batch = z
12
14
  spaces: space.array().optional(),
13
15
  devices: device.array().optional(),
14
16
  acs_entrances: acs_entrance.array().optional(),
17
+ connected_accounts: connected_account.array().optional(),
18
+ acs_systems: acs_system.array().optional(),
15
19
  })
16
20
  .describe('ID of the affected access system user.')
17
21
 
@@ -20,6 +24,9 @@ export const access_grants_batch = z.object({
20
24
  spaces: space.array().optional(),
21
25
  devices: device.array().optional(),
22
26
  acs_entrances: acs_entrance.array().optional(),
27
+ user_identities: user_identity.array().optional(),
28
+ connected_accounts: connected_account.array().optional(),
29
+ acs_systems: acs_system.array().optional(),
23
30
  })
24
31
 
25
32
  export const access_methods_batch = z.object({
@@ -4,7 +4,8 @@ import { z } from 'zod'
4
4
  const base_access_grant_resource = z.object({
5
5
  name: z
6
6
  .string()
7
- .describe('Your display name for this access grant resource.'),
7
+ .optional()
8
+ .describe('Your name for this access grant resource.'),
8
9
  starts_at: z
9
10
  .string()
10
11
  .optional()
@@ -609,6 +609,74 @@ export const device_metadata = z
609
609
  product_type: z.string().describe(`Product type for a Sensi device.`),
610
610
  })
611
611
  .describe(`Metadata for a Sensi device.`),
612
+
613
+ keynest_metadata: z
614
+ .object({
615
+ key_id: z.string().describe(`Key ID for a KeyNest device.`),
616
+ device_name: z.string().describe(`Device name for a KeyNest device.`),
617
+ property_id: z
618
+ .string()
619
+ .nullable()
620
+ .describe(`Property ID for a KeyNest device.`),
621
+ property_postcode: z
622
+ .string()
623
+ .nullable()
624
+ .describe(`Property postcode for a KeyNest device.`),
625
+ key_notes: z
626
+ .string()
627
+ .nullable()
628
+ .describe(`Key notes for a KeyNest device.`),
629
+ subscription_plan: z
630
+ .string()
631
+ .describe(`Subscription plan for a KeyNest device.`),
632
+ status_type: z.string().describe(`Status type for a KeyNest device.`),
633
+ current_or_last_store_id: z
634
+ .number()
635
+ .describe(`Current or last store ID for a KeyNest device.`),
636
+ last_movement: z
637
+ .string()
638
+ .describe(`Last movement timestamp for a KeyNest device.`),
639
+ address: z
640
+ .string()
641
+ .nullable()
642
+ .describe(`Address for a KeyNest device.`),
643
+ current_status: z
644
+ .string()
645
+ .nullable()
646
+ .describe(`Current status for a KeyNest device.`),
647
+ current_user_name: z
648
+ .string()
649
+ .nullable()
650
+ .describe(`Current user name for a KeyNest device.`),
651
+ current_user_email: z
652
+ .string()
653
+ .nullable()
654
+ .describe(`Current user email for a KeyNest device.`),
655
+ current_user_phone_number: z
656
+ .string()
657
+ .nullable()
658
+ .describe(`Current user phone number for a KeyNest device.`),
659
+ current_user_company: z
660
+ .string()
661
+ .nullable()
662
+ .describe(`Current user company for a KeyNest device.`),
663
+ handover_method: z
664
+ .string()
665
+ .nullable()
666
+ .describe(`Handover method for a KeyNest device.`),
667
+ keynest_app_user: z
668
+ .string()
669
+ .nullable()
670
+ .describe(`KeyNest app user for a KeyNest device.`),
671
+ default_office_id: z
672
+ .number()
673
+ .describe(`Default office ID for a KeyNest device.`),
674
+ fob_id: z.number().describe(`Fob ID for a KeyNest device.`),
675
+ has_photo: z
676
+ .boolean()
677
+ .describe(`Whether the KeyNest device has a photo.`),
678
+ })
679
+ .describe(`Metadata for a KeyNest device.`),
612
680
  })
613
681
  .partial().describe(`
614
682
  ---
@@ -50,6 +50,7 @@ export const DEVICE_PROVIDERS = {
50
50
  SALTO_SPACE: 'salto_space',
51
51
  SENSI: 'sensi',
52
52
  KWIKSET2: 'kwikset2',
53
+ KEYNEST: 'keynest',
53
54
  } as const
54
55
 
55
56
  export type DeviceProviderName =
@@ -2,6 +2,7 @@ import { z } from 'zod'
2
2
 
3
3
  import { acs_credential } from '../acs/acs-credential.js'
4
4
  import { acs_entrance } from '../acs/acs-entrance.js'
5
+ import { user_identity } from '../user-identities/user-identity.js'
5
6
  import { phone_registration } from './phone-registration.js'
6
7
 
7
8
  const phone_provider_session = z
@@ -26,6 +27,10 @@ export const phone_session = z.object({
26
27
  provider_sessions: phone_provider_session
27
28
  .array()
28
29
  .describe('Phone provider sessions.'),
30
+
31
+ user_identity: user_identity.describe('User identity.'),
32
+
33
+ workspace_id: z.string().describe('Workspace ID.'),
29
34
  }).describe(`
30
35
  ---
31
36
  route_path: /seam/mobile_sdk/v1/phone_sessions