@seamapi/types 1.80.1 → 1.82.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.
@@ -1345,6 +1345,24 @@ export interface Routes {
1345
1345
  }>
1346
1346
  }
1347
1347
  }
1348
+ '/acs/users/list_accessible_entrances': {
1349
+ route: '/acs/users/list_accessible_entrances'
1350
+ method: 'GET' | 'POST'
1351
+ queryParams: {}
1352
+ jsonBody: {}
1353
+ commonParams: {
1354
+ acs_user_id: string
1355
+ }
1356
+ formData: {}
1357
+ jsonResponse: {
1358
+ acs_entrances: Array<{
1359
+ acs_entrance_id: string
1360
+ display_name: string
1361
+ acs_system_id: string
1362
+ created_at: string
1363
+ }>
1364
+ }
1365
+ }
1348
1366
  '/acs/users/remove_from_access_group': {
1349
1367
  route: '/acs/users/remove_from_access_group'
1350
1368
  method: 'DELETE' | 'POST'
@@ -1672,9 +1690,7 @@ export interface Routes {
1672
1690
  provider_category?:
1673
1691
  | ('stable' | 'consumer_smartlocks' | 'internal_beta')
1674
1692
  | undefined
1675
- custom_metadata?:
1676
- | Record<string, string | number | null | boolean>
1677
- | undefined
1693
+ custom_metadata?: Record<string, string | boolean> | undefined
1678
1694
  automatically_manage_new_devices?: boolean | undefined
1679
1695
  wait_for_device_creation?: boolean | undefined
1680
1696
  }
@@ -1696,7 +1712,7 @@ export interface Routes {
1696
1712
  status: 'pending' | 'failed' | 'authorized'
1697
1713
  custom_redirect_url: string | null
1698
1714
  custom_redirect_failure_url: string | null
1699
- custom_metadata: Record<string, string | number | null | boolean>
1715
+ custom_metadata: Record<string, string | boolean>
1700
1716
  automatically_manage_new_devices: boolean
1701
1717
  wait_for_device_creation: boolean
1702
1718
  authorized_at: string | null
@@ -1740,7 +1756,7 @@ export interface Routes {
1740
1756
  status: 'pending' | 'failed' | 'authorized'
1741
1757
  custom_redirect_url: string | null
1742
1758
  custom_redirect_failure_url: string | null
1743
- custom_metadata: Record<string, string | number | null | boolean>
1759
+ custom_metadata: Record<string, string | boolean>
1744
1760
  automatically_manage_new_devices: boolean
1745
1761
  wait_for_device_creation: boolean
1746
1762
  authorized_at: string | null
@@ -1773,7 +1789,7 @@ export interface Routes {
1773
1789
  status: 'pending' | 'failed' | 'authorized'
1774
1790
  custom_redirect_url: string | null
1775
1791
  custom_redirect_failure_url: string | null
1776
- custom_metadata: Record<string, string | number | null | boolean>
1792
+ custom_metadata: Record<string, string | boolean>
1777
1793
  automatically_manage_new_devices: boolean
1778
1794
  wait_for_device_creation: boolean
1779
1795
  authorized_at: string | null
@@ -1835,9 +1851,7 @@ export interface Routes {
1835
1851
  account_type_display_name: string
1836
1852
  errors?: any
1837
1853
  warnings?: any
1838
- custom_metadata?:
1839
- | Record<string, string | number | boolean | null>
1840
- | undefined
1854
+ custom_metadata?: Record<string, string | boolean> | undefined
1841
1855
  automatically_manage_new_devices: boolean
1842
1856
  }
1843
1857
  }
@@ -1866,9 +1880,7 @@ export interface Routes {
1866
1880
  account_type_display_name: string
1867
1881
  errors?: any
1868
1882
  warnings?: any
1869
- custom_metadata?:
1870
- | Record<string, string | number | boolean | null>
1871
- | undefined
1883
+ custom_metadata?: Record<string, string | boolean> | undefined
1872
1884
  automatically_manage_new_devices: boolean
1873
1885
  }>
1874
1886
  }
@@ -1900,9 +1912,7 @@ export interface Routes {
1900
1912
  account_type_display_name: string
1901
1913
  errors?: any
1902
1914
  warnings?: any
1903
- custom_metadata?:
1904
- | Record<string, string | number | boolean | null>
1905
- | undefined
1915
+ custom_metadata?: Record<string, string | boolean> | undefined
1906
1916
  automatically_manage_new_devices: boolean
1907
1917
  }
1908
1918
  }
@@ -10025,6 +10035,7 @@ export interface Routes {
10025
10035
  commonParams: {
10026
10036
  user_identity_key?: (string | null) | undefined
10027
10037
  email_address?: (string | null) | undefined
10038
+ phone_number?: (string | null) | undefined
10028
10039
  full_name?: (string | null) | undefined
10029
10040
  }
10030
10041
  formData: {}
@@ -10033,6 +10044,7 @@ export interface Routes {
10033
10044
  user_identity_id: string
10034
10045
  user_identity_key: string | null
10035
10046
  email_address: string | null
10047
+ phone_number: string | null
10036
10048
  display_name: string
10037
10049
  full_name: string | null
10038
10050
  created_at: string
@@ -10120,6 +10132,7 @@ export interface Routes {
10120
10132
  user_identity_id: string
10121
10133
  user_identity_key: string | null
10122
10134
  email_address: string | null
10135
+ phone_number: string | null
10123
10136
  display_name: string
10124
10137
  full_name: string | null
10125
10138
  created_at: string
@@ -10151,6 +10164,7 @@ export interface Routes {
10151
10164
  user_identity_id: string
10152
10165
  user_identity_key: string | null
10153
10166
  email_address: string | null
10167
+ phone_number: string | null
10154
10168
  display_name: string
10155
10169
  full_name: string | null
10156
10170
  created_at: string
@@ -10823,6 +10837,45 @@ export interface Routes {
10823
10837
  }>
10824
10838
  }
10825
10839
  }
10840
+ '/user_identities/list_acs_systems': {
10841
+ route: '/user_identities/list_acs_systems'
10842
+ method: 'GET' | 'POST'
10843
+ queryParams: {}
10844
+ jsonBody: {}
10845
+ commonParams: {
10846
+ user_identity_id: string
10847
+ }
10848
+ formData: {}
10849
+ jsonResponse: {
10850
+ acs_systems: Array<{
10851
+ acs_system_id: string
10852
+ external_type:
10853
+ | 'pti_site'
10854
+ | 'alta_org'
10855
+ | 'salto_site'
10856
+ | 'brivo_account'
10857
+ | 'hid_credential_manager_organization'
10858
+ | 'visionline_system'
10859
+ | 'assa_abloy_credential_service'
10860
+ external_type_display_name: string
10861
+ /** deprecated: use external_type */
10862
+ system_type:
10863
+ | 'pti_site'
10864
+ | 'alta_org'
10865
+ | 'salto_site'
10866
+ | 'brivo_account'
10867
+ | 'hid_credential_manager_organization'
10868
+ | 'visionline_system'
10869
+ | 'assa_abloy_credential_service'
10870
+ /** deprecated: use external_type_display_name */
10871
+ system_type_display_name: string
10872
+ name: string
10873
+ created_at: string
10874
+ workspace_id: string
10875
+ connected_account_ids: string[]
10876
+ }>
10877
+ }
10878
+ }
10826
10879
  '/user_identities/list_acs_users': {
10827
10880
  route: '/user_identities/list_acs_users'
10828
10881
  method: 'GET' | 'POST'
@@ -1,10 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  export const custom_metadata = z
4
- .record(
5
- z.string().max(40),
6
- z.union([z.string().max(500), z.number(), z.null(), z.boolean()]),
7
- )
4
+ .record(z.string().max(40), z.union([z.string().max(500), z.boolean()]))
8
5
  .refine((val) => Object.keys(val).length <= 50, {
9
6
  message: 'Custom metadata is limited to a maximum of 50 keys',
10
7
  })
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { phone_number } from '../phone-number.js'
3
4
  import { schedule } from '../schedule.js'
4
5
 
5
6
  export const acs_user_external_type = z.enum([
@@ -11,19 +12,6 @@ export const acs_user_external_type = z.enum([
11
12
 
12
13
  export type AcsUserExternalType = z.infer<typeof acs_user_external_type>
13
14
 
14
- const phone_number = z.coerce
15
- .string()
16
- .trim()
17
- .refine(
18
- (val) => {
19
- // https://www.twilio.com/docs/glossary/what-e164
20
- return /^\+[1-9]\d{1,14}$/.test(val)
21
- },
22
- {
23
- message: 'Phone number must be in E.164 format: +14155552671',
24
- },
25
- )
26
-
27
15
  const user_fields = z.object({
28
16
  full_name: z.string().optional(),
29
17
  email: z
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod'
2
+
3
+ export const phone_number = z.coerce
4
+ .string()
5
+ .trim()
6
+ .refine(
7
+ (val) => {
8
+ // https://www.twilio.com/docs/glossary/what-e164
9
+ return /^\+[1-9]\d{1,14}$/.test(val)
10
+ },
11
+ {
12
+ message: 'Phone number must be in E.164 format: +14155552671',
13
+ },
14
+ )
@@ -1,9 +1,12 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { phone_number } from './phone-number.js'
4
+
3
5
  export const user_identity = z.object({
4
6
  user_identity_id: z.string().uuid(),
5
7
  user_identity_key: z.string().nonempty().nullable(),
6
8
  email_address: z.string().email().nullable(),
9
+ phone_number: phone_number.nullable(),
7
10
  display_name: z.string().nonempty(),
8
11
  full_name: z.string().nonempty().nullable(),
9
12
  created_at: z.string().datetime(),