@seamapi/types 1.416.1 → 1.417.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 (179) hide show
  1. package/dist/connect.cjs +4358 -2205
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +11496 -6206
  4. package/lib/seam/connect/models/access-codes/managed-access-code.js +1 -1
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.js +6 -5
  7. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  8. package/lib/seam/connect/models/access-grants/access-method.js +4 -3
  9. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  10. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
  11. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-credential-pool.js +2 -1
  13. package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +2 -1
  15. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
  16. package/lib/seam/connect/models/acs/acs-entrance.d.ts +3 -0
  17. package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
  18. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  19. package/lib/seam/connect/models/acs/acs-users/acs-user.js +37 -37
  20. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  21. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +57 -19
  22. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  23. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js +52 -15
  24. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js.map +1 -1
  25. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +7 -3
  26. package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
  27. package/lib/seam/connect/models/acs/metadata/latch.js +16 -6
  28. package/lib/seam/connect/models/acs/metadata/latch.js.map +1 -1
  29. package/lib/seam/connect/models/acs/metadata/salto-space.js +14 -5
  30. package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
  31. package/lib/seam/connect/models/acs/metadata/salto.js +32 -10
  32. package/lib/seam/connect/models/acs/metadata/salto.js.map +1 -1
  33. package/lib/seam/connect/models/acs/metadata/visionline.js +53 -23
  34. package/lib/seam/connect/models/acs/metadata/visionline.js.map +1 -1
  35. package/lib/seam/connect/models/action-attempts/action-attempt.js +5 -0
  36. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  37. package/lib/seam/connect/models/action-attempts/activate-climate-preset.js +15 -9
  38. package/lib/seam/connect/models/action-attempts/activate-climate-preset.js.map +1 -1
  39. package/lib/seam/connect/models/action-attempts/deprecated.js +120 -52
  40. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  41. package/lib/seam/connect/models/action-attempts/encode-access-method.js +35 -17
  42. package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +1 -1
  43. package/lib/seam/connect/models/action-attempts/encode-credential.js +35 -17
  44. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
  45. package/lib/seam/connect/models/action-attempts/lock-door.js +15 -9
  46. package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
  47. package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js +13 -7
  48. package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js.map +1 -1
  49. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +15 -9
  50. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -1
  51. package/lib/seam/connect/models/action-attempts/scan-credential.js +34 -16
  52. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
  53. package/lib/seam/connect/models/action-attempts/set-fan-mode.js +15 -9
  54. package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -1
  55. package/lib/seam/connect/models/action-attempts/set-hvac-mode.js +15 -9
  56. package/lib/seam/connect/models/action-attempts/set-hvac-mode.js.map +1 -1
  57. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +15 -9
  58. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -1
  59. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +15 -9
  60. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -1
  61. package/lib/seam/connect/models/action-attempts/unlock-door.js +15 -9
  62. package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
  63. package/lib/seam/connect/models/bridges/bridge-client-session.js +66 -25
  64. package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
  65. package/lib/seam/connect/models/bridges/bridge-connected-system.js +32 -9
  66. package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -1
  67. package/lib/seam/connect/models/bridges/bridge.js +10 -3
  68. package/lib/seam/connect/models/bridges/bridge.js.map +1 -1
  69. package/lib/seam/connect/models/client-sessions/client-session.js +47 -13
  70. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
  71. package/lib/seam/connect/models/connect-webviews/connect-webview.js +7 -9
  72. package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
  73. package/lib/seam/connect/models/connected-accounts/connected-account.js +8 -8
  74. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  75. package/lib/seam/connect/models/custom-metadata.js +1 -1
  76. package/lib/seam/connect/models/custom-metadata.js.map +1 -1
  77. package/lib/seam/connect/models/devices/capability-properties/lock.js +2 -1
  78. package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
  79. package/lib/seam/connect/models/devices/device-metadata.js +493 -480
  80. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  81. package/lib/seam/connect/models/devices/device.js +67 -47
  82. package/lib/seam/connect/models/devices/device.js.map +1 -1
  83. package/lib/seam/connect/models/devices/phone.js +1 -1
  84. package/lib/seam/connect/models/events/access-codes.js +1 -1
  85. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  86. package/lib/seam/connect/models/events/acs/credentials.js +4 -4
  87. package/lib/seam/connect/models/events/acs/encoders.js +2 -2
  88. package/lib/seam/connect/models/events/acs/entrances.js +2 -2
  89. package/lib/seam/connect/models/events/common.js +1 -1
  90. package/lib/seam/connect/models/events/common.js.map +1 -1
  91. package/lib/seam/connect/models/events/connect-webviews.js +2 -2
  92. package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
  93. package/lib/seam/connect/models/events/connected-accounts.js +2 -2
  94. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  95. package/lib/seam/connect/models/events/devices.js +1 -1
  96. package/lib/seam/connect/models/events/devices.js.map +1 -1
  97. package/lib/seam/connect/models/instant-keys/instant-key.js +28 -7
  98. package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -1
  99. package/lib/seam/connect/models/partner/magic-link.js +22 -11
  100. package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
  101. package/lib/seam/connect/models/partner/resources.js +61 -20
  102. package/lib/seam/connect/models/partner/resources.js.map +1 -1
  103. package/lib/seam/connect/models/phones/phone-registration.js +7 -4
  104. package/lib/seam/connect/models/phones/phone-registration.js.map +1 -1
  105. package/lib/seam/connect/models/phones/phone-session.d.ts +16 -0
  106. package/lib/seam/connect/models/phones/phone-session.js +10 -4
  107. package/lib/seam/connect/models/phones/phone-session.js.map +1 -1
  108. package/lib/seam/connect/models/schedule.js +4 -2
  109. package/lib/seam/connect/models/schedule.js.map +1 -1
  110. package/lib/seam/connect/models/spaces/space.js +5 -4
  111. package/lib/seam/connect/models/spaces/space.js.map +1 -1
  112. package/lib/seam/connect/models/webhooks/webhook.js +16 -5
  113. package/lib/seam/connect/models/webhooks/webhook.js.map +1 -1
  114. package/lib/seam/connect/models/workspaces/workspace.js +33 -11
  115. package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
  116. package/lib/seam/connect/openapi.d.ts +420 -172
  117. package/lib/seam/connect/openapi.js +3243 -1186
  118. package/lib/seam/connect/openapi.js.map +1 -1
  119. package/lib/seam/connect/route-types.d.ts +11073 -6034
  120. package/package.json +2 -2
  121. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +1 -1
  122. package/src/lib/seam/connect/models/access-grants/access-grant.ts +6 -9
  123. package/src/lib/seam/connect/models/access-grants/access-method.ts +4 -5
  124. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +2 -2
  125. package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +2 -1
  126. package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +2 -1
  127. package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -0
  128. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +37 -37
  129. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +69 -19
  130. package/src/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.ts +63 -16
  131. package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +11 -3
  132. package/src/lib/seam/connect/models/acs/metadata/latch.ts +16 -6
  133. package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +14 -5
  134. package/src/lib/seam/connect/models/acs/metadata/salto.ts +32 -10
  135. package/src/lib/seam/connect/models/acs/metadata/visionline.ts +60 -28
  136. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +5 -0
  137. package/src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts +19 -9
  138. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +174 -104
  139. package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +49 -17
  140. package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +49 -18
  141. package/src/lib/seam/connect/models/action-attempts/lock-door.ts +17 -9
  142. package/src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts +17 -7
  143. package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +19 -9
  144. package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +52 -22
  145. package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +19 -9
  146. package/src/lib/seam/connect/models/action-attempts/set-hvac-mode.ts +19 -9
  147. package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +19 -9
  148. package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +19 -9
  149. package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +17 -9
  150. package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +84 -25
  151. package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +42 -9
  152. package/src/lib/seam/connect/models/bridges/bridge.ts +12 -3
  153. package/src/lib/seam/connect/models/client-sessions/client-session.ts +69 -13
  154. package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +10 -10
  155. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +12 -8
  156. package/src/lib/seam/connect/models/custom-metadata.ts +1 -1
  157. package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +2 -1
  158. package/src/lib/seam/connect/models/devices/device-metadata.ts +588 -521
  159. package/src/lib/seam/connect/models/devices/device.ts +89 -47
  160. package/src/lib/seam/connect/models/devices/phone.ts +1 -1
  161. package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
  162. package/src/lib/seam/connect/models/events/acs/credentials.ts +4 -4
  163. package/src/lib/seam/connect/models/events/acs/encoders.ts +2 -2
  164. package/src/lib/seam/connect/models/events/acs/entrances.ts +2 -2
  165. package/src/lib/seam/connect/models/events/common.ts +3 -1
  166. package/src/lib/seam/connect/models/events/connect-webviews.ts +6 -2
  167. package/src/lib/seam/connect/models/events/connected-accounts.ts +6 -2
  168. package/src/lib/seam/connect/models/events/devices.ts +3 -1
  169. package/src/lib/seam/connect/models/instant-keys/instant-key.ts +34 -7
  170. package/src/lib/seam/connect/models/partner/magic-link.ts +24 -11
  171. package/src/lib/seam/connect/models/partner/resources.ts +73 -20
  172. package/src/lib/seam/connect/models/phones/phone-registration.ts +7 -4
  173. package/src/lib/seam/connect/models/phones/phone-session.ts +21 -13
  174. package/src/lib/seam/connect/models/schedule.ts +19 -15
  175. package/src/lib/seam/connect/models/spaces/space.ts +5 -4
  176. package/src/lib/seam/connect/models/webhooks/webhook.ts +24 -5
  177. package/src/lib/seam/connect/models/workspaces/workspace.ts +53 -11
  178. package/src/lib/seam/connect/openapi.ts +4044 -1364
  179. package/src/lib/seam/connect/route-types.ts +11073 -6034
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.416.1",
3
+ "version": "1.417.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.48.0",
95
+ "@seamapi/blueprint": "^0.49.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -510,7 +510,7 @@ export const access_code = z.object({
510
510
  type: z
