late-sdk 0.0.699 → 0.0.701
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 +4 -4
- data/README.md +2 -0
- data/docs/CommentAutomationsApi.md +1 -1
- data/docs/CreateCommentAutomation200ResponseAutomation.md +2 -0
- data/docs/CreateCommentAutomationRequest.md +2 -0
- data/docs/GetCommentAutomation200ResponseAutomation.md +2 -0
- data/docs/GetCommentAutomation200ResponseLogsInner.md +2 -0
- data/docs/GetInboxConversationMessages200ResponseMessagesInnerAttachmentsInner.md +3 -1
- data/docs/GetMessageAttachment200Response.md +22 -0
- data/docs/ListCommentAutomations200ResponseAutomationsInner.md +2 -0
- data/docs/MessagesApi.md +80 -0
- data/docs/UpdateCommentAutomation200ResponseAutomation.md +2 -0
- data/docs/UpdateCommentAutomationRequest.md +2 -0
- data/lib/zernio-sdk/api/comment_automations_api.rb +2 -2
- data/lib/zernio-sdk/api/messages_api.rb +93 -0
- data/lib/zernio-sdk/models/create_comment_automation200_response_automation.rb +11 -1
- data/lib/zernio-sdk/models/create_comment_automation_request.rb +13 -1
- data/lib/zernio-sdk/models/get_comment_automation200_response_automation.rb +11 -1
- data/lib/zernio-sdk/models/get_comment_automation200_response_logs_inner.rb +23 -1
- data/lib/zernio-sdk/models/get_inbox_conversation_messages200_response_messages_inner_attachments_inner.rb +13 -1
- data/lib/zernio-sdk/models/get_message_attachment200_response.rb +167 -0
- data/lib/zernio-sdk/models/list_comment_automations200_response_automations_inner.rb +11 -1
- data/lib/zernio-sdk/models/update_comment_automation200_response_automation.rb +11 -1
- data/lib/zernio-sdk/models/update_comment_automation_request.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +1 -0
- data/openapi.yaml +91 -1
- data/spec/api/comment_automations_api_spec.rb +1 -1
- data/spec/api/messages_api_spec.rb +16 -0
- data/spec/models/create_comment_automation200_response_automation_spec.rb +6 -0
- data/spec/models/create_comment_automation_request_spec.rb +6 -0
- data/spec/models/get_comment_automation200_response_automation_spec.rb +6 -0
- data/spec/models/get_comment_automation200_response_logs_inner_spec.rb +10 -0
- data/spec/models/get_inbox_conversation_messages200_response_messages_inner_attachments_inner_spec.rb +6 -0
- data/spec/models/get_message_attachment200_response_spec.rb +48 -0
- data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +6 -0
- data/spec/models/update_comment_automation200_response_automation_spec.rb +6 -0
- data/spec/models/update_comment_automation_request_spec.rb +6 -0
- data/zernio-sdk-0.0.701.gem +0 -0
- metadata +6 -2
- data/zernio-sdk-0.0.699.gem +0 -0
|
@@ -34,7 +34,7 @@ describe 'CommentAutomationsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for create_comment_automation
|
|
36
36
|
# Create comment-to-DM automation
|
|
37
|
-
# Create a keyword-triggered DM automation on an Instagram or Facebook account. When someone comments a matching keyword (or, with `trigger: story_reply`, replies to your Instagram story with one), they automatically receive a DM. Triggers (`trigger`): * `comment` (default): fires on keyword comments on a post or reel. * `story_reply`: fires when someone replies to your Instagram story with a keyword, and answers them with a DM. Set `platformPostId` to a story media id to scope to one story, or omit it to match replies to any story. Targeting (comment trigger): * Per-post: set `platformPostId` to scope to one specific post (only one active per-post automation is allowed per post). * Account-wide (\"any post\"): omit `platformPostId` (and `postId`). The automation evaluates every comment on every post on the account. You can stack unlimited account-wide automations, each with its own keyword set, and they all run independently. Per-post automations take priority on their post. Audience (`audience`, Instagram only): restrict the automation to followers or non-followers, and/or to accounts above a follower count. Instagram only reveals the follow relationship for people who have messaged the account, so `audience.whenUnknown` decides what happens for everyone else - including `verify`, which sends a one-tap confirmation DM (`followGate`) and then delivers the real DM automatically. People we already know follow you skip the tap entirely. Links in the DM's buttons can be click-tracked (`linkTracking`, on by default) and clickers optionally tagged (`clickTag`) for segmentation. Stats returned include delivered, read, and link clicks.
|
|
37
|
+
# Create a keyword-triggered DM automation on an Instagram or Facebook account. When someone comments a matching keyword (or, with `trigger: story_reply`, replies to your Instagram story with one), they automatically receive a DM. Triggers (`trigger`): * `comment` (default): fires on keyword comments on a post or reel. * `story_reply`: fires when someone replies to your Instagram story with a keyword, and answers them with a DM. Set `platformPostId` to a story media id to scope to one story, or omit it to match replies to any story. Targeting (comment trigger): * Per-post: set `platformPostId` to scope to one specific post (only one active per-post automation is allowed per post). * Account-wide (\"any post\"): omit `platformPostId` (and `postId`). The automation evaluates every comment on every post on the account. You can stack unlimited account-wide automations, each with its own keyword set, and they all run independently. Per-post automations take priority on their post. Audience (`audience`, Instagram only): restrict the automation to followers or non-followers, and/or to accounts above a follower count. Instagram only reveals the follow relationship for people who have messaged the account, so `audience.whenUnknown` decides what happens for everyone else - including `verify`, which sends a one-tap confirmation DM (`followGate`) and then delivers the real DM automatically. People we already know follow you skip the tap entirely. Set `alsoMatchInDms: true` on a `comment` automation to also answer people who send a keyword as a direct message instead of commenting it. One automation then covers both doors, and each door is deduplicated separately (someone who already got the DM from their comment still gets it if they later DM the keyword). Requires at least one keyword. Links in the DM's buttons can be click-tracked (`linkTracking`, on by default) and clickers optionally tagged (`clickTag`) for segmentation. Stats returned include delivered, read, and link clicks.
|
|
38
38
|
# @param create_comment_automation_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [CreateCommentAutomation200Response]
|
|
@@ -115,6 +115,22 @@ describe 'MessagesApi' do
|
|
|
115
115
|
end
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
# unit tests for get_message_attachment
|
|
119
|
+
# Resolve message attachment
|
|
120
|
+
# Resolve one attachment on a message to a media url that works right now. Instagram and Facebook sign DM media urls per request and expire them, so the `url` on a message is a snapshot: it works when you read the message and stops working later. This endpoint checks the stored url and, when it has gone stale, re-mints the message's media from Meta and persists it before answering. The message id never expires, so this URL is the one to store — it is returned on each attachment as `refreshUrl`. By default it responds `302` to the live media url, so it can be used directly as an `<img src>` on a browser session. API-key integrators should pass `?format=json` and read `url` off the body, since a browser cannot attach an Authorization header to an image request. Only Instagram and Facebook media can be re-minted. On other platforms the stored url is returned as-is when it still resolves, and `404` otherwise.
|
|
121
|
+
# @param conversation_id The conversation ID (Zernio id or platform conversation id)
|
|
122
|
+
# @param message_id The message id as returned by the list-messages endpoint (the platform message id)
|
|
123
|
+
# @param index Zero-based position of the attachment in the message's attachments array
|
|
124
|
+
# @param account_id Social account ID
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @option opts [String] :format `redirect` (default) answers 302 to the media; `json` returns the url in the body
|
|
127
|
+
# @return [GetMessageAttachment200Response]
|
|
128
|
+
describe 'get_message_attachment test' do
|
|
129
|
+
it 'should work' do
|
|
130
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
118
134
|
# unit tests for list_inbox_conversations
|
|
119
135
|
# List conversations
|
|
120
136
|
# Fetch conversations (DMs) from all connected messaging accounts in a single API call. Supports filtering by profile and platform. Results are aggregated and deduplicated. Supported platforms: Facebook, Instagram, Twitter/X, Bluesky, Reddit, Telegram. Twitter/X limitation: X has replaced traditional DMs with encrypted \"X Chat\" for many accounts. Messages sent or received through encrypted X Chat are not accessible via X's API (the /2/dm_events endpoint only returns legacy unencrypted DMs). This means some Twitter/X conversations may show only outgoing messages or appear empty. This is an X platform limitation that affects all third-party applications. See X's docs on encrypted messaging for more details. Instagram and Facebook pre-connect history: when one of these accounts is connected, Zernio replays the DM history the account already holds on Meta, so conversations that began before the account was connected appear here. Up to 500 conversations per account are replayed. The replay runs in the background and can finish after a listing you have already taken, and replayed conversations keep their original lastMessageAt, so they sort into date order rather than appearing at the top. If you mirror this endpoint into your own store, re-run the sweep rather than relying on a single pass at connect time. Replayed history emits no webhooks and is stored as already read, so it never affects unread counts. Threads that Meta refuses to serve are skipped, and an account whose Instagram \"connected tools\" message access is turned off is not replayed at all.
|
|
@@ -161,6 +161,12 @@ describe Zernio::CreateCommentAutomation200ResponseAutomation do
|
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
165
|
+
it 'should work' do
|
|
166
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
164
170
|
describe 'test attribute "is_active"' do
|
|
165
171
|
it 'should work' do
|
|
166
172
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -161,6 +161,12 @@ describe Zernio::CreateCommentAutomationRequest do
|
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
165
|
+
it 'should work' do
|
|
166
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
164
170
|
describe 'test attribute "audience"' do
|
|
165
171
|
it 'should work' do
|
|
166
172
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -179,6 +179,12 @@ describe Zernio::GetCommentAutomation200ResponseAutomation do
|
|
|
179
179
|
end
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
183
|
+
it 'should work' do
|
|
184
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
182
188
|
describe 'test attribute "is_active"' do
|
|
183
189
|
it 'should work' do
|
|
184
190
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -57,6 +57,16 @@ describe Zernio::GetCommentAutomation200ResponseLogsInner do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "source"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["comment", "story_reply", "dm"])
|
|
64
|
+
# validator.allowable_values.each do |value|
|
|
65
|
+
# expect { instance.source = value }.not_to raise_error
|
|
66
|
+
# end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
60
70
|
describe 'test attribute "status"' do
|
|
61
71
|
it 'should work' do
|
|
62
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -49,6 +49,12 @@ describe Zernio::GetInboxConversationMessages200ResponseMessagesInnerAttachments
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
describe 'test attribute "refresh_url"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
52
58
|
describe 'test attribute "filename"' do
|
|
53
59
|
it 'should work' do
|
|
54
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::GetMessageAttachment200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::GetMessageAttachment200Response do
|
|
21
|
+
#let(:instance) { Zernio::GetMessageAttachment200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of GetMessageAttachment200Response' do
|
|
24
|
+
it 'should create an instance of GetMessageAttachment200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::GetMessageAttachment200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "status"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "url"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "refreshed"' 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
|
+
|
|
48
|
+
end
|
|
@@ -165,6 +165,12 @@ describe Zernio::ListCommentAutomations200ResponseAutomationsInner do
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
169
|
+
it 'should work' do
|
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
168
174
|
describe 'test attribute "is_active"' do
|
|
169
175
|
it 'should work' do
|
|
170
176
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -115,6 +115,12 @@ describe Zernio::UpdateCommentAutomation200ResponseAutomation do
|
|
|
115
115
|
end
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
119
|
+
it 'should work' do
|
|
120
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
118
124
|
describe 'test attribute "is_active"' do
|
|
119
125
|
it 'should work' do
|
|
120
126
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -119,6 +119,12 @@ describe Zernio::UpdateCommentAutomationRequest do
|
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
|
|
122
|
+
describe 'test attribute "also_match_in_dms"' do
|
|
123
|
+
it 'should work' do
|
|
124
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
122
128
|
describe 'test attribute "dm_delay_seconds"' do
|
|
123
129
|
it 'should work' do
|
|
124
130
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
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.
|
|
4
|
+
version: 0.0.701
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -703,6 +703,7 @@ files:
|
|
|
703
703
|
- docs/GetLinkedInSupplyForecastRequestCompetingBid.md
|
|
704
704
|
- docs/GetMediaPresignedUrl200Response.md
|
|
705
705
|
- docs/GetMediaPresignedUrlRequest.md
|
|
706
|
+
- docs/GetMessageAttachment200Response.md
|
|
706
707
|
- docs/GetMessengerMenu200Response.md
|
|
707
708
|
- docs/GetPendingOAuthData200Response.md
|
|
708
709
|
- docs/GetPendingOAuthData200ResponseOrganizationsInner.md
|
|
@@ -2403,6 +2404,7 @@ files:
|
|
|
2403
2404
|
- lib/zernio-sdk/models/get_linked_in_supply_forecast_request_competing_bid.rb
|
|
2404
2405
|
- lib/zernio-sdk/models/get_media_presigned_url200_response.rb
|
|
2405
2406
|
- lib/zernio-sdk/models/get_media_presigned_url_request.rb
|
|
2407
|
+
- lib/zernio-sdk/models/get_message_attachment200_response.rb
|
|
2406
2408
|
- lib/zernio-sdk/models/get_messenger_menu200_response.rb
|
|
2407
2409
|
- lib/zernio-sdk/models/get_pending_o_auth_data200_response.rb
|
|
2408
2410
|
- lib/zernio-sdk/models/get_pending_o_auth_data200_response_organizations_inner.rb
|
|
@@ -4061,6 +4063,7 @@ files:
|
|
|
4061
4063
|
- spec/models/get_linked_in_supply_forecast_request_spec.rb
|
|
4062
4064
|
- spec/models/get_media_presigned_url200_response_spec.rb
|
|
4063
4065
|
- spec/models/get_media_presigned_url_request_spec.rb
|
|
4066
|
+
- spec/models/get_message_attachment200_response_spec.rb
|
|
4064
4067
|
- spec/models/get_messenger_menu200_response_spec.rb
|
|
4065
4068
|
- spec/models/get_pending_o_auth_data200_response_organizations_inner_spec.rb
|
|
4066
4069
|
- spec/models/get_pending_o_auth_data200_response_spec.rb
|
|
@@ -5042,7 +5045,7 @@ files:
|
|
|
5042
5045
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5043
5046
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5044
5047
|
- spec/spec_helper.rb
|
|
5045
|
-
- zernio-sdk-0.0.
|
|
5048
|
+
- zernio-sdk-0.0.701.gem
|
|
5046
5049
|
- zernio-sdk.gemspec
|
|
5047
5050
|
homepage: https://openapi-generator.tech
|
|
5048
5051
|
licenses:
|
|
@@ -6109,6 +6112,7 @@ test_files:
|
|
|
6109
6112
|
- spec/models/webhook_payload_message_spec.rb
|
|
6110
6113
|
- spec/models/get_inbox_conversation200_response_spec.rb
|
|
6111
6114
|
- spec/models/start_sms_registration200_response_spec.rb
|
|
6115
|
+
- spec/models/get_message_attachment200_response_spec.rb
|
|
6112
6116
|
- spec/models/update_queue_slot_request_spec.rb
|
|
6113
6117
|
- spec/models/respond_to_sms_registration_review200_response_spec.rb
|
|
6114
6118
|
- spec/models/analytics_list_response_posts_inner_spec.rb
|
data/zernio-sdk-0.0.699.gem
DELETED
|
Binary file
|