shipmail 0.5.8 → 0.5.10
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/api-key-scopes.cjs +2 -2
- package/dist/api-key-scopes.cjs.map +1 -1
- package/dist/api-key-scopes.js +2 -2
- package/dist/api-key-scopes.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1044,7 +1044,7 @@ type AutoReply = {
|
|
|
1044
1044
|
readonly from_date: string | null;
|
|
1045
1045
|
readonly to_date: string | null;
|
|
1046
1046
|
};
|
|
1047
|
-
type MailboxSuspensionReason = "billing" | "manual" | "security";
|
|
1047
|
+
type MailboxSuspensionReason = "billing" | "manual" | "security" | "abuse";
|
|
1048
1048
|
type Mailbox = {
|
|
1049
1049
|
readonly object: "mailbox";
|
|
1050
1050
|
readonly id: string;
|
|
@@ -1944,6 +1944,7 @@ type NewsletterBlock = {
|
|
|
1944
1944
|
readonly type: "image";
|
|
1945
1945
|
readonly url: string;
|
|
1946
1946
|
readonly alt: string;
|
|
1947
|
+
readonly align?: NewsletterButtonAlign | undefined;
|
|
1947
1948
|
readonly link_url?: string | null | undefined;
|
|
1948
1949
|
readonly caption?: string | null | undefined;
|
|
1949
1950
|
readonly caption_url?: string | null | undefined;
|
|
@@ -2245,6 +2246,8 @@ type Webhook = {
|
|
|
2245
2246
|
readonly events: readonly string[];
|
|
2246
2247
|
readonly active: boolean;
|
|
2247
2248
|
readonly description: string | null;
|
|
2249
|
+
readonly mailbox_ids: readonly string[] | null;
|
|
2250
|
+
readonly domain_ids: readonly string[] | null;
|
|
2248
2251
|
readonly created_at: string;
|
|
2249
2252
|
readonly updated_at: string;
|
|
2250
2253
|
};
|
|
@@ -2255,12 +2258,16 @@ type CreateWebhookParams = {
|
|
|
2255
2258
|
readonly url: string;
|
|
2256
2259
|
readonly events: readonly WebhookEventType[];
|
|
2257
2260
|
readonly description?: string | undefined;
|
|
2261
|
+
readonly mailbox_ids?: readonly string[] | null | undefined;
|
|
2262
|
+
readonly domain_ids?: readonly string[] | null | undefined;
|
|
2258
2263
|
};
|
|
2259
2264
|
type UpdateWebhookParams = {
|
|
2260
2265
|
readonly url?: string | undefined;
|
|
2261
2266
|
readonly events?: readonly WebhookEventType[] | undefined;
|
|
2262
2267
|
readonly description?: string | null | undefined;
|
|
2263
2268
|
readonly active?: boolean | undefined;
|
|
2269
|
+
readonly mailbox_ids?: readonly string[] | null | undefined;
|
|
2270
|
+
readonly domain_ids?: readonly string[] | null | undefined;
|
|
2264
2271
|
};
|
|
2265
2272
|
type ListWebhooksParams = PaginationParams;
|
|
2266
2273
|
type RotateSecretResponse = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1044,7 +1044,7 @@ type AutoReply = {
|
|
|
1044
1044
|
readonly from_date: string | null;
|
|
1045
1045
|
readonly to_date: string | null;
|
|
1046
1046
|
};
|
|
1047
|
-
type MailboxSuspensionReason = "billing" | "manual" | "security";
|
|
1047
|
+
type MailboxSuspensionReason = "billing" | "manual" | "security" | "abuse";
|
|
1048
1048
|
type Mailbox = {
|
|
1049
1049
|
readonly object: "mailbox";
|
|
1050
1050
|
readonly id: string;
|
|
@@ -1944,6 +1944,7 @@ type NewsletterBlock = {
|
|
|
1944
1944
|
readonly type: "image";
|
|
1945
1945
|
readonly url: string;
|
|
1946
1946
|
readonly alt: string;
|
|
1947
|
+
readonly align?: NewsletterButtonAlign | undefined;
|
|
1947
1948
|
readonly link_url?: string | null | undefined;
|
|
1948
1949
|
readonly caption?: string | null | undefined;
|
|
1949
1950
|
readonly caption_url?: string | null | undefined;
|
|
@@ -2245,6 +2246,8 @@ type Webhook = {
|
|
|
2245
2246
|
readonly events: readonly string[];
|
|
2246
2247
|
readonly active: boolean;
|
|
2247
2248
|
readonly description: string | null;
|
|
2249
|
+
readonly mailbox_ids: readonly string[] | null;
|
|
2250
|
+
readonly domain_ids: readonly string[] | null;
|
|
2248
2251
|
readonly created_at: string;
|
|
2249
2252
|
readonly updated_at: string;
|
|
2250
2253
|
};
|
|
@@ -2255,12 +2258,16 @@ type CreateWebhookParams = {
|
|
|
2255
2258
|
readonly url: string;
|
|
2256
2259
|
readonly events: readonly WebhookEventType[];
|
|
2257
2260
|
readonly description?: string | undefined;
|
|
2261
|
+
readonly mailbox_ids?: readonly string[] | null | undefined;
|
|
2262
|
+
readonly domain_ids?: readonly string[] | null | undefined;
|
|
2258
2263
|
};
|
|
2259
2264
|
type UpdateWebhookParams = {
|
|
2260
2265
|
readonly url?: string | undefined;
|
|
2261
2266
|
readonly events?: readonly WebhookEventType[] | undefined;
|
|
2262
2267
|
readonly description?: string | null | undefined;
|
|
2263
2268
|
readonly active?: boolean | undefined;
|
|
2269
|
+
readonly mailbox_ids?: readonly string[] | null | undefined;
|
|
2270
|
+
readonly domain_ids?: readonly string[] | null | undefined;
|
|
2264
2271
|
};
|
|
2265
2272
|
type ListWebhooksParams = PaginationParams;
|
|
2266
2273
|
type RotateSecretResponse = {
|
package/dist/index.js
CHANGED
|
@@ -53,9 +53,9 @@ var API_KEY_SCOPE_DESCRIPTIONS = {
|
|
|
53
53
|
"domains:write": "Create, update, and delete domains.",
|
|
54
54
|
"mailboxes:read": "List and retrieve mailboxes.",
|
|
55
55
|
"mailboxes:export": "Create and download mailbox content exports.",
|
|
56
|
-
"mailboxes:write": "Create, update, suspend, resume, and delete mailboxes.",
|
|
56
|
+
"mailboxes:write": "Create, update, suspend, resume, and delete mailboxes. Does not include setting mailbox passwords.",
|
|
57
57
|
"mailbox_credentials:read": "List revocable app passwords for allowed mailboxes.",
|
|
58
|
-
"mailbox_credentials:write": "
|
|
58
|
+
"mailbox_credentials:write": "Set primary mailbox passwords and create and revoke app passwords for allowed mailboxes.",
|
|
59
59
|
"mailbox_forwarding:read": "List forwarding destinations for allowed mailboxes.",
|
|
60
60
|
"mailbox_forwarding:write": "Create and remove forwarding destinations for allowed mailboxes.",
|
|
61
61
|
"mailbox_rules:read": "List deterministic server-side rules for allowed mailboxes.",
|
|
@@ -1706,7 +1706,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1706
1706
|
};
|
|
1707
1707
|
|
|
1708
1708
|
// src/version.ts
|
|
1709
|
-
var VERSION = "0.5.
|
|
1709
|
+
var VERSION = "0.5.10";
|
|
1710
1710
|
|
|
1711
1711
|
// src/client.ts
|
|
1712
1712
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|