@midsummer-ai/sdk 0.1.0-staging.3760 → 0.1.0-staging.3766
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/auth/contract.d.mts +2 -2
- package/auth/contract.mjs +1 -1
- package/auth/index.d.mts +2 -2
- package/auth/index.mjs +1 -1
- package/auth/react.mjs +1 -1
- package/auth/stand-in.d.mts +1 -1
- package/{auth-DBNwtk0C.mjs → auth-B2k7Nwjx.mjs} +1 -1
- package/{client-COAOdeE4.mjs → client-D0gC0c1_.mjs} +1 -1
- package/{client-CJ8z954t.d.mts → client-DMUFrqzg.d.mts} +2 -2
- package/database/client.d.mts +1 -1
- package/database/client.mjs +1 -1
- package/database/react.d.mts +1 -1
- package/{index-C48Pgux_.d.mts → index-PL-07Sie.d.mts} +1 -1
- package/package.json +1 -1
- package/{store-CRXbsXpS.d.mts → store-DXHi6LCj.d.mts} +1 -1
package/auth/contract.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthStore } from "../store-
|
|
1
|
+
import { n as AuthStore } from "../store-DXHi6LCj.mjs";
|
|
2
2
|
import { SignInMail } from "./mail.mjs";
|
|
3
|
-
import { a as Auth } from "../index-
|
|
3
|
+
import { a as Auth } from "../index-PL-07Sie.mjs";
|
|
4
4
|
//#region src/auth/contract.d.ts
|
|
5
5
|
interface AuthHarness {
|
|
6
6
|
/** Sign-in over a store with no users, made with `scopes: CONTRACT_SCOPES`. */
|
package/auth/contract.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as LIMITS, l as LIMIT_WINDOW_MS, r as AuthError, u as SETTINGS_TTL_MS } from "../auth-
|
|
1
|
+
import { c as LIMITS, l as LIMIT_WINDOW_MS, r as AuthError, u as SETTINGS_TTL_MS } from "../auth-B2k7Nwjx.mjs";
|
|
2
2
|
import { IMPERSONATION_TOKEN_MS, startImpersonation } from "./impersonate.mjs";
|
|
3
3
|
//#region src/auth/contract.ts
|
|
4
4
|
/**
|
package/auth/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AuthStore, r as databaseStore, t as AuthCall } from "../store-
|
|
1
|
+
import { n as AuthStore, r as databaseStore, t as AuthCall } from "../store-DXHi6LCj.mjs";
|
|
2
2
|
import { i as SignUpPolicy, n as CaptchaProvider, r as PublicSettings, t as AuthSettings } from "../settings-Dz3irtlu.mjs";
|
|
3
3
|
import { SignInMail, SignInMailKind, checkSignInMail, signInWords } from "./mail.mjs";
|
|
4
|
-
import { _ as AuthEvent, a as Auth, b as EventSend, c as AuthOptions, d as IMPERSONATION_S, f as SESSION_CACHE_S, g as createAuth, h as auth, i as AgentKey, l as AuthUser, m as SignedInAgent, n as AUTH_ROUTES, o as AuthError, p as SignedIn, r as AgentGrant, s as AuthErrorCode, t as AUTH_PATH, u as AuthUserRecord, v as AuthEventBatch, y as AuthEventType } from "../index-
|
|
4
|
+
import { _ as AuthEvent, a as Auth, b as EventSend, c as AuthOptions, d as IMPERSONATION_S, f as SESSION_CACHE_S, g as createAuth, h as auth, i as AgentKey, l as AuthUser, m as SignedInAgent, n as AUTH_ROUTES, o as AuthError, p as SignedIn, r as AgentGrant, s as AuthErrorCode, t as AUTH_PATH, u as AuthUserRecord, v as AuthEventBatch, y as AuthEventType } from "../index-PL-07Sie.mjs";
|
|
5
5
|
import { i as authFiles } from "../files-B553U-d6.mjs";
|
|
6
6
|
export { AUTH_PATH, AUTH_ROUTES, AgentGrant, AgentKey, Auth, type AuthCall, AuthError, AuthErrorCode, type AuthEvent, type AuthEventBatch, type AuthEventType, AuthOptions, type AuthSettings, type AuthStore, AuthUser, AuthUserRecord, type CaptchaProvider, type EventSend, IMPERSONATION_S, type PublicSettings, SESSION_CACHE_S, type SignInMail, type SignInMailKind, type SignUpPolicy, SignedIn, SignedInAgent, auth, authFiles, checkSignInMail, createAuth, databaseStore, signInWords };
|
package/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SESSION_CACHE_S, d as databaseStore, i as IMPERSONATION_S, n as AUTH_ROUTES, o as auth, r as AuthError, s as createAuth, t as AUTH_PATH } from "../auth-
|
|
1
|
+
import { a as SESSION_CACHE_S, d as databaseStore, i as IMPERSONATION_S, n as AUTH_ROUTES, o as auth, r as AuthError, s as createAuth, t as AUTH_PATH } from "../auth-B2k7Nwjx.mjs";
|
|
2
2
|
import { checkSignInMail, signInWords } from "./mail.mjs";
|
|
3
3
|
import { n as authFiles } from "../files-DhPeWwcT.mjs";
|
|
4
4
|
export { AUTH_PATH, AUTH_ROUTES, AuthError, IMPERSONATION_S, SESSION_CACHE_S, auth, authFiles, checkSignInMail, createAuth, databaseStore, signInWords };
|
package/auth/react.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as signedInDatabase, t as DATABASE_TOKEN_PATH } from "../client-
|
|
1
|
+
import { c as signedInDatabase, t as DATABASE_TOKEN_PATH } from "../client-D0gC0c1_.mjs";
|
|
2
2
|
import { DatabaseProvider } from "../database/react.mjs";
|
|
3
3
|
import { a as WORDS, c as deviceOf, i as CAPTCHA_WIDGETS, l as setupKeyOf, o as ago, r as AUTH_CSS, t as qrPath } from "../qr-Br1sOBmT.mjs";
|
|
4
4
|
import { AuthClientError, authClient } from "./client.mjs";
|
package/auth/stand-in.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as processEnv, r as platformApi, t as here } from "./here-BKjizr_N.mjs";
|
|
2
|
-
import { a as connect, l as userToken, o as databaseUrl } from "./client-
|
|
2
|
+
import { a as connect, l as userToken, o as databaseUrl } from "./client-D0gC0c1_.mjs";
|
|
3
3
|
import { sendSignInMail } from "./auth/mail.mjs";
|
|
4
4
|
import "./files-DhPeWwcT.mjs";
|
|
5
5
|
import { standIn } from "./auth/stand-in.mjs";
|
|
@@ -434,7 +434,7 @@ const remaking = /* @__PURE__ */ new Map();
|
|
|
434
434
|
/**
|
|
435
435
|
* A Deployment's server's calls to its Database, sent straight to the Database's door (`<door>/call`) with the token
|
|
436
436
|
* its request handed in: stateless HTTPS, no hop through Midsummer and no socket. The calls made in one turn go
|
|
437
|
-
* together in one request (`DOOR_BATCH` at most), each
|
|
437
|
+
* together in one request (`DOOR_BATCH` at most), each result matched by its `i`, and a mutation is tagged as on a socket,
|
|
438
438
|
* so one sent again applies once. A call that gets no answer, or a 5xx, is sent again twice at most; a 401 renews the
|
|
439
439
|
* token once. A token with under `DOOR_RENEW_MS` left is renewed before it is sent: from the door the request being
|
|
440
440
|
* served was handed, else the handle's `token`. The door answering that it has no Database by its id (404
|
|
@@ -73,11 +73,11 @@ interface BoundDatabases {
|
|
|
73
73
|
*/
|
|
74
74
|
door?(binding: string): DatabaseToken | undefined;
|
|
75
75
|
/**
|
|
76
|
-
* Has the Database bound as `binding` made again after its door
|
|
76
|
+
* Has the Database bound as `binding` made again after its door returned that it has none for a call sent at `since`
|
|
77
77
|
* (as after a move, its rows gone): true when that call should be sent once more.
|
|
78
78
|
*/
|
|
79
79
|
remake?(binding: string, since: number): Promise<boolean>;
|
|
80
|
-
/** Adds an entry to the request's
|
|
80
|
+
/** Adds an entry to the `Server-Timing` of the request's response, where Midsummer turned that on for its own diagnostics. */
|
|
81
81
|
note?(entry: string): void;
|
|
82
82
|
}
|
|
83
83
|
/**
|
package/database/client.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as DatabaseErrorCode, t as DatabaseError } from "../errors-CnQduDOt.mjs";
|
|
2
|
-
import { _ as oidc, a as DATABASE_TOKEN_PATH, c as DatabaseToken, d as ReturnsOf, f as SignedInDatabase, g as databaseUrl, h as connect, i as ConnectOptions, l as FetchToken, m as clerk, n as AuthState, o as Database, p as auth0, r as BoundDatabases, s as DatabaseClient, t as ArgsOf, u as Reference, v as signedInDatabase, y as userToken } from "../client-
|
|
2
|
+
import { _ as oidc, a as DATABASE_TOKEN_PATH, c as DatabaseToken, d as ReturnsOf, f as SignedInDatabase, g as databaseUrl, h as connect, i as ConnectOptions, l as FetchToken, m as clerk, n as AuthState, o as Database, p as auth0, r as BoundDatabases, s as DatabaseClient, t as ArgsOf, u as Reference, v as signedInDatabase, y as userToken } from "../client-DMUFrqzg.mjs";
|
|
3
3
|
export { ArgsOf, AuthState, BoundDatabases, ConnectOptions, DATABASE_TOKEN_PATH, Database, DatabaseClient, DatabaseError, type DatabaseErrorCode, DatabaseToken, FetchToken, Reference, ReturnsOf, SignedInDatabase, auth0, clerk, connect, databaseUrl, oidc, signedInDatabase, userToken };
|
package/database/client.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DatabaseError } from "./errors.mjs";
|
|
2
|
-
import { a as connect, c as signedInDatabase, i as clerk, l as userToken, n as DatabaseClient, o as databaseUrl, r as auth0, s as oidc, t as DATABASE_TOKEN_PATH } from "../client-
|
|
2
|
+
import { a as connect, c as signedInDatabase, i as clerk, l as userToken, n as DatabaseClient, o as databaseUrl, r as auth0, s as oidc, t as DATABASE_TOKEN_PATH } from "../client-D0gC0c1_.mjs";
|
|
3
3
|
export { DATABASE_TOKEN_PATH, DatabaseClient, DatabaseError, auth0, clerk, connect, databaseUrl, oidc, signedInDatabase, userToken };
|
package/database/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as DatabaseError } from "../errors-CnQduDOt.mjs";
|
|
2
|
-
import { o as Database, u as Reference } from "../client-
|
|
2
|
+
import { o as Database, u as Reference } from "../client-DMUFrqzg.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
//#region src/database/react.d.ts
|
|
5
5
|
type ArgsOf<F> = F extends Reference<any, infer A, any> ? A : never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AuthStore } from "./store-
|
|
1
|
+
import { n as AuthStore } from "./store-DXHi6LCj.mjs";
|
|
2
2
|
import { n as CaptchaProvider, t as AuthSettings } from "./settings-Dz3irtlu.mjs";
|
|
3
3
|
import { SignInMail } from "./auth/mail.mjs";
|
|
4
4
|
//#region src/auth/events.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midsummer-ai/sdk",
|
|
3
|
-
"version": "0.1.0-staging.
|
|
3
|
+
"version": "0.1.0-staging.3766",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Midsummer's handles for an app's code: its Database, Storage, Queues, Vector DB, AI, Email and Agents, with stand-ins for tests.",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Database } from "./client-
|
|
1
|
+
import { o as Database } from "./client-DMUFrqzg.mjs";
|
|
2
2
|
//#region src/auth/store.d.ts
|
|
3
3
|
/** One of `db/auth.ts`'s functions. */
|
|
4
4
|
type AuthCall = "create" | "findOne" | "findMany" | "count" | "update" | "updateMany" | "upsert" | "deleteMany" | "consume" | "increment" | "page";
|