@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/dist/connect.cjs +732 -10
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1346 -85
- package/dist/index.cjs +732 -10
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +25 -10
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +20 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js +14 -3
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js +3 -3
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +35 -14
- package/lib/seam/connect/openapi.d.ts +952 -0
- package/lib/seam/connect/openapi.js +714 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +334 -61
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +21 -3
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +3 -3
- package/src/lib/seam/connect/openapi.ts +781 -3
- package/src/lib/seam/connect/route-types.ts +405 -61
package/package.json
CHANGED
|
@@ -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
|
|
78
|
+
const encoder_communication_timeout = z
|
|
79
79
|
.object({
|
|
80
80
|
type: z
|
|
81
|
-
.literal('
|
|
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
|
-
|
|
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
|
|
47
|
+
const encoder_communication_timeout = z
|
|
48
48
|
.object({
|
|
49
49
|
type: z
|
|
50
|
-
.literal('
|
|
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
|
-
|
|
83
|
+
encoder_communication_timeout,
|
|
84
84
|
bridge_disconnected_error,
|
|
85
85
|
])
|
|
86
86
|
|