@authhero/kysely-adapter 0.26.1 → 0.28.0

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.
@@ -1747,10 +1747,7 @@ declare const LogType: z.ZodEnum<[
1747
1747
  "ss",
1748
1748
  "ssa",
1749
1749
  "sv",
1750
- "svr",
1751
- "limit_wc",
1752
- "limit_sul",
1753
- "limit_mu"
1750
+ "svr"
1754
1751
  ]>;
1755
1752
  export type LogType$1 = z.infer<typeof LogType>;
1756
1753
  declare const logSchema: z.ZodObject<{
@@ -1778,10 +1775,7 @@ declare const logSchema: z.ZodObject<{
1778
1775
  "ss",
1779
1776
  "ssa",
1780
1777
  "sv",
1781
- "svr",
1782
- "limit_wc",
1783
- "limit_sul",
1784
- "limit_mu"
1778
+ "svr"
1785
1779
  ]>;
1786
1780
  date: z.ZodString;
1787
1781
  description: z.ZodOptional<z.ZodString>;
@@ -1826,7 +1820,7 @@ declare const logSchema: z.ZodObject<{
1826
1820
  } | undefined;
1827
1821
  }>>;
1828
1822
  }, "strip", z.ZodTypeAny, {
1829
- type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
1823
+ type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
1830
1824
  date: string;
1831
1825
  ip: string;
1832
1826
  user_agent: string;
@@ -1854,7 +1848,7 @@ declare const logSchema: z.ZodObject<{
1854
1848
  } | undefined;
1855
1849
  } | undefined;
1856
1850
  }, {
1857
- type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls" | "limit_wc" | "limit_sul" | "limit_mu";
1851
+ type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
1858
1852
  date: string;
1859
1853
  ip: string;
1860
1854
  user_agent: string;
@@ -3017,7 +3011,7 @@ export interface ListCodesResponse extends Totals {
3017
3011
  export interface CodesAdapter {
3018
3012
  create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
3019
3013
  get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
3020
- list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
3014
+ list: (tenant_id: string, params?: ListParams) => Promise<ListCodesResponse>;
3021
3015
  used: (tenant_id: string, code_id: string) => Promise<boolean>;
3022
3016
  remove: (tenant_id: string, code_id: string) => Promise<boolean>;
3023
3017
  }
@@ -3032,7 +3026,7 @@ export interface ListSesssionsResponse extends Totals {
3032
3026
  export interface SessionsAdapter {
3033
3027
  create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
3034
3028
  get: (tenant_id: string, id: string) => Promise<Session | null>;
3035
- list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
3029
+ list(tenantId: string, params?: ListParams): Promise<ListSesssionsResponse>;
3036
3030
  update: (tenant_id: string, id: string, session: {
3037
3031
  used_at: string;
3038
3032
  }) => Promise<boolean>;
@@ -3048,7 +3042,7 @@ export interface CreateTenantParams {
3048
3042
  export interface TenantsDataAdapter {
3049
3043
  create(params: CreateTenantParams): Promise<Tenant>;
3050
3044
  get(id: string): Promise<Tenant | null>;
3051
- list(params: ListParams): Promise<{
3045
+ list(params?: ListParams): Promise<{
3052
3046
  tenants: Tenant[];
3053
3047
  totals?: Totals;
3054
3048
  }>;
@@ -3062,7 +3056,7 @@ export interface UserDataAdapter {
3062
3056
  get(tenant_id: string, id: string): Promise<User | null>;
3063
3057
  create(tenantId: string, user: UserInsert): Promise<User>;
3064
3058
  remove(tenantId: string, id: string): Promise<boolean>;
3065
- list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
3059
+ list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
3066
3060
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
3067
3061
  unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
3068
3062
  }
@@ -3071,14 +3065,14 @@ export interface ListLogsResponse extends Totals {
3071
3065
  }
3072
3066
  export interface LogsDataAdapter {
3073
3067
  create(tenantId: string, params: Log): Promise<Log>;
3074
- list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
3068
+ list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
3075
3069
  get(tenantId: string, logId: string): Promise<LogsResponse | null>;
3076
3070
  }
3077
3071
  export interface ApplicationsAdapter {
3078
3072
  create(tenant_id: string, params: ApplicationInsert): Promise<Application>;
3079
3073
  get(tenant_id: string, id: string): Promise<Application | null>;
3080
3074
  remove(tenant_id: string, id: string): Promise<boolean>;
3081
- list(tenant_id: string, params: ListParams): Promise<{
3075
+ list(tenant_id: string, params?: ListParams): Promise<{
3082
3076
  applications: Application[];
3083
3077
  totals?: Totals;
3084
3078
  }>;
@@ -3092,14 +3086,14 @@ export interface ConnectionsAdapter {
3092
3086
  remove(tenant_id: string, connection_id: string): Promise<boolean>;
3093
3087
  get(tenant_id: string, connection_id: string): Promise<Connection | null>;
3094
3088
  update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
3095
- list(tenant_id: string, params: ListParams): Promise<ListConnectionsResponse>;
3089
+ list(tenant_id: string, params?: ListParams): Promise<ListConnectionsResponse>;
3096
3090
  }
3097
3091
  export interface ListDomainsResponse extends Totals {
3098
3092
  domains: Domain[];
3099
3093
  }
3100
3094
  export interface DomainsAdapter {
3101
3095
  create(tenant_id: string, params: Domain): Promise<Domain>;
3102
- list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
3096
+ list(tenant_id: string, params?: ListParams): Promise<ListDomainsResponse>;
3103
3097
  }
3104
3098
  export interface KeysAdapter {
3105
3099
  create: (key: SigningKey) => Promise<void>;
@@ -3118,7 +3112,7 @@ export interface HooksAdapter {
3118
3112
  remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
3119
3113
  get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
3120
3114
  update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
3121
- list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
3115
+ list: (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
3122
3116
  }
3123
3117
  export interface ClientsAdapter {
3124
3118
  get: (id: string) => Promise<Client | null>;