Skip to content

Commit c2e25ec

Browse files
authored
feat: Sync with Seam API via cf6ed4b9c862bd01436ecf1e9f1bf5c34b679e48 (#2760)
1 parent 7fbf4ca commit c2e25ec

File tree

3 files changed

+217
-0
lines changed

3 files changed

+217
-0
lines changed

src/lib/seam/connect/models/action-attempts/encode-credential.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@ const encoding_interrupted_error = z
124124
'Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.',
125125
)
126126

127+
const credential_being_deleted_error = z
128+
.object({
129+
type: z
130+
.literal('credential_being_deleted')
131+
.describe(
132+
'Error type to indicate that the credential is being deleted and can no longer be encoded.',
133+
),
134+
message: z
135+
.string()
136+
.describe(
137+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
138+
),
139+
})
140+
.describe(
141+
'Error to indicate that the credential is being deleted and can no longer be encoded.',
142+
)
143+
127144
const error = z.union([
128145
...common_action_attempt_errors,
129146
no_credential_on_encoder_error,
@@ -133,6 +150,7 @@ const error = z.union([
133150
encoder_communication_timeout,
134151
bridge_disconnected_error,
135152
encoding_interrupted_error,
153+
credential_being_deleted_error,
136154
])
137155

138156
const result = acs_credential

src/lib/seam/connect/openapi.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8153,6 +8153,25 @@ export default {
81538153
required: ['type', 'message'],
81548154
type: 'object',
81558155
},
8156+
{
8157+
description:
8158+
'Error to indicate that the credential is being deleted and can no longer be encoded.',
8159+
properties: {
8160+
message: {
8161+
description:
8162+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
8163+
type: 'string',
8164+
},
8165+
type: {
8166+
description:
8167+
'Error type to indicate that the credential is being deleted and can no longer be encoded.',
8168+
enum: ['credential_being_deleted'],
8169+
type: 'string',
8170+
},
8171+
},
8172+
required: ['type', 'message'],
8173+
type: 'object',
8174+
},
81568175
],
81578176
},
81588177
result: {

0 commit comments

Comments
 (0)