@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
@@ -10,22 +10,54 @@ import {
10
10
 
11
11
  const action_type = z
12
12
  .literal('ENCODE_ACCESS_METHOD')
13
- .describe('Type of action that the action attempt tracks.')
13
+ .describe(
14
+ 'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
15
+ )
14
16
 
15
- const no_credential_on_encoder_error = z.object({
16
- type: z.literal('no_credential_on_encoder'),
17
- message: z.string(),
18
- })
17
+ const no_credential_on_encoder_error = z
18
+ .object({
19
+ type: z
20
+ .literal('no_credential_on_encoder')
21
+ .describe(
22
+ 'Error type to indicate that there is no credential on the encoder.',
23
+ ),
24
+ message: z
25
+ .string()
26
+ .describe(
27
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
28
+ ),
29
+ })
30
+ .describe('Error to indicate that there is no credential on the encoder.')
19
31
 
20
- const incompatible_card_format_error = z.object({
21
- type: z.literal('incompatible_card_format'),
22
- message: z.string(),
23
- })
32
+ const incompatible_card_format_error = z
33
+ .object({
34
+ type: z
35
+ .literal('incompatible_card_format')
36
+ .describe('Error type to indicate an incompatible card format.'),
37
+ message: z
38
+ .string()
39
+ .describe(
40
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
41
+ ),
42
+ })
43
+ .describe('Error to indicate an incompatible card format.')
24
44
 
25
- const credential_cannot_be_reissued = z.object({
26
- type: z.literal('credential_cannot_be_reissued'),
27
- message: z.string(),
28
- })
45
+ const credential_cannot_be_reissued = z
46
+ .object({
47
+ type: z
48
+ .literal('credential_cannot_be_reissued')
49
+ .describe(
50
+ 'Error type to indicate that the affected credential cannot be reissued.',
51
+ ),
52
+ message: z
53
+ .string()
54
+ .describe(
55
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
56
+ ),
57
+ })
58
+ .describe(
59
+ 'Error to indicate that the affected credential cannot be reissued.',
60
+ )
29
61
 
30
62
  const error = z.union([
31
63
  ...common_action_attempt_errors,
@@ -35,7 +67,7 @@ const error = z.union([
35
67
  ])
36
68
 
37
69
  const result = access_method.describe(
38
- 'If an encoding attempt was successful, includes the `access_method` data that was encoded onto the card.',
70
+ 'Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.',
39
71
  )
40
72
 
41
73
  export const encode_access_method_action_attempt = z.discriminatedUnion(
@@ -46,7 +78,7 @@ export const encode_access_method_action_attempt = z.discriminatedUnion(
46
78
  action_type,
47
79
  })
48
80
  .describe(
49
- 'Action attempt to track encoding credential data from the physical encoder onto a card.',
81
+ 'Encoding access method data from the physical encoder onto a card is pending.',
50
82
  ),
51
83
  common_succeeded_action_attempt
52
84
  .extend({
@@ -54,12 +86,12 @@ export const encode_access_method_action_attempt = z.discriminatedUnion(
54
86
  result,
55
87
  })
56
88
  .describe(
57
- 'Action attempt to indicate that encoding access method data from the physical encoder onto a card succeeded.',
89
+ 'Encoding access method data from the physical encoder onto a card succeeded.',
58
90
  ),
59
91
  common_failed_action_attempt
60
92
  .extend({ action_type, error })
61
93
  .describe(
62
- 'Action attempt to indicate that encoding access method data from the physical encoder onto a card failed.',
94
+ 'Encoding access method data from the physical encoder onto a card failed.',
63
95
  ),
64
96
  ],
65
97
  )
@@ -13,22 +13,54 @@ import {
13
13
 
14
14
  const action_type = z
15
15
  .literal('ENCODE_CREDENTIAL')
16
- .describe('Type of action that the action attempt tracks.')
16
+ .describe(
17
+ 'Action attempt to track the status of encoding credential data from the physical encoder onto a card.',
18
+ )
17
19
 
18
- const no_credential_on_encoder_error = z.object({
19
- type: z.literal('no_credential_on_encoder'),
20
- message: z.string(),
21
- })
20
+ const no_credential_on_encoder_error = z
21
+ .object({
22
+ type: z
23
+ .literal('no_credential_on_encoder')
24
+ .describe(
25
+ 'Error type to indicate that there is no credential on the encoder.',
26
+ ),
27
+ message: z
28
+ .string()
29
+ .describe(
30
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
31
+ ),
32
+ })
33
+ .describe('Error to indicate that there is no credential on the encoder.')
22
34
 
23
- const incompatible_card_format_error = z.object({
24
- type: z.literal('incompatible_card_format'),
25
- message: z.string(),
26
- })
35
+ const incompatible_card_format_error = z
36
+ .object({
37
+ type: z
38
+ .literal('incompatible_card_format')
39
+ .describe('Error type to indicate an incompatible card format.'),
40
+ message: z
41
+ .string()
42
+ .describe(
43
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
44
+ ),
45
+ })
46
+ .describe('Error to indicate an incompatible card format.')
27
47
 
28
- const credential_cannot_be_reissued = z.object({
29
- type: z.literal('credential_cannot_be_reissued'),
30
- message: z.string(),
31
- })
48
+ const credential_cannot_be_reissued = z
49
+ .object({
50
+ type: z
51
+ .literal('credential_cannot_be_reissued')
52
+ .describe(
53
+ 'Error type to indicate that the affected credential cannot be reissued.',
54
+ ),
55
+ message: z
56
+ .string()
57
+ .describe(
58
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
59
+ ),
60
+ })
61
+ .describe(
62
+ 'Error to indicate that the affected credential cannot be reissued.',
63
+ )
32
64
 
33
65
  const error = z.union([
34
66
  ...common_action_attempt_errors,
@@ -40,16 +72,15 @@ const error = z.union([
40
72
  const result = acs_credential
41
73
  .or(unmanaged_acs_credential)
42
74
  .describe(
43
- 'If an encoding attempt was successful, includes the `acs_credential` data that was encoded onto the card.',
75
+ 'Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.',
44
76
  )
45
-
46
77
  export const encode_credential_action_attempt = z.discriminatedUnion('status', [
47
78
  common_pending_action_attempt
48
79
  .extend({
49
80
  action_type,
50
81
  })
51
82
  .describe(
52
- 'Action attempt to track encoding credential data from the physical encoder onto a card.',
83
+ 'Encoding credential data from the physical encoder onto a card is pending.',
53
84
  ),
54
85
  common_succeeded_action_attempt
55
86
  .extend({
@@ -57,12 +88,12 @@ export const encode_credential_action_attempt = z.discriminatedUnion('status', [
57
88
  result,
58
89
  })
59
90
  .describe(
60
- 'Action attempt to indicate that encoding credential data from the physical encoder onto a card succeeded.',
91
+ 'Encoding credential data from the physical encoder onto a card succeeded.',
61
92
  ),
62
93
  common_failed_action_attempt
63
94
  .extend({ action_type, error })
64
95
  .describe(
65
- 'Action attempt to indicate that encoding credential data from the physical encoder onto a card failed.',
96
+ 'Encoding credential data from the physical encoder onto a card failed.',
66
97
  ),
67
98
  ])
68
99
 
@@ -6,30 +6,38 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('LOCK_DOOR')
9
+ const action_type = z
10
+ .literal('LOCK_DOOR')
11
+ .describe('Action attempt to track the status of locking a door.')
10
12
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
14
- })
13
+ const error = z
14
+ .object({
15
+ type: z.string().describe('Type of the error.'),
16
+ message: z
17
+ .string()
18
+ .describe(
19
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
20
+ ),
21
+ })
22
+ .describe('Error associated with the action.')
15
23
 
16
- const result = z.object({})
24
+ const result = z.object({}).describe('Result of the action.')
17
25
 
18
26
  export const lock_door_action_attempt = z.discriminatedUnion('status', [
19
27
  common_pending_action_attempt
20
28
  .extend({
21
29
  action_type,
22
30
  })
23
- .describe('Locking door.'),
31
+ .describe('Locking a door is pending.'),
24
32
  common_succeeded_action_attempt
25
33
  .extend({
26
34
  action_type,
27
35
  result,
28
36
  })
29
- .describe('Locking door succeeded.'),
37
+ .describe('Locking a door succeeded.'),
30
38
  common_failed_action_attempt
31
39
  .extend({ action_type, error })
32
- .describe('Locking door failed.'),
40
+ .describe('Locking a door failed.'),
33
41
  ])
34
42
 
35
43
  export type LockDoorActionAttempt = z.infer<typeof lock_door_action_attempt>
@@ -6,14 +6,24 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('PUSH_THERMOSTAT_PROGRAMS')
9
+ const action_type = z
10
+ .literal('PUSH_THERMOSTAT_PROGRAMS')
11
+ .describe(
12
+ 'Action attempt to track the status of pushing thermostat programs.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const push_thermostat_programs_action_attempt = z.discriminatedUnion(
19
29
  'status',
@@ -22,7 +32,7 @@ export const push_thermostat_programs_action_attempt = z.discriminatedUnion(
22
32
  .extend({
23
33
  action_type,
24
34
  })
25
- .describe('Pushing thermostat weekly programs.'),
35
+ .describe('Pushing thermostat weekly programs is pending.'),
26
36
  common_succeeded_action_attempt
27
37
  .extend({
28
38
  action_type,
@@ -6,14 +6,24 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('RESET_SANDBOX_WORKSPACE')
9
+ const action_type = z
10
+ .literal('RESET_SANDBOX_WORKSPACE')
11
+ .describe(
12
+ 'Action attempt to track the status of resetting a sandbox workspace.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const reset_sandbox_workspace_action_attempt = z.discriminatedUnion(
19
29
  'status',
@@ -22,18 +32,18 @@ export const reset_sandbox_workspace_action_attempt = z.discriminatedUnion(
22
32
  .extend({
23
33
  action_type,
24
34
  })
25
- .describe('Resetting sandbox workspace.'),
35
+ .describe('Resetting a sandbox workspace is pending.'),
26
36
  common_succeeded_action_attempt
27
37
  .extend({
28
38
  action_type,
29
39
  result,
30
40
  })
31
- .describe('Resetting sandbox workspace succeeded.'),
41
+ .describe('Resetting a sandbox workspace succeeded.'),
32
42
  common_failed_action_attempt
33
43
  .extend({
34
44
  action_type,
35
45
  error,
36
46
  })
37
- .describe('Resetting sandbox workspace failed.'),
47
+ .describe('Resetting a sandbox workspace failed.'),
38
48
  ],
39
49
  )
@@ -12,44 +12,74 @@ import {
12
12
  common_succeeded_action_attempt,
13
13
  } from './common.js'
14
14
 
15
- const action_type = z.literal('SCAN_CREDENTIAL')
15
+ const action_type = z
16
+ .literal('SCAN_CREDENTIAL')
17
+ .describe('Action attempt to track the status of scanning a credential.')
16
18
 
17
- const no_credential_on_encoder_error = z.object({
18
- type: z.literal('no_credential_on_encoder'),
19
- message: z.string(),
20
- })
19
+ const no_credential_on_encoder_error = z
20
+ .object({
21
+ type: z
22
+ .literal('no_credential_on_encoder')
23
+ .describe(
24
+ 'Error type to indicate that there is no credential on the encoder.',
25
+ ),
26
+ message: z
27
+ .string()
28
+ .describe(
29
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
30
+ ),
31
+ })
32
+ .describe('Error to indicate that there is no credential on the encoder.')
21
33
 
22
34
  const error = z.union([
23
35
  ...common_action_attempt_errors,
24
36
  no_credential_on_encoder_error,
25
37
  ])
26
38
 
27
- const warning = z.object({
28
- warning_code: z.union([
29
- z.literal('acs_credential_on_encoder_out_of_sync'),
30
- z.literal('acs_credential_on_seam_not_found'),
31
- ]),
32
- warning_message: z.string(),
33
- })
39
+ const warning = z
40
+ .object({
41
+ warning_code: z
42
+ .union([
43
+ z.literal('acs_credential_on_encoder_out_of_sync'),
44
+ z.literal('acs_credential_on_seam_not_found'),
45
+ ])
46
+ .describe('Indicates a warning related to scanning a credential.'),
47
+ warning_message: z
48
+ .string()
49
+ .describe(
50
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
51
+ ),
52
+ })
53
+ .describe('Warning related to scanning a credential.')
34
54
 
35
55
  const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
36
56
 
37
- const result = z.object({
38
- acs_credential_on_encoder: acs_credential_on_encoder
39
- .nullable()
40
- .describe('Snapshot of credential data read from physical encoder.'),
41
- acs_credential_on_seam: acs_credential_on_seam
42
- .nullable()
43
- .describe('Matching acs_credential currently encoded on this card.'),
44
- warnings: z.array(warning),
45
- })
57
+ const result = z
58
+ .object({
59
+ acs_credential_on_encoder: acs_credential_on_encoder
60
+ .nullable()
61
+ .describe('Snapshot of credential data read from the physical encoder.'),
62
+ acs_credential_on_seam: acs_credential_on_seam
63
+ .nullable()
64
+ .describe(
65
+ 'Corresponding credential data as stored on Seam and the access system.',
66
+ ),
67
+ warnings: z
68
+ .array(warning)
69
+ .describe(
70
+ 'Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system.',
71
+ ),
72
+ })
73
+ .describe(
74
+ 'Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings.',
75
+ )
46
76
 
47
77
  export const scan_credential_action_attempt = z.discriminatedUnion('status', [
48
78
  common_pending_action_attempt
49
79
  .extend({
50
80
  action_type,
51
81
  })
52
- .describe('Reading credential data from physical encoder.'),
82
+ .describe('Reading credential data from the physical encoder is pending.'),
53
83
  common_succeeded_action_attempt
54
84
  .extend({
55
85
  action_type,
@@ -6,28 +6,38 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('SET_FAN_MODE')
9
+ const action_type = z
10
+ .literal('SET_FAN_MODE')
11
+ .describe(
12
+ 'Action attempt to track the status of setting the fan mode on a thermostat.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const set_fan_mode_action_attempt = z.discriminatedUnion('status', [
19
29
  common_pending_action_attempt
20
30
  .extend({
21
31
  action_type,
22
32
  })
23
- .describe('Setting fan mode.'),
33
+ .describe('Setting the fan mode is pending.'),
24
34
  common_succeeded_action_attempt
25
35
  .extend({
26
36
  action_type,
27
37
  result,
28
38
  })
29
- .describe('Setting fan mode succeeded.'),
39
+ .describe('Setting the fan mode succeeded.'),
30
40
  common_failed_action_attempt
31
41
  .extend({ action_type, error })
32
- .describe('Setting fan mode failed.'),
42
+ .describe('Setting the fan mode failed.'),
33
43
  ])
@@ -6,28 +6,38 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('SET_HVAC_MODE')
9
+ const action_type = z
10
+ .literal('SET_HVAC_MODE')
11
+ .describe(
12
+ 'Action attempt to track the status of setting the HVAC mode on a thermostat.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const set_hvac_mode_action_attempt = z.discriminatedUnion('status', [
19
29
  common_pending_action_attempt
20
30
  .extend({
21
31
  action_type,
22
32
  })
23
- .describe('Setting HVAC mode.'),
33
+ .describe('Setting the HVAC mode is pending.'),
24
34
  common_succeeded_action_attempt
25
35
  .extend({
26
36
  action_type,
27
37
  result,
28
38
  })
29
- .describe('Setting HVAC mode succeeded.'),
39
+ .describe('Setting the HVAC mode succeeded.'),
30
40
  common_failed_action_attempt
31
41
  .extend({ action_type, error })
32
- .describe('Setting HVAC mode failed.'),
42
+ .describe('Setting the HVAC mode failed.'),
33
43
  ])
@@ -6,14 +6,24 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('SIMULATE_KEYPAD_CODE_ENTRY')
9
+ const action_type = z
10
+ .literal('SIMULATE_KEYPAD_CODE_ENTRY')
11
+ .describe(
12
+ 'Action attempt to track the status of simulating a keypad code entry.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion(
19
29
  'status',
@@ -22,18 +32,18 @@ export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion(
22
32
  .extend({
23
33
  action_type,
24
34
  })
25
- .describe('Simulating keypad code entry.'),
35
+ .describe('Simulating a keypad code entry is pending.'),
26
36
  common_succeeded_action_attempt
27
37
  .extend({
28
38
  action_type,
29
39
  result,
30
40
  })
31
- .describe('Simulating keypad code entry succeeded.'),
41
+ .describe('Simulating a keypad code entry succeeded.'),
32
42
  common_failed_action_attempt
33
43
  .extend({
34
44
  action_type,
35
45
  error,
36
46
  })
37
- .describe('Simulating keypad code entry failed.'),
47
+ .describe('Simulating a keypad code entry failed.'),
38
48
  ],
39
49
  )
@@ -6,14 +6,24 @@ import {
6
6
  common_succeeded_action_attempt,
7
7
  } from './common.js'
8
8
 
9
- const action_type = z.literal('SIMULATE_MANUAL_LOCK_VIA_KEYPAD')
9
+ const action_type = z
10
+ .literal('SIMULATE_MANUAL_LOCK_VIA_KEYPAD')
11
+ .describe(
12
+ 'Action attempt to track the status of simulating a manual lock action using a keypad.',
13
+ )
10
14
 
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
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.')
15
25
 
16
- const result = z.object({})
26
+ const result = z.object({}).describe('Result of the action.')
17
27
 
18
28
  export const simulate_manual_lock_via_keypad_action_attempt =
19
29
  z.discriminatedUnion('status', [
@@ -21,17 +31,17 @@ export const simulate_manual_lock_via_keypad_action_attempt =
21
31
  .extend({
22
32
  action_type,
23
33
  })
24
- .describe('Simulating manual lock via keypad.'),
34
+ .describe('Simulating a manual lock action using a keypad is pending.'),
25
35
  common_succeeded_action_attempt
26
36
  .extend({
27
37
  action_type,
28
38
  result,
29
39
  })
30
- .describe('Simulating manual lock via keypad succeeded.'),
40
+ .describe('Simulating a manual lock action using a keypad succeeded.'),
31
41
  common_failed_action_attempt
32
42
  .extend({
33
43
  action_type,
34
44
  error,
35
45
  })
36
- .describe('Simulating manual lock via keypad failed.'),
46
+ .describe('Simulating a manual lock action using a keypad failed.'),
37
47
  ])