@authhero/adapter-interfaces 3.0.0 → 3.1.1

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.
@@ -73,6 +73,26 @@ export declare const customDomainSchema: z.ZodObject<{
73
73
  }, z.core.$strip>;
74
74
  export default customDomainSchema;
75
75
  export type CustomDomain = z.infer<typeof customDomainSchema>;
76
+ /**
77
+ * Body schema for PATCH /custom-domains/{id}. Matches Auth0: only the
78
+ * mutable fields are accepted (tls_policy, custom_client_ip_header), plus
79
+ * authhero's domain_metadata extension used to drive SSL method / CA on
80
+ * the underlying CDN adapter.
81
+ */
82
+ export declare const customDomainUpdateSchema: z.ZodObject<{
83
+ tls_policy: z.ZodOptional<z.ZodEnum<{
84
+ recommended: "recommended";
85
+ }>>;
86
+ custom_client_ip_header: z.ZodOptional<z.ZodEnum<{
87
+ null: "null";
88
+ "true-client-ip": "true-client-ip";
89
+ "cf-connecting-ip": "cf-connecting-ip";
90
+ "x-forwarded-for": "x-forwarded-for";
91
+ "x-azure-clientip": "x-azure-clientip";
92
+ }>>;
93
+ domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
94
+ }, z.core.$strict>;
95
+ export type CustomDomainUpdate = z.infer<typeof customDomainUpdateSchema>;
76
96
  export declare const customDomainWithTenantIdSchema: z.ZodObject<{
77
97
  domain: z.ZodString;
78
98
  type: z.ZodEnum<{
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "3.0.0",
14
+ "version": "3.1.1",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
@@ -28,6 +28,7 @@
28
28
  "devDependencies": {
29
29
  "@hono/zod-openapi": "^1.4.0",
30
30
  "@types/node": "^22.19.19",
31
+ "rollup": "^4.54.0",
31
32
  "rollup-plugin-dts": "^6.4.1",
32
33
  "typescript": "^5.6.3",
33
34
  "vite": "^8.0.14"