late-sdk 0.0.865 → 0.0.867

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7d654bcbf8ea473de1f5159440fc6916554670b3c2dc9a223ecd639906bfb5
4
- data.tar.gz: '03793d29353ebc11729d503bf7fa8d74b413f5a413a875455e021f9f947e79ab'
3
+ metadata.gz: cd2956aebe225989dc7baf4548ac17b558fe58df1a01eb060792b616fecf4108
4
+ data.tar.gz: 0b1778c27e23d87cf05473c53b1999a033c4228e6f3d3722d1f4001cdcc3adbb
5
5
  SHA512:
6
- metadata.gz: b412b0536cd2657bcd51ed80bd593d3e08a1306354d5a595d6a3c606e25c5c2e9df1f006ae469f1b6070e4fc8a2ba16ab6a98d39202a7715156c78d8e6572c2d
7
- data.tar.gz: 9a8a64763c3c3f906eb2e7f64ef0b7cea961c99315087b5b9b31260e850eaba1af4dfa64101cce18c23996f39421e1702472e319705d986376e55efd9bc19903
6
+ metadata.gz: 219f4ebe4ac047fa31c07117584c875a10533f695ff4c0524aa13f985a5c8226818840beedf0c31b640b99d1c76a7a66b790c3647e40e186d1c11318931b2f13
7
+ data.tar.gz: 4605bd83d3cbdbd30f73154565a40ad529160a8ab64eae04b4792a240daf38ea20cbf6dab215f008bd3d3a41c8e9437515acfc26e6c43b4e137777a2bba702c4
@@ -13,7 +13,7 @@
13
13
  | **library_template_name** | **String** | Name of a pre-built template from Meta's template library (e.g., \"appointment_reminder\", \"auto_pay_reminder_1\", \"address_update\"). When provided, the template is pre-approved by Meta with no review wait. Omit components when using this field. | [optional] |
14
14
  | **library_template_body_inputs** | **Object** | Optional body customizations for library templates. Available options depend on the template (e.g., add_contact_number, add_learn_more_link, add_security_recommendation, add_track_package_link, code_expiration_minutes). | [optional] |
15
15
  | **library_template_button_inputs** | [**Array<CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner>**](CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner.md) | Optional button customizations for library templates. Each item specifies button type and configuration (e.g., URL, phone number, quick reply). | [optional] |
16
- | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
16
+ | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
17
17
 
18
18
  ## Example
19
19
 
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_id** | **String** | WhatsApp social account ID | |
8
8
  | **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required. | [optional] |
9
- | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
9
+ | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -7,7 +7,7 @@
7
7
  | **account_id** | **String** | WhatsApp social account ID | |
8
8
  | **language** | **String** | Language code of the variant to edit (e.g. en_US, es, pt_BR). Required when the family has several languages. Body only: a language query parameter on PATCH is a 400. | [optional] |
9
9
  | **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required. | [optional] |
10
- | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
10
+ | **message_send_ttl_seconds** | **Integer** | Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check). | [optional] |
11
11
 
12
12
  ## Example
13
13
 
data/docs/WhatsAppApi.md CHANGED
@@ -2615,7 +2615,7 @@ end
2615
2615
 
2616
2616
  Update template
2617
2617
 
2618
- Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2618
+ Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2619
2619
 
2620
2620
  ### Examples
2621
2621
 
@@ -2686,7 +2686,7 @@ end
2686
2686
 
2687
2687
  Update template by id
2688
2688
 
2689
- Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2689
+ Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2690
2690
 
2691
2691
  ### Examples
2692
2692
 
@@ -379,7 +379,7 @@ module Zernio
379
379
  if @api_client.config.debugging
380
380
  @api_client.config.logger.debug 'Calling API: ContactsApi.list_contacts ...'
381
381
  end
382
- allowable_values = ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"]
382
+ allowable_values = ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack", "sms"]
383
383
  if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
384
384
  fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
385
385
  end
@@ -2581,7 +2581,7 @@ module Zernio
2581
2581
  end
2582
2582
 
2583
2583
  # Update template
2584
- # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2584
+ # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2585
2585
  # @param template_name [String] Template name (the family).
2586
2586
  # @param update_whats_app_template_request [UpdateWhatsAppTemplateRequest]
