@teamscala/service-boot 0.23.530 → 0.23.532

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/package.json CHANGED
@@ -8,8 +8,12 @@
8
8
  "@orpc/openapi": "*",
9
9
  "@orpc/server": "*",
10
10
  "@teamscala/agreement-generation": "*",
11
+ "@teamscala/agreement-render": "*",
11
12
  "@teamscala/auth": "*",
13
+ "@teamscala/auth-channel-setup": "*",
14
+ "@teamscala/auth-factory": "*",
12
15
  "@teamscala/cache": "*",
16
+ "@teamscala/content-gate-token": "*",
13
17
  "@teamscala/db": "*",
14
18
  "@teamscala/db-validation": "*",
15
19
  "@teamscala/document-signing": "*",
@@ -291,5 +295,5 @@
291
295
  "repository": "https://github.com/teamgbg/service-boot",
292
296
  "sideEffects": false,
293
297
  "type": "module",
294
- "version": "0.23.530"
298
+ "version": "0.23.532"
295
299
  }
@@ -7,9 +7,9 @@ import type { Hono } from "hono";
7
7
  import { getAppLogger } from "@teamscala/logger/app-loggers";
8
8
  import { signAgreementAccessToken } from "@teamscala/document-signing/agreement-access-token";
9
9
  import { parseCookie } from "./content-gate/parse-cookie.ts";
10
- import { verifyAccessToken } from "@teamscala/agreement-generation/content-gate-token";
10
+ import { verifyAccessToken } from "@teamscala/content-gate-token";
11
11
  import { agTtlMs } from "./gate-ttls.ts";
12
- import { createAgreementFromProposal } from "@teamscala/agreement-generation/create-agreement-from-proposal";
12
+ import { createAgreementFromProposal } from "@teamscala/agreement-render/create-agreement-from-proposal";
13
13
  import { getCookieDomain } from "@teamscala/db/registry/cookie-domain";
14
14
 
15
15
  const PROP_COOKIE = "prop_token";
@@ -5,7 +5,7 @@
5
5
 
6
6
  import type { Hono } from "hono";
7
7
  import { getAppLogger } from "@teamscala/logger/app-loggers";
8
- import { verifyAccessToken } from "@teamscala/agreement-generation/content-gate-token";
8
+ import { verifyAccessToken } from "@teamscala/content-gate-token";
9
9
  import { propTtlMs } from "./gate-ttls.ts";
10
10
 
11
11
  const PROP_COOKIE = "prop_token";
@@ -20,7 +20,7 @@ export async function signOut(context: SignOutContext): Promise<SignOutResult> {
20
20
  // call, so a per-request registration would rebuild the whole better-auth
21
21
  // module graph on each sign-out. getAuth() throws if no factory is
22
22
  // registered, which the authed middleware has already excluded.
23
- const { getAuth } = await import("@teamscala/auth/auth-registry.ts");
23
+ const { getAuth } = await import("@teamscala/auth-factory/auth-registry.ts");
24
24
  const auth = await getAuth();
25
25
  const headers = context?.headers ?? new Headers();
26
26
 
package/src/auth-gate.ts CHANGED
@@ -75,9 +75,9 @@ export async function attachAuthGate(
75
75
  // never pulled from a singleton inside a per-request handler.
76
76
  const { prisma: gatePrisma } = initGateDependencies();
77
77
  const { registerAuthFactory, getAuth } = await import(
78
- "@teamscala/auth/auth-registry.ts"
78
+ "@teamscala/auth-factory/auth-registry.ts"
79
79
  );
80
- const { createAuth } = await import("@teamscala/auth/auth-factory.ts");
80
+ const { createAuth } = await import("@teamscala/auth-factory/auth-factory.ts");
81
81
  registerAuthFactory(createAuth);
82
82
 
83
83
  // Bridge the SAME factory into @teamscala/orpc's configure surface so the ORPC
@@ -3,7 +3,7 @@
3
3
  * @status handwritten
4
4
  */
5
5
 
6
- import type { GateSegmentation } from "@teamscala/agreement-generation/content-gate-token";
6
+ import type { GateSegmentation } from "@teamscala/content-gate-token";
7
7
 
8
8
  type Resolved = Record<string, unknown>;
9
9
 
@@ -3,7 +3,7 @@
3
3
  * @status handwritten
4
4
  */
5
5
 
6
- import { getManagedBaseDomain } from "@teamscala/auth/auth-env-resolution";
6
+ import { getManagedBaseDomain } from "@teamscala/auth-channel-setup/auth-env-resolution";
7
7
  import { isTrustedAuthOrigin } from "@teamscala/auth/is-trusted-auth-origin";
8
8
  import { createCache } from "@teamscala/cache/create-cache";
9
9
  import { csrf } from "hono/csrf";
package/src/gpt-gate.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import type { AccessConfig, ContentGateConfig } from "./content-gate/config-types.ts";
7
- import { signAccessToken, verifyAccessTokenIdentity } from "@teamscala/agreement-generation/content-gate-token";
7
+ import { signAccessToken, verifyAccessTokenIdentity } from "@teamscala/content-gate-token";
8
8
  import { gptTtlMs } from "./gate-ttls.ts";
9
9
 
10
10
  const GPT_COOKIE = "gpt_token";
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import type { AccessConfig, ContentGateConfig } from "./content-gate/config-types.ts";
7
- import { signAccessToken, verifyAccessToken } from "@teamscala/agreement-generation/content-gate-token";
7
+ import { signAccessToken, verifyAccessToken } from "@teamscala/content-gate-token";
8
8
  import { resolveProposalAuthorizedEmails } from "./proposal-authorized-emails.ts";
9
9
  import { propTtlMs } from "./gate-ttls.ts";
10
10
  import { getAppLogger } from "@teamscala/logger/app-loggers";
package/src/quiz-gate.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import type { AccessConfig, ContentGateConfig } from "./content-gate/config-types.ts";
7
- import { signAccessToken, verifyAccessTokenIdentity } from "@teamscala/agreement-generation/content-gate-token";
7
+ import { signAccessToken, verifyAccessTokenIdentity } from "@teamscala/content-gate-token";
8
8
  import { quizTtlMs } from "./gate-ttls.ts";
9
9
 
10
10
  const QUIZ_COOKIE = "quiz_token";