@sendora/mcp 1.2.12 → 1.3.1

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/errors.js CHANGED
@@ -6,7 +6,7 @@ const retryAfter = (error) => error.retryAfter === null
6
6
  : `Wait ${String(error.retryAfter)} seconds and try again.`;
7
7
  const unconfirmed = () => 'Nothing was confirmed, so a send may or may not have been accepted: look for it with search_messages before sending again.';
8
8
  const capOwner = {
9
- tenant: `An administrator raises the account's ceiling under Account › Usage (Konto › Användning) in the dashboard, ${DASHBOARD}/account/usage.`,
9
+ account: `An administrator raises the account's ceiling under Account › Usage (Konto › Användning) in the dashboard, ${DASHBOARD}/account/usage.`,
10
10
  server: "The server's own cap is Sendora's to set; write to support to change it.",
11
11
  test: "It is the cap the account's test servers share, which Sendora sets.",
12
12
  };
@@ -20,8 +20,8 @@ const hints = {
20
20
  unauthorized: () => `The key was revoked or mistyped. A server key is made under its server in the dashboard, ${KEYS_PAGE}, and an account key by an administrator under Account › API keys (Konto › API-nycklar), ${ACCOUNT_KEYS_PAGE}; restart the connection with the new one.`,
21
21
  wrong_token_kind: null,
22
22
  payment_required: null,
23
- tenant_paused: null,
24
- tenant_not_active: null,
23
+ account_paused: null,
24
+ account_not_active: null,
25
25
  spam_complaint_locked: null,
26
26
  unsubscribe_locked: null,
27
27
  not_found: null,
@@ -60,7 +60,7 @@ const hints = {
60
60
  idempotency_key_mismatch: null,
61
61
  idempotency_key_required: null,
62
62
  rate_limited: retryAfter,
63
- monthly_cap_reached: (error) => `The monthly cap${error.cap === null ? '' : ` of ${String(error.cap)}`} is used up until ${error.resetsAt ?? 'the month turns'}. ${capOwner[error.scope ?? 'tenant']}`,
63
+ monthly_cap_reached: (error) => `The monthly cap${error.cap === null ? '' : ` of ${String(error.cap)}`} is used up until ${error.resetsAt ?? 'the month turns'}. ${capOwner[error.scope ?? 'account']}`,
64
64
  sending_disabled: retryAfter,
65
65
  connection_failed: unconfirmed,
66
66
  timeout: unconfirmed,