@authhero/adapter-interfaces 2.12.0 → 2.13.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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +60 -11
- package/dist/adapter-interfaces.mjs +21 -4
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Tenants.d.ts +12 -3
- package/dist/types/types/JWKS.d.ts +2 -2
- package/dist/types/types/Tenant.d.ts +46 -6
- package/package.json +1 -1
|
@@ -7886,7 +7886,7 @@ declare const jwksSchema: z.ZodObject<{
|
|
|
7886
7886
|
HS384: "HS384";
|
|
7887
7887
|
HS512: "HS512";
|
|
7888
7888
|
}>;
|
|
7889
|
-
kid: z.ZodString
|
|
7889
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
7890
7890
|
kty: z.ZodEnum<{
|
|
7891
7891
|
RSA: "RSA";
|
|
7892
7892
|
EC: "EC";
|
|
@@ -7917,7 +7917,7 @@ declare const jwksKeySchema: z.ZodObject<{
|
|
|
7917
7917
|
HS384: "HS384";
|
|
7918
7918
|
HS512: "HS512";
|
|
7919
7919
|
}>;
|
|
7920
|
-
kid: z.ZodString
|
|
7920
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
7921
7921
|
kty: z.ZodEnum<{
|
|
7922
7922
|
RSA: "RSA";
|
|
7923
7923
|
EC: "EC";
|
|
@@ -8677,13 +8677,13 @@ type SigningKey = z.infer<typeof signingKeySchema>;
|
|
|
8677
8677
|
|
|
8678
8678
|
declare const tenantInsertSchema: z.ZodObject<{
|
|
8679
8679
|
id: z.ZodOptional<z.ZodString>;
|
|
8680
|
-
audience: z.ZodString
|
|
8680
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
8681
8681
|
friendly_name: z.ZodString;
|
|
8682
8682
|
picture_url: z.ZodOptional<z.ZodString>;
|
|
8683
8683
|
support_email: z.ZodOptional<z.ZodString>;
|
|
8684
8684
|
support_url: z.ZodOptional<z.ZodString>;
|
|
8685
|
-
sender_email: z.ZodString
|
|
8686
|
-
sender_name: z.ZodString
|
|
8685
|
+
sender_email: z.ZodOptional<z.ZodString>;
|
|
8686
|
+
sender_name: z.ZodOptional<z.ZodString>;
|
|
8687
8687
|
session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
8688
8688
|
idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
8689
8689
|
ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8786,6 +8786,26 @@ declare const tenantInsertSchema: z.ZodObject<{
|
|
|
8786
8786
|
}, z.core.$strip>>>;
|
|
8787
8787
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
8788
8788
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
8789
|
+
deployment_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8790
|
+
shared: "shared";
|
|
8791
|
+
wfp: "wfp";
|
|
8792
|
+
}>>>;
|
|
8793
|
+
provisioning_state: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8794
|
+
pending: "pending";
|
|
8795
|
+
ready: "ready";
|
|
8796
|
+
failed: "failed";
|
|
8797
|
+
}>>>;
|
|
8798
|
+
provisioning_error: z.ZodOptional<z.ZodString>;
|
|
8799
|
+
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
8800
|
+
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
8801
|
+
worker_version: z.ZodOptional<z.ZodString>;
|
|
8802
|
+
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
8803
|
+
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
8804
|
+
own_d1: "own_d1";
|
|
8805
|
+
existing_d1: "existing_d1";
|
|
8806
|
+
shared_planetscale: "shared_planetscale";
|
|
8807
|
+
}>>;
|
|
8808
|
+
d1_database_id: z.ZodOptional<z.ZodString>;
|
|
8789
8809
|
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
8790
8810
|
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
8791
8811
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8861,13 +8881,13 @@ declare const tenantInsertSchema: z.ZodObject<{
|
|
|
8861
8881
|
declare const tenantSchema: z.ZodObject<{
|
|
8862
8882
|
created_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
8863
8883
|
updated_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
|
|
8864
|
-
audience: z.ZodString
|
|
8884
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
8865
8885
|
friendly_name: z.ZodString;
|
|
8866
8886
|
picture_url: z.ZodOptional<z.ZodString>;
|
|
8867
8887
|
support_email: z.ZodOptional<z.ZodString>;
|
|
8868
8888
|
support_url: z.ZodOptional<z.ZodString>;
|
|
8869
|
-
sender_email: z.ZodString
|
|
8870
|
-
sender_name: z.ZodString
|
|
8889
|
+
sender_email: z.ZodOptional<z.ZodString>;
|
|
8890
|
+
sender_name: z.ZodOptional<z.ZodString>;
|
|
8871
8891
|
session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
8872
8892
|
idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
8873
8893
|
ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8970,6 +8990,26 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
8970
8990
|
}, z.core.$strip>>>;
|
|
8971
8991
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
8972
8992
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
8993
|
+
deployment_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8994
|
+
shared: "shared";
|
|
8995
|
+
wfp: "wfp";
|
|
8996
|
+
}>>>;
|
|
8997
|
+
provisioning_state: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8998
|
+
pending: "pending";
|
|
8999
|
+
ready: "ready";
|
|
9000
|
+
failed: "failed";
|
|
9001
|
+
}>>>;
|
|
9002
|
+
provisioning_error: z.ZodOptional<z.ZodString>;
|
|
9003
|
+
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
9004
|
+
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
9005
|
+
worker_version: z.ZodOptional<z.ZodString>;
|
|
9006
|
+
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
9007
|
+
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
9008
|
+
own_d1: "own_d1";
|
|
9009
|
+
existing_d1: "existing_d1";
|
|
9010
|
+
shared_planetscale: "shared_planetscale";
|
|
9011
|
+
}>>;
|
|
9012
|
+
d1_database_id: z.ZodOptional<z.ZodString>;
|
|
8973
9013
|
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
8974
9014
|
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
8975
9015
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10687,12 +10727,21 @@ interface SessionsAdapter {
|
|
|
10687
10727
|
|
|
10688
10728
|
interface CreateTenantParams {
|
|
10689
10729
|
friendly_name: string;
|
|
10690
|
-
audience
|
|
10691
|
-
sender_name
|
|
10692
|
-
sender_email
|
|
10730
|
+
audience?: string;
|
|
10731
|
+
sender_name?: string;
|
|
10732
|
+
sender_email?: string;
|
|
10693
10733
|
id?: string;
|
|
10694
10734
|
session_lifetime?: number;
|
|
10695
10735
|
idle_session_lifetime?: number;
|
|
10736
|
+
deployment_type?: "shared" | "wfp";
|
|
10737
|
+
provisioning_state?: "pending" | "ready" | "failed";
|
|
10738
|
+
provisioning_error?: string;
|
|
10739
|
+
provisioning_state_changed_at?: string;
|
|
10740
|
+
bundle_configuration?: string;
|
|
10741
|
+
worker_version?: string;
|
|
10742
|
+
worker_script_name?: string;
|
|
10743
|
+
storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale";
|
|
10744
|
+
d1_database_id?: string;
|
|
10696
10745
|
}
|
|
10697
10746
|
interface TenantsDataAdapter {
|
|
10698
10747
|
create(params: CreateTenantParams): Promise<Tenant>;
|
|
@@ -1358,7 +1358,7 @@ var Kt = e.enum([
|
|
|
1358
1358
|
"HS384",
|
|
1359
1359
|
"HS512"
|
|
1360
1360
|
]),
|
|
1361
|
-
kid: e.string(),
|
|
1361
|
+
kid: e.string().optional(),
|
|
1362
1362
|
kty: e.enum([
|
|
1363
1363
|
"RSA",
|
|
1364
1364
|
"EC",
|
|
@@ -1932,13 +1932,13 @@ var Dn = e.object({
|
|
|
1932
1932
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
1933
1933
|
}), Yn = e.object({
|
|
1934
1934
|
id: e.string().optional(),
|
|
1935
|
-
audience: e.string(),
|
|
1935
|
+
audience: e.string().optional(),
|
|
1936
1936
|
friendly_name: e.string(),
|
|
1937
1937
|
picture_url: e.string().optional(),
|
|
1938
1938
|
support_email: e.string().optional(),
|
|
1939
1939
|
support_url: e.string().optional(),
|
|
1940
|
-
sender_email: e.string().email(),
|
|
1941
|
-
sender_name: e.string(),
|
|
1940
|
+
sender_email: e.string().email().optional(),
|
|
1941
|
+
sender_name: e.string().optional(),
|
|
1942
1942
|
session_lifetime: e.number().optional(),
|
|
1943
1943
|
idle_session_lifetime: e.number().optional(),
|
|
1944
1944
|
ephemeral_session_lifetime: e.number().optional(),
|
|
@@ -2030,6 +2030,23 @@ var Dn = e.object({
|
|
|
2030
2030
|
mtls: e.object({ enable_endpoint_aliases: e.boolean().optional() }).nullish(),
|
|
2031
2031
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
2032
2032
|
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
2033
|
+
deployment_type: e.enum(["shared", "wfp"]).default("shared").optional(),
|
|
2034
|
+
provisioning_state: e.enum([
|
|
2035
|
+
"pending",
|
|
2036
|
+
"ready",
|
|
2037
|
+
"failed"
|
|
2038
|
+
]).default("ready").optional(),
|
|
2039
|
+
provisioning_error: e.string().max(2048).optional(),
|
|
2040
|
+
provisioning_state_changed_at: e.string().optional(),
|
|
2041
|
+
bundle_configuration: e.string().max(64).optional(),
|
|
2042
|
+
worker_version: e.string().max(64).optional(),
|
|
2043
|
+
worker_script_name: e.string().max(255).optional(),
|
|
2044
|
+
storage_kind: e.enum([
|
|
2045
|
+
"own_d1",
|
|
2046
|
+
"existing_d1",
|
|
2047
|
+
"shared_planetscale"
|
|
2048
|
+
]).optional(),
|
|
2049
|
+
d1_database_id: e.string().max(64).optional(),
|
|
2033
2050
|
attack_protection: Hn.optional(),
|
|
2034
2051
|
mfa: e.object({
|
|
2035
2052
|
policy: e.enum(["never", "always"]).default("never").optional(),
|