late-sdk 0.0.86 → 0.0.87

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/docs/WebhookEventsApi.md +766 -0
  4. data/docs/WebhookPayloadAccountConnected.md +5 -3
  5. data/docs/WebhookPayloadAccountConnectedAccount.md +4 -4
  6. data/docs/WebhookPayloadAccountDisconnected.md +5 -3
  7. data/docs/WebhookPayloadAccountDisconnectedAccount.md +6 -6
  8. data/docs/WebhookPayloadComment.md +7 -5
  9. data/docs/WebhookPayloadCommentAccount.md +3 -3
  10. data/docs/WebhookPayloadCommentComment.md +9 -9
  11. data/docs/WebhookPayloadCommentCommentAuthor.md +1 -1
  12. data/docs/WebhookPayloadCommentPost.md +2 -2
  13. data/docs/WebhookPayloadMessage.md +7 -5
  14. data/docs/WebhookPayloadMessageAccount.md +3 -3
  15. data/docs/WebhookPayloadMessageConversation.md +3 -5
  16. data/docs/WebhookPayloadMessageMessage.md +10 -10
  17. data/docs/WebhookPayloadMessageMessageAttachmentsInner.md +2 -2
  18. data/docs/WebhookPayloadMessageMessageSender.md +1 -1
  19. data/docs/WebhookPayloadPost.md +5 -3
  20. data/docs/WebhookPayloadPostPost.md +5 -5
  21. data/docs/WebhookPayloadPostPostPlatformsInner.md +4 -2
  22. data/docs/WebhookPayloadTest.md +24 -0
  23. data/lib/late-sdk/api/webhook_events_api.rb +748 -0
  24. data/lib/late-sdk/api/webhooks_api.rb +1 -1
  25. data/lib/late-sdk/models/webhook_log.rb +2 -2
  26. data/lib/late-sdk/models/webhook_payload_account_connected.rb +69 -1
  27. data/lib/late-sdk/models/webhook_payload_account_connected_account.rb +68 -0
  28. data/lib/late-sdk/models/webhook_payload_account_disconnected.rb +69 -1
  29. data/lib/late-sdk/models/webhook_payload_account_disconnected_account.rb +92 -0
  30. data/lib/late-sdk/models/webhook_payload_comment.rb +103 -1
  31. data/lib/late-sdk/models/webhook_payload_comment_account.rb +51 -0
  32. data/lib/late-sdk/models/webhook_payload_comment_comment.rb +143 -0
  33. data/lib/late-sdk/models/webhook_payload_comment_comment_author.rb +17 -0
  34. data/lib/late-sdk/models/webhook_payload_comment_post.rb +34 -0
  35. data/lib/late-sdk/models/webhook_payload_message.rb +104 -2
  36. data/lib/late-sdk/models/webhook_payload_message_account.rb +51 -0
  37. data/lib/late-sdk/models/webhook_payload_message_conversation.rb +39 -20
  38. data/lib/late-sdk/models/webhook_payload_message_message.rb +154 -4
  39. data/lib/late-sdk/models/webhook_payload_message_message_attachments_inner.rb +34 -0
  40. data/lib/late-sdk/models/webhook_payload_message_message_sender.rb +17 -0
  41. data/lib/late-sdk/models/webhook_payload_post.rb +71 -3
  42. data/lib/late-sdk/models/webhook_payload_post_post.rb +85 -0
  43. data/lib/late-sdk/models/webhook_payload_post_post_platforms_inner.rb +44 -1
  44. data/lib/late-sdk/models/webhook_payload_test.rb +269 -0
  45. data/lib/late-sdk/version.rb +1 -1
  46. data/lib/late-sdk.rb +1 -0
  47. data/openapi.yaml +236 -20
  48. data/spec/models/create_webhook_settings_request_spec.rb +1 -1
  49. data/spec/models/update_webhook_settings_request_spec.rb +1 -1
  50. data/spec/models/webhook_log_spec.rb +1 -1
  51. data/spec/models/webhook_payload_account_connected_spec.rb +6 -0
  52. data/spec/models/webhook_payload_account_disconnected_spec.rb +6 -0
  53. data/spec/models/webhook_payload_comment_spec.rb +6 -0
  54. data/spec/models/webhook_payload_message_conversation_spec.rb +0 -10
  55. data/spec/models/webhook_payload_message_message_spec.rb +2 -2
  56. data/spec/models/webhook_payload_message_spec.rb +6 -0
  57. data/spec/models/webhook_payload_post_post_platforms_inner_spec.rb +6 -0
  58. data/spec/models/webhook_payload_post_spec.rb +7 -1
  59. data/spec/models/webhook_payload_test_spec.rb +58 -0
  60. data/spec/models/webhook_spec.rb +1 -1
  61. data/zernio-sdk-0.0.87.gem +0 -0
  62. metadata +665 -659
  63. data/zernio-sdk-0.0.86.gem +0 -0
