@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.
@@ -2,12 +2,21 @@ import { Tenant, Totals } from "../types";
2
2
  import { ListParams } from "../types/ListParams";
3
3
  export interface CreateTenantParams {
4
4
  friendly_name: string;
5
- audience: string;
6
- sender_name: string;
7
- sender_email: string;
5
+ audience?: string;
6
+ sender_name?: string;
7
+ sender_email?: string;
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";
@@ -1,13 +1,13 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  export declare const tenantInsertSchema: z.ZodObject<{
3
3
  id: z.ZodOptional<z.ZodString>;
4
- audience: z.ZodString;
4
+ audience: z.ZodOptional<z.ZodString>;
5
5
  friendly_name: z.ZodString;
6
6
  picture_url: z.ZodOptional<z.ZodString>;
7
7
  support_email: z.ZodOptional<z.ZodString>;
8
8
  support_url: z.ZodOptional<z.ZodString>;
9
- sender_email: z.ZodString;
10
- sender_name: z.ZodString;
9
+ sender_email: z.ZodOptional<z.ZodString>;
10
+ sender_name: z.ZodOptional<z.ZodString>;
11
11
  session_lifetime: z.ZodOptional<z.ZodNumber>;
12
12
  idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
13
13
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
@@ -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>;
@@ -185,13 +205,13 @@ export declare const tenantInsertSchema: z.ZodObject<{
185
205
  export declare const tenantSchema: z.ZodObject<{
186
206
  created_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
187
207
  updated_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
188
- audience: z.ZodString;
208
+ audience: z.ZodOptional<z.ZodString>;
189
209
  friendly_name: z.ZodString;
190
210
  picture_url: z.ZodOptional<z.ZodString>;
191
211
  support_email: z.ZodOptional<z.ZodString>;
192
212
  support_url: z.ZodOptional<z.ZodString>;
193
- sender_email: z.ZodString;
194
- sender_name: z.ZodString;
213
+ sender_email: z.ZodOptional<z.ZodString>;
214
+ sender_name: z.ZodOptional<z.ZodString>;
195
215
  session_lifetime: z.ZodOptional<z.ZodNumber>;
196
216
  idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
197
217
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
@@ -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>;
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.12.0",
14
+ "version": "2.13.1",
15
15
  "files": [
16
16
  "dist"
17
17
  ],