late-sdk 0.0.603 → 0.0.605

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: 9aeba17905946cf73caedb905b1502fc7b4afb5e30c525ec206f58f896d7bf78
4
- data.tar.gz: 959be2fdd4ec82f58a0476d9c17f91b77058b0575d06a41cefb5a09bad8588fd
3
+ metadata.gz: 16f9195c372fe5237ef52cf0226f10f823a7dc0b9ef2dcbeb45ff7acd8f82297
4
+ data.tar.gz: 5ca62ebb38a157ccac564f9eed092c4264cf5a3006be26e8ff08c8251349751e
5
5
  SHA512:
6
- metadata.gz: 85d900771d6ed7aaa8e852ee8532f5550c13da223774f0bcec0a69eaf4571e8bd5efb5787bb3b19dc299fb3afefaba797305b528aaeeab1fc5bf2b026174bca4
7
- data.tar.gz: 310dd72b8ef3eca9b69f58ca8ce960f4c05a8e69a7798aad03a2ad4f6ef70777e12f2d25d5e17ee58f849a5e7da5f82e5cdac7020b9c761ab8d9d0bd58d0c524
6
+ metadata.gz: 54e40535e76e05c061392b5584d44b8ffad3fffde7866324b0004f8031a1c75784613d478fbebf5cf366ac1c9ef00aee6c450b8e710f7393341faac11087785a
7
+ data.tar.gz: 58c82df5fa4794973fba3a5924c80600d62834b79beffad827afbf773cf1a757ad2ba3354ed8732ec45367e1e3c0f037687107c6cf9831035ed07a5382fbe8ea
@@ -9,7 +9,7 @@
9
9
  | **collaborators** | **Array<String>** | Up to 3 Instagram usernames to invite as collaborators (feed/Reels only) | [optional] |
10
10
  | **first_comment** | **String** | Optional first comment to add after the post is created (not applied to Stories) | [optional] |
11
11
  | **trial_params** | [**InstagramPlatformDataTrialParams**](InstagramPlatformDataTrialParams.md) | | [optional] |
12
- | **user_tags** | [**Array<InstagramPlatformDataUserTagsInner>**](InstagramPlatformDataUserTagsInner.md) | Tag Instagram users in photos by username and position. Not supported for stories or videos. For carousels, use mediaIndex to target specific slides (defaults to 0). Tags on video items are silently skipped. | [optional] |
12
+ | **user_tags** | [**Array<InstagramPlatformDataUserTagsInner>**](InstagramPlatformDataUserTagsInner.md) | Tag Instagram users by username. The tag shape depends on the media: photos require x/y coordinates, Reels and videos take username only (coordinates are ignored), stories accept optional coordinates. For carousels, use mediaIndex to target specific slides (defaults to 0); video slides take username-only tags. Photo tags without valid coordinates are skipped. | [optional] |
13
13
  | **audio_name** | **String** | Custom name for original audio in Reels. Replaces the default \"Original Audio\" label. Can only be set once. | [optional] |
14
14
  | **thumb_offset** | **Integer** | Millisecond offset from video start for the Reel cover frame. Ignored when instagramThumbnail or reelCover is provided. Defaults to 0. | [optional] |
15
15
  | **instagram_thumbnail** | **String** | Custom cover image URL for Instagram Reels (JPG or PNG, publicly accessible). Overrides thumbOffset when provided. Also accepted as reelCover (alias). | [optional] |
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **username** | **String** | Instagram username (@ symbol is optional and will be removed automatically) | |
8
- | **x** | **Float** | X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right) | |
9
- | **y** | **Float** | Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom) | |
10
- | **media_index** | **Integer** | Zero-based index of the carousel item to tag. Defaults to 0. Tags on video items or out-of-range indices are ignored. | [optional] |
8
+ | **x** | **Float** | X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right). Required for photos, ignored for Reels/videos, optional for stories. | [optional] |
9
+ | **y** | **Float** | Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom). Required for photos, ignored for Reels/videos, optional for stories. | [optional] |
10
+ | **media_index** | **Integer** | Zero-based index of the carousel item to tag. Defaults to 0. Tags on out-of-range indices are ignored. | [optional] |
11
11
 
12
12
  ## Example
13
13
 
@@ -779,7 +779,7 @@ module Zernio
779
779
  if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
780
780
  fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
781
781
  end
782
- allowable_values = ["facebook", "instagram", "telegram", "whatsapp", "sms"]
782
+ allowable_values = ["facebook", "instagram", "telegram", "whatsapp", "sms", "slack"]
783
783
  if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