2587
2587
  # @param [Hash] opts the optional parameters
@@ -2592,7 +2592,7 @@ module Zernio
2592
2592
  end
2593
2593
 
2594
2594
  # Update template
2595
- # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2595
+ # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2596
2596
  # @param template_name [String] Template name (the family).
2597
2597
  # @param update_whats_app_template_request [UpdateWhatsAppTemplateRequest]
2598
2598
  # @param [Hash] opts the optional parameters
@@ -2655,7 +2655,7 @@ module Zernio
2655
2655
  end
2656
2656
 
2657
2657
  # Update template by id
2658
- # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2658
+ # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2659
2659
  # @param template_id [String] Meta template id (numeric).
2660
2660
  # @param update_whats_app_template_by_id_request [UpdateWhatsAppTemplateByIdRequest]
2661
2661
  # @param [Hash] opts the optional parameters
@@ -2666,7 +2666,7 @@ module Zernio
2666
2666
  end
2667
2667
 
2668
2668
  # Update template by id
2669
- # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2669
+ # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
2670
2670
  # @param template_id [String] Meta template id (numeric).
2671
2671
  # @param update_whats_app_template_by_id_request [UpdateWhatsAppTemplateByIdRequest]
2672
2672
  # @param [Hash] opts the optional parameters
@@ -185,7 +185,7 @@ module Zernio
185
185
  return false if @profile_id.nil?
186
186
  return false if @account_id.nil?
187
187
  return false if @platform.nil?
188
- platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
188
+ platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "sms", "slack"])
189
189
  return false unless platform_validator.valid?(@platform)
190
190
  return false if @name.nil?
191
191
  true
@@ -214,7 +214,7 @@ module Zernio
214
214
  # Custom attribute writer method checking allowed values (enum).
215
215
  # @param [Object] platform Object to be assigned
216
216
  def platform=(platform)
217
- validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
217
+ validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "sms", "slack"])
218
218
  unless validator.valid?(platform)
219
219
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
220
220
  end
@@ -202,7 +202,7 @@ module Zernio
202
202
  warn '[DEPRECATED] the `valid?` method is obsolete'
203
203
  return false if @profile_id.nil?
204
204
  return false if @name.nil?
205
- platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
205
+ platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack", "sms"])
206
206
  return false unless platform_validator.valid?(@platform)
207
207
  true
208
208
  end
@@ -230,7 +230,7 @@ module Zernio
230
230
  # Custom attribute writer method checking allowed values (enum).
231
231
  # @param [Object] platform Object to be assigned
232
232
  def platform=(platform)
233
- validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
233
+ validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack", "sms"])
234
234
  unless validator.valid?(platform)
235
235
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
236
236
  end
@@ -191,7 +191,7 @@ module Zernio
191
191
  return false if @profile_id.nil?
192
192
  return false if @account_id.nil?
193
193
  return false if @platform.nil?
194
- platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
194
+ platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
195
195
  return false unless platform_validator.valid?(@platform)
196
196
  return false if @name.nil?
197
197
  true
@@ -220,7 +220,7 @@ module Zernio
220
220
  # Custom attribute writer method checking allowed values (enum).
221
221
  # @param [Object] platform Object to be assigned
222
222
  def platform=(platform)
223
- validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
223
+ validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
224
224
  unless validator.valid?(platform)
225
225
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
226
226
  end
@@ -42,7 +42,7 @@ module Zernio
42
42
  # Optional button customizations for library templates. Each item specifies button type and configuration (e.g., URL, phone number, quick reply).
43
43
  attr_accessor :library_template_button_inputs
44
44
 
45
- # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
45
+ # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
46
46
  attr_accessor :message_send_ttl_seconds
47
47
 
48
48
  class EnumAttributeValidator
@@ -21,7 +21,7 @@ module Zernio
21
21
  # Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
22
22
  attr_accessor :components
23
23
 
24
- # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
24
+ # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
25
25
  attr_accessor :message_send_ttl_seconds
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,7 +24,7 @@ module Zernio
24
24
  # Updated template components. Optional when only message_send_ttl_seconds changes; at least one of the two is required.
25
25
  attr_accessor :components
26
26
 
27
- # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
27
+ # Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).
28
28
  attr_accessor :message_send_ttl_seconds
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.865'
14
+ VERSION = '0.0.867'
15
15
  end
