@zernio/node 0.2.855 → 0.2.856

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
@@ -500,7 +500,7 @@ declare class Zernio {
500
500
  getWebhookSettings: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookSettingsResponse, GetWebhookSettingsError, ThrowOnError>;
501
501
  createWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWebhookSettingsResponse, unknown, ThrowOnError>;
502
502
  updateWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWebhookSettingsResponse, unknown, ThrowOnError>;
503
- deleteWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWebhookSettingsResponse, unknown, ThrowOnError>;
503
+ deleteWebhookSettings: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWebhookSettingsResponse, unknown, ThrowOnError>;
504
504
  getWebhookLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetWebhookLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookLogsResponse, unknown, ThrowOnError>;
505
505
  redeliverWebhookEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RedeliverWebhookEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RedeliverWebhookEventResponse, unknown, ThrowOnError>;
506
506
  testWebhook: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<TestWebhookData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TestWebhookResponse, unknown, ThrowOnError>;
@@ -22108,9 +22108,14 @@ type CreateWebhookSettingsError = (unknown | {
22108
22108
  type UpdateWebhookSettingsData = {
22109
22109
  body: {
22110
22110
  /**
22111
- * Webhook ID to update (required)
22111
+ * Webhook ID to update. Required unless the deprecated `_id` is sent instead.
22112
22112
  */
22113
- _id: string;
22113
+ webhookId?: string;
22114
+ /**
22115
+ * Alias of webhookId, kept for existing callers
22116
+ * @deprecated
22117
+ */
22118
+ _id?: string;
22114
22119
  /**
22115
22120
  * Webhook name (1-50 characters). Must be non-empty if provided.
22116
22121
  */
@@ -22158,11 +22163,16 @@ type UpdateWebhookSettingsError = (unknown | {
22158
22163
  required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks';
22159
22164
  });
22160
22165
  type DeleteWebhookSettingsData = {
22161
- query: {
22166
+ query?: {
22162
22167
  /**
22163
- * Webhook ID to delete
22168
+ * Alias of webhookId, kept for existing callers
22169
+ * @deprecated
22164
22170
  */
22165
- id: string;
22171
+ id?: string;
22172
+ /**
22173
+ * Webhook ID to delete, the same name the other /v1/webhooks operations use (logs, redeliver, test). Required unless the deprecated `id` is sent instead.
22174
+ */
22175
+ webhookId?: string;
22166
22176
  };
22167
22177
  };
22168
22178
  type DeleteWebhookSettingsResponse = ({
package/dist/index.d.ts CHANGED
@@ -500,7 +500,7 @@ declare class Zernio {
500
500
  getWebhookSettings: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookSettingsResponse, GetWebhookSettingsError, ThrowOnError>;
501
501
  createWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWebhookSettingsResponse, unknown, ThrowOnError>;
502
502
  updateWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWebhookSettingsResponse, unknown, ThrowOnError>;
503
- deleteWebhookSettings: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWebhookSettingsResponse, unknown, ThrowOnError>;
503
+ deleteWebhookSettings: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWebhookSettingsResponse, unknown, ThrowOnError>;
504
504
  getWebhookLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<GetWebhookLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookLogsResponse, unknown, ThrowOnError>;
505
505
  redeliverWebhookEvent: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<RedeliverWebhookEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RedeliverWebhookEventResponse, unknown, ThrowOnError>;
506
506
  testWebhook: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<TestWebhookData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TestWebhookResponse, unknown, ThrowOnError>;
@@ -22108,9 +22108,14 @@ type CreateWebhookSettingsError = (unknown | {
22108
22108
  type UpdateWebhookSettingsData = {
22109
22109
  body: {
22110
22110
  /**
22111
- * Webhook ID to update (required)
22111
+ * Webhook ID to update. Required unless the deprecated `_id` is sent instead.
22112
22112
  */
22113
- _id: string;
22113
+ webhookId?: string;
22114
+ /**
22115
+ * Alias of webhookId, kept for existing callers
22116
+ * @deprecated
22117
+ */
22118
+ _id?: string;
22114
22119
  /**
22115
22120
  * Webhook name (1-50 characters). Must be non-empty if provided.
22116
22121
  */
@@ -22158,11 +22163,16 @@ type UpdateWebhookSettingsError = (unknown | {
22158
22163
  required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks';
22159
22164
  });
22160
22165
  type DeleteWebhookSettingsData = {
22161
- query: {
22166
+ query?: {
22162
22167
  /**
22163
- * Webhook ID to delete
22168
+ * Alias of webhookId, kept for existing callers
22169
+ * @deprecated
22164
22170
  */
22165
- id: string;
22171
+ id?: string;
22172
+ /**
22173
+ * Webhook ID to delete, the same name the other /v1/webhooks operations use (logs, redeliver, test). Required unless the deprecated `id` is sent instead.
22174
+ */
22175
+ webhookId?: string;
22166
22176
  };
22167
22177
  };
22168
22178
  type DeleteWebhookSettingsResponse = ({
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.855",
39
+ version: "0.2.856",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.855",
8
+ version: "0.2.856",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.855",
3
+ "version": "0.2.856",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3557,7 +3557,7 @@ export const createWebhookSettings = <ThrowOnError extends boolean = false>(opti
3557
3557
 
3558
3558
  /**
3559
3559
  * Update webhook
3560
- * Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated.
3560
+ * Update an existing webhook configuration. All fields except `webhookId` are optional; only provided fields will be updated. `webhookId` is the same name the other /v1/webhooks operations use (logs, redeliver, test); the deprecated `_id` is still accepted in its place.
3561
3561
  *
3562
3562
  * When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation.
3563
3563
  *
@@ -3593,7 +3593,7 @@ export const updateWebhookSettings = <ThrowOnError extends boolean = false>(opti
3593
3593
  * Delete webhook
3594
3594
  * Permanently delete a webhook configuration.
3595
3595
  */
3596
- export const deleteWebhookSettings = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => {
3596
+ export const deleteWebhookSettings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<DeleteWebhookSettingsData, ThrowOnError>) => {
3597
3597
  return (options?.client ?? client).delete<DeleteWebhookSettingsResponse, DeleteWebhookSettingsError, ThrowOnError>({
3598
3598
  ...options,
3599
3599
  url: '/v1/webhooks/settings'
@@ -21538,9 +21538,14 @@ export type CreateWebhookSettingsError = (unknown | {
21538
21538
  export type UpdateWebhookSettingsData = {
21539
21539
  body: {
21540
21540
  /**
21541
- * Webhook ID to update (required)
21541
+ * Webhook ID to update. Required unless the deprecated `_id` is sent instead.
21542
21542
  */
21543
- _id: string;
21543
+ webhookId?: string;
21544
+ /**
21545
+ * Alias of webhookId, kept for existing callers
21546
+ * @deprecated
21547
+ */
21548
+ _id?: string;
21544
21549
  /**
21545
21550
  * Webhook name (1-50 characters). Must be non-empty if provided.
21546
21551
  */
@@ -21591,11 +21596,16 @@ export type UpdateWebhookSettingsError = (unknown | {
21591
21596
  });
21592
21597
 
21593
21598
  export type DeleteWebhookSettingsData = {
21594
- query: {
21599
+ query?: {
21595
21600
  /**
21596
- * Webhook ID to delete
21601
+ * Alias of webhookId, kept for existing callers
21602
+ * @deprecated
21597
21603
  */
21598
- id: string;
21604
+ id?: string;
21605
+ /**
21606
+ * Webhook ID to delete, the same name the other /v1/webhooks operations use (logs, redeliver, test). Required unless the deprecated `id` is sent instead.
21607
+ */
21608
+ webhookId?: string;
21599
21609
  };
21600
21610
  };
21601
21611