@authhero/adapter-interfaces 2.9.0 → 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 +10 -2
- package/dist/adapter-interfaces.mjs +315 -311
- 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/dist/types/types/Tenant.d.ts +2 -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>;
|
|
@@ -66,6 +66,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
66
66
|
trust_azure_adfs_email_verified_connection_property: z.ZodOptional<z.ZodBoolean>;
|
|
67
67
|
use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
|
|
68
68
|
inherit_global_permissions_in_organizations: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
restrict_undefined_scopes: z.ZodOptional<z.ZodBoolean>;
|
|
69
70
|
}, z.core.$strip>>;
|
|
70
71
|
sandbox_version: z.ZodOptional<z.ZodString>;
|
|
71
72
|
legacy_sandbox_version: z.ZodOptional<z.ZodString>;
|
|
@@ -249,6 +250,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
249
250
|
trust_azure_adfs_email_verified_connection_property: z.ZodOptional<z.ZodBoolean>;
|
|
250
251
|
use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
|
|
251
252
|
inherit_global_permissions_in_organizations: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
restrict_undefined_scopes: z.ZodOptional<z.ZodBoolean>;
|
|
252
254
|
}, z.core.$strip>>;
|
|
253
255
|
sandbox_version: z.ZodOptional<z.ZodString>;
|
|
254
256
|
legacy_sandbox_version: z.ZodOptional<z.ZodString>;
|