@myapihq/sdk 2.11.0 → 2.11.2
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/dist/email.d.ts +2 -0
- package/dist/email.js +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/email.d.ts
CHANGED
|
@@ -83,6 +83,8 @@ export declare function activateSending(apiKey: string, address: string): Promis
|
|
|
83
83
|
address: string;
|
|
84
84
|
sending_enabled: boolean;
|
|
85
85
|
emails_quota_remaining: number;
|
|
86
|
+
repaired?: boolean;
|
|
87
|
+
message?: string;
|
|
86
88
|
}>;
|
|
87
89
|
export declare function setForwarding(apiKey: string, address: string, forwardTo: string): Promise<{
|
|
88
90
|
address: string;
|
package/dist/email.js
CHANGED
|
@@ -110,6 +110,16 @@ async function listMailboxes(apiKey, options) {
|
|
|
110
110
|
const qStr = query.toString();
|
|
111
111
|
return (0, client_1.request)('GET', `${config_1.EMAIL_BASE}/email/mailboxes${qStr ? '?' + qStr : ''}`, apiKey);
|
|
112
112
|
}
|
|
113
|
+
// Also the repair path. Outbound needs a per-account SMTP credential that only
|
|
114
|
+
// one of five account-creation routes used to mint, so an account made by
|
|
115
|
+
// `myapi login`, Google, or an agent could never send — while the domain, the
|
|
116
|
+
// mailbox and its quota all reported healthy. Backend #113/#115 provision the
|
|
117
|
+
// credential here, before the already-activated check, so calling this on a
|
|
118
|
+
// stuck mailbox repairs it instead of refusing.
|
|
119
|
+
//
|
|
120
|
+
// `repaired` and `message` are present only on that branch. Both optional: a
|
|
121
|
+
// normal activation omits them, and a caller written before they existed keeps
|
|
122
|
+
// working.
|
|
113
123
|
async function activateSending(apiKey, address) {
|
|
114
124
|
return (0, client_1.request)('POST', `${config_1.EMAIL_BASE}/email/sending/activate`, apiKey, { address });
|
|
115
125
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.11.
|
|
1
|
+
export declare const SDK_VERSION = "2.11.2";
|
package/dist/version.js
CHANGED
|
@@ -8,4 +8,4 @@ exports.SDK_VERSION = void 0;
|
|
|
8
8
|
// Why a constant and not a package.json read: the SDK runs inside edge
|
|
9
9
|
// functions (Cloudflare Workers), so it must not import node:fs. A literal
|
|
10
10
|
// is the only version source that works in every runtime we ship to.
|
|
11
|
-
exports.SDK_VERSION = '2.11.
|
|
11
|
+
exports.SDK_VERSION = '2.11.2';
|