late-sdk 0.0.815 → 0.0.816

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: 041bcf4624710e18b46bafa4fffc72ca5a6abbca5c7f558b6eba76aff7478d4c
4
- data.tar.gz: 65ae0ed2304e4b20029879dc14e6ace1173fe34d51994d51977e59cd2b031f90
3
+ metadata.gz: 3525f01a2062dc2131d0647fdcc7562a2774796b17c10d53066211d8b552a953
4
+ data.tar.gz: 3e9107679f37470121ddbd7b81ae7daf90a200f608ac0f33d0e662908db87a54
5
5
  SHA512:
6
- metadata.gz: d81c5be5ef439bcf522d41566a5d16e1656a8d0ec15b2289bb125f1ce89a44a7aac9e00ae3ffa5e649cfe241ad43b5ff80ed478cfc06269e3aa6112d6a1a9e6a
7
- data.tar.gz: 73b2bbca6f986fbd45c2dc3fda4071c5563357e1185f6f654b5b5c0d7888d10b7fa23f30bed63b8e37090bc11c7d46a1fc985d61aeefa76fee73000b53696d8f
6
+ metadata.gz: e99fdffbd77b99c0a73bbb49050510b21195597e76137daad38700e7b1fb29056ee1849c21dab534a845cff16af5c7826dce3c1ea04a19bbefe7043c6c2f64c9
7
+ data.tar.gz: 6f38e29b952c553f6f6272bcc53424591a32599d8ff7566cafd10e6c18d4f106183143b4dc7a30dfbdd0a15b064d169521b628afca0d4141bf4b702f69b69dc2
data/docs/WebhooksApi.md CHANGED
@@ -304,7 +304,7 @@ This endpoint does not need any parameter.
304
304
 
305
305
  Redeliver a webhook event
306
306
 
307
- Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 500. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
307
+ Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 422. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
308
308
 
309
309
  ### Examples
310
310
 
@@ -333,7 +333,7 @@ module Zernio
333
333
  end
334
334
 
335
335
  # Redeliver a webhook event
336
- # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 500. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
336
+ # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 422. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
337
337
  # @param redeliver_webhook_event_request [RedeliverWebhookEventRequest]
338
338
  # @param [Hash] opts the optional parameters
339
339
  # @return [UnpublishPost200Response]
@@ -343,7 +343,7 @@ module Zernio
343
343
  end
344
344
 
345
345
  # Redeliver a webhook event
346
- # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 500. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
346
+ # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription's current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in `GET /v1/webhooks/logs` next to the delivery it replays. Both `webhookId` and `eventId` come from a row of `GET /v1/webhooks/logs`. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 422. Replays run the same resource-group checks as live delivery, against both the key's groups and the subscription's `disabledResourceGroups`.
347
347
  # @param redeliver_webhook_event_request [RedeliverWebhookEventRequest]
348
348
  # @param [Hash] opts the optional parameters
349
349
  # @return [Array<(UnpublishPost200Response, Integer, Hash)>] UnpublishPost200Response data, response status code and response headers
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # Replace or patch the ad's creative. Meta, TikTok, and LinkedIn. - **Meta**: patch-style. Pass any subset — fields you omit are preserved from the live creative, including media (`image_hash`/`video_id` are reused, no re-upload) and `url_tags`. Sending the full set (`headline`, `body`, `callToAction`, `linkUrl`, `imageUrl`) rebuilds the creative from scratch instead. Partial patching reads the live `object_story_spec`, which Meta strips on SHARE / page-post / dark / asset_feed creatives — those return 422 asking for the full set. A `videoUrl`/`videoId` on an image creative is a type change and also needs the full set. `existingCreativeId` repoints the ad at a creative from GET /v1/ads/creatives and ignores every other field. Meta creatives are immutable, so any change creates a new creative and repoints the ad; the old creative is retained on the ad account for historical reporting. - **TikTok**: patch-style. Pass any subset; `headline` is ignored (TikTok creatives have no headline slot). `body` becomes the in-feed `ad_text`; `linkUrl` becomes `landing_page_url`; `videoUrl` triggers a fresh upload. `description`, `videoId` and `existingCreativeId` are Meta-only and return 400. - **LinkedIn**: uploads new media (image via `imageUrl` or video via `videoUrl`), creates a new inline media creative on the same campaign, and pauses the old creative (best-effort). The old creative is retained for historical reporting. `videoId` and `existingCreativeId` are Meta-only and return 400.
17
+ # Replace or patch the ad's creative. Meta, TikTok, and LinkedIn. - **Meta**: patch-style. Pass any subset — fields you omit are preserved from the live creative, including media (`image_hash`/`video_id` are reused, no re-upload) and `url_tags`. Sending the full set (`headline`, `body`, `callToAction`, `linkUrl`, `imageUrl`) rebuilds the creative from scratch instead. Partial patching reads the live `object_story_spec`, which Meta strips on SHARE / page-post / dark / asset_feed creatives — those return 422 asking for the full set. A `videoUrl`/`videoId` on an image creative is a type change and also needs the full set. `existingCreativeId` repoints the ad at a creative from GET /v1/ads/creatives and ignores every other field. Meta creatives are immutable, so any change creates a new creative and repoints the ad; the old creative is retained on the ad account for historical reporting. - **TikTok**: patch-style. Pass any subset; `headline` is ignored (TikTok creatives have no headline slot). `body` becomes the in-feed `ad_text`; `linkUrl` becomes `landing_page_url`; `videoUrl` triggers a fresh upload. `description`, `videoId` and `existingCreativeId` are Meta-only and return 400. - **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`); a text-only creative update returns 400. Uploads the media, creates a new inline media creative on the same campaign, and pauses the old creative (best-effort). The old creative is retained for historical reporting. `videoId` and `existingCreativeId` are Meta-only and return 400.
18
18
  class UpdateAdRequestCreative < ApiModelBase
