@authhero/adapter-interfaces 2.12.0 → 2.13.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 +51 -2
- package/dist/adapter-interfaces.mjs +18 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/adapters/Tenants.d.ts +9 -0
- package/dist/types/types/JWKS.d.ts +2 -2
- package/dist/types/types/Tenant.d.ts +40 -0
- package/package.json +1 -1
|
@@ -8,6 +8,15 @@ export interface CreateTenantParams {
|
|
|
8
8
|
id?: string;
|
|
9
9
|
session_lifetime?: number;
|
|
10
10
|
idle_session_lifetime?: number;
|
|
11
|
+
deployment_type?: "shared" | "wfp";
|
|
12
|
+
provisioning_state?: "pending" | "ready" | "failed";
|
|
13
|
+
provisioning_error?: string;
|
|
14
|
+
provisioning_state_changed_at?: string;
|
|
15
|
+
bundle_configuration?: string;
|
|
16
|
+
worker_version?: string;
|
|
17
|
+
worker_script_name?: string;
|
|
18
|
+
storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale";
|
|
19
|
+
d1_database_id?: string;
|
|
11
20
|
}
|
|
12
21
|
export interface TenantsDataAdapter {
|
|
13
22
|
create(params: CreateTenantParams): Promise<Tenant>;
|
|
@@ -11,7 +11,7 @@ export declare const jwksSchema: z.ZodObject<{
|
|
|
11
11
|
HS384: "HS384";
|
|
12
12
|
HS512: "HS512";
|
|
13
13
|
}>;
|
|
14
|
-
kid: z.ZodString
|
|
14
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
15
15
|
kty: z.ZodEnum<{
|
|
16
16
|
RSA: "RSA";
|
|
17
17
|
EC: "EC";
|
|
@@ -42,7 +42,7 @@ export declare const jwksKeySchema: z.ZodObject<{
|
|
|
42
42
|
HS384: "HS384";
|
|
43
43
|
HS512: "HS512";
|
|
44
44
|
}>;
|
|
45
|
-
kid: z.ZodString
|
|
45
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
46
46
|
kty: z.ZodEnum<{
|
|
47
47
|
RSA: "RSA";
|
|
48
48
|
EC: "EC";
|
|
@@ -110,6 +110,26 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
110
110
|
}, z.core.$strip>>>;
|
|
111
111
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
112
112
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
deployment_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
shared: "shared";
|
|
115
|
+
wfp: "wfp";
|
|
116
|
+
}>>>;
|
|
117
|
+
provisioning_state: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
pending: "pending";
|
|
119
|
+
ready: "ready";
|
|
120
|
+
failed: "failed";
|
|
121
|
+
}>>>;
|
|
122
|
+
provisioning_error: z.ZodOptional<z.ZodString>;
|
|
123
|
+
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
124
|
+
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
125
|
+
worker_version: z.ZodOptional<z.ZodString>;
|
|
126
|
+
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
127
|
+
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
own_d1: "own_d1";
|
|
129
|
+
existing_d1: "existing_d1";
|
|
130
|
+
shared_planetscale: "shared_planetscale";
|
|
131
|
+
}>>;
|
|
132
|
+
d1_database_id: z.ZodOptional<z.ZodString>;
|
|
113
133
|
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
114
134
|
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
115
135
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -294,6 +314,26 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
294
314
|
}, z.core.$strip>>>;
|
|
295
315
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
296
316
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
deployment_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
318
|
+
shared: "shared";
|
|
319
|
+
wfp: "wfp";
|
|
320
|
+
}>>>;
|
|
321
|
+
provisioning_state: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
322
|
+
pending: "pending";
|
|
323
|
+
ready: "ready";
|
|
324
|
+
failed: "failed";
|
|
325
|
+
}>>>;
|
|
326
|
+
provisioning_error: z.ZodOptional<z.ZodString>;
|
|
327
|
+
provisioning_state_changed_at: z.ZodOptional<z.ZodString>;
|
|
328
|
+
bundle_configuration: z.ZodOptional<z.ZodString>;
|
|
329
|
+
worker_version: z.ZodOptional<z.ZodString>;
|
|
330
|
+
worker_script_name: z.ZodOptional<z.ZodString>;
|
|
331
|
+
storage_kind: z.ZodOptional<z.ZodEnum<{
|
|
332
|
+
own_d1: "own_d1";
|
|
333
|
+
existing_d1: "existing_d1";
|
|
334
|
+
shared_planetscale: "shared_planetscale";
|
|
335
|
+
}>>;
|
|
336
|
+
d1_database_id: z.ZodOptional<z.ZodString>;
|
|
297
337
|
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
298
338
|
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
299
339
|
enabled: z.ZodOptional<z.ZodBoolean>;
|