@sendly/node 3.20.0 → 3.21.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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -675,7 +675,7 @@ declare const ALL_SUPPORTED_COUNTRIES: string[];
|
|
|
675
675
|
/**
|
|
676
676
|
* Webhook event types
|
|
677
677
|
*/
|
|
678
|
-
type WebhookEventType = "message.sent" | "message.delivered" | "message.failed" | "message.bounced" | "message.retrying" | "message.queued";
|
|
678
|
+
type WebhookEventType = "message.sent" | "message.delivered" | "message.failed" | "message.bounced" | "message.retrying" | "message.queued" | "message.received" | "message.opt_out" | "message.opt_in" | "verification.created" | "verification.delivered" | "verification.verified" | "verification.expired" | "verification.failed" | "verification.resent" | "verification.delivery_failed";
|
|
679
679
|
/**
|
|
680
680
|
* Webhook mode - filters which events are delivered
|
|
681
681
|
* - "all": Receives all events (sandbox + production)
|
|
@@ -3492,6 +3492,7 @@ declare class WebhooksSubResource {
|
|
|
3492
3492
|
get(): Promise<EnterpriseWebhook>;
|
|
3493
3493
|
delete(): Promise<void>;
|
|
3494
3494
|
test(): Promise<EnterpriseWebhookTestResult>;
|
|
3495
|
+
rotateSecret(): Promise<EnterpriseWebhook>;
|
|
3495
3496
|
}
|
|
3496
3497
|
declare class AnalyticsSubResource {
|
|
3497
3498
|
private readonly http;
|
|
@@ -3946,6 +3947,8 @@ interface WebhookMessageObject {
|
|
|
3946
3947
|
error?: string;
|
|
3947
3948
|
/** Custom metadata attached to the message */
|
|
3948
3949
|
metadata?: Record<string, unknown>;
|
|
3950
|
+
organization_id?: string | null;
|
|
3951
|
+
retry_count?: number;
|
|
3949
3952
|
}
|
|
3950
3953
|
/**
|
|
3951
3954
|
* Webhook event payload from Sendly
|
package/dist/index.d.ts
CHANGED
|
@@ -675,7 +675,7 @@ declare const ALL_SUPPORTED_COUNTRIES: string[];
|
|
|
675
675
|
/**
|
|
676
676
|
* Webhook event types
|
|
677
677
|
*/
|
|
678
|
-
type WebhookEventType = "message.sent" | "message.delivered" | "message.failed" | "message.bounced" | "message.retrying" | "message.queued";
|
|
678
|
+
type WebhookEventType = "message.sent" | "message.delivered" | "message.failed" | "message.bounced" | "message.retrying" | "message.queued" | "message.received" | "message.opt_out" | "message.opt_in" | "verification.created" | "verification.delivered" | "verification.verified" | "verification.expired" | "verification.failed" | "verification.resent" | "verification.delivery_failed";
|
|
679
679
|
/**
|
|
680
680
|
* Webhook mode - filters which events are delivered
|
|
681
681
|
* - "all": Receives all events (sandbox + production)
|
|
@@ -3492,6 +3492,7 @@ declare class WebhooksSubResource {
|
|
|
3492
3492
|
get(): Promise<EnterpriseWebhook>;
|
|
3493
3493
|
delete(): Promise<void>;
|
|
3494
3494
|
test(): Promise<EnterpriseWebhookTestResult>;
|
|
3495
|
+
rotateSecret(): Promise<EnterpriseWebhook>;
|
|
3495
3496
|
}
|
|
3496
3497
|
declare class AnalyticsSubResource {
|
|
3497
3498
|
private readonly http;
|
|
@@ -3946,6 +3947,8 @@ interface WebhookMessageObject {
|
|
|
3946
3947
|
error?: string;
|
|
3947
3948
|
/** Custom metadata attached to the message */
|
|
3948
3949
|
metadata?: Record<string, unknown>;
|
|
3950
|
+
organization_id?: string | null;
|
|
3951
|
+
retry_count?: number;
|
|
3949
3952
|
}
|
|
3950
3953
|
/**
|
|
3951
3954
|
* Webhook event payload from Sendly
|
package/dist/index.js
CHANGED
|
@@ -3168,6 +3168,13 @@ var WebhooksSubResource = class {
|
|
|
3168
3168
|
});
|
|
3169
3169
|
return transformKeys(response);
|
|
3170
3170
|
}
|
|
3171
|
+
async rotateSecret() {
|
|
3172
|
+
const response = await this.http.request({
|
|
3173
|
+
method: "POST",
|
|
3174
|
+
path: "/enterprise/webhooks/rotate-secret"
|
|
3175
|
+
});
|
|
3176
|
+
return transformKeys(response);
|
|
3177
|
+
}
|
|
3171
3178
|
};
|
|
3172
3179
|
var AnalyticsSubResource = class {
|
|
3173
3180
|
http;
|
package/dist/index.mjs
CHANGED
|
@@ -3108,6 +3108,13 @@ var WebhooksSubResource = class {
|
|
|
3108
3108
|
});
|
|
3109
3109
|
return transformKeys(response);
|
|
3110
3110
|
}
|
|
3111
|
+
async rotateSecret() {
|
|
3112
|
+
const response = await this.http.request({
|
|
3113
|
+
method: "POST",
|
|
3114
|
+
path: "/enterprise/webhooks/rotate-secret"
|
|
3115
|
+
});
|
|
3116
|
+
return transformKeys(response);
|
|
3117
|
+
}
|
|
3111
3118
|
};
|
|
3112
3119
|
var AnalyticsSubResource = class {
|
|
3113
3120
|
http;
|