@authhero/kysely-adapter 0.7.14 → 0.8.1
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/kysely-adapter.d.ts
CHANGED
|
@@ -1746,26 +1746,6 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
1746
1746
|
deleted_at?: string | undefined;
|
|
1747
1747
|
}>;
|
|
1748
1748
|
export type Session = z.infer<typeof sessionSchema>;
|
|
1749
|
-
declare const certificateSchema: z.ZodObject<{
|
|
1750
|
-
private_key: z.ZodOptional<z.ZodString>;
|
|
1751
|
-
public_key: z.ZodOptional<z.ZodString>;
|
|
1752
|
-
kid: z.ZodString;
|
|
1753
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
revoked_at: z.ZodOptional<z.ZodString>;
|
|
1755
|
-
}, "strip", z.ZodTypeAny, {
|
|
1756
|
-
kid: string;
|
|
1757
|
-
created_at?: string | undefined;
|
|
1758
|
-
private_key?: string | undefined;
|
|
1759
|
-
public_key?: string | undefined;
|
|
1760
|
-
revoked_at?: string | undefined;
|
|
1761
|
-
}, {
|
|
1762
|
-
kid: string;
|
|
1763
|
-
created_at?: string | undefined;
|
|
1764
|
-
private_key?: string | undefined;
|
|
1765
|
-
public_key?: string | undefined;
|
|
1766
|
-
revoked_at?: string | undefined;
|
|
1767
|
-
}>;
|
|
1768
|
-
export type Certificate = z.infer<typeof certificateSchema>;
|
|
1769
1749
|
declare const signingKeySchema: z.ZodObject<{
|
|
1770
1750
|
kid: z.ZodString;
|
|
1771
1751
|
cert: z.ZodString;
|
|
@@ -1784,7 +1764,6 @@ declare const signingKeySchema: z.ZodObject<{
|
|
|
1784
1764
|
cert: string;
|
|
1785
1765
|
fingerprint: string;
|
|
1786
1766
|
thumbprint: string;
|
|
1787
|
-
revoked_at?: string | undefined;
|
|
1788
1767
|
pkcs7?: string | undefined;
|
|
1789
1768
|
current?: boolean | undefined;
|
|
1790
1769
|
next?: boolean | undefined;
|
|
@@ -1792,12 +1771,12 @@ declare const signingKeySchema: z.ZodObject<{
|
|
|
1792
1771
|
current_since?: string | undefined;
|
|
1793
1772
|
current_until?: string | undefined;
|
|
1794
1773
|
revoked?: boolean | undefined;
|
|
1774
|
+
revoked_at?: string | undefined;
|
|
1795
1775
|
}, {
|
|
1796
1776
|
kid: string;
|
|
1797
1777
|
cert: string;
|
|
1798
1778
|
fingerprint: string;
|
|
1799
1779
|
thumbprint: string;
|
|
1800
|
-
revoked_at?: string | undefined;
|
|
1801
1780
|
pkcs7?: string | undefined;
|
|
1802
1781
|
current?: boolean | undefined;
|
|
1803
1782
|
next?: boolean | undefined;
|
|
@@ -1805,6 +1784,7 @@ declare const signingKeySchema: z.ZodObject<{
|
|
|
1805
1784
|
current_since?: string | undefined;
|
|
1806
1785
|
current_until?: string | undefined;
|
|
1807
1786
|
revoked?: boolean | undefined;
|
|
1787
|
+
revoked_at?: string | undefined;
|
|
1808
1788
|
}>;
|
|
1809
1789
|
export type SigningKey = z.infer<typeof signingKeySchema>;
|
|
1810
1790
|
export interface Tenant {
|
|
@@ -2778,8 +2758,8 @@ export interface DomainsAdapter {
|
|
|
2778
2758
|
}
|
|
2779
2759
|
export interface KeysAdapter {
|
|
2780
2760
|
create: (key: SigningKey) => Promise<void>;
|
|
2781
|
-
list: () => Promise<
|
|
2782
|
-
|
|
2761
|
+
list: () => Promise<SigningKey[]>;
|
|
2762
|
+
update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
|
|
2783
2763
|
}
|
|
2784
2764
|
export interface BrandingAdapter {
|
|
2785
2765
|
set: (tenant_id: string, authCode: Branding) => Promise<void>;
|
|
@@ -2962,7 +2942,7 @@ export interface Database {
|
|
|
2962
2942
|
hooks: Hook & {
|
|
2963
2943
|
tenant_id: string;
|
|
2964
2944
|
};
|
|
2965
|
-
keys:
|
|
2945
|
+
keys: SigningKey & {
|
|
2966
2946
|
created_at: string;
|
|
2967
2947
|
};
|
|
2968
2948
|
logins: SqlLogin;
|