@messagebird/sdk 0.40.0 → 0.41.0
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 +32 -1
- package/dist/index.mjs +41 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -448,15 +448,32 @@ type NextAction$1 = {
|
|
|
448
448
|
*/
|
|
449
449
|
url?: string;
|
|
450
450
|
};
|
|
451
|
+
type OrganizationId = string;
|
|
451
452
|
type WorkspaceId = string;
|
|
452
453
|
/**
|
|
453
454
|
* ISO 3166-1 alpha-2 country code.
|
|
454
455
|
*/
|
|
455
456
|
type CountryCode = string;
|
|
457
|
+
type WorkspaceNotificationEmails = {
|
|
458
|
+
/**
|
|
459
|
+
* Addresses for operational notifications about this workspace (sending domain authentication failures, webhook endpoint degradation). When empty, these notifications go to the organization owners. Maximum 10 addresses.
|
|
460
|
+
*/
|
|
461
|
+
operational?: Array<string>;
|
|
462
|
+
};
|
|
456
463
|
type Timestamps = {
|
|
457
464
|
readonly created_at: string;
|
|
458
465
|
readonly updated_at: string;
|
|
459
466
|
};
|
|
467
|
+
type Workspace = {
|
|
468
|
+
readonly id: WorkspaceId;
|
|
469
|
+
organization_id: OrganizationId;
|
|
470
|
+
name: string;
|
|
471
|
+
notification_emails: WorkspaceNotificationEmails;
|
|
472
|
+
/**
|
|
473
|
+
* HTTPS URL to the current workspace logo. `null` when unset.
|
|
474
|
+
*/
|
|
475
|
+
readonly logo_url?: string | null;
|
|
476
|
+
} & Timestamps;
|
|
460
477
|
type RealtimeAppId = string;
|
|
461
478
|
/**
|
|
462
479
|
* The event name clients bind to. Application event names are free-form; the `bird:` and `bird_internal:` prefixes are reserved for the protocol and rejected.
|
|
@@ -12855,6 +12872,18 @@ declare class PreferencesResource extends PreferencesResourceBase {
|
|
|
12855
12872
|
delete(preferenceId: string, options?: RequestOptions): APIPromise<PreferenceWriteResult>;
|
|
12856
12873
|
}
|
|
12857
12874
|
//#endregion
|
|
12875
|
+
//#region src/resources/workspace.gen.d.ts
|
|
12876
|
+
declare class WorkspaceResource extends Resource {
|
|
12877
|
+
/**
|
|
12878
|
+
* Fetch the current workspace's ID, name, and the ID of the organization owning it. This is the workspace the current credentials are scoped to.
|
|
12879
|
+
*
|
|
12880
|
+
* @example Read the workspace this credential is scoped to
|
|
12881
|
+
* const workspace = await bird.workspace.get();
|
|
12882
|
+
* console.log(workspace.id, workspace.name); // "ws_…" "Production"
|
|
12883
|
+
*/
|
|
12884
|
+
get(options?: RequestOptions): APIPromise<Workspace>;
|
|
12885
|
+
}
|
|
12886
|
+
//#endregion
|
|
12858
12887
|
//#region src/resources/sms.gen.d.ts
|
|
12859
12888
|
type SmsListQuery = NonNullable<ListSmsMessagesData["query"]>;
|
|
12860
12889
|
type SmsListEventsQuery = NonNullable<ListSmsMessageEventsData["query"]>;
|
|
@@ -13804,6 +13833,8 @@ declare class BirdClient<const O extends BirdClientOptions = BirdClientOptions>
|
|
|
13804
13833
|
readonly contacts: ContactsResource;
|
|
13805
13834
|
/** Preferences: `bird.preferences.list(...)`, `.get(...)`, `.create(...)`, `.delete(...)`. */
|
|
13806
13835
|
readonly preferences: PreferencesResource;
|
|
13836
|
+
/** Workspace: `bird.workspace.get()` — the workspace this credential is scoped to. */
|
|
13837
|
+
readonly workspace: WorkspaceResource;
|
|
13807
13838
|
/** Audiences: `bird.audiences.create(...)`, `.list(...)`, `.addContacts(...)`, … */
|
|
13808
13839
|
readonly audiences: AudiencesResource;
|
|
13809
13840
|
/** Contact properties: `bird.contactProperties.create(...)`, `.list(...)`, `.archive(...)`, … */
|
|
@@ -14270,5 +14301,5 @@ declare const WhatsAppTemplateParameterType: {
|
|
|
14270
14301
|
/** A known WhatsAppTemplateParameterType value. */
|
|
14271
14302
|
type WhatsAppTemplateParameterTypeValue = (typeof WhatsAppTemplateParameterType)[keyof typeof WhatsAppTemplateParameterType];
|
|
14272
14303
|
//#endregion
|
|
14273
|
-
export { type APIPromise, type Audience, type AudienceAddContactsParams, type AudienceCreateParams, type AudienceListContactsQuery, type AudienceListQuery, type AudienceMember, type AudienceRemoveContactsParams, type AudienceUpdateParams, BirdAPIError, BirdAuthError, BirdBadRequestError, BirdBillingError, BirdClient, type BirdClientOptions, BirdConflictError, BirdConnectionError, BirdError, BirdInternalError, BirdMisdirectedError, BirdNotFoundError, BirdNotImplementedError, BirdPayloadTooLargeError, BirdPermissionError, BirdPreconditionError, BirdRateLimitError, type BirdRequest, type BirdResponse, BirdServiceUnavailableError, BirdTimeoutError, BirdValidationError, type BirdWebhookEvent, BirdWebhookVerificationError, type ChannelAuthorization, type Contact, type ContactBatchParams, type ContactCreateParams, type ContactListQuery, type ContactProperty, type ContactPropertyCreateParams, type ContactPropertyListQuery, type ContactPropertyUpdateParams, type ContactUpdateParams, type ContactUpsertResult, type ContactsPreferencesListQuery, type CursorPage, type DnsRecord, type Domain, type DomainCapabilities, type DomainCreateParams, type DomainDkim, type DomainListQuery, type DomainUpdateParams, type EmailChannelDefaults, EmailEventType, type EmailEventTypeValue, type EmailListQuery, type EmailLookup, EmailLookupFlag, type EmailLookupFlagValue, EmailLookupReason, type EmailLookupReasonValue, EmailLookupResult, type EmailLookupResultValue, type EmailMailboxLabelList, type EmailMailboxesCreateParams, type EmailMailboxesListQuery, type EmailMailboxesMessagesCreateParams, type EmailMailboxesReceiveRulesCreateParams, type EmailMailboxesReceiveRulesListQuery, type EmailMailboxesStatsQuery, type EmailMailboxesUpdateParams, type EmailMailboxesUpdateQuery, type EmailMessage, type EmailSendBatchParams, type EmailSendBatchResult, type EmailSendParams, type EmailStatsByBounceCodeQuery, type EmailStatsByBounceCodeResponse, type EmailStatsByBroadcastQuery, type EmailStatsByBroadcastResponse, type EmailStatsByCategoryQuery, type EmailStatsByCategoryResponse, type EmailStatsByClientQuery, type EmailStatsByClientResponse, type EmailStatsByComplaintTypeQuery, type EmailStatsByComplaintTypeResponse, type EmailStatsByLocationQuery, type EmailStatsByLocationResponse, type EmailStatsByMailboxProviderQuery, type EmailStatsByMailboxProviderRegionQuery, type EmailStatsByMailboxProviderRegionResponse, type EmailStatsByMailboxProviderResponse, type EmailStatsByRecipientDomainQuery, type EmailStatsByRecipientDomainResponse, type EmailStatsBySendingDomainQuery, type EmailStatsBySendingDomainResponse, type EmailStatsBySendingIpQuery, type EmailStatsBySendingIpResponse, type EmailStatsByTagQuery, type EmailStatsByTemplateQuery, type EmailStatsByTemplateResponse, type EmailStatsDailyQuery, type EmailStatsHourlyQuery, type EmailStatsResponse, type EmailStatsSummary, type EmailStatsSummaryQuery, type EmailStatsTagsResponse, type EmailThread, type EmailThreadMessage, type EmailThreadMessageAttachmentList, type EmailThreadMessageBody, type EmailThreadsDeleteQuery, type EmailThreadsListQuery, type EmailThreadsMessagesListQuery, type EmailThreadsMessagesReplyParams, type EmailThreadsUpdateParams, type ErrorDetail, type LookupEmailParams, LookupFlag, type LookupFlagValue, type LookupPhoneNumberParams, LookupPropertyStatus, type LookupPropertyStatusValue, type Mailbox, type MailboxStatsResponse, type NextAction, NumberCapability, type NumberCapabilityValue, NumberType, type NumberTypeValue, NumbersOrderStatus, type NumbersOrderStatusValue, type PaginatedPromise, type PhoneNumberLookup, type Preference, PreferenceChannel, type PreferenceChannelValue, type PreferenceCoverage, type PreferenceCreateParams, PreferenceOrigin, type PreferenceOriginValue, type PreferenceStatus, type PreferenceWriteResult, type PreferencesListQuery, type RealtimeBatchPublishResult, type RealtimeChannelGetQuery, type RealtimeChannelInclude, type RealtimeChannelInfo, type RealtimeChannelListItem, type RealtimeChannelListQuery, type RealtimeChannelMember, type RealtimeChannelMembers, type RealtimeChannelsList, type RealtimeOptions, type RealtimePublishBatchParams, type RealtimePublishParams, type RealtimePublishResult, type ReceiveRule, type RequestOptions, SMSErrorCode, type SMSErrorCodeValue, SMSKeywordOperation, type SMSKeywordOperationValue, SMSSuppressionCoverage, type SMSSuppressionCoverageValue, SMSSuppressionEndReason, type SMSSuppressionEndReasonValue, SMSSuppressionOrigin, type SMSSuppressionOriginValue, SMSSuppressionReason, type SMSSuppressionReasonValue, type SafeResult, type SmsEventList, type SmsInboundStatsByCountryResponse, type SmsInboundStatsByNumberResponse, type SmsInboundStatsByOperatorResponse, type SmsInboundStatsResponse, type SmsInboundStatsSummaryResponse, type SmsKeywordRule, type SmsKeywordRuleList, type SmsKeywordRulesCreateParams, type SmsKeywordRulesListQuery, type SmsKeywordRulesUpdateParams, type SmsListEventsQuery, type SmsListQuery, type SmsMessage, type SmsSendBatchParams, type SmsSendBatchResult, type SmsSendParams, type SmsStatsByCarrierQuery, type SmsStatsByCarrierResponse, type SmsStatsByCategoryQuery, type SmsStatsByCategoryResponse, type SmsStatsByCountryQuery, type SmsStatsByCountryResponse, type SmsStatsByErrorCodeQuery, type SmsStatsByErrorCodeResponse, type SmsStatsByOriginatorQuery, type SmsStatsByOriginatorResponse, type SmsStatsByStatusQuery, type SmsStatsByStatusResponse, type SmsStatsDailyQuery, type SmsStatsHourlyQuery, type SmsStatsInboundByCountryQuery, type SmsStatsInboundByNumberQuery, type SmsStatsInboundByOperatorQuery, type SmsStatsInboundDailyQuery, type SmsStatsInboundHourlyQuery, type SmsStatsInboundSummaryQuery, type SmsStatsResponse, type SmsStatsSummary, type SmsStatsSummaryQuery, type SmsSuppression, type SmsSuppressionsAddParams, type SmsSuppressionsListQuery, type SmsTemplate, type SmsTemplateList, type SmsTemplateListQuery, TemplateLanguageStatus, type TemplateLanguageStatusValue, TemplateStatus, type TemplateStatusValue, type Verification, VerificationAttemptFailureReason, type VerificationAttemptFailureReasonValue, VerificationChannel, type VerificationChannelValue, type VerificationCheckResult, VerificationTerminalReason, type VerificationTerminalReasonValue, type VerifyVerificationsCheckParams, type VerifyVerificationsCreateParams, type VerifyVerificationsNextChannelParams, WebhookEventType, type WebhookEventTypeValue, type WebhookHeaders, type WebhookOptions, WhatsAppErrorCode, type WhatsAppErrorCodeValue, type WhatsAppEventList, WhatsAppEventType, type WhatsAppEventTypeValue, type WhatsAppMessage, WhatsAppTemplateCategory, type WhatsAppTemplateCategoryValue, WhatsAppTemplateParameterType, type WhatsAppTemplateParameterTypeValue, type WhatsappListEventsQuery, type WhatsappListQuery, type WhatsappSendParams, baseUrlForRegion, regionFromApiKey };
|
|
14304
|
+
export { type APIPromise, type Audience, type AudienceAddContactsParams, type AudienceCreateParams, type AudienceListContactsQuery, type AudienceListQuery, type AudienceMember, type AudienceRemoveContactsParams, type AudienceUpdateParams, BirdAPIError, BirdAuthError, BirdBadRequestError, BirdBillingError, BirdClient, type BirdClientOptions, BirdConflictError, BirdConnectionError, BirdError, BirdInternalError, BirdMisdirectedError, BirdNotFoundError, BirdNotImplementedError, BirdPayloadTooLargeError, BirdPermissionError, BirdPreconditionError, BirdRateLimitError, type BirdRequest, type BirdResponse, BirdServiceUnavailableError, BirdTimeoutError, BirdValidationError, type BirdWebhookEvent, BirdWebhookVerificationError, type ChannelAuthorization, type Contact, type ContactBatchParams, type ContactCreateParams, type ContactListQuery, type ContactProperty, type ContactPropertyCreateParams, type ContactPropertyListQuery, type ContactPropertyUpdateParams, type ContactUpdateParams, type ContactUpsertResult, type ContactsPreferencesListQuery, type CursorPage, type DnsRecord, type Domain, type DomainCapabilities, type DomainCreateParams, type DomainDkim, type DomainListQuery, type DomainUpdateParams, type EmailChannelDefaults, EmailEventType, type EmailEventTypeValue, type EmailListQuery, type EmailLookup, EmailLookupFlag, type EmailLookupFlagValue, EmailLookupReason, type EmailLookupReasonValue, EmailLookupResult, type EmailLookupResultValue, type EmailMailboxLabelList, type EmailMailboxesCreateParams, type EmailMailboxesListQuery, type EmailMailboxesMessagesCreateParams, type EmailMailboxesReceiveRulesCreateParams, type EmailMailboxesReceiveRulesListQuery, type EmailMailboxesStatsQuery, type EmailMailboxesUpdateParams, type EmailMailboxesUpdateQuery, type EmailMessage, type EmailSendBatchParams, type EmailSendBatchResult, type EmailSendParams, type EmailStatsByBounceCodeQuery, type EmailStatsByBounceCodeResponse, type EmailStatsByBroadcastQuery, type EmailStatsByBroadcastResponse, type EmailStatsByCategoryQuery, type EmailStatsByCategoryResponse, type EmailStatsByClientQuery, type EmailStatsByClientResponse, type EmailStatsByComplaintTypeQuery, type EmailStatsByComplaintTypeResponse, type EmailStatsByLocationQuery, type EmailStatsByLocationResponse, type EmailStatsByMailboxProviderQuery, type EmailStatsByMailboxProviderRegionQuery, type EmailStatsByMailboxProviderRegionResponse, type EmailStatsByMailboxProviderResponse, type EmailStatsByRecipientDomainQuery, type EmailStatsByRecipientDomainResponse, type EmailStatsBySendingDomainQuery, type EmailStatsBySendingDomainResponse, type EmailStatsBySendingIpQuery, type EmailStatsBySendingIpResponse, type EmailStatsByTagQuery, type EmailStatsByTemplateQuery, type EmailStatsByTemplateResponse, type EmailStatsDailyQuery, type EmailStatsHourlyQuery, type EmailStatsResponse, type EmailStatsSummary, type EmailStatsSummaryQuery, type EmailStatsTagsResponse, type EmailThread, type EmailThreadMessage, type EmailThreadMessageAttachmentList, type EmailThreadMessageBody, type EmailThreadsDeleteQuery, type EmailThreadsListQuery, type EmailThreadsMessagesListQuery, type EmailThreadsMessagesReplyParams, type EmailThreadsUpdateParams, type ErrorDetail, type LookupEmailParams, LookupFlag, type LookupFlagValue, type LookupPhoneNumberParams, LookupPropertyStatus, type LookupPropertyStatusValue, type Mailbox, type MailboxStatsResponse, type NextAction, NumberCapability, type NumberCapabilityValue, NumberType, type NumberTypeValue, NumbersOrderStatus, type NumbersOrderStatusValue, type PaginatedPromise, type PhoneNumberLookup, type Preference, PreferenceChannel, type PreferenceChannelValue, type PreferenceCoverage, type PreferenceCreateParams, PreferenceOrigin, type PreferenceOriginValue, type PreferenceStatus, type PreferenceWriteResult, type PreferencesListQuery, type RealtimeBatchPublishResult, type RealtimeChannelGetQuery, type RealtimeChannelInclude, type RealtimeChannelInfo, type RealtimeChannelListItem, type RealtimeChannelListQuery, type RealtimeChannelMember, type RealtimeChannelMembers, type RealtimeChannelsList, type RealtimeOptions, type RealtimePublishBatchParams, type RealtimePublishParams, type RealtimePublishResult, type ReceiveRule, type RequestOptions, SMSErrorCode, type SMSErrorCodeValue, SMSKeywordOperation, type SMSKeywordOperationValue, SMSSuppressionCoverage, type SMSSuppressionCoverageValue, SMSSuppressionEndReason, type SMSSuppressionEndReasonValue, SMSSuppressionOrigin, type SMSSuppressionOriginValue, SMSSuppressionReason, type SMSSuppressionReasonValue, type SafeResult, type SmsEventList, type SmsInboundStatsByCountryResponse, type SmsInboundStatsByNumberResponse, type SmsInboundStatsByOperatorResponse, type SmsInboundStatsResponse, type SmsInboundStatsSummaryResponse, type SmsKeywordRule, type SmsKeywordRuleList, type SmsKeywordRulesCreateParams, type SmsKeywordRulesListQuery, type SmsKeywordRulesUpdateParams, type SmsListEventsQuery, type SmsListQuery, type SmsMessage, type SmsSendBatchParams, type SmsSendBatchResult, type SmsSendParams, type SmsStatsByCarrierQuery, type SmsStatsByCarrierResponse, type SmsStatsByCategoryQuery, type SmsStatsByCategoryResponse, type SmsStatsByCountryQuery, type SmsStatsByCountryResponse, type SmsStatsByErrorCodeQuery, type SmsStatsByErrorCodeResponse, type SmsStatsByOriginatorQuery, type SmsStatsByOriginatorResponse, type SmsStatsByStatusQuery, type SmsStatsByStatusResponse, type SmsStatsDailyQuery, type SmsStatsHourlyQuery, type SmsStatsInboundByCountryQuery, type SmsStatsInboundByNumberQuery, type SmsStatsInboundByOperatorQuery, type SmsStatsInboundDailyQuery, type SmsStatsInboundHourlyQuery, type SmsStatsInboundSummaryQuery, type SmsStatsResponse, type SmsStatsSummary, type SmsStatsSummaryQuery, type SmsSuppression, type SmsSuppressionsAddParams, type SmsSuppressionsListQuery, type SmsTemplate, type SmsTemplateList, type SmsTemplateListQuery, TemplateLanguageStatus, type TemplateLanguageStatusValue, TemplateStatus, type TemplateStatusValue, type Verification, VerificationAttemptFailureReason, type VerificationAttemptFailureReasonValue, VerificationChannel, type VerificationChannelValue, type VerificationCheckResult, VerificationTerminalReason, type VerificationTerminalReasonValue, type VerifyVerificationsCheckParams, type VerifyVerificationsCreateParams, type VerifyVerificationsNextChannelParams, WebhookEventType, type WebhookEventTypeValue, type WebhookHeaders, type WebhookOptions, WhatsAppErrorCode, type WhatsAppErrorCodeValue, type WhatsAppEventList, WhatsAppEventType, type WhatsAppEventTypeValue, type WhatsAppMessage, WhatsAppTemplateCategory, type WhatsAppTemplateCategoryValue, WhatsAppTemplateParameterType, type WhatsAppTemplateParameterTypeValue, type WhatsappListEventsQuery, type WhatsappListQuery, type WhatsappSendParams, type Workspace, baseUrlForRegion, regionFromApiKey };
|
|
14274
14305
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1193,6 +1193,24 @@ const client = createClient(createConfig());
|
|
|
1193
1193
|
//#endregion
|
|
1194
1194
|
//#region src/generated/sdk.gen.ts
|
|
1195
1195
|
/**
|
|
1196
|
+
* Get the current workspace
|
|
1197
|
+
*
|
|
1198
|
+
* Returns the workspace the current credentials are scoped to: its ID, name, the ID of the organization that owns it, and its notification and logo settings. The organization's own name and members are not included. Requires at least read access to the workspace.
|
|
1199
|
+
*
|
|
1200
|
+
*/
|
|
1201
|
+
const getCurrentWorkspace = (options) => (options?.client ?? client).get({
|
|
1202
|
+
security: [{
|
|
1203
|
+
scheme: "bearer",
|
|
1204
|
+
type: "http"
|
|
1205
|
+
}, {
|
|
1206
|
+
in: "cookie",
|
|
1207
|
+
name: "bird_session",
|
|
1208
|
+
type: "apiKey"
|
|
1209
|
+
}],
|
|
1210
|
+
url: "/v1/workspace",
|
|
1211
|
+
...options
|
|
1212
|
+
});
|
|
1213
|
+
/**
|
|
1196
1214
|
* Publish a Realtime event
|
|
1197
1215
|
*
|
|
1198
1216
|
* Publishes an event to one or more channels of a Realtime app. Listing several channels broadcasts the event to all of them in one call. Connected clients subscribed to those channels receive it in real time.
|
|
@@ -5772,6 +5790,24 @@ var PreferencesResource = class extends PreferencesResourceBase {
|
|
|
5772
5790
|
}
|
|
5773
5791
|
};
|
|
5774
5792
|
//#endregion
|
|
5793
|
+
//#region src/resources/workspace.gen.ts
|
|
5794
|
+
var WorkspaceResource = class extends Resource {
|
|
5795
|
+
/**
|
|
5796
|
+
* Fetch the current workspace's ID, name, and the ID of the organization owning it. This is the workspace the current credentials are scoped to.
|
|
5797
|
+
*
|
|
5798
|
+
* @example Read the workspace this credential is scoped to
|
|
5799
|
+
* const workspace = await bird.workspace.get();
|
|
5800
|
+
* console.log(workspace.id, workspace.name); // "ws_…" "Production"
|
|
5801
|
+
*/
|
|
5802
|
+
get(options) {
|
|
5803
|
+
return this.call("GET", options, ({ signal, headers }) => getCurrentWorkspace({
|
|
5804
|
+
client: this.client,
|
|
5805
|
+
headers,
|
|
5806
|
+
signal
|
|
5807
|
+
}));
|
|
5808
|
+
}
|
|
5809
|
+
};
|
|
5810
|
+
//#endregion
|
|
5775
5811
|
//#region src/resources/sms.gen.ts
|
|
5776
5812
|
var SmsResourceBase = class extends Resource {
|
|
5777
5813
|
/**
|
|
@@ -7361,6 +7397,8 @@ var BirdClient = class {
|
|
|
7361
7397
|
contacts;
|
|
7362
7398
|
/** Preferences: `bird.preferences.list(...)`, `.get(...)`, `.create(...)`, `.delete(...)`. */
|
|
7363
7399
|
preferences;
|
|
7400
|
+
/** Workspace: `bird.workspace.get()` — the workspace this credential is scoped to. */
|
|
7401
|
+
workspace;
|
|
7364
7402
|
/** Audiences: `bird.audiences.create(...)`, `.list(...)`, `.addContacts(...)`, … */
|
|
7365
7403
|
audiences;
|
|
7366
7404
|
/** Contact properties: `bird.contactProperties.create(...)`, `.list(...)`, `.archive(...)`, … */
|
|
@@ -7382,9 +7420,9 @@ var BirdClient = class {
|
|
|
7382
7420
|
this.#headers = {
|
|
7383
7421
|
...opts.defaultHeaders,
|
|
7384
7422
|
Authorization: `Bearer ${opts.apiKey}`,
|
|
7385
|
-
"User-Agent": `bird-sdk-js/0.
|
|
7423
|
+
"User-Agent": `bird-sdk-js/0.41.0`,
|
|
7386
7424
|
"Bird-Surface": "sdk-js",
|
|
7387
|
-
"Bird-Version": "0.
|
|
7425
|
+
"Bird-Version": "0.41.0"
|
|
7388
7426
|
};
|
|
7389
7427
|
const caller = detectCaller();
|
|
7390
7428
|
if (caller) this.#headers["Bird-Caller"] = caller;
|
|
@@ -7419,6 +7457,7 @@ var BirdClient = class {
|
|
|
7419
7457
|
this.verify = new VerifyResource(this.core, this.#client);
|
|
7420
7458
|
this.contacts = new ContactsResource(this.core, this.#client);
|
|
7421
7459
|
this.preferences = new PreferencesResource(this.core, this.#client);
|
|
7460
|
+
this.workspace = new WorkspaceResource(this.core, this.#client);
|
|
7422
7461
|
this.audiences = new AudiencesResource(this.core, this.#client);
|
|
7423
7462
|
this.contactProperties = new ContactPropertiesResource(this.core, this.#client);
|
|
7424
7463
|
this.domains = new DomainsResource(this.core, this.#client);
|