@seamapi/types 1.770.0 → 1.772.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.770.0",
3
+ "version": "1.772.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -75,10 +75,10 @@ const encoder_not_online_error = z
75
75
  })
76
76
  .describe('Error to indicate that the encoder is not online.')
77
77
 
78
- const encoder_timeout_error = z
78
+ const encoder_communication_timeout = z
79
79
  .object({
80
80
  type: z
81
- .literal('encoder_timeout_error')
81
+ .literal('encoder_communication_timeout')
82
82
  .describe(
83
83
  'Error type to indicate that communication with the encoder timed out.',
84
84
  ),
@@ -107,14 +107,32 @@ const bridge_disconnected_error = z
107
107
  'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
108
108
  )
109
109
 
110
+ const encoding_interrupted_error = z
111
+ .object({
112
+ type: z
113
+ .literal('encoding_interrupted')
114
+ .describe(
115
+ 'Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.',
116
+ ),
117
+ message: z
118
+ .string()
119
+ .describe(
120
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
121
+ ),
122
+ })
123
+ .describe(
124
+ 'Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.',
125
+ )
126
+
110
127
  const error = z.union([
111
128
  ...common_action_attempt_errors,
112
129
  no_credential_on_encoder_error,
113
130
  incompatible_card_format_error,
114
131
  credential_cannot_be_reissued,
115
132
  encoder_not_online_error,
116
- encoder_timeout_error,
133
+ encoder_communication_timeout,
117
134
  bridge_disconnected_error,
135
+ encoding_interrupted_error,
118
136
  ])
119
137
 
120
138
  const result = acs_credential
@@ -44,10 +44,10 @@ const encoder_not_online_error = z
44
44
  })
45
45
  .describe('Error to indicate that the encoder is not online.')
46
46
 
47
- const encoder_timeout_error = z
47
+ const encoder_communication_timeout = z
48
48
  .object({
49
49
  type: z
50
- .literal('encoder_timeout_error')
50
+ .literal('encoder_communication_timeout')
51
51
  .describe(
52
52
  'Error type to indicate that communication with the encoder timed out.',
53
53
  ),
@@ -80,7 +80,7 @@ const error = z.union([
80
80
  ...common_action_attempt_errors,
81
81
  no_credential_on_encoder_error,
82
82
  encoder_not_online_error,
83
- encoder_timeout_error,
83
+ encoder_communication_timeout,
84
84
  bridge_disconnected_error,
85
85
  ])
86
86