@messagebird/sdk 0.8.2 → 0.8.4
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 +5 -5
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3307,7 +3307,7 @@ type ListContactsData = {
|
|
|
3307
3307
|
/**
|
|
3308
3308
|
* Case-insensitive substring match against the contact's email address.
|
|
3309
3309
|
*/
|
|
3310
|
-
|
|
3310
|
+
q?: string;
|
|
3311
3311
|
/**
|
|
3312
3312
|
* Maximum number of items to return per page.
|
|
3313
3313
|
*/
|
|
@@ -3349,7 +3349,7 @@ type ListAudiencesData = {
|
|
|
3349
3349
|
/**
|
|
3350
3350
|
* Case-insensitive substring match against the audience's name.
|
|
3351
3351
|
*/
|
|
3352
|
-
|
|
3352
|
+
q?: string;
|
|
3353
3353
|
/**
|
|
3354
3354
|
* Maximum number of items to return per page.
|
|
3355
3355
|
*/
|
|
@@ -3377,7 +3377,7 @@ type ListAudienceContactsData = {
|
|
|
3377
3377
|
/**
|
|
3378
3378
|
* Case-insensitive substring match against the member's email address.
|
|
3379
3379
|
*/
|
|
3380
|
-
|
|
3380
|
+
q?: string;
|
|
3381
3381
|
/**
|
|
3382
3382
|
* Maximum number of items to return per page.
|
|
3383
3383
|
*/
|
|
@@ -4284,10 +4284,10 @@ declare class ContactsResource extends Resource {
|
|
|
4284
4284
|
/**
|
|
4285
4285
|
* List the workspace's contacts, newest first. `await` resolves the first page;
|
|
4286
4286
|
* `for await` walks every contact across pages. Filter by `email`,
|
|
4287
|
-
* `external_id`, or a `
|
|
4287
|
+
* `external_id`, or a `q` search term.
|
|
4288
4288
|
*
|
|
4289
4289
|
* @example Iterate every contact, or take one page
|
|
4290
|
-
* for await (const contact of bird.contacts.list({
|
|
4290
|
+
* for await (const contact of bird.contacts.list({ q: "acme.com" })) {
|
|
4291
4291
|
* console.log(contact.id, contact.email);
|
|
4292
4292
|
* }
|
|
4293
4293
|
* const page = await bird.contacts.list({ limit: 50 }); // page.data, page.next_cursor
|
package/dist/index.mjs
CHANGED
|
@@ -2644,10 +2644,10 @@ var ContactsResource = class extends Resource {
|
|
|
2644
2644
|
/**
|
|
2645
2645
|
* List the workspace's contacts, newest first. `await` resolves the first page;
|
|
2646
2646
|
* `for await` walks every contact across pages. Filter by `email`,
|
|
2647
|
-
* `external_id`, or a `
|
|
2647
|
+
* `external_id`, or a `q` search term.
|
|
2648
2648
|
*
|
|
2649
2649
|
* @example Iterate every contact, or take one page
|
|
2650
|
-
* for await (const contact of bird.contacts.list({
|
|
2650
|
+
* for await (const contact of bird.contacts.list({ q: "acme.com" })) {
|
|
2651
2651
|
* console.log(contact.id, contact.email);
|
|
2652
2652
|
* }
|
|
2653
2653
|
* const page = await bird.contacts.list({ limit: 50 }); // page.data, page.next_cursor
|
|
@@ -3153,9 +3153,9 @@ var BirdClient = class {
|
|
|
3153
3153
|
this.#headers = {
|
|
3154
3154
|
...opts.defaultHeaders,
|
|
3155
3155
|
Authorization: `Bearer ${opts.apiKey}`,
|
|
3156
|
-
"User-Agent": `bird-sdk-js/0.8.
|
|
3156
|
+
"User-Agent": `bird-sdk-js/0.8.4`,
|
|
3157
3157
|
"Bird-Surface": "sdk-js",
|
|
3158
|
-
"Bird-Version": "0.8.
|
|
3158
|
+
"Bird-Version": "0.8.4"
|
|
3159
3159
|
};
|
|
3160
3160
|
const caller = detectCaller();
|
|
3161
3161
|
if (caller) this.#headers["Bird-Caller"] = caller;
|