late-sdk 0.0.562 → 0.0.564

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: 9237073662107b02c4d1da51955963400ecd21cd0d4a4d416a6f8ef613db6b1b
4
- data.tar.gz: cf0a7f2ac53f0f70e9c0d4d53be04a457d48cd8e78753742ff9ddfbc5451ceab
3
+ metadata.gz: 9b37e8aeb1d057db9f20cbd0defee39662e142a65a7800b112d8acc0be54d348
4
+ data.tar.gz: 734deb96c4e94469e0501d109295549cf185a446776117848a5fedac01e30a3f
5
5
  SHA512:
6
- metadata.gz: 16e6de5ddd7a37f5ddfcb79d335262c996743fdf1d8d8265952a1ac78d9fff25328414b9c6c9149f2170b6acf06686bcc2a153bb2dfbdc12ef480ad90dd3a8ee
7
- data.tar.gz: 54c325cd8559561db299fb311578bc41fd330a5a5f32c7dee9f4f6012c4c4f29caef07db08192f0952d900a3f7848808a6c63eab9bebcdcd204cf4cb509500e2
6
+ metadata.gz: 880e823decb1ae112984ecc0ca06b628bf0be59170dac1b2eb9ccfe5b400f17a10e305757fe6e2574caed1287cc4a6324f5ae3a169e9d8237b835bec2f247194
7
+ data.tar.gz: ec2afafcdc322f3a85456958d3d14172b4d23a3c94bcaa8c4f15fa8e6f38553139d49442a17b703c1f45680b14e4f67b51c25888c4b5cf1203b7ecac72eb8c8e
@@ -1214,7 +1214,7 @@ nil (empty response body)
1214
1214
 
1215
1215
  Message sent event
1216
1216
 
1217
- Fired when a message is sent via the API.
1217
+ Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1218
1218
 
1219
1219
  ### Examples
1220
1220
 
@@ -14,6 +14,7 @@
14
14
  | **sender** | [**WebhookPayloadMessageSentMessageSender**](WebhookPayloadMessageSentMessageSender.md) | | |
15
15
  | **sent_at** | **Time** | | |
16
16
  | **is_read** | **Boolean** | | |
17
+ | **source** | **String** | WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field. | [optional] |
17
18
 
18
19
  ## Example
19
20
 
@@ -30,7 +31,8 @@ instance = Zernio::WebhookPayloadMessageSentMessage.new(
30
31
  attachments: null,
31
32
  sender: null,
32
33
  sent_at: null,
33
- is_read: null
34
+ is_read: null,
35
+ source: null
34
36
  )
