@authhero/drizzle 0.52.6 → 0.53.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.
@@ -1048,7 +1048,16 @@ var Lt = class {
1048
1048
  acr_values_supported: _("acr_values_supported"),
1049
1049
  mtls: _("mtls"),
1050
1050
  pushed_authorization_requests_supported: g("pushed_authorization_requests_supported"),
1051
- authorization_response_iss_parameter_supported: g("authorization_response_iss_parameter_supported")
1051
+ authorization_response_iss_parameter_supported: g("authorization_response_iss_parameter_supported"),
1052
+ deployment_type: _("deployment_type", { length: 16 }).notNull().default("shared"),
1053
+ provisioning_state: _("provisioning_state", { length: 16 }).notNull().default("ready"),
1054
+ provisioning_error: _("provisioning_error"),
1055
+ provisioning_state_changed_at: _("provisioning_state_changed_at", { length: 35 }),
1056
+ bundle_configuration: _("bundle_configuration", { length: 64 }),
1057
+ worker_version: _("worker_version", { length: 64 }),
1058
+ worker_script_name: _("worker_script_name", { length: 255 }),
1059
+ storage_kind: _("storage_kind", { length: 32 }),
1060
+ d1_database_id: _("d1_database_id", { length: 64 })
1052
1061
  }), x = v("users", {
1053
1062
  user_id: _("user_id", { length: 255 }).notNull(),
1054
1063
  tenant_id: _("tenant_id", { length: 191 }).notNull().references(() => b.id, { onDelete: "cascade" }),
@@ -14949,7 +14958,7 @@ J({
14949
14958
  "HS384",
14950
14959
  "HS512"
14951
14960
  ]),
14952
- kid: H(),
14961
+ kid: H().optional(),
14953
14962
  kty: X([
14954
14963
  "RSA",
14955
14964
  "EC",
@@ -15371,13 +15380,13 @@ J({
15371
15380
  });
15372
15381
  var Ey = J({
15373
15382
  id: H().optional(),
15374
- audience: H(),
15383
+ audience: H().optional(),
15375
15384
  friendly_name: H(),
15376
15385
  picture_url: H().optional(),
15377
15386
  support_email: H().optional(),
15378
15387
  support_url: H().optional(),
15379
- sender_email: H().email(),
15380
- sender_name: H(),
15388
+ sender_email: H().email().optional(),
15389
+ sender_name: H().optional(),
15381
15390
  session_lifetime: W().optional(),
15382
15391
  idle_session_lifetime: W().optional(),
15383
15392
  ephemeral_session_lifetime: W().optional(),
@@ -15469,6 +15478,23 @@ var Ey = J({
15469
15478
  mtls: J({ enable_endpoint_aliases: G().optional() }).nullish(),
15470
15479
  pushed_authorization_requests_supported: G().optional(),
15471
15480
  authorization_response_iss_parameter_supported: G().optional(),
15481
+ deployment_type: X(["shared", "wfp"]).default("shared").optional(),
15482
+ provisioning_state: X([
15483
+ "pending",
15484
+ "ready",
15485
+ "failed"
15486
+ ]).default("ready").optional(),
15487
+ provisioning_error: H().max(2048).optional(),
15488
+ provisioning_state_changed_at: H().optional(),
15489
+ bundle_configuration: H().max(64).optional(),
15490
+ worker_version: H().max(64).optional(),
15491
+ worker_script_name: H().max(255).optional(),
15492
+ storage_kind: X([
15493
+ "own_d1",
15494
+ "existing_d1",
15495
+ "shared_planetscale"
15496
+ ]).optional(),
15497
+ d1_database_id: H().max(64).optional(),
15472
15498
  attack_protection: Cy.optional(),
15473
15499
  mfa: J({
15474
15500
  policy: X(["never", "always"]).default("never").optional(),
@@ -0,0 +1,9 @@
1
+ ALTER TABLE `tenants` ADD `deployment_type` text(16) DEFAULT 'shared' NOT NULL;--> statement-breakpoint
2
+ ALTER TABLE `tenants` ADD `provisioning_state` text(16) DEFAULT 'ready' NOT NULL;--> statement-breakpoint
3
+ ALTER TABLE `tenants` ADD `provisioning_error` text;--> statement-breakpoint
4
+ ALTER TABLE `tenants` ADD `provisioning_state_changed_at` text(35);--> statement-breakpoint
5
+ ALTER TABLE `tenants` ADD `bundle_configuration` text(64);--> statement-breakpoint
6
+ ALTER TABLE `tenants` ADD `worker_version` text(64);--> statement-breakpoint
7
+ ALTER TABLE `tenants` ADD `worker_script_name` text(255);--> statement-breakpoint
8
+ ALTER TABLE `tenants` ADD `storage_kind` text(32);--> statement-breakpoint
9
+ ALTER TABLE `tenants` ADD `d1_database_id` text(64);
@@ -43,6 +43,13 @@
43
43
  "when": 1779200000000,
44
44
  "tag": "0005_proxy_routes_v2",
45
45
  "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1780000000000,
51
+ "tag": "0006_tenant_deployment_fields",
52
+ "breakpoints": true
46
53
  }
47
54
  ]
48
55
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.52.6",
14
+ "version": "0.53.1",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "drizzle-orm": "^0.44.2",
36
36
  "nanoid": "^5.1.11",
37
- "@authhero/adapter-interfaces": "2.12.0",
38
- "@authhero/proxy": "0.4.2"
37
+ "@authhero/adapter-interfaces": "2.13.1",
38
+ "@authhero/proxy": "0.4.4"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@hono/zod-openapi": "^1.4.0",
@@ -53,4 +53,19 @@ export const tenants = sqliteTable("tenants", {
53
53
  authorization_response_iss_parameter_supported: integer(
54
54
  "authorization_response_iss_parameter_supported",
55
55
  ),
56
+ deployment_type: text("deployment_type", { length: 16 })
57
+ .notNull()
58
+ .default("shared"),
59
+ provisioning_state: text("provisioning_state", { length: 16 })
60
+ .notNull()
61
+ .default("ready"),
62
+ provisioning_error: text("provisioning_error"),
63
+ provisioning_state_changed_at: text("provisioning_state_changed_at", {
64
+ length: 35,
65
+ }),
66
+ bundle_configuration: text("bundle_configuration", { length: 64 }),
67
+ worker_version: text("worker_version", { length: 64 }),
68
+ worker_script_name: text("worker_script_name", { length: 255 }),
69
+ storage_kind: text("storage_kind", { length: 32 }),
70
+ d1_database_id: text("d1_database_id", { length: 64 }),
56
71
  });