Skip to content

Commit 4f4ca9c

Browse files
razor-xseambot
andauthored
feat: Add connected_account.accepted_capabilities (#262)
* feat: Add connected_account.accepted_capabilities * ci: Generate code * ci: Format code --------- Co-authored-by: Seam Bot <[email protected]>
1 parent 3b15788 commit 4f4ca9c

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/lib/database/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export interface DatabaseMethods {
175175
account_type?: string
176176
automatically_manage_new_devices?: boolean
177177
custom_metadata?: ConnectedAccount["custom_metadata"]
178+
accepted_capabilities?: string[]
178179
bridge_id?: string
179180
}) => ConnectedAccount
180181
updateConnectedAccount: (params: {

src/lib/database/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ const initializer = immer<Database>((set, get) => ({
581581
params?.automatically_manage_new_devices ?? true,
582582
custom_metadata: params.custom_metadata ?? {},
583583
bridge_id: params.bridge_id ?? null,
584+
accepted_capabilities: params.accepted_capabilities ?? [],
584585
}
585586

586587
if (params.provider === "assa_abloy_credential_service") {

src/lib/zod/connected_account.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const connected_account = z.object({
1717
custom_metadata: custom_metadata.optional(),
1818
assa_abloy_credential_service_id: z.string().optional(),
1919
bridge_id: z.string().nullable(),
20+
accepted_capabilities: z.array(z.string()),
2021
})
2122

2223
export type ConnectedAccount = z.infer<typeof connected_account>

src/route-types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,7 @@ export type Routes = {
19531953
| undefined
19541954
assa_abloy_credential_service_id?: string | undefined
19551955
bridge_id: string | null
1956+
accepted_capabilities: string[]
19561957
}
19571958
ok: boolean
19581959
}
@@ -1987,6 +1988,7 @@ export type Routes = {
19871988
| undefined
19881989
assa_abloy_credential_service_id?: string | undefined
19891990
bridge_id: string | null
1991+
accepted_capabilities: string[]
19901992
}[]
19911993
pagination: {
19921994
has_next_page: boolean
@@ -2031,6 +2033,7 @@ export type Routes = {
20312033
| undefined
20322034
assa_abloy_credential_service_id?: string | undefined
20332035
bridge_id: string | null
2036+
accepted_capabilities: string[]
20342037
}
20352038
ok: boolean
20362039
}

0 commit comments

Comments
 (0)