zernio-sdk 0.0.803 → 0.0.805

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: 7319f7914b71ce9396dbb032b737547adae046e05e81915ef6f3a984bf303197
4
- data.tar.gz: e0f6d2116ece4e970c6532617c4c4db0a7a56e1fac98b23f9eb14e925801b1c3
3
+ metadata.gz: a9c0311e691e62d3d1908979e431b1fd20cc96104498915152eeca7ffaa0c02b
4
+ data.tar.gz: 9de3e3fd9be90e23b659acb68ba846ed04c896c4480a38ec3b9e5ff422742dde
5
5
  SHA512:
6
- metadata.gz: dc7503a454f09a838ee9c6843116fca90b44bdede5265def03dae1ee1be30c985f9421f2bcd8e1ce4a4bbac1236537f74a73355e45ae2cb8cfddf6821a40b852
7
- data.tar.gz: 21a8011f608f07f9408e02b4ed05944ee84eea7d7ce351df2bad684d0bd0b4993f5f2bd9ad71d0acffdbb4b4d28297ed58fd25b00ac6077ed7b176dd6ce729b4
6
+ metadata.gz: 5fc8be5fe853af39bf12ad30d25e9f68086ef6482cd97a3aa937edbbf0d17f5eb231fa0e3f3a3a201fd506803da9b89188d5b39e9c2d5c0e15e3b13707458c0b
7
+ data.tar.gz: 6ce4ac7116f9d4f93fcd04084d6a8727d3f8c993e3e7ab01cb1bb912a7dab0b10a3b40b4e99120f13a90116a6b66c67a755bf6a5db7b3e1650d8ed3a0cd5194e
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **message** | **String** | | [optional] |
8
8
  | **post** | [**Post**](Post.md) | | [optional] |
9
+ | **warnings** | **Array<String>** | Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'zernio-sdk'
14
15
 
15
16
  instance = Zernio::PostCreateResponse.new(
16
17
  message: null,
17
- post: null
18
+ post: null,
19
+ warnings: null
18
20
  )