data/openapi.yaml CHANGED
@@ -31329,7 +31329,7 @@ paths:
31329
31329
  type: string
31330
31330
  message_send_ttl_seconds:
31331
31331
  type: integer
31332
- description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31332
+ description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 (create only) keeps the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31333
31333
  examples:
31334
31334
  custom:
31335
31335
  summary: Custom template (requires review)
@@ -31482,8 +31482,9 @@ paths:
31482
31482
  must match exactly. Variants in `PENDING_DELETION` are not part of the family.
31483
31483
 
31484
31484
  Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
31485
- template can be edited once per 24 hours and up to 10 times per 30 days. A successful update
31486
- sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`.
31485
+ template can be edited once per 24 hours and up to 10 times per 30 days. A component update
31486
+ sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`;
31487
+ a TTL-only update keeps an APPROVED variant approved.
31487
31488
  The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the
31488
31489
  variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again
31489
31490
  until Meta finishes reviewing it.
@@ -31519,7 +31520,7 @@ paths:
31519
31520
  $ref: '#/components/schemas/WhatsAppTemplateComponent'
31520
31521
  message_send_ttl_seconds:
31521
31522
  type: integer
31522
- description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31523
+ description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31523
31524
  example:
31524
31525
  accountId: "507f1f77bcf86cd799439011"
31525
31526
  language: "es"
@@ -31695,8 +31696,9 @@ paths:
31695
31696
  Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change.
31696
31697
 
31697
31698
  Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved
31698
- template can be edited once per 24 hours and up to 10 times per 30 days. A successful update
31699
- sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`.
31699
+ template can be edited once per 24 hours and up to 10 times per 30 days. A component update
31700
+ sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`;
31701
+ a TTL-only update keeps an APPROVED variant approved.
31700
31702
  The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the
31701
31703
  variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again
31702
31704
  until Meta finishes reviewing it.
@@ -31729,7 +31731,7 @@ paths:
31729
31731
  $ref: '#/components/schemas/WhatsAppTemplateComponent'
31730
31732
  message_send_ttl_seconds:
31731
31733
  type: integer
31732
- description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 restores the 30-day default on AUTHENTICATION and UTILITY. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31734
+ description: 'Delivery validity window in seconds: a message not delivered within it is dropped. Range depends on category: AUTHENTICATION 30 to 900, UTILITY 30 to 43200 (12h), MARKETING 43200 to 2592000 (30 days); -1 is not accepted here (Meta treats it as an empty edit); send a value in range. A TTL-only edit keeps an APPROVED template approved, no re-review. Meta defaults to 600 for AUTHENTICATION and 30 days otherwise. If Meta later recategorises the template, it clears the TTL (read it back to check).'
31733
31735
  responses:
31734
31736
  '200':
31735
31737
  description: Template updated successfully
@@ -38981,7 +38983,7 @@ paths:
38981
38983
  - { name: search, in: query, schema: { type: string }, description: 'Case-insensitive substring match on the contact name, email and company. Phone numbers and other platform identifiers are not matched: they live on the contact channel, not on the contact. To reach a contact from an inbox webhook, use the conversation.contactId it already carries.' }
38982
38984
  - { name: tag, in: query, schema: { type: string } }
38983
38985
  - { name: tags, in: query, schema: { type: string }, description: 'Comma-separated tags, matches contacts carrying any of them' }
38984
- - { name: platform, in: query, schema: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack] } }
38986
+ - { name: platform, in: query, schema: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, sms] } }
38985
38987
  - { name: isSubscribed, in: query, schema: { type: string, enum: ['true', 'false'] } }
38986
38988
  - { name: limit, in: query, schema: { type: integer, default: 50, maximum: 200 } }
38987
38989
  - { name: skip, in: query, schema: { type: integer, default: 0 } }
@@ -39052,7 +39054,7 @@ paths:
39052
39054
  isSubscribed: { type: boolean, default: true }
39053
39055
  notes: { type: string }
39054
39056
  accountId: { type: string, description: Optional. Creates a channel if provided with platform + platformIdentifier }
