@midsummer-ai/sdk 0.1.0-staging.4435 → 0.1.0-staging.4441
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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AuthError } from "../auth-
|
|
1
|
+
import { c as AuthError } from "../auth-C7yU9QWZ.mjs";
|
|
2
2
|
import { d as SETTINGS_TTL_MS, n as LIMIT_WINDOW_MS, t as LIMITS } from "../guard-Br3K8CVx.mjs";
|
|
3
3
|
import { IMPERSONATION_TOKEN_MS, startImpersonation } from "./impersonate.mjs";
|
|
4
4
|
//#region src/auth/contract.ts
|
package/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as auth, c as AuthError, i as SESSION_CACHE_S, n as AUTH_ROUTES, o as createAuth, r as IMPERSONATION_S, s as databaseStore, t as AUTH_PATH } from "../auth-
|
|
1
|
+
import { a as auth, c as AuthError, i as SESSION_CACHE_S, n as AUTH_ROUTES, o as createAuth, r as IMPERSONATION_S, s as databaseStore, t as AUTH_PATH } from "../auth-C7yU9QWZ.mjs";
|
|
2
2
|
import { checkSignInMail, signInWords } from "./mail.mjs";
|
|
3
3
|
import { n as authFiles } from "../files-ZySaprII.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 { t as DATABASE_TOKEN_PATH, u as signedInDatabase } from "../client-
|
|
1
|
+
import { t as DATABASE_TOKEN_PATH, u as signedInDatabase } from "../client-5gJ-6h4y.mjs";
|
|
2
2
|
import { DatabaseProvider } from "../database/react.mjs";
|
|
3
3
|
import { a as WORDS, c as deviceOf, i as CAPTCHA_WIDGETS, l as screenName, n as textOn, o as ago, t as authCss, u as setupKeyOf } from "../style-BJzVvUKV.mjs";
|
|
4
4
|
import { a as shapeAttributes, r as ICONS, t as qrPath } from "../qr-BySxqLW6.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as processEnv, i as platformApi, n as here } from "./here-C2jhTheQ.mjs";
|
|
2
2
|
import { DatabaseError } from "./database/errors.mjs";
|
|
3
|
-
import { d as userToken, o as connect, s as databaseUrl } from "./client-
|
|
3
|
+
import { d as userToken, o as connect, s as databaseUrl } from "./client-5gJ-6h4y.mjs";
|
|
4
4
|
import { sendSignInMail } from "./auth/mail.mjs";
|
|
5
5
|
import "./files-ZySaprII.mjs";
|
|
6
6
|
import { standIn } from "./auth/stand-in.mjs";
|
|
@@ -678,7 +678,7 @@ function bound(binding) {
|
|
|
678
678
|
if (handle) return { handle };
|
|
679
679
|
if (env.MIDSUMMER_DATABASE_URL) return {
|
|
680
680
|
dev: env.MIDSUMMER_DATABASE_URL,
|
|
681
|
-
token: env.MIDSUMMER_DATABASE_TOKEN
|
|
681
|
+
token: env.MIDSUMMER_DATABASE_TOKEN ?? devToken("site:dev")
|
|
682
682
|
};
|
|
683
683
|
const workload = env.MIDSUMMER_IDENTITY_REQUEST_TOKEN, tokenUrl = env.MIDSUMMER_IDENTITY_TOKEN_URL;
|
|
684
684
|
if (!workload || !tokenUrl) throw new DatabaseError("denied", "This code runs outside Midsummer, so no environment binds a database for it. Connect with a database key, connect({ key }), or run it under midsummer dev.");
|
package/database/client.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DatabaseError } from "./errors.mjs";
|
|
2
|
-
import { a as clerk, c as oidc, d as userToken, i as auth0, l as profileClaims, n as DatabaseClient, o as connect, r as PROFILE_MOST, s as databaseUrl, t as DATABASE_TOKEN_PATH, u as signedInDatabase } from "../client-
|
|
2
|
+
import { a as clerk, c as oidc, d as userToken, i as auth0, l as profileClaims, n as DatabaseClient, o as connect, r as PROFILE_MOST, s as databaseUrl, t as DATABASE_TOKEN_PATH, u as signedInDatabase } from "../client-5gJ-6h4y.mjs";
|
|
3
3
|
export { DATABASE_TOKEN_PATH, DatabaseClient, DatabaseError, PROFILE_MOST, auth0, clerk, connect, databaseUrl, oidc, profileClaims, signedInDatabase, userToken };
|
package/here-C2jhTheQ.mjs
CHANGED
|
@@ -12,7 +12,7 @@ function processEnv() {
|
|
|
12
12
|
* This package's version: `0.0.0-dev` here, and in a published package the version it was published at, which the
|
|
13
13
|
* release writes in its place as it stages the package (`stampSdk` in `scripts/release/packages.ts`).
|
|
14
14
|
*/
|
|
15
|
-
const SDK_VERSION = "0.1.0-staging.
|
|
15
|
+
const SDK_VERSION = "0.1.0-staging.4441";
|
|
16
16
|
/**
|
|
17
17
|
* The header that tells Midsummer which client made each of this package's calls: `Midsummer-Client: sdk/<version>
|
|
18
18
|
* <part>`, `part` the product whose client it is (`database`, `storage`, `queues`, ...), so the platform counts which
|
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.4441",
|
|
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.",
|