authhero 0.36.0 → 0.36.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.
@@ -4240,7 +4240,7 @@ export interface ListCodesResponse extends Totals {
4240
4240
  export interface CodesAdapter {
4241
4241
  create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
4242
4242
  get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
4243
- list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
4243
+ list: (tenant_id: string, params?: ListParams) => Promise<ListCodesResponse>;
4244
4244
  used: (tenant_id: string, code_id: string) => Promise<boolean>;
4245
4245
  remove: (tenant_id: string, code_id: string) => Promise<boolean>;
4246
4246
  }
@@ -4255,7 +4255,7 @@ export interface ListSesssionsResponse extends Totals {
4255
4255
  export interface SessionsAdapter {
4256
4256
  create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
4257
4257
  get: (tenant_id: string, id: string) => Promise<Session | null>;
4258
- list(tenantId: string, params: ListParams): Promise<ListSesssionsResponse>;
4258
+ list(tenantId: string, params?: ListParams): Promise<ListSesssionsResponse>;
4259
4259
  update: (tenant_id: string, id: string, session: {
4260
4260
  used_at: string;
4261
4261
  }) => Promise<boolean>;
@@ -4271,7 +4271,7 @@ export interface CreateTenantParams {
4271
4271
  export interface TenantsDataAdapter {
4272
4272
  create(params: CreateTenantParams): Promise<Tenant>;
4273
4273
  get(id: string): Promise<Tenant | null>;
4274
- list(params: ListParams): Promise<{
4274
+ list(params?: ListParams): Promise<{
4275
4275
  tenants: Tenant[];
4276
4276
  totals?: Totals;
4277
4277
  }>;
@@ -4285,7 +4285,7 @@ export interface UserDataAdapter {
4285
4285
  get(tenant_id: string, id: string): Promise<User | null>;
4286
4286
  create(tenantId: string, user: UserInsert): Promise<User>;
4287
4287
  remove(tenantId: string, id: string): Promise<boolean>;
4288
- list(tenantId: string, params: ListParams): Promise<ListUsersResponse>;
4288
+ list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
4289
4289
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
4290
4290
  unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
4291
4291
  }
@@ -4294,14 +4294,14 @@ export interface ListLogsResponse extends Totals {
4294
4294
  }
4295
4295
  export interface LogsDataAdapter {
4296
4296
  create(tenantId: string, params: Log): Promise<Log>;
4297
- list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
4297
+ list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
4298
4298
  get(tenantId: string, logId: string): Promise<LogsResponse | null>;
4299
4299
  }
4300
4300
  export interface ApplicationsAdapter {
4301
4301
  create(tenant_id: string, params: ApplicationInsert): Promise<Application>;
4302
4302
  get(tenant_id: string, id: string): Promise<Application | null>;
4303
4303
  remove(tenant_id: string, id: string): Promise<boolean>;
4304
- list(tenant_id: string, params: ListParams): Promise<{
4304
+ list(tenant_id: string, params?: ListParams): Promise<{
4305
4305
  applications: Application[];
4306
4306
  totals?: Totals;
4307
4307
  }>;
@@ -4315,14 +4315,14 @@ export interface ConnectionsAdapter {
4315
4315
  remove(tenant_id: string, connection_id: string): Promise<boolean>;
4316
4316
  get(tenant_id: string, connection_id: string): Promise<Connection | null>;
4317
4317
  update(tenant_id: string, connection_id: string, params: Partial<ConnectionInsert>): Promise<boolean>;
4318
- list(tenant_id: string, params: ListParams): Promise<ListConnectionsResponse>;
4318
+ list(tenant_id: string, params?: ListParams): Promise<ListConnectionsResponse>;
4319
4319
  }
4320
4320
  export interface ListDomainsResponse extends Totals {
4321
4321
  domains: Domain[];
4322
4322
  }
4323
4323
  export interface DomainsAdapter {
4324
4324
  create(tenant_id: string, params: Domain): Promise<Domain>;
4325
- list(tenant_id: string, params: ListParams): Promise<ListDomainsResponse>;
4325
+ list(tenant_id: string, params?: ListParams): Promise<ListDomainsResponse>;
4326
4326
  }
4327
4327
  export interface KeysAdapter {
4328
4328
  create: (key: SigningKey) => Promise<void>;
@@ -4341,7 +4341,7 @@ export interface HooksAdapter {
4341
4341
  remove: (tenant_id: string, hook_id: string) => Promise<boolean>;
4342
4342
  get: (tenant_id: string, hook_id: string) => Promise<Hook | null>;
4343
4343
  update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
4344
- list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
4344
+ list: (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
4345
4345
  }
4346
4346
  export interface ClientsAdapter {
4347
4347
  get: (id: string) => Promise<Client | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authhero",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -25,7 +25,7 @@
25
25
  "vite": "^5.4.11",
26
26
  "vite-plugin-dts": "^4.3.0",
27
27
  "vitest": "^2.1.5",
28
- "@authhero/kysely-adapter": "^0.27.0"
28
+ "@authhero/kysely-adapter": "^0.28.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "@peculiar/x509": "^1.12.3",
@@ -36,7 +36,7 @@
36
36
  "nanoid": "^5.0.8",
37
37
  "oslo": "^1.2.1",
38
38
  "zxcvbn": "^4.4.2",
39
- "@authhero/adapter-interfaces": "^0.35.0"
39
+ "@authhero/adapter-interfaces": "^0.36.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@hono/zod-openapi": "^0.18.0",