784
784
  fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
785
785
  end
@@ -30,7 +30,7 @@ module Zernio
30
30
 
31
31
  attr_accessor :trial_params
32
32
 
33
- # Tag Instagram users in photos by username and position. Not supported for stories or videos. For carousels, use mediaIndex to target specific slides (defaults to 0). Tags on video items are silently skipped.
33
+ # Tag Instagram users by username. The tag shape depends on the media: photos require x/y coordinates, Reels and videos take username only (coordinates are ignored), stories accept optional coordinates. For carousels, use mediaIndex to target specific slides (defaults to 0); video slides take username-only tags. Photo tags without valid coordinates are skipped.
34
34
  attr_accessor :user_tags
35
35
 
36
36
  # Custom name for original audio in Reels. Replaces the default \"Original Audio\" label. Can only be set once.
@@ -18,13 +18,13 @@ module Zernio
18
18
  # Instagram username (@ symbol is optional and will be removed automatically)
19
19
  attr_accessor :username
20
20
 
21
- # X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right)
21
+ # X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right). Required for photos, ignored for Reels/videos, optional for stories.
22
22
  attr_accessor :x
23
23
 
24
- # Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom)
24
+ # Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom). Required for photos, ignored for Reels/videos, optional for stories.
25
25
  attr_accessor :y
26
26
 
27
- # Zero-based index of the carousel item to tag. Defaults to 0. Tags on video items or out-of-range indices are ignored.
27
+ # Zero-based index of the carousel item to tag. Defaults to 0. Tags on out-of-range indices are ignored.
28
28
  attr_accessor :media_index
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -87,14 +87,10 @@ module Zernio
87
87
 
88
88
  if attributes.key?(:'x')
89
89
  self.x = attributes[:'x']
90
- else
91
- self.x = nil
92
90
  end
93
91
 
94
92
  if attributes.key?(:'y')
95
93
  self.y = attributes[:'y']
96
- else
97
- self.y = nil
98
94
  end
99
95
 
100
96
  if attributes.key?(:'media_index')
@@ -111,27 +107,19 @@ module Zernio
111
107
  invalid_properties.push('invalid value for "username", username cannot be nil.')
112
108
  end
113
109
 
114
- if @x.nil?
115
- invalid_properties.push('invalid value for "x", x cannot be nil.')
116
- end
117
-
118
- if @x > 1
110
+ if !@x.nil? && @x > 1
119
111
  invalid_properties.push('invalid value for "x", must be smaller than or equal to 1.')
120
112
  end
121
113
 
122
- if @x < 0
114
+ if !@x.nil? && @x < 0
123
115
  invalid_properties.push('invalid value for "x", must be greater than or equal to 0.')
124
116
  end
125
117
 
126
- if @y.nil?
127
- invalid_properties.push('invalid value for "y", y cannot be nil.')
128
- end
129
-
130
- if @y > 1
118
+ if !@y.nil? && @y > 1
131
119
  invalid_properties.push('invalid value for "y", must be smaller than or equal to 1.')
132
120
  end
133
121
 
134
- if @y < 0
122
+ if !@y.nil? && @y < 0
135
123
  invalid_properties.push('invalid value for "y", must be greater than or equal to 0.')
136
124
  end
137
125
 
@@ -147,12 +135,10 @@ module Zernio
147
135
  def valid?
148
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
149
137
  return false if @username.nil?
150
- return false if @x.nil?
151
- return false if @x > 1
152
- return false if @x < 0
153
- return false if @y.nil?
154
- return false if @y > 1
155
- return false if @y < 0
138
+ return false if !@x.nil? && @x > 1
139
+ return false if !@x.nil? && @x < 0
140
+ return false if !@y.nil? && @y > 1
141
+ return false if !@y.nil? && @y < 0
156
142
  return false if !@media_index.nil? && @media_index < 0
157
143
  true
158
144
  end
@@ -202,7 +202,7 @@ module Zernio
202
202
  warn '[DEPRECATED] the `valid?` method is obsolete'
203
203
  return false if @id.nil?
204
204
  return false if @platform.nil?
205
- platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms"])
205
+ platform_validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms", "slack"])
206
206
  return false unless platform_validator.valid?(@platform)
207
207
  return false if @platform_conversation_id.nil?
208
208
  return false if @participant_name.nil?
@@ -225,7 +225,7 @@ module Zernio
225
225
  # Custom attribute writer method checking allowed values (enum).
