@authhero/kysely-adapter 0.27.0 → 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.
@@ -3011,7 +3011,7 @@ export interface ListCodesResponse extends Totals {
3011
3011
  export interface CodesAdapter {
3012
3012
  create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
3013
3013
  get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
3014
- list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
3014
+ list: (tenant_id: string, params?: ListParams) => Promise<ListCodesResponse>;
3015
3015
  used: (tenant_id: string, code_id: string) => Promise<boolean>;
3016
3016
  remove: (tenant_id: string, code_id: string) => Promise<boolean>;
3017
3017
  }
@@ -3026,7 +3026,7 @@ export interface ListSesssionsResponse extends Totals {
3026
3026
  export interface SessionsAdapter {
3027
3027
  create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
3028
3028
  get: (tenant_id: string, id: string) => Promise<Session | null>;
3029
- list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
3029
+ list(tenantId: string, params?: ListParams): Promise<ListSesssionsResponse>;
3030
3030
  update: (tenant_id: string, id: string, session: {
3031
3031
  used_at: string;
3032
3032
  }) => Promise<boolean>;
@@ -3042,7 +3042,7 @@ export interface CreateTenantParams {
3042
3042
  export interface TenantsDataAdapter {
3043
3043
  create(params: CreateTenantParams): Promise<Tenant>;
3044
3044
  get(id: string): Promise<Tenant | null>;
3045
- list(params: ListParams): Promise<{
3045
+ list(params?: ListParams): Promise<{
3046
3046
  tenants: Tenant[];
3047
3047
  totals?: Totals;
3048
3048
  }>;
@@ -3056,7 +3056,7 @@ export interface UserDataAdapter {
3056
3056
  get(tenant_id: string, id: string): Promise<User | null>;
3057
3057
  create(tenantId: string, user: UserInsert): Promise<User>;
3058
3058
  remove(tenantId: string, id: string): Promise<boolean>;
3059
- list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
3059
+ list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
3060
3060
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
3061
3061
  unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
3062
3062
  }
@@ -3065,14 +3065,14 @@ export interface ListLogsResponse extends Totals {
3065
3065
  }
3066
3066
  export interface LogsDataAdapter {
3067
3067
  create(tenantId: string, params: Log): Promise<Log>;
3068
- list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
3068
+ list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
3069
3069
  get(tenantId: string, logId: string): Promise<LogsResponse | null>;
3070
3070
  }
3071
3071
  export interface ApplicationsAdapter {
3072
3072
  create(tenant_id: string, params: ApplicationInsert): Promise<Application>;
3073
3073
  get(tenant_id: string, id: string): Promise<Application | null>;
3074
3074
  remove(tenant_id: string, id: string): Promise<boolean>;
3075
- list(tenant_id: string, params: ListParams): Promise<{
3075
+ list(tenant_id: string, params?: ListParams): Promise<{
3076
3076
  applications: Application[];
3077
3077
  totals?: Totals;
3078
3078
  }>;
@@ -3086,14 +3086,14 @@ export interface ConnectionsAdapter {
3086
3086
  remove(tenant_id: string, connection_id: string): Promise<boolean>;
3087
3087
  get(tenant_id: string, connection_id: string): Promise<Connection | null>;
3088
3088
  update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
3089
- list(tenant_id: string, params: ListParams): Promise<ListConnectionsResponse>;
3089
+ list(tenant_id: string, params?: ListParams): Promise<ListConnectionsResponse>;
3090
3090
  }
3091
3091
  export interface ListDomainsResponse extends Totals {
3092
3092
  domains: Domain[];
3093
3093
  }
3094
3094
  export interface DomainsAdapter {
3095
3095
  create(tenant_id: string, params: Domain): Promise<Domain>;
3096
- list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
3096
+ list(tenant_id: string, params?: ListParams): Promise<ListDomainsResponse>;
3097
3097
  }
3098
3098
  export interface KeysAdapter {
3099
3099
  create: (key: SigningKey) => Promise<void>;
@@ -3112,7 +3112,7 @@ export interface HooksAdapter {
3112
3112
  remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
3113
3113
  get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
3114
3114
  update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
3115
- list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
3115
+ list: (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
3116
3116
  }
3117
3117
  export interface ClientsAdapter {
3118
3118
  get: (id: string) => Promise<Client | null>;