19
21
  ```
20
22
 
@@ -1491,7 +1491,7 @@ nil (empty response body)
1491
1491
 
1492
1492
  External post deleted event
1493
1493
 
1494
- Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns.
1494
+ Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1495
1495
 
1496
1496
  ### Examples
1497
1497
 
@@ -1763,7 +1763,7 @@ nil (empty response body)
1763
1763
 
1764
1764
  Post platform deleted event
1765
1765
 
1766
- Fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. `platform.deletedAt` carries the detection time. Detection is listing-based: a false positive self-heals in Zernio's data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns.
1766
+ Fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. `platform.deletedAt` carries the detection time. Detection is listing-based: a false positive self-heals in Zernio's data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1767
1767
 
1768
1768
  ### Examples
1769
1769
 
@@ -1406,7 +1406,7 @@ module Zernio
1406
1406
  end
1407
1407
 
1408
1408
  # External post deleted event
1409
- # Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns.
1409
+ # Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1410
1410
  # @param webhook_payload_external_post [WebhookPayloadExternalPost]
1411
1411
  # @param [Hash] opts the optional parameters
1412
1412
  # @return [nil]
@@ -1416,7 +1416,7 @@ module Zernio
1416
1416
  end
1417
1417
 
1418
1418
  # External post deleted event
1419
- # Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns.
1419
+ # Fired when a tracked native post is detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1420
1420
  # @param webhook_payload_external_post [WebhookPayloadExternalPost]
1421
1421
  # @param [Hash] opts the optional parameters
1422
1422
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -1670,7 +1670,7 @@ module Zernio
1670
1670
  end
1671
1671
 
1672
1672
  # Post platform deleted event
1673
- # Fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. `platform.deletedAt` carries the detection time. Detection is listing-based: a false positive self-heals in Zernio's data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns.
1673
+ # Fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. `platform.deletedAt` carries the detection time. Detection is listing-based: a false positive self-heals in Zernio's data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1674
1674
  # @param webhook_payload_post_platform [WebhookPayloadPostPlatform]
1675
1675
  # @param [Hash] opts the optional parameters
1676
1676
  # @return [nil]
@@ -1680,7 +1680,7 @@ module Zernio
1680
1680
  end
1681
1681
 
1682
1682
  # Post platform deleted event
1683
- # Fired when Zernio&#39;s background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. &#x60;platform.deletedAt&#x60; carries the detection time. Detection is listing-based: a false positive self-heals in Zernio&#39;s data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns.
1683
+ # Fired when Zernio&#39;s background sync detects that a platform target published through Zernio was later deleted on the platform (e.g. the user deleted the Instagram post natively). Detection is poll-driven (~hourly), not real-time, and fires once per platform target. &#x60;platform.deletedAt&#x60; carries the detection time. Detection is listing-based: a false positive self-heals in Zernio&#39;s data when the post reappears, but the event is not retracted. Coverage is bounded to the posts the platform listing returns. Detection is a diff against the posts a prior sync already indexed, so an account for which no post has ever been indexed can never emit this event, no matter how the subscription is configured.
1684
1684
  # @param webhook_payload_post_platform [WebhookPayloadPostPlatform]
1685
1685
  # @param [Hash] opts the optional parameters
1686
1686
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -19,11 +19,15 @@ module Zernio
19
19
 
20
20
  attr_accessor :post
21
21
 
22
+ # Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.
23
+ attr_accessor :warnings
24
+
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
25
28
  :'message' => :'message',
26
- :'post' => :'post'
29
+ :'post' => :'post',
30
+ :'warnings' => :'warnings'
27
31
  }
28
32
  end
29
33
 
@@ -41,7 +45,8 @@ module Zernio
41
45
  def self.openapi_types
42
46
  {
43
47
  :'message' => :'String',
44
- :'post' => :'Post'
48
+ :'post' => :'Post',
49
+ :'warnings' => :'Array<String>'
45
50
  }
46
51
  end
47
52
 
@@ -74,6 +79,12 @@ module Zernio
74
79
  if attributes.key?(:'post')
75
80
  self.post = attributes[:'post']
76
81
  end
82
+
83
+ if attributes.key?(:'warnings')
84
+ if (value = attributes[:'warnings']).is_a?(Array)
85
+ self.warnings = value
86
+ end
87
+ end
77
88
  end
78
89
 
79
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +108,8 @@ module Zernio
97
108
  return true if self.equal?(o)
98
109
  self.class == o.class &&
99
110
  message == o.message &&
100
- post == o.post
111
+ post == o.post &&
112
+ warnings == o.warnings
101
113
  end
102
114
 
103
115
  # @see the `==` method
@@ -109,7 +121,7 @@ module Zernio
109
121
  # Calculates hash code according to all attributes.
110
122
  # @return [Integer] Hash code
111
123
  def hash
112
- [message, post].hash
124
+ [message, post, warnings].hash
113
125
  end
114
126
 
115
127
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.803'
14
+ VERSION = '0.0.805'
15
15
  end
data/openapi.yaml CHANGED
@@ -155,7 +155,7 @@ x-documentation:
155
155
  - `post.tiktok.url_resolved` - A published TikTok post's public URL became available. TikTok exposes the numeric video id asynchronously, so `post.published` / `post.platform.published` can carry an empty `publishedUrl` for TikTok; this event delivers the URL once resolved (at most once per platform target). Never fires for drafts or private posts, which have no public URL.
156
156
  - `post.external.created` - A native post authored outside Zernio (e.g. a Google Business Profile localPost created in the Google UI) was detected by our sync for the first time. Poll-driven (~hourly), not real-time. Payload carries `post.source: "external"`.
157
157
  - `post.external.updated` - A tracked native post's text or media changed on the platform. Edits are detected by comparing text/media structure and (where the platform exposes it) the platform's own edit timestamp; media-URL-only refreshes do not fire this.
158
- - `post.external.deleted` - A tracked native post was detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns.
158
+ - `post.external.deleted` - A tracked native post was detected as removed from the platform. `post.deletedAt` carries the detection time. Coverage is bounded to the most recent posts the platform listing returns, and detection is a diff against posts a prior sync already indexed, so an account for which no post has ever been indexed never emits it.
159
159
  - `account.connected` - Social account connected
160
160
  - `account.disconnected` - Social account disconnected (token expired)
161
161
  - `account.ads.initial_sync_completed` - Initial ads sync (discovery + 90-day backfill) completed for an ads-enabled account
@@ -7577,6 +7577,11 @@ components:
7577
7577
  type: string
7578
7578
  post:
7579
7579
  $ref: '#/components/schemas/Post'
7580
+ warnings:
7581
+ type: array
7582
+ description: 'Advisory notices about a post that was still created: media truncated for a platform, a recycling caveat, or a field that was ignored because it sat outside platforms[].platformSpecificData. Absent when there are none.'
7583
+ items:
7584
+ type: string
7580
7585
  PostUpdateResponse:
7581
7586
  type: object
7582
7587
  properties:
@@ -9244,7 +9249,10 @@ webhooks:
9244
9249
  target. `platform.deletedAt` carries the detection time. Detection
9245
9250
  is listing-based: a false positive self-heals in Zernio's data when
9246
9251
  the post reappears, but the event is not retracted. Coverage is
9247
- bounded to the posts the platform listing returns.
9252
+ bounded to the posts the platform listing returns. Detection is a diff
9253
+ against the posts a prior sync already indexed, so an account for which no
9254
+ post has ever been indexed can never emit this event, no matter how the
9255
+ subscription is configured.
9248
9256
  tags: [Webhook Events]
9249
9257
  requestBody:
9250
9258
  required: true
@@ -9692,7 +9700,10 @@ webhooks:
9692
9700
  description: |
9693
9701
  Fired when a tracked native post is detected as removed from the platform.
9694
9702
  `post.deletedAt` carries the detection time. Coverage is bounded to the
9695
- most recent posts the platform listing returns.
9703
+ most recent posts the platform listing returns. Detection is a diff against
9704
+ the posts a prior sync already indexed, so an account for which no post has
9705
+ ever been indexed can never emit this event, no matter how the subscription
9706
+ is configured.
9696
9707
  tags: [Webhook Events]
9697
9708
  requestBody:
9698
9709
  required: true
@@ -39,4 +39,10 @@ describe Zernio::PostCreateResponse do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "warnings"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
42
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.803
4
+ version: 0.0.805
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator