@messagebird/sdk 0.37.1 → 0.37.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/index.d.mts +2 -2
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8017,7 +8017,7 @@ type Number = {
|
|
|
8017
8017
|
*/
|
|
8018
8018
|
readonly id: AllocatedNumberId;
|
|
8019
8019
|
/**
|
|
8020
|
-
* How this number is allocated. `dedicated`
|
|
8020
|
+
* How this number is allocated. `dedicated` belongs to your workspace and is billed as a subscription. `shared` is provided through Bird-managed shared infrastructure and is not owned or billed as a workspace subscription.
|
|
8021
8021
|
*/
|
|
8022
8022
|
readonly kind: "dedicated" | "shared";
|
|
8023
8023
|
/**
|
|
@@ -13078,7 +13078,7 @@ declare class NumbersResourceBase extends Resource {
|
|
|
13078
13078
|
*
|
|
13079
13079
|
* @example List the numbers allocated to you
|
|
13080
13080
|
* for await (const allocated of bird.numbers.list({ country_code: "GB" })) {
|
|
13081
|
-
* // kind
|
|
13081
|
+
* // kind distinguishes a number you bought from one Bird manages.
|
|
13082
13082
|
* console.log(allocated.number, allocated.kind, allocated.status);
|
|
13083
13083
|
* }
|
|
13084
13084
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -3441,7 +3441,7 @@ const listMailboxes = (options) => (options?.client ?? client).get({
|
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Create a mailbox
|
|
3443
3443
|
*
|
|
3444
|
-
* Creates a mailbox. The address is `local_part@domain`. The domain defaults to `inbox.ai`, Bird's shared mailbox domain, where creating the mailbox claims the address for your organization. It is first come, first served, and reserved to your organization even after the mailbox is deleted. You may instead name one of your own domains that is enabled for receiving email. An omitted local part is generated. On a custom domain, addresses of deleted mailboxes are quarantined
|
|
3444
|
+
* Creates a mailbox. The address is `local_part@domain`. The domain defaults to `inbox.ai`, Bird's shared mailbox domain, where creating the mailbox claims the address for your organization. It is first come, first served, and reserved to your organization even after the mailbox is deleted. You may instead name one of your own domains that is enabled for receiving email. An omitted local part is generated. On a custom domain, addresses of deleted mailboxes are quarantined for 30 days and remain reserved for your workspace.
|
|
3445
3445
|
*
|
|
3446
3446
|
*/
|
|
3447
3447
|
const createMailbox = (options) => (options.client ?? client).post({
|
|
@@ -3463,7 +3463,7 @@ const createMailbox = (options) => (options.client ?? client).post({
|
|
|
3463
3463
|
/**
|
|
3464
3464
|
* Delete a mailbox
|
|
3465
3465
|
*
|
|
3466
|
-
* Deletes a mailbox. The address stops receiving mail immediately and enters quarantine.
|
|
3466
|
+
* Deletes a mailbox. The address stops receiving mail immediately and enters quarantine. After 30 days, your workspace can bind the address to a new mailbox; the address remains reserved to your workspace. The mailbox and its remembered messages are kept for 30 days, so you can bring it back with `POST /email/mailboxes/{mailbox_id}/restore`. Once those 30 days are up they are deleted for good.
|
|
3467
3467
|
*
|
|
3468
3468
|
*/
|
|
3469
3469
|
const deleteMailbox = (options) => (options.client ?? client).delete({
|
|
@@ -3986,7 +3986,7 @@ const getNumbersOrder = (options) => (options.client ?? client).get({
|
|
|
3986
3986
|
/**
|
|
3987
3987
|
* Release a dedicated number
|
|
3988
3988
|
*
|
|
3989
|
-
* Releases one of your workspace's dedicated numbers and stops its monthly charge. Your workspace can no longer use the number after release. Shared numbers cannot be released
|
|
3989
|
+
* Releases one of your workspace's dedicated numbers and stops its monthly charge. Your workspace can no longer use the number after release. Shared numbers belong to Bird-managed shared infrastructure and cannot be released from your workspace.
|
|
3990
3990
|
*/
|
|
3991
3991
|
const releaseWorkspaceNumber = (options) => (options.client ?? client).delete({
|
|
3992
3992
|
security: [{
|
|
@@ -6872,7 +6872,7 @@ var NumbersResourceBase = class extends Resource {
|
|
|
6872
6872
|
*
|
|
6873
6873
|
* @example List the numbers allocated to you
|
|
6874
6874
|
* for await (const allocated of bird.numbers.list({ country_code: "GB" })) {
|
|
6875
|
-
* // kind
|
|
6875
|
+
* // kind distinguishes a number you bought from one Bird manages.
|
|
6876
6876
|
* console.log(allocated.number, allocated.kind, allocated.status);
|
|
6877
6877
|
* }
|
|
6878
6878
|
*/
|
|
@@ -7132,9 +7132,9 @@ var BirdClient = class {
|
|
|
7132
7132
|
this.#headers = {
|
|
7133
7133
|
...opts.defaultHeaders,
|
|
7134
7134
|
Authorization: `Bearer ${opts.apiKey}`,
|
|
7135
|
-
"User-Agent": `bird-sdk-js/0.37.
|
|
7135
|
+
"User-Agent": `bird-sdk-js/0.37.2`,
|
|
7136
7136
|
"Bird-Surface": "sdk-js",
|
|
7137
|
-
"Bird-Version": "0.37.
|
|
7137
|
+
"Bird-Version": "0.37.2"
|
|
7138
7138
|
};
|
|
7139
7139
|
const caller = detectCaller();
|
|
7140
7140
|
if (caller) this.#headers["Bird-Caller"] = caller;
|