twilio-ruby 5.12.1 → 5.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/chat/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +47 -19
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +215 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +215 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +33 -6
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/intent_actions.rb +246 -0
- data/lib/twilio-ruby/rest/pricing.rb +9 -2
- data/lib/twilio-ruby/rest/pricing/v2.rb +35 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +126 -0
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +281 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -3
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +81 -0
- data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +81 -0
- data/spec/integration/preview/understand/assistant/intent/intent_actions_spec.rb +87 -0
- data/spec/integration/preview/understand/assistant/intent_spec.rb +4 -0
- data/spec/integration/preview/understand/assistant_spec.rb +12 -8
- data/spec/integration/pricing/v2/voice/country_spec.rb +181 -0
- data/spec/integration/pricing/v2/voice_spec.rb +12 -0
- metadata +19 -3
@@ -33,7 +33,7 @@ module Twilio
|
|
33
33
|
# memory before returning.
|
34
34
|
# @param [String] unique_name The unique_name
|
35
35
|
# @param [session.Status] status The Status of this Session. One of `in-progress`,
|
36
|
-
# `closed`, `failed`, `unknown
|
36
|
+
# `closed`, `failed`, `unknown`.
|
37
37
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
38
38
|
# guarantees to never return more than limit. Default is no limit
|
39
39
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -51,7 +51,7 @@ module Twilio
|
|
51
51
|
# is reached.
|
52
52
|
# @param [String] unique_name The unique_name
|
53
53
|
# @param [session.Status] status The Status of this Session. One of `in-progress`,
|
54
|
-
# `closed`, `failed`, `unknown
|
54
|
+
# `closed`, `failed`, `unknown`.
|
55
55
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
56
56
|
# guarantees to never return more than limit. Default is no limit.
|
57
57
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -86,7 +86,7 @@ module Twilio
|
|
86
86
|
# Request is executed immediately.
|
87
87
|
# @param [String] unique_name The unique_name
|
88
88
|
# @param [session.Status] status The Status of this Session. One of `in-progress`,
|
89
|
-
# `closed`, `failed`, `unknown
|
89
|
+
# `closed`, `failed`, `unknown`.
|
90
90
|
# @param [String] page_token PageToken provided by the API
|
91
91
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
92
92
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -28,6 +28,15 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
33
|
+
# uniquely identifies this Composition.
|
34
|
+
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
35
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
36
|
+
def compositions(sid=:unset)
|
37
|
+
self.v1.compositions(sid)
|
38
|
+
end
|
39
|
+
|
31
40
|
##
|
32
41
|
# @return [Twilio::REST::Video::V1::CompositionSettingsInstance]
|
33
42
|
def composition_settings
|
@@ -49,15 +58,6 @@ module Twilio
|
|
49
58
|
self.v1.recording_settings()
|
50
59
|
end
|
51
60
|
|
52
|
-
##
|
53
|
-
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
54
|
-
# uniquely identifies this Composition.
|
55
|
-
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
56
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
57
|
-
def compositions(sid=:unset)
|
58
|
-
self.v1.compositions(sid)
|
59
|
-
end
|
60
|
-
|
61
61
|
##
|
62
62
|
# @param [String] sid A system-generated 34-character string that uniquely
|
63
63
|
# identifies this resource.
|
@@ -15,13 +15,28 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
+
@compositions = nil
|
18
19
|
@composition_settings = nil
|
19
20
|
@recordings = nil
|
20
21
|
@recording_settings = nil
|
21
|
-
@compositions = nil
|
22
22
|
@rooms = nil
|
23
23
|
end
|
24
24
|
|
25
|
+
##
|
26
|
+
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
27
|
+
# to fetch.
|
28
|
+
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
29
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
30
|
+
def compositions(sid=:unset)
|
31
|
+
if sid.nil?
|
32
|
+
raise ArgumentError, 'sid cannot be nil'
|
33
|
+
elsif sid == :unset
|
34
|
+
@compositions ||= CompositionList.new self
|
35
|
+
else
|
36
|
+
CompositionContext.new(self, sid)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
25
40
|
##
|
26
41
|
# @return [Twilio::REST::Video::V1::CompositionSettingsContext]
|
27
42
|
def composition_settings
|
@@ -49,21 +64,6 @@ module Twilio
|
|
49
64
|
@recording_settings ||= RecordingSettingsContext.new self
|
50
65
|
end
|
51
66
|
|
52
|
-
##
|
53
|
-
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
54
|
-
# to fetch.
|
55
|
-
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
56
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
57
|
-
def compositions(sid=:unset)
|
58
|
-
if sid.nil?
|
59
|
-
raise ArgumentError, 'sid cannot be nil'
|
60
|
-
elsif sid == :unset
|
61
|
-
@compositions ||= CompositionList.new self
|
62
|
-
else
|
63
|
-
CompositionContext.new(self, sid)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
67
|
##
|
68
68
|
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
69
69
|
# @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -0,0 +1,81 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'AssistantFallbackActions' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.assistant_fallback_actions().fetch()
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
values = {}
|
21
|
+
expect(
|
22
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
+
method: 'get',
|
24
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/FallbackActions',
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives fetch responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
36
|
+
"data": {}
|
37
|
+
}
|
38
|
+
]
|
39
|
+
))
|
40
|
+
|
41
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
42
|
+
.assistant_fallback_actions().fetch()
|
43
|
+
|
44
|
+
expect(actual).to_not eq(nil)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "can update" do
|
48
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
49
|
+
|
50
|
+
expect {
|
51
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
52
|
+
.assistant_fallback_actions().update()
|
53
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
54
|
+
|
55
|
+
values = {}
|
56
|
+
expect(
|
57
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
58
|
+
method: 'post',
|
59
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/FallbackActions',
|
60
|
+
))).to eq(true)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "receives update responses" do
|
64
|
+
@holodeck.mock(Twilio::Response.new(
|
65
|
+
200,
|
66
|
+
%q[
|
67
|
+
{
|
68
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
69
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
70
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
71
|
+
"data": {}
|
72
|
+
}
|
73
|
+
]
|
74
|
+
))
|
75
|
+
|
76
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
77
|
+
.assistant_fallback_actions().update()
|
78
|
+
|
79
|
+
expect(actual).to_not eq(nil)
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'AssistantInitiationActions' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.assistant_initiation_actions().fetch()
|
18
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
19
|
+
|
20
|
+
values = {}
|
21
|
+
expect(
|
22
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
23
|
+
method: 'get',
|
24
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/InitiationActions',
|
25
|
+
))).to eq(true)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "receives fetch responses" do
|
29
|
+
@holodeck.mock(Twilio::Response.new(
|
30
|
+
200,
|
31
|
+
%q[
|
32
|
+
{
|
33
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
34
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"data": {},
|
36
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions"
|
37
|
+
}
|
38
|
+
]
|
39
|
+
))
|
40
|
+
|
41
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
42
|
+
.assistant_initiation_actions().fetch()
|
43
|
+
|
44
|
+
expect(actual).to_not eq(nil)
|
45
|
+
end
|
46
|
+
|
47
|
+
it "can update" do
|
48
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
49
|
+
|
50
|
+
expect {
|
51
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
52
|
+
.assistant_initiation_actions().update()
|
53
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
54
|
+
|
55
|
+
values = {}
|
56
|
+
expect(
|
57
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
58
|
+
method: 'post',
|
59
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/InitiationActions',
|
60
|
+
))).to eq(true)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "receives update responses" do
|
64
|
+
@holodeck.mock(Twilio::Response.new(
|
65
|
+
200,
|
66
|
+
%q[
|
67
|
+
{
|
68
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
69
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
70
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions",
|
71
|
+
"data": {}
|
72
|
+
}
|
73
|
+
]
|
74
|
+
))
|
75
|
+
|
76
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
77
|
+
.assistant_initiation_actions().update()
|
78
|
+
|
79
|
+
expect(actual).to_not eq(nil)
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
require 'spec_helper.rb'
|
10
|
+
|
11
|
+
describe 'IntentActions' do
|
12
|
+
it "can fetch" do
|
13
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
14
|
+
|
15
|
+
expect {
|
16
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
|
+
.intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
18
|
+
.intent_actions().fetch()
|
19
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
20
|
+
|
21
|
+
values = {}
|
22
|
+
expect(
|
23
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
24
|
+
method: 'get',
|
25
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Intents/UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Actions',
|
26
|
+
))).to eq(true)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "receives fetch responses" do
|
30
|
+
@holodeck.mock(Twilio::Response.new(
|
31
|
+
200,
|
32
|
+
%q[
|
33
|
+
{
|
34
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
35
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
36
|
+
"intent_sid": "UDdddddddddddddddddddddddddddddddd",
|
37
|
+
"data": {},
|
38
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDdddddddddddddddddddddddddddddddd/Actions"
|
39
|
+
}
|
40
|
+
]
|
41
|
+
))
|
42
|
+
|
43
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
44
|
+
.intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
45
|
+
.intent_actions().fetch()
|
46
|
+
|
47
|
+
expect(actual).to_not eq(nil)
|
48
|
+
end
|
49
|
+
|
50
|
+
it "can update" do
|
51
|
+
@holodeck.mock(Twilio::Response.new(500, ''))
|
52
|
+
|
53
|
+
expect {
|
54
|
+
@client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
55
|
+
.intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
56
|
+
.intent_actions().update()
|
57
|
+
}.to raise_exception(Twilio::REST::TwilioError)
|
58
|
+
|
59
|
+
values = {}
|
60
|
+
expect(
|
61
|
+
@holodeck.has_request?(Holodeck::Request.new(
|
62
|
+
method: 'post',
|
63
|
+
url: 'https://preview.twilio.com/understand/Assistants/UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Intents/UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Actions',
|
64
|
+
))).to eq(true)
|
65
|
+
end
|
66
|
+
|
67
|
+
it "receives update responses" do
|
68
|
+
@holodeck.mock(Twilio::Response.new(
|
69
|
+
200,
|
70
|
+
%q[
|
71
|
+
{
|
72
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
73
|
+
"assistant_sid": "UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
74
|
+
"intent_sid": "UDdddddddddddddddddddddddddddddddd",
|
75
|
+
"data": {},
|
76
|
+
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDdddddddddddddddddddddddddddddddd/Actions"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
))
|
80
|
+
|
81
|
+
actual = @client.preview.understand.assistants('UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
82
|
+
.intents('UDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
83
|
+
.intent_actions().update()
|
84
|
+
|
85
|
+
expect(actual).to_not eq(nil)
|
86
|
+
end
|
87
|
+
end
|
@@ -34,6 +34,7 @@ describe 'Intent' do
|
|
34
34
|
"links": {
|
35
35
|
"fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
|
36
36
|
"samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
|
37
|
+
"intent_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Actions",
|
37
38
|
"statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
|
38
39
|
},
|
39
40
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -114,6 +115,7 @@ describe 'Intent' do
|
|
114
115
|
"links": {
|
115
116
|
"fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
|
116
117
|
"samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
|
118
|
+
"intent_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Actions",
|
117
119
|
"statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
|
118
120
|
},
|
119
121
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -161,6 +163,7 @@ describe 'Intent' do
|
|
161
163
|
"links": {
|
162
164
|
"fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
|
163
165
|
"samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
|
166
|
+
"intent_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Actions",
|
164
167
|
"statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
|
165
168
|
},
|
166
169
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -205,6 +208,7 @@ describe 'Intent' do
|
|
205
208
|
"links": {
|
206
209
|
"fields": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Fields",
|
207
210
|
"samples": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Samples",
|
211
|
+
"intent_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Actions",
|
208
212
|
"statistics": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents/UDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Statistics"
|
209
213
|
},
|
210
214
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
@@ -41,10 +41,11 @@ describe 'Assistant' do
|
|
41
41
|
"field_types": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FieldTypes",
|
42
42
|
"intents": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents",
|
43
43
|
"model_builds": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ModelBuilds",
|
44
|
-
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries"
|
44
|
+
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries",
|
45
|
+
"assistant_fallback_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
46
|
+
"assistant_initiation_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions"
|
45
47
|
},
|
46
48
|
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
47
|
-
"response_url": "https://example.com/response_url",
|
48
49
|
"callback_url": "https://example.com/callback_url",
|
49
50
|
"callback_events": "model_build_completed model_build_failed"
|
50
51
|
}
|
@@ -114,10 +115,11 @@ describe 'Assistant' do
|
|
114
115
|
"field_types": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FieldTypes",
|
115
116
|
"intents": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents",
|
116
117
|
"model_builds": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ModelBuilds",
|
117
|
-
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries"
|
118
|
+
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries",
|
119
|
+
"assistant_fallback_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
120
|
+
"assistant_initiation_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions"
|
118
121
|
},
|
119
122
|
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
120
|
-
"response_url": "https://example.com/response_url",
|
121
123
|
"callback_url": "https://example.com/callback_url",
|
122
124
|
"callback_events": "model_build_completed model_build_failed"
|
123
125
|
}
|
@@ -172,10 +174,11 @@ describe 'Assistant' do
|
|
172
174
|
"field_types": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FieldTypes",
|
173
175
|
"intents": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents",
|
174
176
|
"model_builds": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ModelBuilds",
|
175
|
-
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries"
|
177
|
+
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries",
|
178
|
+
"assistant_fallback_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
179
|
+
"assistant_initiation_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions"
|
176
180
|
},
|
177
181
|
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
178
|
-
"response_url": "https://example.com/response_url",
|
179
182
|
"callback_url": "https://example.com/callback_url",
|
180
183
|
"callback_events": "model_build_completed model_build_failed"
|
181
184
|
}
|
@@ -219,10 +222,11 @@ describe 'Assistant' do
|
|
219
222
|
"field_types": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FieldTypes",
|
220
223
|
"intents": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Intents",
|
221
224
|
"model_builds": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ModelBuilds",
|
222
|
-
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries"
|
225
|
+
"queries": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries",
|
226
|
+
"assistant_fallback_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/FallbackActions",
|
227
|
+
"assistant_initiation_actions": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/InitiationActions"
|
223
228
|
},
|
224
229
|
"url": "https://preview.twilio.com/understand/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
225
|
-
"response_url": "https://example.com/response_url",
|
226
230
|
"callback_url": "https://example.com/callback_url",
|
227
231
|
"callback_events": "model_build_completed model_build_failed"
|
228
232
|
}
|