@authhero/kysely-adapter 10.36.0 → 10.37.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.
@@ -3545,9 +3545,9 @@ declare const hookSchema: z.ZodUnion<[
3545
3545
  ]>;
3546
3546
  export type Hook = z.infer<typeof hookSchema>;
3547
3547
  export interface ListParams {
3548
- page: number;
3549
- per_page: number;
3550
- include_totals: boolean;
3548
+ page?: number;
3549
+ per_page?: number;
3550
+ include_totals?: boolean;
3551
3551
  q?: string;
3552
3552
  sort?: {
3553
3553
  sort_by: string;
@@ -4261,11 +4261,18 @@ declare const signingKeySchema: z.ZodObject<{
4261
4261
  current_until: z.ZodOptional<z.ZodString>;
4262
4262
  revoked: z.ZodOptional<z.ZodBoolean>;
4263
4263
  revoked_at: z.ZodOptional<z.ZodString>;
4264
+ connection: z.ZodOptional<z.ZodString>;
4265
+ type: z.ZodEnum<[
4266
+ "jwt_signing",
4267
+ "saml_encryption"
4268
+ ]>;
4264
4269
  }, "strip", z.ZodTypeAny, {
4270
+ type: "jwt_signing" | "saml_encryption";
4265
4271
  kid: string;
4266
4272
  cert: string;
4267
4273
  fingerprint: string;
4268
4274
  thumbprint: string;
4275
+ connection?: string | undefined;
4269
4276
  revoked_at?: string | undefined;
4270
4277
  pkcs7?: string | undefined;
4271
4278
  current?: boolean | undefined;
@@ -4275,10 +4282,12 @@ declare const signingKeySchema: z.ZodObject<{
4275
4282
  current_until?: string | undefined;
4276
4283
  revoked?: boolean | undefined;
4277
4284
  }, {
4285
+ type: "jwt_signing" | "saml_encryption";
4278
4286
  kid: string;
4279
4287
  cert: string;
4280
4288
  fingerprint: string;
4281
4289
  thumbprint: string;
4290
+ connection?: string | undefined;
4282
4291
  revoked_at?: string | undefined;
4283
4292
  pkcs7?: string | undefined;
4284
4293
  current?: boolean | undefined;
@@ -5926,9 +5935,12 @@ export interface CustomDomainsAdapter {
5926
5935
  remove: (tenant_id: string, id: string) => Promise<boolean>;
5927
5936
  update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
5928
5937
  }
5938
+ export interface ListKeysResponse extends Totals {
5939
+ signingKeys: SigningKey[];
5940
+ }
5929
5941
  export interface KeysAdapter {
5930
5942
  create: (key: SigningKey) => Promise<void>;
5931
- list: () => Promise<SigningKey[]>;
5943
+ list: (params?: ListParams) => Promise<ListKeysResponse>;
5932
5944
  update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
5933
5945
  }
5934
5946
  export interface BrandingAdapter {
@@ -6009,12 +6021,8 @@ export interface UserPermissionsAdapter {
6009
6021
  remove(tenant_id: string, user_id: string, permissions: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
6010
6022
  list(tenant_id: string, user_id: string, params?: ListParams): Promise<UserPermissionWithDetailsList>;
6011
6023
  }
6012
- export interface ListRolesResponse {
6024
+ export interface ListRolesResponse extends Totals {
6013
6025
  roles: Role[];
6014
- totals?: Totals;
6015
- start: number;
6016
- limit: number;
6017
- length: number;
6018
6026
  }
6019
6027
  export interface RolesAdapter {
6020
6028
  create(tenantId: string, role: RoleInsert): Promise<Role>;