@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.
@@ -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>;
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.0",
14
+ "version": "2.10.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],