@opengeni/api-router 3.0.1-canary.3 → 3.0.1-canary.4

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/app.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  withDefaultEnabledCapabilityMcpTools,
25
25
  workflowIdForSession,
26
26
  workspaceActorContextExempt
27
- } from "./chunk-ICAFSKJY.js";
27
+ } from "./chunk-RSMCZIG2.js";
28
28
  export {
29
29
  API_MAX_REQUEST_BODY_BYTES,
30
30
  allowedCorsOrigin,
@@ -1,3 +1,5 @@
1
+ export declare function runManagedSignInConnect<T>(intentId: string, action: () => T): T;
2
+ export declare function currentManagedSignInConnectIntent(): string | undefined;
1
3
  export declare function runManagedAuthAttempt<T>(transactionId: string, providerId: "credential" | "google" | "github", action: () => T): T;
2
4
  export declare function runManagedAuthProvider<T>(providerId: "credential" | "google" | "github", action: () => T): T;
3
5
  export declare function runManagedAuthDiscardedProviderSession<T>(action: () => T): T;
@@ -1,4 +1,6 @@
1
1
  import type { ManagedAuthSessionAdapter } from "@opengeni/core/managed-auth-session-sets";
2
2
  import type { Database } from "@opengeni/db";
3
3
  import type { ManagedAuth } from "@opengeni/core";
4
+ /** Server-only proof for a product-owned endpoint; never returned to a browser. */
5
+ export declare function managedAuthSelectedProofHeaders(auth: ManagedAuth, token: string): Promise<Headers>;
4
6
  export declare function createBetterAuthSessionAdapter(auth: ManagedAuth, db: Database): ManagedAuthSessionAdapter;
@@ -15,6 +15,7 @@ export declare function managedAuthUserCreateAdmission(settings: Pick<Settings,
15
15
  } | false | undefined;
16
16
  /** Keep Better Auth password policy and storage format behind this boundary. */
17
17
  export declare function hashManagedAuthPassword(password: string): Promise<string>;
18
+ export declare function verifyManagedAuthPassword(password: string, hash: string): Promise<boolean>;
18
19
  export declare function createManagedAuth(settings: Settings, db: Database, managedEmailTransport: ManagedEmailTransport): ManagedAuth | null;
19
20
  export type ManagedAuthOAuthAttempt = {
20
21
  transactionId: string;
@@ -0,0 +1,4 @@
1
+ import type { ManagedEmailTransport } from "@opengeni/core";
2
+ import type { Database } from "@opengeni/db";
3
+ export declare function deliverManagedSignInNotification(db: Database, transport: ManagedEmailTransport, operationId?: string | null): Promise<"sent" | "failed" | "outcome_unknown">;
4
+ export declare function startManagedSignInNotificationDelivery(db: Database, transport: ManagedEmailTransport): void;