Skip to content

Commit 68b07a7

Browse files
authored
feat: Sync with Seam API via 66fe98e735c8a604db9d613a6a9f70c3d9a8b37d (#2761)
1 parent ea52e8b commit 68b07a7

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
@@ -141,6 +141,23 @@ const credential_being_deleted_error = z
141141
'Error to indicate that the credential is being deleted and can no longer be encoded.',
142142
)
143143

144+
const credential_deleted_error = z
145+
.object({
146+
type: z
147+
.literal('credential_deleted')
148+
.describe(
149+
'Error type to indicate that the credential was deleted while encoding was in progress.',
150+
),
151+
message: z
152+
.string()
153+
.describe(
154+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
155+
),
156+
})
157+
.describe(
158+
'Error to indicate that the credential was deleted while encoding was in progress.',
159+
)
160+
144161
const error = z.union([
145162
...common_action_attempt_errors,
146163
no_credential_on_encoder_error,
@@ -151,6 +168,7 @@ const error = z.union([
151168
bridge_disconnected_error,
152169
encoding_interrupted_error,
153170
credential_being_deleted_error,
171+
credential_deleted_error,
154172
])
155173

156174
const result = acs_credential

src/lib/seam/connect/openapi.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8172,6 +8172,25 @@ export default {
81728172
required: ['type', 'message'],
81738173
type: 'object',
81748174
},
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.',
8187+
enum: ['credential_deleted'],
8188+
type: 'string',
8189+
},
8190+
},
8191+
required: ['type', 'message'],
8192+
type: 'object',
8193+
},
81758194
],
81768195
},
81778196
result: {

0 commit comments

Comments
 (0)