@midsummer-ai/sdk 0.1.0-staging.3608 → 0.1.0-staging.3620
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/client.d.mts +23 -0
- package/auth/client.mjs +45 -0
- package/auth/contract.d.mts +24 -0
- package/auth/contract.mjs +498 -0
- package/auth/files.d.mts +28 -0
- package/auth/files.mjs +231 -0
- package/auth/index.d.mts +199 -0
- package/auth/index.mjs +3 -0
- package/auth/key.d.mts +19 -0
- package/auth/key.mjs +28 -0
- package/auth/mail.d.mts +31 -0
- package/auth/mail.mjs +138 -0
- package/auth/password.d.mts +2 -0
- package/auth/password.mjs +2 -0
- package/auth/stand-in.d.mts +15 -0
- package/auth/stand-in.mjs +41 -0
- package/auth-BM6vB3XD.mjs +754 -0
- package/billing/index.d.mts +6 -3
- package/billing/index.mjs +2 -1
- package/client-BshDU1b2.d.mts +155 -0
- package/{connection-C_JSWUrt.mjs → client-C7QtAX5u.mjs} +668 -3
- package/database/client.d.mts +1 -153
- package/database/client.mjs +1 -665
- package/database/react.d.mts +1 -1
- package/database/stand-in.d.mts +1 -1
- package/package.json +62 -1
- package/{store-CsBhnabU.mjs → store-dsVD9VnM.mjs} +1 -1
- package/store-gCz6XVaG.d.mts +15 -0
- package/{tabs-gHJHkhm2.mjs → tabs-C85sXTwS.mjs} +1 -1
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.3620",
|
|
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.",
|
|
@@ -186,6 +186,38 @@
|
|
|
186
186
|
"./images": {
|
|
187
187
|
"types": "./images.d.mts",
|
|
188
188
|
"import": "./images.mjs"
|
|
189
|
+
},
|
|
190
|
+
"./auth": {
|
|
191
|
+
"types": "./auth/index.d.mts",
|
|
192
|
+
"import": "./auth/index.mjs"
|
|
193
|
+
},
|
|
194
|
+
"./auth/stand-in": {
|
|
195
|
+
"types": "./auth/stand-in.d.mts",
|
|
196
|
+
"import": "./auth/stand-in.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./auth/contract": {
|
|
199
|
+
"types": "./auth/contract.d.mts",
|
|
200
|
+
"import": "./auth/contract.mjs"
|
|
201
|
+
},
|
|
202
|
+
"./auth/files": {
|
|
203
|
+
"types": "./auth/files.d.mts",
|
|
204
|
+
"import": "./auth/files.mjs"
|
|
205
|
+
},
|
|
206
|
+
"./auth/mail": {
|
|
207
|
+
"types": "./auth/mail.d.mts",
|
|
208
|
+
"import": "./auth/mail.mjs"
|
|
209
|
+
},
|
|
210
|
+
"./auth/password": {
|
|
211
|
+
"types": "./auth/password.d.mts",
|
|
212
|
+
"import": "./auth/password.mjs"
|
|
213
|
+
},
|
|
214
|
+
"./auth/client": {
|
|
215
|
+
"types": "./auth/client.d.mts",
|
|
216
|
+
"import": "./auth/client.mjs"
|
|
217
|
+
},
|
|
218
|
+
"./auth/key": {
|
|
219
|
+
"types": "./auth/key.d.mts",
|
|
220
|
+
"import": "./auth/key.mjs"
|
|
189
221
|
}
|
|
190
222
|
},
|
|
191
223
|
"types": "./index.d.mts",
|
|
@@ -319,6 +351,30 @@
|
|
|
319
351
|
],
|
|
320
352
|
"images": [
|
|
321
353
|
"./images.d.mts"
|
|
354
|
+
],
|
|
355
|
+
"auth": [
|
|
356
|
+
"./auth/index.d.mts"
|
|
357
|
+
],
|
|
358
|
+
"auth/stand-in": [
|
|
359
|
+
"./auth/stand-in.d.mts"
|
|
360
|
+
],
|
|
361
|
+
"auth/contract": [
|
|
362
|
+
"./auth/contract.d.mts"
|
|
363
|
+
],
|
|
364
|
+
"auth/files": [
|
|
365
|
+
"./auth/files.d.mts"
|
|
366
|
+
],
|
|
367
|
+
"auth/mail": [
|
|
368
|
+
"./auth/mail.d.mts"
|
|
369
|
+
],
|
|
370
|
+
"auth/password": [
|
|
371
|
+
"./auth/password.d.mts"
|
|
372
|
+
],
|
|
373
|
+
"auth/client": [
|
|
374
|
+
"./auth/client.d.mts"
|
|
375
|
+
],
|
|
376
|
+
"auth/key": [
|
|
377
|
+
"./auth/key.d.mts"
|
|
322
378
|
]
|
|
323
379
|
}
|
|
324
380
|
},
|
|
@@ -329,7 +385,12 @@
|
|
|
329
385
|
"LICENSE"
|
|
330
386
|
],
|
|
331
387
|
"dependencies": {
|
|
388
|
+
"@better-auth/api-key": "1.7.18",
|
|
389
|
+
"@better-auth/mcp": "1.7.18",
|
|
390
|
+
"@better-auth/oauth-provider": "1.7.18",
|
|
391
|
+
"@better-auth/passkey": "1.7.18",
|
|
332
392
|
"acorn": "8.15.0",
|
|
393
|
+
"better-auth": "1.7.18",
|
|
333
394
|
"zod": "4.1.12"
|
|
334
395
|
},
|
|
335
396
|
"peerDependencies": {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as Database } from "./client-BshDU1b2.mjs";
|
|
2
|
+
import { createAdapterFactory } from "better-auth/adapters";
|
|
3
|
+
import { BetterAuthOptions } from "better-auth";
|
|
4
|
+
//#region src/auth/store.d.ts
|
|
5
|
+
/** What better-auth's `database` option takes: an adapter made for its options. */
|
|
6
|
+
type AuthStore = (options: BetterAuthOptions) => ReturnType<ReturnType<typeof createAdapterFactory>>;
|
|
7
|
+
/**
|
|
8
|
+
* The Project's Database as sign-in's store: each call one of `db/auth.ts`'s functions, as the app's server.
|
|
9
|
+
* `database` gives the connection a call goes over; it is asked for one each call, so it can hand out the
|
|
10
|
+
* request's own. A function that isn't there means `db/auth.ts` was never deployed: the error says to run
|
|
11
|
+
* `midsummer auth init`.
|
|
12
|
+
*/
|
|
13
|
+
declare function databaseStore(database: () => Promise<Database>): AuthStore;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { databaseStore as n, AuthStore as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as Connection } from "./client-C7QtAX5u.mjs";
|
|
2
2
|
//#region src/database/client/tabs.mjs
|
|
3
3
|
/** Argument index of the options that take a `tag` (a tab tags its own writes: the same tag after a handover). */
|
|
4
4
|
const TAGGED = {
|