19
19
  # Meta and LinkedIn (TikTok has no headline slot)
20
20
  attr_accessor :headline
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.815'
14
+ VERSION = '0.0.816'
15
15
  end
data/openapi.yaml CHANGED
@@ -25697,7 +25697,7 @@ paths:
25697
25697
  emitted, not the current state of the resource.
25698
25698
 
25699
25699
  Only deliveries inside the 30-day log retention window can be replayed; past that
25700
- the payload is gone and the request fails with a 500. Replays run the same
25700
+ the payload is gone and the request fails with a 422. Replays run the same
25701
25701
  resource-group checks as live delivery, against both the key's groups and the
25702
25702
  subscription's `disabledResourceGroups`.
25703
25703
  security:
@@ -25736,10 +25736,11 @@ paths:
25736
25736
  example:
25737
25737
  success: true
25738
25738
  message: "Webhook re-delivered"
25739
- '400': { description: 'webhookId or eventId missing or empty' }
25739
+ '400': { description: 'webhookId or eventId missing or empty, or the subscription has no URL configured' }
25740
25740
  '401': { $ref: '#/components/responses/Unauthorized' }
25741
25741
  '403': { $ref: '#/components/responses/ResourceGroupForbidden' }
25742
- '500': { description: 'Webhook no longer exists, has no URL configured, or the original payload is outside the 30-day retention window' }
25742
+ '404': { description: 'Webhook subscription not found' }
25743
+ '422': { description: 'Original payload not replayable: no delivery matches this event inside the 30-day retention window, or the stored payload is truncated or not valid JSON' }
25743
25744
  '502':
25744
25745
  description: |
25745
25746
  Re-delivery was attempted but your endpoint errored again. The attempt is still
@@ -41662,10 +41663,11 @@ paths:
41662
41663
  have no headline slot). `body` becomes the in-feed `ad_text`; `linkUrl` becomes
41663
41664
  `landing_page_url`; `videoUrl` triggers a fresh upload. `description`, `videoId`
41664
41665
  and `existingCreativeId` are Meta-only and return 400.
41665
- - **LinkedIn**: uploads new media (image via `imageUrl` or video via `videoUrl`),
41666
- creates a new inline media creative on the same campaign, and pauses the old
41667
- creative (best-effort). The old creative is retained for historical reporting.
41668
- `videoId` and `existingCreativeId` are Meta-only and return 400.
41666
+ - **LinkedIn**: requires new media (image via `imageUrl` or video via `videoUrl`);
41667
+ a text-only creative update returns 400. Uploads the media, creates a new inline
41668
+ media creative on the same campaign, and pauses the old creative (best-effort).
41669
+ The old creative is retained for historical reporting. `videoId` and
41670
+ `existingCreativeId` are Meta-only and return 400.
41669
41671
  properties:
41670
41672
  headline: { type: string, description: "Meta and LinkedIn (TikTok has no headline slot)" }
41671
41673
  body: { type: string }
@@ -41688,7 +41690,7 @@ paths:
41688
41690
  ad: { $ref: '#/components/schemas/Ad' }
41689
41691
  message: { type: string }
41690
41692
  '400':
41691
- description: Invalid status transition or budget below minimum
41693
+ description: 'Invalid status transition, budget below minimum, or a LinkedIn creative update without imageUrl or videoUrl'
41692
41694
  '401': { $ref: '#/components/responses/Unauthorized' }
41693
41695
  '404': { $ref: '#/components/responses/NotFound' }
41694
41696
  '501': { description: "targeting or creative not supported on the platform (supported on Meta, TikTok, and LinkedIn)" }
@@ -86,7 +86,7 @@ describe 'WebhooksApi' do
86
86
 
87
87
  # unit tests for redeliver_webhook_event
88
88
  # Redeliver a webhook event
89
- # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription&#39;s current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in &#x60;GET /v1/webhooks/logs&#x60; next to the delivery it replays. Both &#x60;webhookId&#x60; and &#x60;eventId&#x60; come from a row of &#x60;GET /v1/webhooks/logs&#x60;. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 500. Replays run the same resource-group checks as live delivery, against both the key&#39;s groups and the subscription&#39;s &#x60;disabledResourceGroups&#x60;.
89
+ # Replay a past delivery: the original payload is re-sent, byte for byte, to the subscription&#39;s current URL. The original event ID is preserved so your endpoint can dedupe, and the replay is recorded as a fresh attempt, so it shows up in &#x60;GET /v1/webhooks/logs&#x60; next to the delivery it replays. Both &#x60;webhookId&#x60; and &#x60;eventId&#x60; come from a row of &#x60;GET /v1/webhooks/logs&#x60;. Because the stored payload is replayed as-is, a redelivery reflects the event as it was emitted, not the current state of the resource. Only deliveries inside the 30-day log retention window can be replayed; past that the payload is gone and the request fails with a 422. Replays run the same resource-group checks as live delivery, against both the key&#39;s groups and the subscription&#39;s &#x60;disabledResourceGroups&#x60;.
90
90
  # @param redeliver_webhook_event_request
91
91
  # @param [Hash] opts the optional parameters
92
92
  # @return [UnpublishPost200Response]
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.815
4
+ version: 0.0.816
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -5557,7 +5557,7 @@ files:
5557
5557
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5558
5558
  - spec/models/you_tube_video_retention_response_spec.rb
5559
5559
  - spec/spec_helper.rb
5560
- - zernio-sdk-0.0.815.gem
5560
+ - zernio-sdk-0.0.816.gem
5561
5561
  - zernio-sdk.gemspec
5562
5562
  homepage: https://openapi-generator.tech
5563
5563
  licenses:
Binary file