@myapihq/sdk 2.23.1 → 2.23.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 +16 -3
- package/dist/email.js +0 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/email.d.ts
CHANGED
|
@@ -64,10 +64,23 @@ export interface VerifyJob {
|
|
|
64
64
|
}
|
|
65
65
|
export declare function verifyBulk(apiKey: string, orgId: string, emails: string[], catchAll?: boolean): Promise<VerifyJob>;
|
|
66
66
|
export declare function getVerifyJob(apiKey: string, orgId: string, jobId: string): Promise<VerifyJob>;
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
/** What POST /email/mailboxes/create actually returns.
|
|
68
|
+
*
|
|
69
|
+
* The address comes back as `mailbox`, not `address` — it always has. The SDK
|
|
70
|
+
* declared `address`, the CLI had a fallback that derived it from the inputs,
|
|
71
|
+
* and because that fallback is right by luck the mismatch never surfaced.
|
|
72
|
+
* Anyone who trusted the old type got `undefined` with no type error.
|
|
73
|
+
*/
|
|
74
|
+
export interface CreatedMailbox {
|
|
75
|
+
mailbox: string;
|
|
76
|
+
status: string;
|
|
69
77
|
created_at: string;
|
|
70
|
-
|
|
78
|
+
/** Present when something is configured but incomplete — today, a missing
|
|
79
|
+
* CAN-SPAM mailing address, which makes sending fail later rather than now.
|
|
80
|
+
* Surface it; it names the route that clears it. */
|
|
81
|
+
warning?: string;
|
|
82
|
+
}
|
|
83
|
+
export declare function createMailbox(apiKey: string, domain: string, username: string, displayName?: string): Promise<CreatedMailbox>;
|
|
71
84
|
export declare function deleteMailbox(apiKey: string, address: string): Promise<void>;
|
|
72
85
|
export declare function mailServerResync(apiKey: string, orgId: string, domain: string): Promise<{
|
|
73
86
|
ok: boolean;
|
package/dist/email.js
CHANGED
|
@@ -107,7 +107,6 @@ async function verifyBulk(apiKey, orgId, emails, catchAll) {
|
|
|
107
107
|
async function getVerifyJob(apiKey, orgId, jobId) {
|
|
108
108
|
return (0, client_1.request)('GET', `${config_1.EMAIL_BASE}/email/orgs/${encodeURIComponent(orgId)}/verify-jobs/${encodeURIComponent(jobId)}`, apiKey);
|
|
109
109
|
}
|
|
110
|
-
// ── Mailbox ops (account-scoped) ─────────────────────────────────────────────
|
|
111
110
|
async function createMailbox(apiKey, domain, username, displayName) {
|
|
112
111
|
return (0, client_1.request)('POST', `${config_1.EMAIL_BASE}/email/mailboxes/create`, apiKey, { domain, username, display_name: displayName });
|
|
113
112
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.23.
|
|
1
|
+
export declare const SDK_VERSION = "2.23.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.23.
|
|
11
|
+
exports.SDK_VERSION = '2.23.2';
|