smooch-api 4.2.0 → 5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/docs/Action.md +2 -2
- data/docs/AppUserLink.md +1 -1
- data/docs/BusinessSystemItem.md +1 -1
- data/docs/ChannelEntityItem.md +1 -1
- data/docs/Client.md +1 -1
- data/docs/ClientInfo.md +1 -1
- data/docs/Confirmation.md +1 -1
- data/docs/{TypingActivityTrigger.md → ConversationActivity.md} +3 -3
- data/docs/ConversationApi.md +49 -49
- data/docs/Destination.md +1 -1
- data/docs/DisplaySettings.md +1 -1
- data/docs/Enums.md +20 -0
- data/docs/Integration.md +2 -2
- data/docs/IntegrationCreate.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/MenuItem.md +1 -1
- data/docs/Message.md +2 -2
- data/docs/MessageItem.md +1 -1
- data/docs/MessagePost.md +2 -2
- data/docs/Source.md +1 -1
- data/docs/SubMenuItem.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookCreate.md +1 -1
- data/docs/WebhookUpdate.md +1 -1
- data/lib/smooch-api.rb +2 -1
- data/lib/smooch-api/api/conversation_api.rb +66 -66
- data/lib/smooch-api/models/action.rb +2 -2
- data/lib/smooch-api/models/app_user_link.rb +1 -1
- data/lib/smooch-api/models/business_system_item.rb +1 -1
- data/lib/smooch-api/models/channel_entity_item.rb +1 -1
- data/lib/smooch-api/models/client.rb +1 -1
- data/lib/smooch-api/models/client_info.rb +1 -1
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/{typing_activity_trigger.rb → conversation_activity.rb} +3 -3
- data/lib/smooch-api/models/destination.rb +1 -1
- data/lib/smooch-api/models/display_settings.rb +1 -1
- data/lib/smooch-api/models/enums.rb +473 -0
- data/lib/smooch-api/models/integration.rb +2 -2
- data/lib/smooch-api/models/integration_create.rb +1 -1
- data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +1 -1
- data/lib/smooch-api/models/message.rb +2 -2
- data/lib/smooch-api/models/message_item.rb +1 -1
- data/lib/smooch-api/models/message_post.rb +2 -2
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/webhook.rb +1 -1
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- data/lib/smooch-api/version.rb +1 -1
- metadata +6 -4
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# The integration ID, generated automatically.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
# The integration type.
|
21
|
+
# The integration type. See Enums.md for available values.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
# Facebook Page Access Token. Required for *messenger* integrations.
|
@@ -180,7 +180,7 @@ module SmoochApi
|
|
180
180
|
# A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations.
|
181
181
|
attr_accessor :originWhitelist
|
182
182
|
|
183
|
-
# The integration status.
|
183
|
+
# The integration status. See Enums.md for available values. [More info](https://docs.smooch.io/#integration-status).
|
184
184
|
attr_accessor :status
|
185
185
|
|
186
186
|
# The error causing the integration to fail. Will be present when `status` is 'error'.
|
@@ -21,7 +21,7 @@ module SmoochApi
|
|
21
21
|
# A valid address, like http://smooch.io. Required for a link type item.
|
22
22
|
attr_accessor :uri
|
23
23
|
|
24
|
-
# Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus.
|
24
|
+
# Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus. See Enums.md for available values.
|
25
25
|
attr_accessor :type
|
26
26
|
|
27
27
|
# A payload for a postback. Required for a postback type item.
|
@@ -21,10 +21,10 @@ module SmoochApi
|
|
21
21
|
# The ID of the message's author.
|
22
22
|
attr_accessor :authorId
|
23
23
|
|
24
|
-
# The role of the individual posting the message.
|
24
|
+
# The role of the individual posting the message. See Enums.md for available values.
|
25
25
|
attr_accessor :role
|
26
26
|
|
27
|
-
# The message type.
|
27
|
+
# The message type. See Enums.md for available values.
|
28
28
|
attr_accessor :type
|
29
29
|
|
30
30
|
# The source of the message.
|
@@ -24,7 +24,7 @@ module SmoochApi
|
|
24
24
|
# The image URL to be shown in the carousel/list item.
|
25
25
|
attr_accessor :mediaUrl
|
26
26
|
|
27
|
-
# The size of the image to be shown in the carousel/list item. Only top item of Facebook Messenger carousel supported.
|
27
|
+
# The size of the image to be shown in the carousel/list item. Only top item of Facebook Messenger carousel supported. See Enums.md for available values.
|
28
28
|
attr_accessor :size
|
29
29
|
|
30
30
|
# If a *mediaUrl* was specified, the media type is defined here, for example *image/jpeg*.
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module SmoochApi
|
16
16
|
|
17
17
|
class MessagePost
|
18
|
-
# The role of the individual posting the message.
|
18
|
+
# The role of the individual posting the message. See Enums.md for available values.
|
19
19
|
attr_accessor :role
|
20
20
|
|
21
|
-
# The message type.
|
21
|
+
# The message type. See Enums.md for available values.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
# The display name of the message author.
|
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# An identifier used by Smooch for internal purposes.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
# An identifier for the channel from which a message originated.
|
21
|
+
# An identifier for the channel from which a message originated. See Enums.md for available values.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
|
@@ -21,7 +21,7 @@ module SmoochApi
|
|
21
21
|
# A valid address, like http://smooch.io. Required for a link type item.
|
22
22
|
attr_accessor :uri
|
23
23
|
|
24
|
-
# Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus.
|
24
|
+
# Can either be link, postback, which correspond to Smooch’s link and postback actions, or submenu for nested menus. See Enums.md for available values.
|
25
25
|
attr_accessor :type
|
26
26
|
|
27
27
|
# A payload for a postback. Required for a postback type item.
|
@@ -21,7 +21,7 @@ module SmoochApi
|
|
21
21
|
# URL to be called when the webhook is triggered.
|
22
22
|
attr_accessor :target
|
23
23
|
|
24
|
-
# An array of triggers you wish to have the webhook listen to.
|
24
|
+
# An array of triggers you wish to have the webhook listen to. See Enums.md for available values.
|
25
25
|
attr_accessor :triggers
|
26
26
|
|
27
27
|
# Secret which will be transmitted with each webhook invocation and can be used to verify the authenticity of the caller.
|
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# URL to be called when the webhook is triggered.
|
19
19
|
attr_accessor :target
|
20
20
|
|
21
|
-
# An array of triggers you wish to have the webhook listen to.
|
21
|
+
# An array of triggers you wish to have the webhook listen to. See Enums.md for available values.
|
22
22
|
attr_accessor :triggers
|
23
23
|
|
24
24
|
|
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# URL to be called when the webhook is triggered.
|
19
19
|
attr_accessor :target
|
20
20
|
|
21
|
-
# An array of triggers you wish to have the webhook listen to.
|
21
|
+
# An array of triggers you wish to have the webhook listen to. See Enums.md for available values.
|
22
22
|
attr_accessor :triggers
|
23
23
|
|
24
24
|
|
data/lib/smooch-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smooch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '5.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Smooch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -228,9 +228,11 @@ files:
|
|
228
228
|
- docs/ClientInfo.md
|
229
229
|
- docs/Confirmation.md
|
230
230
|
- docs/Conversation.md
|
231
|
+
- docs/ConversationActivity.md
|
231
232
|
- docs/ConversationApi.md
|
232
233
|
- docs/Destination.md
|
233
234
|
- docs/DisplaySettings.md
|
235
|
+
- docs/Enums.md
|
234
236
|
- docs/GetMessagesResponse.md
|
235
237
|
- docs/Integration.md
|
236
238
|
- docs/IntegrationApi.md
|
@@ -272,7 +274,6 @@ files:
|
|
272
274
|
- docs/TemplateCreate.md
|
273
275
|
- docs/TemplateResponse.md
|
274
276
|
- docs/TemplateUpdate.md
|
275
|
-
- docs/TypingActivityTrigger.md
|
276
277
|
- docs/Webhook.md
|
277
278
|
- docs/WebhookApi.md
|
278
279
|
- docs/WebhookCreate.md
|
@@ -314,8 +315,10 @@ files:
|
|
314
315
|
- lib/smooch-api/models/client_info.rb
|
315
316
|
- lib/smooch-api/models/confirmation.rb
|
316
317
|
- lib/smooch-api/models/conversation.rb
|
318
|
+
- lib/smooch-api/models/conversation_activity.rb
|
317
319
|
- lib/smooch-api/models/destination.rb
|
318
320
|
- lib/smooch-api/models/display_settings.rb
|
321
|
+
- lib/smooch-api/models/enums.rb
|
319
322
|
- lib/smooch-api/models/get_messages_response.rb
|
320
323
|
- lib/smooch-api/models/integration.rb
|
321
324
|
- lib/smooch-api/models/integration_create.rb
|
@@ -353,7 +356,6 @@ files:
|
|
353
356
|
- lib/smooch-api/models/template_create.rb
|
354
357
|
- lib/smooch-api/models/template_response.rb
|
355
358
|
- lib/smooch-api/models/template_update.rb
|
356
|
-
- lib/smooch-api/models/typing_activity_trigger.rb
|
357
359
|
- lib/smooch-api/models/webhook.rb
|
358
360
|
- lib/smooch-api/models/webhook_create.rb
|
359
361
|
- lib/smooch-api/models/webhook_response.rb
|