@midsummer-ai/sdk 0.1.0-staging.4096 → 0.1.0-staging.4102

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/mail.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as processEnv, n as here } from "../here-C2jhTheQ.mjs";
2
- import { l as email, t as EmailError } from "../email-Bp45mjUS.mjs";
2
+ import { l as email, t as EmailError } from "../email-Be9CHaQl.mjs";
3
3
  //#region src/auth/mail.ts
4
4
  /**
5
5
  * The mail sign-in sends: a code, a sign-in link, an email check, a password reset, an invitation, a sign-in from
package/client.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as FRAMES_PATH, c as serveSigned, l as signedHttp, o as SOCKET_PATH, s as client } from "./src-CZw5kkUg.mjs";
1
+ import { a as FRAMES_PATH, c as serveSigned, l as signedHttp, o as SOCKET_PATH, s as client } from "./src-C1ZmZ4oB.mjs";
2
2
  export { FRAMES_PATH, SOCKET_PATH, client, serveSigned, signedHttp };
package/contract.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as StorageError } from "./errors-B1tO_wdm.mjs";
2
- import "./src-CZw5kkUg.mjs";
2
+ import "./src-C1ZmZ4oB.mjs";
3
3
  //#region src/contract.ts
4
4
  /**
5
5
  * Storage's contract: what every engine promises, as cases any test runner can run. The Stand-in
@@ -1,4 +1,4 @@
1
- import { r as storage } from "../src-CZw5kkUg.mjs";
1
+ import { r as storage } from "../src-C1ZmZ4oB.mjs";
2
2
  import { standIn } from "../stand-in.mjs";
3
3
  import { _ as shapeError, a as tagBytes, b as valueAt, f as indexFields, g as shapeAt, i as keyBytes, o as untagBytes, v as tableCode } from "../bytes-C2pcyl9u.mjs";
4
4
  import { A as comparePrefix, M as indexTuple, O as valueKey, S as nextCron, T as readLimited, _ as isFunction, a as Refusal, b as limits, i as NotFoundError, j as documentBytes, k as compareKey, l as fetchOver, o as TooLarge, r as InsufficientError, y as isRouter } from "../server-Drjni3-F.mjs";
package/email/client.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { C as serveMessages, S as serveBound, b as boundEmail, x as client, y as MESSAGES_PATH } from "../email-Bp45mjUS.mjs";
1
+ import { C as serveMessages, S as serveBound, b as boundEmail, x as client, y as MESSAGES_PATH } from "../email-Be9CHaQl.mjs";
2
2
  export { MESSAGES_PATH, boundEmail, client, serveBound, serveMessages };
@@ -1,4 +1,4 @@
1
- import { t as EmailError } from "../email-Bp45mjUS.mjs";
1
+ import { t as EmailError } from "../email-Be9CHaQl.mjs";
2
2
  //#region src/email/contract.ts
3
3
  /**
4
4
  * Email's contract: what every engine promises, as cases any test runner can run. The Stand-in runs
package/email/inbox.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as inbox, d as INBOX_HEADER, f as MAX_REPLY, g as checkReply, h as checkPage, m as boundInbox, p as MAX_THREADS, v as serveInbox } from "../email-Bp45mjUS.mjs";
1
+ import { _ as inbox, d as INBOX_HEADER, f as MAX_REPLY, g as checkReply, h as checkPage, m as boundInbox, p as MAX_THREADS, v as serveInbox } from "../email-Be9CHaQl.mjs";
2
2
  export { INBOX_HEADER, MAX_REPLY, MAX_THREADS, boundInbox, checkPage, checkReply, inbox, serveInbox };
package/email/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as inbox, a as MAX_MESSAGE_BYTES, c as checkMessage, d as INBOX_HEADER, i as MAX_BATCH, l as email, n as MAX_ATTACHMENTS, o as MAX_RECIPIENTS, p as MAX_THREADS, r as MAX_ATTACHMENT_BYTES, s as addressOf, t as EmailError, u as verifyWebhook } from "../email-Bp45mjUS.mjs";
1
+ import { _ as inbox, a as MAX_MESSAGE_BYTES, c as checkMessage, d as INBOX_HEADER, i as MAX_BATCH, l as email, n as MAX_ATTACHMENTS, o as MAX_RECIPIENTS, p as MAX_THREADS, r as MAX_ATTACHMENT_BYTES, s as addressOf, t as EmailError, u as verifyWebhook } from "../email-Be9CHaQl.mjs";
2
2
  export { EmailError, INBOX_HEADER, MAX_ATTACHMENTS, MAX_ATTACHMENT_BYTES, MAX_BATCH, MAX_MESSAGE_BYTES, MAX_RECIPIENTS, MAX_THREADS, addressOf, checkMessage, email, inbox, verifyWebhook };
package/email/smtp.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { l as email, t as EmailError, x as client } from "../email-Bp45mjUS.mjs";
1
+ import { l as email, t as EmailError, x as client } from "../email-Be9CHaQl.mjs";
2
2
  import { createServer } from "node:net";
3
3
  import { createServer as createServer$1 } from "node:tls";
4
4
  //#region src/email/smtp.ts
@@ -1,4 +1,4 @@
1
- import { s as addressOf, t as EmailError } from "../email-Bp45mjUS.mjs";
1
+ import { s as addressOf, t as EmailError } from "../email-Be9CHaQl.mjs";
2
2
  //#region src/email/stand-in.ts
3
3
  /**
4
4
  * Email's Stand-in: the Capability's behaviour in memory, for `midsummer dev` and tests. It sends
@@ -162,7 +162,7 @@ function isMessage(value) {
162
162
  //#endregion
163
163
  //#region src/email/inbox.ts
164
164
  /**
165
- * An inbox from a project's code: read the mail an inbox keeps, reply in its threads, and hear of each message as it
165
+ * An inbox from a project's code: read the mail an inbox keeps, reply in its threads, and get each message as it
166
166
  * arrives. The inbox is one the environment binds under a name (`midsummer env binding set acme/web support --kind
167
167
  * inbox --resource support`), so the code holds no key, and it is kept apart from sending: `email()` sends from the
168
168
  * sending domains the environment binds, `inbox()` reads the mail an inbox receives and replies to it.
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.4096";
15
+ const SDK_VERSION = "0.1.0-staging.4102";
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/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as StorageError } from "./errors-B1tO_wdm.mjs";
2
- import { i as streamsOf, n as bucket, r as storage, t as WORKLOAD_PATH } from "./src-CZw5kkUg.mjs";
2
+ import { i as streamsOf, n as bucket, r as storage, t as WORKLOAD_PATH } from "./src-C1ZmZ4oB.mjs";
3
3
  export { StorageError, WORKLOAD_PATH, bucket, storage, streamsOf };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midsummer-ai/sdk",
3
- "version": "0.1.0-staging.4096",
3
+ "version": "0.1.0-staging.4102",
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.",
package/s3.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as StorageError } from "./errors-B1tO_wdm.mjs";
2
2
  import { a as checkMetadata, l as checkUploadId, m as sha256, n as checkBucketName, o as checkPartNumber, r as checkKey, s as checkParts } from "./names-Do0ot5Ha.mjs";
3
- import { i as streamsOf } from "./src-CZw5kkUg.mjs";
3
+ import { i as streamsOf } from "./src-C1ZmZ4oB.mjs";
4
4
  //#region src/s3.ts
5
5
  /**
6
6
  * Storage over the S3 protocol, so the tools and SDKs that speak it reach a Project's Buckets
package/socket.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { d as sameHex, f as sign, m as socketSession, p as socket, u as keyed } from "./src-CZw5kkUg.mjs";
1
+ import { d as sameHex, f as sign, m as socketSession, p as socket, u as keyed } from "./src-C1ZmZ4oB.mjs";
2
2
  export { keyed, sameHex, sign, socket, socketSession };
@@ -366,8 +366,9 @@ function serveSigned(options) {
366
366
  //#endregion
367
367
  //#region src/index.ts
368
368
  /**
369
- * The SDK: the one package your project's code imports to use Midsummer's products. This entry is
370
- * storage: your team's files, kept in buckets.
369
+ * The SDK: the one package your project's code imports to use Midsummer's products.
370
+ *
371
+ * Imported as `@midsummer-ai/sdk`, it gives you storage: your team's files, kept in buckets.
371
372
  *
372
373
  * In your deployment, in any framework, `bucket` reaches a bucket by the name the environment binds
373
374
  * it under (`midsummer env binding set`), so `avatars` can be one bucket in production and another