511
511
  .enum(['time_bound', 'ongoing'])
512
512
  .describe(
513
- 'Nature of the access code. Values are `ongoing` for access codes that are active continuously until deactivated manually or `time_bound` for access codes that have a specific duration.',
513
+ 'Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.',
514
514
  ),
515
515
  is_waiting_for_code_assignment: z
516
516
  .boolean()
@@ -6,14 +6,12 @@ export const access_grant = z.object({
6
6
  workspace_id: z
7
7
  .string()
8
8
  .uuid()
9
- .describe(
10
- 'Unique identifier for the Seam workspace associated with the access grant.',
11
- ),
9
+ .describe('ID of the Seam workspace associated with the access grant.'),
12
10
  access_grant_id: z.string().uuid().describe('ID of the access grant.'),
13
11
  user_identity_id: z
14
12
  .string()
15
13
  .uuid()
16
- .describe('ID of user identity to which access is being granted.'),
14
+ .describe('ID of user identity to which the access grant gives access.'),
17
15
  location_ids: z.array(z.string().uuid()).describe(`
18
16
  ---
19
17
  deprecated: Use \`space_ids\`.
@@ -21,15 +19,13 @@ export const access_grant = z.object({
21
19
  `),
22
20
  space_ids: z
23
21
  .array(z.string().uuid())
24
- .describe('IDs of the spaces to which access is being given.'),
22
+ .describe('IDs of the spaces to which the access grant gives access.'),
25
23
  requested_access_methods: z
26
24
  .array(requested_access_method)
27
- .describe('Access methods that the user requested for this access grant.'),
25
+ .describe('Access methods that the user requested for the access grant.'),
28
26
  access_method_ids: z
29
27
  .array(z.string().uuid())
30
- .describe(
31
- 'IDs of the access methods that were created for this access grant.',
32
- ),
28
+ .describe('IDs of the access methods created for the access grant.'),
33
29
  display_name: z.string().describe('Display name of the access grant.'),
34
30
  created_at: z
35
31
  .string()
@@ -40,6 +36,7 @@ export const access_grant = z.object({
40
36
  draft: Early access.
41
37
  route_path: /access_grants
42
38
  ---
39
+ Represents an access grant. Access grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an access grant for an existing user identity, or you can create a new user identity *while* creating the new access grant.
43
40
  `)
44
41
 
45
42
  export type AccessGrant = z.infer<typeof access_grant>
@@ -4,9 +4,7 @@ export const access_method = z.object({
4
4
  workspace_id: z
5
5
  .string()
6
6
  .uuid()
7
- .describe(
8
- 'Unique identifier for the Seam workspace associated with the access grant.',
9
- ),
7
+ .describe('ID of the Seam workspace associated with the access method.'),
10
8
  access_method_id: z.string().uuid().describe('ID of the access method.'),
11
9
  display_name: z.string().describe('Display name of the access method.'),
12
10
  mode: z
@@ -26,18 +24,19 @@ export const access_method = z.object({
26
24
  instant_key_url: z
27
25
  .string()
28
26
  .optional()
29
- .describe('URL of instant key for mobile key access methods.'),
27
+ .describe('URL of the Instant Key for mobile key access methods.'),
30
28
  is_card_encoding_required: z
31
29
  .boolean()
32
30
  .optional()
33
31
  .describe(
34
- 'Whether card encoding is required for plastic card access methods.',
32
+ 'Indicates whether card encoding is required for plastic card access methods.',
35
33
  ),
36
34
  }).describe(`
37
35
  ---
38
36
  draft: Early access.
39
37
  route_path: /access_methods
40
38
  ---
39
+ Represents an access method for an access grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
41
40
  `)
42
41
 
43
42
  export type AccessMethod = z.infer<typeof access_method>
@@ -11,12 +11,12 @@ export const requested_access_method = z.object({
11
11
  .string()
12
12
  .datetime()
13
13
  .describe(
14
- 'Date and time at which the requested access method was added to this access grant.',
14
+ 'Date and time at which the requested access method was added to the access grant.',
15
15
  ),
16
16
  created_access_method_ids: z
17
17
  .array(z.string().uuid())
18
18
  .describe(
19
- 'IDs of the access methods that were created for this requested access method.',
19
+ 'IDs of the access methods created for the requested access method.',
20
20
  ),
21
21
  })
22
22
 
@@ -17,7 +17,8 @@ export const acs_credential_pool = z.object({
17
17
  }).describe(`
18
18
  ---
19
19
  route_path: /acs/credential_pools
20
- undocumented: Will be removed.
20
+ deprecated: Not used.
21
+ undocumented: Deprecated. Will be removed.
21
22
  ---
22
23
  `)
23
24
 
@@ -9,7 +9,8 @@ export const acs_credential_provisioning_automation = z.object({
9
9
  }).describe(`
10
10
  ---
11
11
  route_path: /acs/credential_provisioning_automations
12
- undocumented: Will be removed.
12
+ deprecated: Not used.
13
+ undocumented: Deprecated. Will be removed.
13
14
  ---
14
15
  `)
15
16
 
@@ -33,6 +33,12 @@ export const acs_entrance = z.object({
33
33
  .describe(
34
34
  'Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
35
35
  ),
36
+ connected_account_id: z
37
+ .string()
38
+ .uuid()
39
+ .describe(
40
+ 'ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
41
+ ),
36
42
  errors: z
37
43
  .array(
38
44
  z.object({
@@ -33,7 +33,7 @@ const acs_users_deleted_externally = common_acs_user_error
33
33
  error_code: z.literal('deleted_externally'),
34
34
  })
35
35
  .describe(
36
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted from the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) outside of Seam.`,
36
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/latest/capability-guides/access-systems) outside of Seam.`,
37
37
  )
38
38
 
39
39
  const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
@@ -41,7 +41,7 @@ const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
41
41
  error_code: z.literal('salto_ks_subscription_limit_exceeded'),
42
42
  })
43
43
  .describe(
44
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.`,
44
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.`,
45
45
  )
46
46
 
47
47
  const acs_users_failed_to_create_on_acs_system = common_acs_user_error
@@ -49,7 +49,7 @@ const acs_users_failed_to_create_on_acs_system = common_acs_user_error
49
49
  error_code: z.literal('failed_to_create_on_acs_system'),
50
50
  })
51
51
  .describe(
52
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not created on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
52
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not created on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
53
53
  )
54
54
 
55
55
  const acs_users_failed_to_update_on_acs_system = common_acs_user_error
@@ -57,7 +57,7 @@ const acs_users_failed_to_update_on_acs_system = common_acs_user_error
57
57
  error_code: z.literal('failed_to_update_on_acs_system'),
58
58
  })
59
59
  .describe(
60
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not updated on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
60
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
61
61
  )
62
62
 
63
63
  const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
@@ -65,7 +65,7 @@ const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
65
65
  error_code: z.literal('failed_to_delete_on_acs_system'),
66
66
  })
67
67
  .describe(
68
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not deleted on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
68
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
69
69
  )
70
70
 
71
71
  const acs_users_latch_conflict_with_resident_user = common_acs_user_error
@@ -73,7 +73,7 @@ const acs_users_latch_conflict_with_resident_user = common_acs_user_error
73
73
  error_code: z.literal('latch_conflict_with_resident_user'),
74
74
  })
75
75
  .describe(
76
- `Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).`,
76
+ `Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).`,
77
77
  )
78
78
 
79
79
  const acs_user_errors = z
@@ -86,7 +86,7 @@ const acs_user_errors = z
86
86
  acs_users_latch_conflict_with_resident_user,
87
87
  ])
88
88
  .describe(
89
- 'Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
89
+ 'Errors associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
90
90
  )
91
91
 
92
92
  export const acs_users_error_map = z.object({
@@ -126,7 +126,7 @@ const acs_users_being_deleted = common_acs_user_warning
126
126
  warning_code: z.literal('being_deleted'),
127
127
  })
128
128
  .describe(
129
- 'Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is being deleted from the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is a temporary state, and the ACS user will be deleted shortly.',
129
+ 'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is being deleted from the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is a temporary state, and the access system user will be deleted shortly.',
130
130
  )
131
131
 
132
132
  const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
@@ -134,7 +134,7 @@ const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
134
134
  warning_code: z.literal('salto_ks_user_not_subscribed'),
135
135
  })
136
136
  .describe(
137
- 'Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.',
137
+ 'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.',
138
138
  )
139
139
 
140
140
  export const unknown_issue_with_acs_user = common_acs_user_warning
@@ -142,7 +142,7 @@ export const unknown_issue_with_acs_user = common_acs_user_warning
142
142
  warning_code: z.literal('unknown_issue_with_acs_user'),
143
143
  })
144
144
  .describe(
145
- 'An unknown issue occurred while syncing the state of this [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.',
145
+ 'An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.',
146
146
  )
147
147
 
148
148
  export const latch_resident_user = common_acs_user_warning
@@ -150,7 +150,7 @@ export const latch_resident_user = common_acs_user_warning
150
150
  warning_code: z.literal('latch_resident_user'),
151
151
  })
152
152
  .describe(
153
- 'Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.',
153
+ 'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.',
154
154
  )
155
155
 
156
156
  export const acs_users_warning_map = z.object({
@@ -172,7 +172,7 @@ export const acs_users_warnings = z
172
172
  latch_resident_user,
173
173
  ])
174
174
  .describe(
175
- 'Warnings associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
175
+ 'Warnings associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
176
176
  )
177
177
 
178
178
  export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
@@ -184,7 +184,7 @@ const user_fields = z.object({
184
184
  .min(1)
185
185
  .optional()
186
186
  .describe(
187
- 'Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
187
+ 'Full name of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
188
188
  ),
189
189
  email: z.string().email().optional().describe(`
190
190
  ---
@@ -196,12 +196,12 @@ const user_fields = z.object({
196
196
  .email()
197
197
  .optional()
198
198
  .describe(
199
- 'Email address of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
199
+ 'Email address of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
200
200
  ),
201
201
  phone_number: phone_number
202
202
  .optional()
203
203
  .describe(
204
- 'Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
204
+ 'Phone number of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
205
205
  ),
206
206
  })
207
207
 
@@ -211,105 +211,105 @@ const common_acs_user = z
211
211
  .string()
212
212
  .uuid()
213
213
  .describe(
214
- 'ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
214
+ 'ID of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
215
215
  ),
216
216
  acs_system_id: z
217
217
  .string()
218
218
  .uuid()
219
219
  .describe(
220
- 'ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
220
+ 'ID of the [access system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
221
221
  ),
222
222
  hid_acs_system_id: z.string().uuid().optional(),
223
223
  workspace_id: z
224
224
  .string()
225
225
  .uuid()
226
226
  .describe(
227
- 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
227
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
228
228
  ),
229
229
  created_at: z
230
230
  .string()
231
231
  .datetime()
232
232
  .describe(
233
- 'Date and time at which the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.',
233
+ 'Date and time at which the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.',
234
234
  ),
235
235
  display_name: z
236
236
  .string()
237
237
  .describe(
238
- 'Display name for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
238
+ 'Display name for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
239
239
  ),
240
240
  external_type: acs_user_external_type
241
241
  .optional()
242
242
  .describe(
243
- 'Brand-specific terminology for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
243
+ 'Brand-specific terminology for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
244
244
  ),
245
245
  external_type_display_name: z
246
246
  .string()
247
247
  .optional()
248
248
  .describe(
249
- 'Display name that corresponds to the brand-specific terminology for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
249
+ 'Display name that corresponds to the brand-specific terminology for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
250
250
  ),
251
251
  is_suspended: z
252
252
  .boolean()
253
253
  .optional()
254
254
  .describe(
255
- 'Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
255
+ 'Indicates whether the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
256
256
  ),
257
257
  access_schedule: schedule
258
258
  .optional()
259
259
  .describe(
260
- "`starts_at` and `ends_at` timestamps for the [ACS user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) access.",
260
+ "`starts_at` and `ends_at` timestamps for the [access system user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) access.",
261
261
  ),
262
262
  user_identity_id: z
263
263
  .string()
264
264
  .optional()
265
265
  .describe(
266
- 'ID of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
266
+ 'ID of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
267
267
  ),
268
268
  user_identity_full_name: z
269
269
  .string()
270
270
  .nullable()
271
271
  .optional()
272
272
  .describe(
273
- 'Full name of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
273
+ 'Full name of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
274
274
  ),
275
275
  user_identity_email_address: z
276
276
  .string()
277
277
  .nullable()
278
278
  .optional()
279
279
  .describe(
280
- 'Email address of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
280
+ 'Email address of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
281
281
  ),
282
282
  user_identity_phone_number: z
283
283
  .string()
284
284
  .nullable()
285
285
  .optional()
286
286
  .describe(
287
- 'Phone number of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
287
+ 'Phone number of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
288
288
  ),
289
289
  warnings: z
290
290
  .array(acs_users_warnings)
291
291
  .describe(
292
- 'Warnings associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
292
+ 'Warnings associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
293
293
  ),
294
294
  errors: z
295
295
  .array(acs_user_errors)
296
296
  .describe(
297
- 'Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
297
+ 'Errors associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
298
298
  ),
299
299
  pending_mutations: z
300
300
  .array(acs_user_pending_mutations)
301
301
  .optional()
302
302
  .describe(
303
- 'Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.',
303
+ 'Pending mutations associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.',
304
304
  ),
305
305
  last_successful_sync_at: z.string().datetime().nullable().describe(`
306
306
  ---
307
307
  undocumented: Only used internally.
308
308
  ---
309
- The last time an internal sync job completed for this ACS user.
309
+ The last time an internal sync job completed for this access system user.
310
310
  `),
311
311
  connected_account_id: z.string().uuid().describe(`
312
- The ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that is associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).
312
+ The ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that is associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).
313
313
  `),
314
314
  })
