@authhero/adapter-interfaces 2.9.1 → 2.10.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.
@@ -1,4 +1,4 @@
1
- import { CustomDomain, CustomDomainInsert, CustomDomainWithTenantId } from "../types/CustomDomain";
1
+ import { CustomDomain, CustomDomainCertificateUpload, CustomDomainInsert, CustomDomainWithTenantId } from "../types/CustomDomain";
2
2
  export interface CustomDomainsAdapter {
3
3
  create: (tenant_id: string, custom_domain: CustomDomainInsert) => Promise<CustomDomain>;
4
4
  get: (tenant_id: string, id: string) => Promise<CustomDomain | null>;
@@ -6,4 +6,5 @@ export interface CustomDomainsAdapter {
6
6
  list: (tenant_id: string) => Promise<CustomDomain[]>;
7
7
  remove: (tenant_id: string, id: string) => Promise<boolean>;
8
8
  update: (tenant_id: string, id: string, custom_domain: Partial<CustomDomain>) => Promise<boolean>;
9
+ uploadCertificate?: (tenant_id: string, id: string, cert: CustomDomainCertificateUpload) => Promise<CustomDomain>;
9
10
  }
@@ -114,3 +114,8 @@ export declare const customDomainWithTenantIdSchema: z.ZodObject<{
114
114
  tenant_id: z.ZodString;
115
115
  }, z.core.$strip>;
116
116
  export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
117
+ export declare const customDomainCertificateUploadSchema: z.ZodObject<{
118
+ certificate: z.ZodString;
119
+ private_key: z.ZodString;
120
+ }, z.core.$strip>;
121
+ export type CustomDomainCertificateUpload = z.infer<typeof customDomainCertificateUploadSchema>;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "2.9.1",
14
+ "version": "2.10.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],