39055
- platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack], description: 'Channel platform. Only the enum values support contact channels; any other platform is rejected with code platform_not_supported.' }
39057
+ platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, sms], description: 'Channel platform. Only the enum values support contact channels; any other platform is rejected with code platform_not_supported.' }
39056
39058
  platformIdentifier: { type: string }
39057
39059
  displayIdentifier: { type: string }
39058
39060
  responses:
@@ -39523,7 +39525,7 @@ paths:
39523
39525
  properties:
39524
39526
  profileId: { type: string }
39525
39527
  accountId: { type: string }
39526
- platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] }
39528
+ platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, sms, slack] }
39527
39529
  name: { type: string }
39528
39530
  description: { type: string }
39529
39531
  message:
@@ -40478,7 +40480,7 @@ paths:
40478
40480
  properties:
40479
40481
  profileId: { type: string }
40480
40482
  accountId: { type: string }
40481
- platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp] }
40483
+ platform: { type: string, enum: [instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack] }
40482
40484
  name: { type: string }
40483
40485
  description: { type: string }
40484
40486
  steps:
@@ -498,7 +498,7 @@ describe 'WhatsAppApi' do
498
498
 
499
499
  # unit tests for update_whats_app_template
500
500
  # Update template
501
- # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
501
+ # Update one variant's components and/or its message_send_ttl_seconds. Name, language and category cannot change after creation. Meta stores one template per **name + language**, so a name identifies a family of variants, each with its own Meta id. Pass `language` to address one variant. Without it, a name with a single variant resolves to that variant; a name with several returns `409 ambiguous_template` with `details.languages`. A bare language (`es`) matches a single regional variant (`es_ES`); if the family has several regional variants for it, that is also a 409. A full code (`es_ES`) must match exactly. Variants in `PENDING_DELETION` are not part of the family. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
502
502
  # @param template_name Template name (the family).
503
503
  # @param update_whats_app_template_request
504
504
  # @param [Hash] opts the optional parameters
@@ -511,7 +511,7 @@ describe 'WhatsAppApi' do
511
511
 
512
512
  # unit tests for update_whats_app_template_by_id
513
513
  # Update template by id
514
- # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A successful update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
514
+ # Update one variant's components and/or its message_send_ttl_seconds by its Meta id. Name, language and category cannot change. Meta only allows editing templates in `APPROVED`, `REJECTED` or `PAUSED` state; an approved template can be edited once per 24 hours and up to 10 times per 30 days. A component update sends the variant back to Meta for review, so the `status` returned here is normally `PENDING`; a TTL-only update keeps an APPROVED variant approved. The final outcome arrives on the `whatsapp.template.status_updated` webhook (which carries the variant's `templateId` and `language`). A variant already in `PENDING` cannot be edited again until Meta finishes reviewing it.
515
515
  # @param template_id Meta template id (numeric).
516
516
  # @param update_whats_app_template_by_id_request
517
517
  # @param [Hash] opts the optional parameters
@@ -42,7 +42,7 @@ describe Zernio::CreateBroadcastRequest do
42
42
  describe 'test attribute "platform"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "sms", "slack"])
46
46
  # validator.allowable_values.each do |value|
47
47
  # expect { instance.platform = value }.not_to raise_error
48
48
  # end
@@ -78,7 +78,7 @@ describe Zernio::CreateContactRequest do
78
78
  describe 'test attribute "platform"' do
79
79
  it 'should work' do
80
80
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
81
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack", "sms"])
82
82
  # validator.allowable_values.each do |value|
83
83
  # expect { instance.platform = value }.not_to raise_error
84
84
  # end
@@ -42,7 +42,7 @@ describe Zernio::CreateSequenceRequest do
42
42
  describe 'test attribute "platform"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp", "slack"])
46
46
  # validator.allowable_values.each do |value|
47
47
  # expect { instance.platform = value }.not_to raise_error
48
48
  # end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.865
4
+ version: 0.0.867
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -5800,7 +5800,7 @@ files:
5800
5800
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5801
5801
  - spec/models/you_tube_video_retention_response_spec.rb
5802
5802
  - spec/spec_helper.rb
5803
- - zernio-sdk-0.0.865.gem
5803
+ - zernio-sdk-0.0.867.gem
5804
5804
  - zernio-sdk.gemspec
5805
5805
  homepage: https://openapi-generator.tech
5806
5806
  licenses:
Binary file