@messagebird/sdk 0.33.0 → 0.33.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/index.d.mts CHANGED
@@ -5517,6 +5517,21 @@ type DomainUpdate = {
5517
5517
  inbound?: DomainInboundConfig;
5518
5518
  };
5519
5519
  type SuppressionId = string;
5520
+ type Actor = {
5521
+ /**
5522
+ * Actor identifier.
5523
+ */
5524
+ id: string;
5525
+ /**
5526
+ * Who or what performed the action: `user` for a member's own session, `oauth_token` for a token issued to a caller on a member's behalf, `api_key` for a workspace API key, `system` for our own automation, `sso` for an organization's SSO connection, and `service_account` for a workspace's connected Integration acting with no member behind it. Open enum: new actor types may be added over time, so treat any unrecognized value as a future type rather than an error.
5527
+ */
5528
+ type: string;
5529
+ /**
5530
+ * The label the actor is shown under: typically a member's name or email address, or the API key's name. Null when it could not be resolved.
5531
+ *
5532
+ */
5533
+ readonly display_name?: string | null;
5534
+ };
5520
5535
  type InboundAddressId = string;
5521
5536
  type InboundEmailMessageId = string;
5522
5537
  type MailboxId = string;
@@ -7910,21 +7925,6 @@ type EventWhatsAppSent = {
7910
7925
  timestamp: string;
7911
7926
  data: EventWhatsAppSentData;
7912
7927
  };
7913
- type AuditLogActor = {
7914
- /**
7915
- * ID of the user, API key, integration, or system process that performed the action.
7916
- */
7917
- id: string;
7918
- /**
7919
- * Type of actor, such as `user`, `api_key`, `service_account`, or `system`.
7920
- */
7921
- type: string;
7922
- /**
7923
- * Display name of the actor. This is the user's email address for a `user` actor, or the name of the API key or integration that acted. Absent when it could not be resolved.
7924
- *
7925
- */
7926
- readonly display_name?: string | null;
7927
- };
7928
7928
  /**
7929
7929
  * Physical type of a phone number. New number types may be added over time, so treat unrecognized values as supported types rather than errors.
7930
7930
  */
@@ -8181,7 +8181,7 @@ type VoiceCall = {
8181
8181
  /**
8182
8182
  * Who placed the call: the API key whose credentials it used, the integration acting for the workspace, or the user who placed it from a browser or the CLI. Absent when the call was admitted only by its source IP address, or when no actor was recorded.
8183
8183
  */
8184
- readonly actor?: AuditLogActor;
8184
+ readonly actor?: Actor;
8185
8185
  /**
8186
8186
  * Identifier of the SIP trunk that originated this call. `null` when no trunk is associated.
8187
8187
  */
package/dist/index.mjs CHANGED
@@ -7128,9 +7128,9 @@ var BirdClient = class {
7128
7128
  this.#headers = {
7129
7129
  ...opts.defaultHeaders,
7130
7130
  Authorization: `Bearer ${opts.apiKey}`,
7131
- "User-Agent": `bird-sdk-js/0.33.0`,
7131
+ "User-Agent": `bird-sdk-js/0.33.1`,
7132
7132
  "Bird-Surface": "sdk-js",
7133
- "Bird-Version": "0.33.0"
7133
+ "Bird-Version": "0.33.1"
7134
7134
  };
7135
7135
  const caller = detectCaller();
7136
7136
  if (caller) this.#headers["Bird-Caller"] = caller;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messagebird/sdk",
3
- "version": "0.33.0",
3
+ "version": "0.33.1",
4
4
  "description": "The official TypeScript SDK for the Bird API: email, SMS, WhatsApp, verification, and Realtime on one typed client.",
5
5
  "license": "MIT",
6
6
  "author": "Bird",