Skip to content

Commit a43843b

Browse files
authored
feat: Sync with Seam API via 02e7b3e63c5061ff73c75a2059023589ed6dbfec (#2762)
1 parent a85f08d commit a43843b

File tree

3 files changed

+34
-251
lines changed

3 files changed

+34
-251
lines changed

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -124,29 +124,12 @@ 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-
144127
const credential_deleted_error = z
145128
.object({
146129
type: z
147130
.literal('credential_deleted')
148131
.describe(
149-
'Error type to indicate that the credential was deleted while encoding was in progress.',
132+
'Error type to indicate that the credential was deleted and can no longer be encoded.',
150133
),
151134
message: z
152135
.string()
@@ -155,7 +138,7 @@ const credential_deleted_error = z
155138
),
156139
})
157140
.describe(
158-
'Error to indicate that the credential was deleted while encoding was in progress.',
141+
'Error to indicate that the credential was deleted and can no longer be encoded.',
159142
)
160143

161144
const error = z.union([
@@ -167,7 +150,6 @@ const error = z.union([
167150
encoder_communication_timeout,
168151
bridge_disconnected_error,
169152
encoding_interrupted_error,
170-
credential_being_deleted_error,
171153
credential_deleted_error,
172154
])
173155

src/lib/seam/connect/openapi.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8155,7 +8155,7 @@ export default {
81558155
},
81568156
{
81578157
description:
8158-
'Error to indicate that the credential is being deleted and can no longer be encoded.',
8158+
'Error to indicate that the credential was deleted and can no longer be encoded.',
81598159
properties: {
81608160
message: {
81618161
description:
@@ -8164,26 +8164,7 @@ export default {
81648164
},
81658165
type: {
81668166
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-
},
8175-
{
8176-
description:
8177-
'Error to indicate that the credential was deleted while encoding was in progress.',
8178-
properties: {
8179-
message: {
8180-
description:
8181-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
8182-
type: 'string',
8183-
},
8184-
type: {
8185-
description:
8186-
'Error type to indicate that the credential was deleted while encoding was in progress.',
8167+
'Error type to indicate that the credential was deleted and can no longer be encoded.',
81878168
enum: ['credential_deleted'],
81888169
type: 'string',
81898170
},

0 commit comments

Comments
 (0)