authhero 0.194.0 → 0.196.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.
@@ -11513,9 +11513,9 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
11513
11513
  token_endpoint_auth_signing_alg_values_supported: string[];
11514
11514
  }>;
11515
11515
  export interface ListParams {
11516
- page: number;
11517
- per_page: number;
11518
- include_totals: boolean;
11516
+ page?: number;
11517
+ per_page?: number;
11518
+ include_totals?: boolean;
11519
11519
  q?: string;
11520
11520
  sort?: {
11521
11521
  sort_by: string;
@@ -12252,11 +12252,18 @@ export declare const signingKeySchema: z.ZodObject<{
12252
12252
  current_until: z.ZodOptional<z.ZodString>;
12253
12253
  revoked: z.ZodOptional<z.ZodBoolean>;
12254
12254
  revoked_at: z.ZodOptional<z.ZodString>;
12255
+ connection: z.ZodOptional<z.ZodString>;
12256
+ type: z.ZodEnum<[
12257
+ "jwt_signing",
12258
+ "saml_encryption"
12259
+ ]>;
12255
12260
  }, "strip", z.ZodTypeAny, {
12261
+ type: "jwt_signing" | "saml_encryption";
12256
12262
  kid: string;
12257
12263
  cert: string;
12258
12264
  fingerprint: string;
12259
12265
  thumbprint: string;
12266
+ connection?: string | undefined;
12260
12267
  revoked_at?: string | undefined;
12261
12268
  pkcs7?: string | undefined;
12262
12269
  current?: boolean | undefined;
@@ -12266,10 +12273,12 @@ export declare const signingKeySchema: z.ZodObject<{
12266
12273
  current_until?: string | undefined;
12267
12274
  revoked?: boolean | undefined;
12268
12275
  }, {
12276
+ type: "jwt_signing" | "saml_encryption";
12269
12277
  kid: string;
12270
12278
  cert: string;
12271
12279
  fingerprint: string;
12272
12280
  thumbprint: string;
12281
+ connection?: string | undefined;
12273
12282
  revoked_at?: string | undefined;
12274
12283
  pkcs7?: string | undefined;
12275
12284
  current?: boolean | undefined;
@@ -14623,9 +14632,12 @@ export interface CustomDomainsAdapter {
14623
14632
  remove: (tenant_id: string, id: string) => Promise<boolean>;
14624
14633
  update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
14625
14634
  }
14635
+ export interface ListKeysResponse extends Totals {
14636
+ signingKeys: SigningKey[];
14637
+ }
14626
14638
  export interface KeysAdapter {
14627
14639
  create: (key: SigningKey) => Promise<void>;
14628
- list: () => Promise<SigningKey[]>;
14640
+ list: (params?: ListParams) => Promise<ListKeysResponse>;
14629
14641
  update: (kid: string, key: Partial<Omit<SigningKey, "kid">>) => Promise<boolean>;
14630
14642
  }
14631
14643
  export interface BrandingAdapter {
@@ -14706,12 +14718,8 @@ export interface UserPermissionsAdapter {
14706
14718
  remove(tenant_id: string, user_id: string, permissions: Pick<UserPermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
14707
14719
  list(tenant_id: string, user_id: string, params?: ListParams): Promise<UserPermissionWithDetailsList>;
14708
14720
  }
14709
- export interface ListRolesResponse {
14721
+ export interface ListRolesResponse extends Totals {
14710
14722
  roles: Role[];
14711
- totals?: Totals;
14712
- start: number;
14713
- limit: number;
14714
- length: number;
14715
14723
  }
14716
14724
  export interface RolesAdapter {
14717
14725
  create(tenantId: string, role: RoleInsert): Promise<Role>;
@@ -17964,10 +17972,12 @@ export declare function init(config: AuthHeroConfig): {
17964
17972
  };
17965
17973
  };
17966
17974
  output: {
17975
+ type: "jwt_signing" | "saml_encryption";
17967
17976
  kid: string;
17968
17977
  cert: string;
17969
17978
  fingerprint: string;
17970
17979
  thumbprint: string;
17980
+ connection?: string | undefined | undefined;
17971
17981
  revoked_at?: string | undefined | undefined;
17972
17982
  pkcs7?: string | undefined | undefined;
17973
17983
  current?: boolean | undefined | undefined;
@@ -17994,10 +18004,12 @@ export declare function init(config: AuthHeroConfig): {
17994
18004
  };
17995
18005
  };
17996
18006
  output: {
18007
+ type: "jwt_signing" | "saml_encryption";
17997
18008
  kid: string;
17998
18009
  cert: string;
17999
18010
  fingerprint: string;
18000
18011
  thumbprint: string;
18012
+ connection?: string | undefined | undefined;
18001
18013
  revoked_at?: string | undefined | undefined;
18002
18014
  pkcs7?: string | undefined | undefined;
18003
18015
  current?: boolean | undefined | undefined;