315
315
  .merge(user_fields)
@@ -322,11 +322,11 @@ export const acs_user = common_acs_user.merge(
322
322
  ---
323
323
  route_path: /acs/users
324
324
  ---
325
- Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
325
+ Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access system](https://docs.seam.co/latest/capability-guides/access-systems).
326
326
 
327
- An \`acs_user\` typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.
327
+ An access system user typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.
328
328
 
329
- For details about how to configure \`acs_user\`s in your access control system, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems).
329
+ For details about how to configure users in your access system, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems).
330
330
  `)
331
331
 
332
332
  export const unmanaged_acs_user = common_acs_user.merge(
@@ -338,7 +338,7 @@ export const unmanaged_acs_user = common_acs_user.merge(
338
338
  route_path: /acs/users/unmanaged
339
339
  undocumented: Unreleased.
340
340
  ---
341
- Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
341
+ Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access system](https://docs.seam.co/latest/capability-guides/access-systems).
342
342
  `)
343
343
 
344
344
  export type AcsUser = z.output<typeof acs_user>
@@ -12,7 +12,11 @@ const common_pending_mutation = z.object({
12
12
 
13
13
  const creating = common_pending_mutation
14
14
  .extend({
15
- mutation_code: z.literal('creating'),
15
+ mutation_code: z
16
+ .literal('creating')
17
+ .describe(
18
+ 'Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.',
19
+ ),
16
20
  })
17
21
  .describe(
18
22
  'Seam is in the process of pushing a user creation to the integrated access system.',
@@ -20,35 +24,69 @@ const creating = common_pending_mutation
20
24
 
21
25
  const deleting = common_pending_mutation
22
26
  .extend({
23
- mutation_code: z.literal('deleting'),
27
+ mutation_code: z
28
+ .literal('deleting')
29
+ .describe(
30
+ 'Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.',
31
+ ),
24
32
  })
25
33
  .describe(
26
34
  'Seam is in the process of pushing a user deletion to the integrated access system.',
27
35
  )
28
36
 
29
37
  const acs_user_info = z.object({
30
- email_address: z.string().email().nullable(),
31
- full_name: z.string().nullable(),
32
- phone_number: phone_number.optional().nullable(),
38
+ email_address: z
39
+ .string()
40
+ .email()
41
+ .nullable()
42
+ .describe('Email address of the access system user.'),
43
+ full_name: z
44
+ .string()
45
+ .nullable()
46
+ .describe('Full name of the access system user.'),
47
+ phone_number: phone_number
48
+ .optional()
49
+ .nullable()
50
+ .describe('Phone number of the access system user.'),
33
51
  })
34
52
 
35
53
  export const updating_user_information_mutation =
36
54
  common_pending_mutation.extend({
37
- mutation_code: z.literal('updating_user_information'),
38
- from: acs_user_info.partial(),
39
- to: acs_user_info.partial(),
55
+ mutation_code: z
56
+ .literal('updating_user_information')
57
+ .describe(
58
+ 'Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.',
59
+ ),
60
+ from: acs_user_info
61
+ .partial()
62
+ .describe('Old access system user information.'),
63
+ to: acs_user_info.partial().describe('New access system user information.'),
40
64
  })
41
65
 
42
- const access_schedule = z.object({
43
- starts_at: z.string().datetime().nullable(),
44
- ends_at: z.string().datetime().nullable(),
45
- })
66
+ const access_schedule = z
67
+ .object({
68
+ starts_at: z
69
+ .string()
70
+ .datetime()
71
+ .nullable()
72
+ .describe('Starting time for the access schedule.'),
73
+ ends_at: z
74
+ .string()
75
+ .datetime()
76
+ .nullable()
77
+ .describe('Starting time for the access schedule.'),
78
+ })
79
+ .describe('Access schedule involved in the mutation.')
46
80
 
47
81
  const updating_access_schedule_mutation = common_pending_mutation
48
82
  .extend({
49
- mutation_code: z.literal('updating_access_schedule'),
50
- from: access_schedule,
51
- to: access_schedule,
83
+ mutation_code: z
84
+ .literal('updating_access_schedule')
85
+ .describe(
86
+ 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.',
87
+ ),
88
+ from: access_schedule.describe('Old access schedule information.'),
89
+ to: access_schedule.describe('New access schedule information.'),
52
90
  })
53
91
  .describe(
54
92
  'Seam is in the process of pushing an access schedule update to the integrated access system.',
@@ -56,9 +94,17 @@ const updating_access_schedule_mutation = common_pending_mutation
56
94
 
57
95
  const updating_suspension_state_mutation = common_pending_mutation
58
96
  .extend({
59
- mutation_code: z.literal('updating_suspension_state'),
60
- from: z.object({ is_suspended: z.boolean() }),
61
- to: z.object({ is_suspended: z.boolean() }),
97
+ mutation_code: z
98
+ .literal('updating_suspension_state')
99
+ .describe(
100
+ 'Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.',
101
+ ),
102
+ from: z
103
+ .object({ is_suspended: z.boolean() })
104
+ .describe('Old user suspension state information.'),
105
+ to: z
106
+ .object({ is_suspended: z.boolean() })
107
+ .describe('New user suspension state information.'),
62
108
  })
63
109
  .describe(
64
110
  'Seam is in the process of pushing a suspension state update to the integrated access system.',
@@ -66,7 +112,11 @@ const updating_suspension_state_mutation = common_pending_mutation
66
112
 
67
113
  const updating_group_membership_mutation = common_pending_mutation
68
114
  .extend({
69
- mutation_code: z.literal('updating_group_membership'),
115
+ mutation_code: z
116
+ .literal('updating_group_membership')
117
+ .describe(
118
+ 'Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.',
119
+ ),
70
120
  from: z
71
121
  .object({
72
122
  acs_access_group_id: z