@@ -4,9 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **event** | **String** | | [optional] |
8
- | **account** | [**WebhookPayloadAccountConnectedAccount**](WebhookPayloadAccountConnectedAccount.md) | | [optional] |
9
- | **timestamp** | **Time** | | [optional] |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **account** | [**WebhookPayloadAccountConnectedAccount**](WebhookPayloadAccountConnectedAccount.md) | | |
10
+ | **timestamp** | **Time** | | |
10
11
 
11
12
  ## Example
12
13
 
@@ -14,6 +15,7 @@
14
15
  require 'late-sdk'
15
16
 
16
17
  instance = Late::WebhookPayloadAccountConnected.new(
18
+ id: null,
17
19
  event: null,
18
20
  account: null,
19
21
  timestamp: null
@@ -4,10 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **account_id** | **String** | The account's unique identifier (same as used in /v1/accounts/{accountId}) | [optional] |
8
- | **profile_id** | **String** | The profile's unique identifier this account belongs to | [optional] |
9
- | **platform** | **String** | | [optional] |
10
- | **username** | **String** | | [optional] |
7
+ | **account_id** | **String** | The account's unique identifier (same as used in /v1/accounts/{accountId}) | |
8
+ | **profile_id** | **String** | The profile's unique identifier this account belongs to | |
9
+ | **platform** | **String** | | |
10
+ | **username** | **String** | | |
11
11
  | **display_name** | **String** | | [optional] |
12
12
 
13
13
  ## Example
@@ -4,9 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **event** | **String** | | [optional] |
8
- | **account** | [**WebhookPayloadAccountDisconnectedAccount**](WebhookPayloadAccountDisconnectedAccount.md) | | [optional] |
9
- | **timestamp** | **Time** | | [optional] |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **account** | [**WebhookPayloadAccountDisconnectedAccount**](WebhookPayloadAccountDisconnectedAccount.md) | | |
10
+ | **timestamp** | **Time** | | |
10
11
 
11
12
  ## Example
12
13
 
@@ -14,6 +15,7 @@
14
15
  require 'late-sdk'
15
16
 
16
17
  instance = Late::WebhookPayloadAccountDisconnected.new(
18
+ id: null,
17
19
  event: null,
18
20
  account: null,
19
21
  timestamp: null
@@ -4,13 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **account_id** | **String** | The account's unique identifier (same as used in /v1/accounts/{accountId}) | [optional] |
8
- | **profile_id** | **String** | The profile's unique identifier this account belongs to | [optional] |
9
- | **platform** | **String** | | [optional] |
10
- | **username** | **String** | | [optional] |
7
+ | **account_id** | **String** | The account's unique identifier (same as used in /v1/accounts/{accountId}) | |
8
+ | **profile_id** | **String** | The profile's unique identifier this account belongs to | |
9
+ | **platform** | **String** | | |
10
+ | **username** | **String** | | |
11
11
  | **display_name** | **String** | | [optional] |
12
- | **disconnection_type** | **String** | Whether the disconnection was intentional (user action) or unintentional (token expired/revoked) | [optional] |
13
- | **reason** | **String** | Human-readable reason for the disconnection | [optional] |
12
+ | **disconnection_type** | **String** | Whether the disconnection was intentional (user action) or unintentional (token expired/revoked) | |
13
+ | **reason** | **String** | Human-readable reason for the disconnection | |
14
14
 
15
15
  ## Example
16
16
 
@@ -4,11 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **event** | **String** | | [optional] |
8
- | **comment** | [**WebhookPayloadCommentComment**](WebhookPayloadCommentComment.md) | | [optional] |
9
- | **post** | [**WebhookPayloadCommentPost**](WebhookPayloadCommentPost.md) | | [optional] |
10
- | **account** | [**WebhookPayloadCommentAccount**](WebhookPayloadCommentAccount.md) | | [optional] |
11
- | **timestamp** | **Time** | | [optional] |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **comment** | [**WebhookPayloadCommentComment**](WebhookPayloadCommentComment.md) | | |
10
+ | **post** | [**WebhookPayloadCommentPost**](WebhookPayloadCommentPost.md) | | |
11
+ | **account** | [**WebhookPayloadCommentAccount**](WebhookPayloadCommentAccount.md) | | |
12
+ | **timestamp** | **Time** | | |
12
13
 
13
14
  ## Example
14
15
 
@@ -16,6 +17,7 @@
16
17
  require 'late-sdk'
17
18
 
18
19
  instance = Late::WebhookPayloadComment.new(
20
+ id: null,
19
21
  event: null,
20
22
  comment: null,
21
23
  post: null,
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Social account ID | [optional] |
8
- | **platform** | **String** | | [optional] |
9
- | **username** | **String** | | [optional] |
7
+ | **id** | **String** | Social account ID | |
8
+ | **platform** | **String** | | |
9
+ | **username** | **String** | | |
10
10
 
11
11
  ## Example
12
12
 
@@ -4,15 +4,15 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Platform comment ID | [optional] |
8
- | **post_id** | **String** | Internal post ID | [optional] |
9
- | **platform_post_id** | **String** | Platform's post ID | [optional] |
10
- | **platform** | **String** | | [optional] |
11
- | **text** | **String** | Comment text content | [optional] |
12
- | **author** | [**WebhookPayloadCommentCommentAuthor**](WebhookPayloadCommentCommentAuthor.md) | | [optional] |
13
- | **created_at** | **Time** | | [optional] |
14
- | **is_reply** | **Boolean** | Whether this is a reply to another comment | [optional] |
15
- | **parent_comment_id** | **String** | Parent comment ID if this is a reply | [optional] |
7
+ | **id** | **String** | Platform comment ID | |
8
+ | **post_id** | **String** | Internal post ID | |
9
+ | **platform_post_id** | **String** | Platform's post ID | |
10
+ | **platform** | **String** | | |
11
+ | **text** | **String** | Comment text content | |
12
+ | **author** | [**WebhookPayloadCommentCommentAuthor**](WebhookPayloadCommentCommentAuthor.md) | | |
13
+ | **created_at** | **Time** | | |
14
+ | **is_reply** | **Boolean** | Whether this is a reply to another comment | |
15
+ | **parent_comment_id** | **String** | Parent comment ID if this is a reply | |
16
16
 
17
17
  ## Example
18
18
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Author's platform ID | [optional] |
7
+ | **id** | **String** | Author's platform ID | |
8
8
  | **username** | **String** | | [optional] |
9
9
  | **name** | **String** | | [optional] |
10
10
  | **picture** | **String** | | [optional] |
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Internal post ID | [optional] |
8
- | **platform_post_id** | **String** | Platform's post ID | [optional] |
7
+ | **id** | **String** | Internal post ID | |
8
+ | **platform_post_id** | **String** | Platform's post ID | |
9
9
 
10
10
  ## Example
11
11
 
@@ -4,12 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **event** | **String** | | [optional] |
8
- | **message** | [**WebhookPayloadMessageMessage**](WebhookPayloadMessageMessage.md) | | [optional] |
9
- | **conversation** | [**WebhookPayloadMessageConversation**](WebhookPayloadMessageConversation.md) | | [optional] |
10
- | **account** | [**WebhookPayloadMessageAccount**](WebhookPayloadMessageAccount.md) | | [optional] |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **message** | [**WebhookPayloadMessageMessage**](WebhookPayloadMessageMessage.md) | | |
10
+ | **conversation** | [**WebhookPayloadMessageConversation**](WebhookPayloadMessageConversation.md) | | |
11
+ | **account** | [**WebhookPayloadMessageAccount**](WebhookPayloadMessageAccount.md) | | |
11
12
  | **metadata** | [**WebhookPayloadMessageMetadata**](WebhookPayloadMessageMetadata.md) | | [optional] |
12
- | **timestamp** | **Time** | | [optional] |
13
+ | **timestamp** | **Time** | | |
13
14
 
14
15
  ## Example
15
16
 
@@ -17,6 +18,7 @@
17
18
  require 'late-sdk'
18
19
 
19
20
  instance = Late::WebhookPayloadMessage.new(
21
+ id: null,
20
22
  event: null,
21
23
  message: null,
22
24
  conversation: null,
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Social account ID | [optional] |
8
- | **platform** | **String** | | [optional] |
9
- | **username** | **String** | | [optional] |
7
+ | **id** | **String** | Social account ID | |
8
+ | **platform** | **String** | | |
9
+ | **username** | **String** | | |
10
10
  | **display_name** | **String** | | [optional] |
11
11
 
12
12
  ## Example
@@ -4,14 +4,13 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional] |
8
- | **platform_conversation_id** | **String** | | [optional] |
7
+ | **id** | **String** | | |
8
+ | **platform_conversation_id** | **String** | | |
9
9
  | **participant_id** | **String** | | [optional] |
10
10
  | **participant_name** | **String** | | [optional] |
11
11
  | **participant_username** | **String** | | [optional] |
12
12
  | **participant_picture** | **String** | | [optional] |
13
- | **participant_verified_type** | **String** | X/Twitter verified badge type. Only present for Twitter/X conversations. | [optional] |
14
- | **status** | **String** | | [optional] |
13
+ | **status** | **String** | | |
15
14
 
16
15
  ## Example
17
16
 
@@ -25,7 +24,6 @@ instance = Late::WebhookPayloadMessageConversation.new(
25
24
  participant_name: null,
26
25
  participant_username: null,
27
26
  participant_picture: null,
28
- participant_verified_type: null,
29
27
  status: null
30
28
  )
31
29
  ```
@@ -4,16 +4,16 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Internal message ID | [optional] |
8
- | **conversation_id** | **String** | Internal conversation ID | [optional] |
9
- | **platform** | **String** | | [optional] |
10
- | **platform_message_id** | **String** | Platform's message ID | [optional] |
11
- | **direction** | **String** | | [optional] |
12
- | **text** | **String** | Message text content | [optional] |
13
- | **attachments** | [**Array<WebhookPayloadMessageMessageAttachmentsInner>**](WebhookPayloadMessageMessageAttachmentsInner.md) | | [optional] |
14
- | **sender** | [**WebhookPayloadMessageMessageSender**](WebhookPayloadMessageMessageSender.md) | | [optional] |
15
- | **sent_at** | **Time** | | [optional] |
16
- | **is_read** | **Boolean** | | [optional] |
7
+ | **id** | **String** | Internal message ID | |
8
+ | **conversation_id** | **String** | Internal conversation ID | |
9
+ | **platform** | **String** | | |
10
+ | **platform_message_id** | **String** | Platform's message ID | |
11
+ | **direction** | **String** | | |
12
+ | **text** | **String** | Message text content | |
13
+ | **attachments** | [**Array<WebhookPayloadMessageMessageAttachmentsInner>**](WebhookPayloadMessageMessageAttachmentsInner.md) | | |
14
+ | **sender** | [**WebhookPayloadMessageMessageSender**](WebhookPayloadMessageMessageSender.md) | | |
15
+ | **sent_at** | **Time** | | |
16
+ | **is_read** | **Boolean** | | |
17
17
 
18
18
  ## Example
19
19
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **type** | **String** | Attachment type (image, video, file, sticker, audio) | [optional] |
8
- | **url** | **String** | Attachment URL (may expire for Meta platforms) | [optional] |
7
+ | **type** | **String** | Attachment type (image, video, file, sticker, audio) | |
8
+ | **url** | **String** | Attachment URL (may expire for Meta platforms) | |
9
9
  | **payload** | **Object** | Additional attachment metadata | [optional] |
10
10
 
11
11
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional] |
7
+ | **id** | **String** | | |
8
8
  | **name** | **String** | | [optional] |
9
9
  | **username** | **String** | | [optional] |
10
10
  | **picture** | **String** | | [optional] |
@@ -4,9 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **event** | **String** | | [optional] |
8
- | **post** | [**WebhookPayloadPostPost**](WebhookPayloadPostPost.md) | | [optional] |
9
- | **timestamp** | **Time** | | [optional] |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **post** | [**WebhookPayloadPostPost**](WebhookPayloadPostPost.md) | | |
10
+ | **timestamp** | **Time** | | |
10
11
 
11
12
  ## Example
12
13
 
@@ -14,6 +15,7 @@
14
15
  require 'late-sdk'
15
16
 
16
17
  instance = Late::WebhookPayloadPost.new(
18
+ id: null,
17
19
  event: null,
18
20
  post: null,
19
21
  timestamp: null
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | | [optional] |
8
- | **content** | **String** | | [optional] |
9
- | **status** | **String** | | [optional] |
10
- | **scheduled_for** | **Time** | | [optional] |
7
+ | **id** | **String** | | |
8
+ | **content** | **String** | | |
9
+ | **status** | **String** | | |
10
+ | **scheduled_for** | **Time** | | |
11
11
  | **published_at** | **Time** | | [optional] |
12
- | **platforms** | [**Array<WebhookPayloadPostPostPlatformsInner>**](WebhookPayloadPostPostPlatformsInner.md) | | [optional] |
12
+ | **platforms** | [**Array<WebhookPayloadPostPostPlatformsInner>**](WebhookPayloadPostPostPlatformsInner.md) | | |
13
13
 
14
14
  ## Example
15
15
 
@@ -4,8 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **platform** | **String** | | [optional] |
8
- | **status** | **String** | | [optional] |
7
+ | **platform** | **String** | | |
8
+ | **status** | **String** | | |
9
+ | **platform_post_id** | **String** | | [optional] |
9
10
  | **published_url** | **String** | | [optional] |
10
11
  | **error** | **String** | | [optional] |
11
12
 
@@ -17,6 +18,7 @@ require 'late-sdk'
17
18
  instance = Late::WebhookPayloadPostPostPlatformsInner.new(
18
19
  platform: null,
19
20
  status: null,
21
+ platform_post_id: null,
20
22
  published_url: null,
21
23
  error: null
22
24
  )
@@ -0,0 +1,24 @@
1
+ # Late::WebhookPayloadTest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Stable webhook event ID | |
8
+ | **event** | **String** | | |
9
+ | **message** | **String** | Human-readable test message | |
10
+ | **timestamp** | **Time** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'late-sdk'
16
+
17
+ instance = Late::WebhookPayloadTest.new(
18
+ id: null,
19
+ event: null,
20
+ message: null,
21
+ timestamp: null
22
+ )
23
+ ```
24
+