@midsummer-ai/sdk 0.1.0-staging.3892 → 0.1.0-staging.3895

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as EmailError } from "../index-m0wtx22n.mjs";
1
+ import { a as EmailError } from "../index-Bprm0lxl.mjs";
2
2
  //#region src/auth/mail.d.ts
3
3
  type SignInMailKind = "code" | "link" | "verify" | "reset" | "invite" | "device";
4
4
  /** One sign-in mail: whom to, which kind, the app's name, and its code or its address. */
@@ -1,4 +1,4 @@
1
- import { i as EmailEngine, m as SentMessage, n as CheckedMessage, o as EmailErrorCode, t as BatchResult } from "../index-m0wtx22n.mjs";
1
+ import { i as EmailEngine, m as SentMessage, n as CheckedMessage, o as EmailErrorCode, t as BatchResult } from "../index-Bprm0lxl.mjs";
2
2
  //#region src/email/client.d.ts
3
3
  declare const MESSAGES_PATH = "/email/messages";
4
4
  type Fetch = (url: string, init: RequestInit) => Promise<Response>;
@@ -1,4 +1,4 @@
1
- import { r as Email, x as Inbox } from "../index-m0wtx22n.mjs";
1
+ import { r as Email, x as Inbox } from "../index-Bprm0lxl.mjs";
2
2
  //#region src/email/contract.d.ts
3
3
  declare const CONTRACT_DOMAIN = "mail.acme.dev";
4
4
  declare const CONTRACT_SUPPRESSED = "suppressed@example.com";
package/email/inbox.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ReceivedMail, C as InboxEngine, D as InboxThreadWithMessages, E as InboxThread, F as inbox, I as serveInbox, M as boundInbox, N as checkPage, O as MAX_REPLY, P as checkReply, S as InboxCall, T as InboxReply, b as INBOX_HEADER, j as ThreadCursor, k as MAX_THREADS, w as InboxMessage, x as Inbox, y as BoundInboxAnswer } from "../index-m0wtx22n.mjs";
1
+ import { A as ReceivedMail, C as InboxEngine, D as InboxThreadWithMessages, E as InboxThread, F as inbox, I as serveInbox, M as boundInbox, N as checkPage, O as MAX_REPLY, P as checkReply, S as InboxCall, T as InboxReply, b as INBOX_HEADER, j as ThreadCursor, k as MAX_THREADS, w as InboxMessage, x as Inbox, y as BoundInboxAnswer } from "../index-Bprm0lxl.mjs";
2
2
  export { BoundInboxAnswer, INBOX_HEADER, Inbox, InboxCall, InboxEngine, InboxMessage, InboxReply, InboxThread, InboxThreadWithMessages, MAX_REPLY, MAX_THREADS, ReceivedMail, ThreadCursor, boundInbox, checkPage, checkReply, inbox, serveInbox };
package/email/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ReceivedMail, C as InboxEngine, D as InboxThreadWithMessages, E as InboxThread, F as inbox, T as InboxReply, _ as email, a as EmailError, b as INBOX_HEADER, c as MAX_ATTACHMENT_BYTES, d as MAX_RECIPIENTS, f as OutgoingAttachment, g as checkMessage, h as addressOf, i as EmailEngine, j as ThreadCursor, k as MAX_THREADS, l as MAX_BATCH, m as SentMessage, n as CheckedMessage, o as EmailErrorCode, p as OutgoingMessage, r as Email, s as MAX_ATTACHMENTS, t as BatchResult, u as MAX_MESSAGE_BYTES, v as verifyWebhook, w as InboxMessage, x as Inbox } from "../index-m0wtx22n.mjs";
1
+ import { A as ReceivedMail, C as InboxEngine, D as InboxThreadWithMessages, E as InboxThread, F as inbox, T as InboxReply, _ as email, a as EmailError, b as INBOX_HEADER, c as MAX_ATTACHMENT_BYTES, d as MAX_RECIPIENTS, f as OutgoingAttachment, g as checkMessage, h as addressOf, i as EmailEngine, j as ThreadCursor, k as MAX_THREADS, l as MAX_BATCH, m as SentMessage, n as CheckedMessage, o as EmailErrorCode, p as OutgoingMessage, r as Email, s as MAX_ATTACHMENTS, t as BatchResult, u as MAX_MESSAGE_BYTES, v as verifyWebhook, w as InboxMessage, x as Inbox } from "../index-Bprm0lxl.mjs";
2
2
  export { BatchResult, CheckedMessage, Email, EmailEngine, EmailError, EmailErrorCode, INBOX_HEADER, type Inbox, type InboxEngine, type InboxMessage, type InboxReply, type InboxThread, type InboxThreadWithMessages, MAX_ATTACHMENTS, MAX_ATTACHMENT_BYTES, MAX_BATCH, MAX_MESSAGE_BYTES, MAX_RECIPIENTS, MAX_THREADS, OutgoingAttachment, OutgoingMessage, type ReceivedMail, SentMessage, type ThreadCursor, addressOf, checkMessage, email, inbox, verifyWebhook };
package/email/smtp.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { m as SentMessage, n as CheckedMessage } from "../index-m0wtx22n.mjs";
1
+ import { m as SentMessage, n as CheckedMessage } from "../index-Bprm0lxl.mjs";
2
2
  //#region src/email/smtp.d.ts
3
3
  /** A `send` that hands each message to Email at `origin` (the API's), with the client's key. */
4
4
  declare function relayTo(origin: string, options?: {
@@ -1,4 +1,4 @@
1
- import { C as InboxEngine, i as EmailEngine, n as CheckedMessage, w as InboxMessage } from "../index-m0wtx22n.mjs";
1
+ import { C as InboxEngine, i as EmailEngine, n as CheckedMessage, w as InboxMessage } from "../index-Bprm0lxl.mjs";
2
2
  //#region src/email/stand-in.d.ts
3
3
  declare function standIn(options: {
4
4
  readonly domains: ReadonlyArray<string>;
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.3892";
15
+ const SDK_VERSION = "0.1.0-staging.3895";
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
@@ -171,8 +171,8 @@ interface CheckedMessage extends Omit<OutgoingMessage, "to" | "attachments" | "s
171
171
  }
172
172
  interface SentMessage {
173
173
  readonly id: string;
174
- /** `queued` while the send is still under way, or until `sendAt`; `failed` when it was refused, with `error`. */
175
- readonly state: "sent" | "queued" | "suppressed" | "failed";
174
+ /** `queued` while the send is still under way, or until `sendAt`; `failed` when it was refused, with `error`; `cancelled` once a scheduled send was cancelled. */
175
+ readonly state: "sent" | "queued" | "suppressed" | "failed" | "cancelled";
176
176
  readonly suppressed: ReadonlyArray<string>;
177
177
  readonly error?: string;
178
178
  /** When it is to be sent, while it waits for that. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midsummer-ai/sdk",
3
- "version": "0.1.0-staging.3892",
3
+ "version": "0.1.0-staging.3895",
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.",