@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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +8 -2
- package/dist/adapter-interfaces.mjs +313 -310
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/CustomDomains.d.ts +2 -1
- package/dist/types/types/CustomDomain.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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>;
|