@sendly/node 3.20.0 → 3.21.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 CHANGED
@@ -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;
package/dist/index.d.ts CHANGED
@@ -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;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendly/node",
3
- "version": "3.20.0",
3
+ "version": "3.21.0",
4
4
  "description": "Official Sendly Node.js SDK for SMS messaging",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",