226
226
  # @param [Object] platform Object to be assigned
227
227
  def platform=(platform)
228
- validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms"])
228
+ validator = EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms", "slack"])
229
229
  unless validator.valid?(platform)
230
230
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
231
231
  end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.603'
14
+ VERSION = '0.0.605'
15
15
  end
data/openapi.yaml CHANGED
@@ -3522,7 +3522,7 @@ components:
3522
3522
  id: { type: string, description: Internal conversation ID }
3523
3523
  platform:
3524
3524
  type: string
3525
- enum: [instagram, facebook, telegram, whatsapp, twitter, reddit, bluesky, sms]
3525
+ enum: [instagram, facebook, telegram, whatsapp, twitter, reddit, bluesky, sms, slack]
3526
3526
  platformConversationId: { type: string }
3527
3527
  participantId: { type: string, description: "Contact's platform identifier (IGSID, PSID, wa_id, etc.)" }
3528
3528
  participantName: { type: string }
@@ -4428,10 +4428,10 @@ components:
4428
4428
  description: "MANUAL (graduate from Instagram app) or SS_PERFORMANCE (auto-graduate if performs well with non-followers)"
4429
4429
  userTags:
4430
4430
  type: array
4431
- description: Tag Instagram users in photos by username and position. Not supported for stories or videos. For carousels, use mediaIndex to target specific slides (defaults to 0). Tags on video items are silently skipped.
4431
+ description: 'Tag Instagram users by username. The tag shape depends on the media: photos require x/y coordinates, Reels and videos take username only (coordinates are ignored), stories accept optional coordinates. For carousels, use mediaIndex to target specific slides (defaults to 0); video slides take username-only tags. Photo tags without valid coordinates are skipped.'
4432
4432
  items:
4433
4433
  type: object
4434
- required: [username, x, y]
4434
+ required: [username]
4435
4435
  properties:
4436
4436
  username:
4437
4437
  type: string
@@ -4441,18 +4441,18 @@ components:
4441
4441
  type: number
4442
4442
  minimum: 0
4443
4443
  maximum: 1
4444
- description: X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right)
4444
+ description: 'X coordinate position from left edge (0.0 = left, 0.5 = center, 1.0 = right). Required for photos, ignored for Reels/videos, optional for stories.'
4445
4445
  example: 0.5
4446
4446
  y:
4447
4447
  type: number
4448
4448
  minimum: 0
4449
4449
  maximum: 1
4450
- description: Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom)
4450
+ description: 'Y coordinate position from top edge (0.0 = top, 0.5 = center, 1.0 = bottom). Required for photos, ignored for Reels/videos, optional for stories.'
4451
4451
  example: 0.5
4452
4452
  mediaIndex:
4453
4453
  type: integer
4454
4454
  minimum: 0
4455
- description: Zero-based index of the carousel item to tag. Defaults to 0. Tags on video items or out-of-range indices are ignored.
4455
+ description: Zero-based index of the carousel item to tag. Defaults to 0. Tags on out-of-range indices are ignored.
4456
4456
  example: 0
4457
4457
  audioName:
4458
4458
  type: string
@@ -22154,7 +22154,7 @@ paths:
22154
22154
  description: Filter by profile ID
22155
22155
  - name: platform
22156
22156
  in: query
22157
- schema: { type: string, enum: [facebook, instagram, telegram, whatsapp, sms] }
22157
+ schema: { type: string, enum: [facebook, instagram, telegram, whatsapp, sms, slack] }
22158
22158
  description: Filter by platform (searchable platforms only)
22159
22159
  - name: accountId
22160
22160
  in: query
@@ -36,7 +36,7 @@ describe Zernio::WebhookPayloadConversationStartedConversation do
36
36
  describe 'test attribute "platform"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "whatsapp", "twitter", "reddit", "bluesky", "sms", "slack"])
40
40
  # validator.allowable_values.each do |value|
41
41
  # expect { instance.platform = value }.not_to raise_error
42
42
  # 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.603
4
+ version: 0.0.605
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4862,7 +4862,7 @@ files:
4862
4862
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4863
4863
  - spec/models/you_tube_video_retention_response_spec.rb
4864
4864
  - spec/spec_helper.rb
4865
- - zernio-sdk-0.0.603.gem
4865
+ - zernio-sdk-0.0.605.gem
4866
4866
  - zernio-sdk.gemspec
4867
4867
  homepage: https://openapi-generator.tech
4868
4868
  licenses:
Binary file