35
37
  ```
36
38
 
@@ -1142,7 +1142,7 @@ module Zernio
1142
1142
  end
1143
1143
 
1144
1144
  # Message sent event
1145
- # Fired when a message is sent via the API.
1145
+ # Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1146
1146
  # @param webhook_payload_message_sent [WebhookPayloadMessageSent]
1147
1147
  # @param [Hash] opts the optional parameters
1148
1148
  # @return [nil]
@@ -1152,7 +1152,7 @@ module Zernio
1152
1152
  end
1153
1153
 
1154
1154
  # Message sent event
1155
- # Fired when a message is sent via the API.
1155
+ # Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1156
1156
  # @param webhook_payload_message_sent [WebhookPayloadMessageSent]
1157
1157
  # @param [Hash] opts the optional parameters
1158
1158
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # Webhook payload for message sent events (fired when a message is sent via the API)
17
+ # Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
18
18
  class WebhookPayloadMessageSent < ApiModelBase
19
19
  # Stable webhook event ID
20
20
  attr_accessor :id
@@ -39,6 +39,9 @@ module Zernio
39
39
 
40
40
  attr_accessor :is_read
41
41
 
42
+ # WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field.
43
+ attr_accessor :source
44
+
42
45
  class EnumAttributeValidator
43
46
  attr_reader :datatype
44
47
  attr_reader :allowable_values
@@ -73,7 +76,8 @@ module Zernio
73
76
  :'attachments' => :'attachments',
74
77
  :'sender' => :'sender',
75
78
  :'sent_at' => :'sentAt',
76
- :'is_read' => :'isRead'
79
+ :'is_read' => :'isRead',
80
+ :'source' => :'source'
77
81
  }
78
82
  end
79
83
 
@@ -99,7 +103,8 @@ module Zernio
99
103
  :'attachments' => :'Array<WebhookPayloadMessageSentMessageAttachmentsInner>',
100
104
  :'sender' => :'WebhookPayloadMessageSentMessageSender',
101
105
  :'sent_at' => :'Time',
102
- :'is_read' => :'Boolean'
106
+ :'is_read' => :'Boolean',
107
+ :'source' => :'String'
103
108
  }
104
109
  end
105
110
 
@@ -187,6 +192,10 @@ module Zernio
187
192
  else
188
193
  self.is_read = nil
189
194
  end
195
+
196
+ if attributes.key?(:'source')
197
+ self.source = attributes[:'source']
198
+ end
190
199
  end
191
200
 
192
201
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -250,6 +259,8 @@ module Zernio
250
259
  return false if @sender.nil?
251
260
  return false if @sent_at.nil?
252
261
  return false if @is_read.nil?
262
+ source_validator = EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
263
+ return false unless source_validator.valid?(@source)
253
264
  true
254
265
  end
255
266
 
@@ -343,6 +354,16 @@ module Zernio
343
354
  @is_read = is_read
344
355
  end
345
356
 
357
+ # Custom attribute writer method checking allowed values (enum).
358
+ # @param [Object] source Object to be assigned
359
+ def source=(source)
360
+ validator = EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
361
+ unless validator.valid?(source)
362
+ fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
363
+ end
364
+ @source = source
365
+ end
366
+
346
367
  # Checks equality by comparing each attribute.
347
368
  # @param [Object] Object to be compared
348
369
  def ==(o)
@@ -357,7 +378,8 @@ module Zernio
357
378
  attachments == o.attachments &&
358
379
  sender == o.sender &&
359
380
  sent_at == o.sent_at &&
360
- is_read == o.is_read
381
+ is_read == o.is_read &&
382
+ source == o.source
361
383
  end
362
384
 
363
385
  # @see the `==` method
@@ -369,7 +391,7 @@ module Zernio
369
391
  # Calculates hash code according to all attributes.
370
392
  # @return [Integer] Hash code
371
393
  def hash
372
- [id, conversation_id, platform, platform_message_id, direction, text, attachments, sender, sent_at, is_read].hash
394
+ [id, conversation_id, platform, platform_message_id, direction, text, attachments, sender, sent_at, is_read, source].hash
373
395
  end
374
396
 
375
397
  # 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.562'
14
+ VERSION = '0.0.564'
15
15
  end
data/openapi.yaml CHANGED
@@ -3288,7 +3288,7 @@ components:
3288
3288
  format: date-time
3289
3289
  WebhookPayloadMessageSent:
3290
3290
  type: object
3291
- description: Webhook payload for message sent events (fired when a message is sent via the API)
3291
+ description: Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
3292
3292
  required: [id, event, message, conversation, account, timestamp]
3293
3293
  properties:
3294
3294
  id:
@@ -3360,6 +3360,10 @@ components:
3360
3360
  format: date-time
3361
3361
  isRead:
3362
3362
  type: boolean
3363
+ source:
3364
+ type: string
3365
+ enum: [whatsapp_business_app, cloud_api]
3366
+ description: 'WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field.'
3363
3367
  conversation:
3364
3368
  $ref: '#/components/schemas/InboxWebhookConversation'
3365
3369
  account:
@@ -7461,7 +7465,7 @@ webhooks:
7461
7465
  post:
7462
7466
  operationId: onMessageSent
7463
7467
  summary: Message sent event
7464
- description: Fired when a message is sent via the API.
7468
+ description: Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
7465
7469
  tags: [Webhook Events]
7466
7470
  requestBody:
7467
7471
  required: true
@@ -30505,6 +30509,7 @@ paths:
30505
30509
  properties:
30506
30510
  after: { type: string }
30507
30511
  before: { type: string }
30512
+ '400': { $ref: '#/components/responses/BadRequest' }
30508
30513
  '401': { $ref: '#/components/responses/Unauthorized' }
30509
30514
  post:
30510
30515
  operationId: createWhatsAppGroupChat
@@ -30545,6 +30550,7 @@ paths:
30545
30550
  properties:
30546
30551
  groupId: { type: string }
30547
30552
  inviteLink: { type: string }
30553
+ '400': { $ref: '#/components/responses/BadRequest' }
30548
30554
  '401': { $ref: '#/components/responses/Unauthorized' }
30549
30555
 
30550
30556
  /v1/whatsapp/wa-groups/{groupId}:
@@ -30588,6 +30594,7 @@ paths:
30588
30594
  participantCount: { type: integer }
30589
30595
  createdAt: { type: integer, description: UNIX timestamp }
30590
30596
  isSuspended: { type: boolean }
30597
+ '400': { $ref: '#/components/responses/BadRequest' }
30591
30598
  '401': { $ref: '#/components/responses/Unauthorized' }
30592
30599
  '404': { $ref: '#/components/responses/NotFound' }
30593
30600
  post:
@@ -30623,6 +30630,7 @@ paths:
30623
30630
  properties:
30624
30631
  success: { type: boolean }
30625
30632
  message: { type: string }
30633
+ '400': { $ref: '#/components/responses/BadRequest' }
30626
30634
  '401': { $ref: '#/components/responses/Unauthorized' }
30627
30635
  '404': { $ref: '#/components/responses/NotFound' }
30628
30636
  delete:
@@ -30648,6 +30656,7 @@ paths:
30648
30656
  properties:
30649
30657
  success: { type: boolean }
30650
30658
  message: { type: string }
30659
+ '400': { $ref: '#/components/responses/BadRequest' }
30651
30660
  '401': { $ref: '#/components/responses/Unauthorized' }
30652
30661
  '404': { $ref: '#/components/responses/NotFound' }
30653
30662
 
@@ -30688,6 +30697,7 @@ paths:
30688
30697
  properties:
30689
30698
  success: { type: boolean }
30690
30699
  message: { type: string }
30700
+ '400': { $ref: '#/components/responses/BadRequest' }
30691
30701
  '401': { $ref: '#/components/responses/Unauthorized' }
30692
30702
  delete:
30693
30703
  operationId: removeWhatsAppGroupParticipants
@@ -30724,6 +30734,7 @@ paths:
30724
30734
  properties:
30725
30735
  success: { type: boolean }
30726
30736
  message: { type: string }
30737
+ '400': { $ref: '#/components/responses/BadRequest' }
30727
30738
  '401': { $ref: '#/components/responses/Unauthorized' }
30728
30739
 
30729
30740
  /v1/whatsapp/wa-groups/{groupId}/invite-link:
@@ -30750,6 +30761,7 @@ paths:
30750
30761
  properties:
30751
30762
  success: { type: boolean }
30752
30763
  inviteLink: { type: string }
30764
+ '400': { $ref: '#/components/responses/BadRequest' }
30753
30765
  '401': { $ref: '#/components/responses/Unauthorized' }
30754
30766
 
30755
30767
  /v1/whatsapp/wa-groups/{groupId}/join-requests:
@@ -30782,6 +30794,7 @@ paths:
30782
30794
  properties:
30783
30795
  user: { type: string, description: Phone number }
30784
30796
  timestamp: { type: integer, description: UNIX timestamp of request }
30797
+ '400': { $ref: '#/components/responses/BadRequest' }
30785
30798
  '401': { $ref: '#/components/responses/Unauthorized' }
30786
30799
  post:
30787
30800
  operationId: approveWhatsAppGroupJoinRequests
@@ -30818,6 +30831,7 @@ paths:
30818
30831
  properties:
30819
30832
  success: { type: boolean }
30820
30833
  message: { type: string }
30834
+ '400': { $ref: '#/components/responses/BadRequest' }
30821
30835
  '401': { $ref: '#/components/responses/Unauthorized' }
30822
30836
  delete:
30823
30837
  operationId: rejectWhatsAppGroupJoinRequests
@@ -30854,6 +30868,7 @@ paths:
30854
30868
  properties:
30855
30869
  success: { type: boolean }
30856
30870
  message: { type: string }
30871
+ '400': { $ref: '#/components/responses/BadRequest' }
30857
30872
  '401': { $ref: '#/components/responses/Unauthorized' }
30858
30873
 
30859
30874
  # ─── WhatsApp Flows ───────────────────────────────────────────────
@@ -95,4 +95,14 @@ describe Zernio::WebhookPayloadMessageSentMessage do
95
95
  end
96
96
  end
97
97
 
98
+ describe 'test attribute "source"' do
99
+ it 'should work' do
100
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
101
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
102
+ # validator.allowable_values.each do |value|
103
+ # expect { instance.source = value }.not_to raise_error
104
+ # end
105
+ end
106
+ end
107
+
98
108
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.562
4
+ version: 0.0.564
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-23 00:00:00.000000000 Z
11
+ date: 2026-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -4751,7 +4751,7 @@ files:
4751
4751
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4752
4752
  - spec/models/you_tube_video_retention_response_spec.rb
4753
4753
  - spec/spec_helper.rb
4754
- - zernio-sdk-0.0.562.gem
4754
+ - zernio-sdk-0.0.564.gem
4755
4755
  - zernio-sdk.gemspec
4756
4756
  homepage: https://openapi-generator.tech
4757
4757
  licenses:
Binary file