twilio-ruby 6.9.0 → 6.9.1
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/CHANGES.md +12 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +3 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +27 -27
- data/lib/twilio-ruby/rest/preview/sync/service.rb +27 -27
- data/lib/twilio-ruby/rest/preview.rb +1 -11
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -35
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +0 -473
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +0 -433
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -683
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +0 -207
- data/lib/twilio-ruby/rest/autopilot/v1.rb +0 -55
- data/lib/twilio-ruby/rest/autopilot.rb +0 -22
- data/lib/twilio-ruby/rest/autopilot_base.rb +0 -38
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +0 -217
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +0 -389
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +0 -435
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +0 -409
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +0 -463
- data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +0 -241
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +0 -373
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +0 -436
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +0 -253
- data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +0 -226
- data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +0 -525
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +0 -663
- data/lib/twilio-ruby/rest/preview/understand.rb +0 -49
@@ -1,241 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Preview
|
8
|
-
# This is the public Twilio REST API.
|
9
|
-
#
|
10
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
-
# https://openapi-generator.tech
|
12
|
-
# Do not edit the class manually.
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
module Twilio
|
17
|
-
module REST
|
18
|
-
class Preview < PreviewBase
|
19
|
-
class Understand < Version
|
20
|
-
class AssistantContext < InstanceContext
|
21
|
-
|
22
|
-
class AssistantInitiationActionsList < ListResource
|
23
|
-
##
|
24
|
-
# Initialize the AssistantInitiationActionsList
|
25
|
-
# @param [Version] version Version that contains the resource
|
26
|
-
# @return [AssistantInitiationActionsList] AssistantInitiationActionsList
|
27
|
-
def initialize(version, assistant_sid: nil)
|
28
|
-
super(version)
|
29
|
-
# Path Solution
|
30
|
-
@solution = { assistant_sid: assistant_sid }
|
31
|
-
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
# Provide a user friendly representation
|
38
|
-
def to_s
|
39
|
-
'#<Twilio.Preview.Understand.AssistantInitiationActionsList>'
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
##
|
45
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
46
|
-
class AssistantInitiationActionsContext < InstanceContext
|
47
|
-
##
|
48
|
-
# Initialize the AssistantInitiationActionsContext
|
49
|
-
# @param [Version] version Version that contains the resource
|
50
|
-
# @param [String] assistant_sid
|
51
|
-
# @return [AssistantInitiationActionsContext] AssistantInitiationActionsContext
|
52
|
-
def initialize(version, assistant_sid)
|
53
|
-
super(version)
|
54
|
-
|
55
|
-
# Path Solution
|
56
|
-
@solution = { assistant_sid: assistant_sid, }
|
57
|
-
@uri = "/Assistants/#{@solution[:assistant_sid]}/InitiationActions"
|
58
|
-
|
59
|
-
|
60
|
-
end
|
61
|
-
##
|
62
|
-
# Fetch the AssistantInitiationActionsInstance
|
63
|
-
# @return [AssistantInitiationActionsInstance] Fetched AssistantInitiationActionsInstance
|
64
|
-
def fetch
|
65
|
-
|
66
|
-
payload = @version.fetch('GET', @uri)
|
67
|
-
AssistantInitiationActionsInstance.new(
|
68
|
-
@version,
|
69
|
-
payload,
|
70
|
-
assistant_sid: @solution[:assistant_sid],
|
71
|
-
)
|
72
|
-
end
|
73
|
-
|
74
|
-
##
|
75
|
-
# Update the AssistantInitiationActionsInstance
|
76
|
-
# @param [Object] initiation_actions
|
77
|
-
# @return [AssistantInitiationActionsInstance] Updated AssistantInitiationActionsInstance
|
78
|
-
def update(
|
79
|
-
initiation_actions: :unset
|
80
|
-
)
|
81
|
-
|
82
|
-
data = Twilio::Values.of({
|
83
|
-
'InitiationActions' => Twilio.serialize_object(initiation_actions),
|
84
|
-
})
|
85
|
-
|
86
|
-
payload = @version.update('POST', @uri, data: data)
|
87
|
-
AssistantInitiationActionsInstance.new(
|
88
|
-
@version,
|
89
|
-
payload,
|
90
|
-
assistant_sid: @solution[:assistant_sid],
|
91
|
-
)
|
92
|
-
end
|
93
|
-
|
94
|
-
|
95
|
-
##
|
96
|
-
# Provide a user friendly representation
|
97
|
-
def to_s
|
98
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
99
|
-
"#<Twilio.Preview.Understand.AssistantInitiationActionsContext #{context}>"
|
100
|
-
end
|
101
|
-
|
102
|
-
##
|
103
|
-
# Provide a detailed, user friendly representation
|
104
|
-
def inspect
|
105
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
106
|
-
"#<Twilio.Preview.Understand.AssistantInitiationActionsContext #{context}>"
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
class AssistantInitiationActionsPage < Page
|
111
|
-
##
|
112
|
-
# Initialize the AssistantInitiationActionsPage
|
113
|
-
# @param [Version] version Version that contains the resource
|
114
|
-
# @param [Response] response Response from the API
|
115
|
-
# @param [Hash] solution Path solution for the resource
|
116
|
-
# @return [AssistantInitiationActionsPage] AssistantInitiationActionsPage
|
117
|
-
def initialize(version, response, solution)
|
118
|
-
super(version, response)
|
119
|
-
|
120
|
-
# Path Solution
|
121
|
-
@solution = solution
|
122
|
-
end
|
123
|
-
|
124
|
-
##
|
125
|
-
# Build an instance of AssistantInitiationActionsInstance
|
126
|
-
# @param [Hash] payload Payload response from the API
|
127
|
-
# @return [AssistantInitiationActionsInstance] AssistantInitiationActionsInstance
|
128
|
-
def get_instance(payload)
|
129
|
-
AssistantInitiationActionsInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid])
|
130
|
-
end
|
131
|
-
|
132
|
-
##
|
133
|
-
# Provide a user friendly representation
|
134
|
-
def to_s
|
135
|
-
'<Twilio.Preview.Understand.AssistantInitiationActionsPage>'
|
136
|
-
end
|
137
|
-
end
|
138
|
-
class AssistantInitiationActionsInstance < InstanceResource
|
139
|
-
##
|
140
|
-
# Initialize the AssistantInitiationActionsInstance
|
141
|
-
# @param [Version] version Version that contains the resource
|
142
|
-
# @param [Hash] payload payload that contains response from Twilio
|
143
|
-
# @param [String] account_sid The SID of the
|
144
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this AssistantInitiationActions
|
145
|
-
# resource.
|
146
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
147
|
-
# @return [AssistantInitiationActionsInstance] AssistantInitiationActionsInstance
|
148
|
-
def initialize(version, payload , assistant_sid: nil)
|
149
|
-
super(version)
|
150
|
-
|
151
|
-
# Marshaled Properties
|
152
|
-
@properties = {
|
153
|
-
'account_sid' => payload['account_sid'],
|
154
|
-
'assistant_sid' => payload['assistant_sid'],
|
155
|
-
'url' => payload['url'],
|
156
|
-
'data' => payload['data'],
|
157
|
-
}
|
158
|
-
|
159
|
-
# Context
|
160
|
-
@instance_context = nil
|
161
|
-
@params = { 'assistant_sid' => assistant_sid || @properties['assistant_sid'] , }
|
162
|
-
end
|
163
|
-
|
164
|
-
##
|
165
|
-
# Generate an instance context for the instance, the context is capable of
|
166
|
-
# performing various actions. All instance actions are proxied to the context
|
167
|
-
# @return [AssistantInitiationActionsContext] CallContext for this CallInstance
|
168
|
-
def context
|
169
|
-
unless @instance_context
|
170
|
-
@instance_context = AssistantInitiationActionsContext.new(@version , @params['assistant_sid'])
|
171
|
-
end
|
172
|
-
@instance_context
|
173
|
-
end
|
174
|
-
|
175
|
-
##
|
176
|
-
# @return [String]
|
177
|
-
def account_sid
|
178
|
-
@properties['account_sid']
|
179
|
-
end
|
180
|
-
|
181
|
-
##
|
182
|
-
# @return [String]
|
183
|
-
def assistant_sid
|
184
|
-
@properties['assistant_sid']
|
185
|
-
end
|
186
|
-
|
187
|
-
##
|
188
|
-
# @return [String]
|
189
|
-
def url
|
190
|
-
@properties['url']
|
191
|
-
end
|
192
|
-
|
193
|
-
##
|
194
|
-
# @return [Hash]
|
195
|
-
def data
|
196
|
-
@properties['data']
|
197
|
-
end
|
198
|
-
|
199
|
-
##
|
200
|
-
# Fetch the AssistantInitiationActionsInstance
|
201
|
-
# @return [AssistantInitiationActionsInstance] Fetched AssistantInitiationActionsInstance
|
202
|
-
def fetch
|
203
|
-
|
204
|
-
context.fetch
|
205
|
-
end
|
206
|
-
|
207
|
-
##
|
208
|
-
# Update the AssistantInitiationActionsInstance
|
209
|
-
# @param [Object] initiation_actions
|
210
|
-
# @return [AssistantInitiationActionsInstance] Updated AssistantInitiationActionsInstance
|
211
|
-
def update(
|
212
|
-
initiation_actions: :unset
|
213
|
-
)
|
214
|
-
|
215
|
-
context.update(
|
216
|
-
initiation_actions: initiation_actions,
|
217
|
-
)
|
218
|
-
end
|
219
|
-
|
220
|
-
##
|
221
|
-
# Provide a user friendly representation
|
222
|
-
def to_s
|
223
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
224
|
-
"<Twilio.Preview.Understand.AssistantInitiationActionsInstance #{values}>"
|
225
|
-
end
|
226
|
-
|
227
|
-
##
|
228
|
-
# Provide a detailed, user friendly representation
|
229
|
-
def inspect
|
230
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
231
|
-
"<Twilio.Preview.Understand.AssistantInitiationActionsInstance #{values}>"
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
end
|
236
|
-
end
|
237
|
-
end
|
238
|
-
end
|
239
|
-
end
|
240
|
-
|
241
|
-
|
@@ -1,217 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Preview
|
8
|
-
# This is the public Twilio REST API.
|
9
|
-
#
|
10
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
-
# https://openapi-generator.tech
|
12
|
-
# Do not edit the class manually.
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
module Twilio
|
17
|
-
module REST
|
18
|
-
class Preview < PreviewBase
|
19
|
-
class Understand < Version
|
20
|
-
class AssistantContext < InstanceContext
|
21
|
-
|
22
|
-
class DialogueList < ListResource
|
23
|
-
##
|
24
|
-
# Initialize the DialogueList
|
25
|
-
# @param [Version] version Version that contains the resource
|
26
|
-
# @return [DialogueList] DialogueList
|
27
|
-
def initialize(version, assistant_sid: nil)
|
28
|
-
super(version)
|
29
|
-
# Path Solution
|
30
|
-
@solution = { assistant_sid: assistant_sid }
|
31
|
-
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
# Provide a user friendly representation
|
38
|
-
def to_s
|
39
|
-
'#<Twilio.Preview.Understand.DialogueList>'
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
|
44
|
-
##
|
45
|
-
#PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
46
|
-
class DialogueContext < InstanceContext
|
47
|
-
##
|
48
|
-
# Initialize the DialogueContext
|
49
|
-
# @param [Version] version Version that contains the resource
|
50
|
-
# @param [String] assistant_sid
|
51
|
-
# @param [String] sid
|
52
|
-
# @return [DialogueContext] DialogueContext
|
53
|
-
def initialize(version, assistant_sid, sid)
|
54
|
-
super(version)
|
55
|
-
|
56
|
-
# Path Solution
|
57
|
-
@solution = { assistant_sid: assistant_sid, sid: sid, }
|
58
|
-
@uri = "/Assistants/#{@solution[:assistant_sid]}/Dialogues/#{@solution[:sid]}"
|
59
|
-
|
60
|
-
|
61
|
-
end
|
62
|
-
##
|
63
|
-
# Fetch the DialogueInstance
|
64
|
-
# @return [DialogueInstance] Fetched DialogueInstance
|
65
|
-
def fetch
|
66
|
-
|
67
|
-
payload = @version.fetch('GET', @uri)
|
68
|
-
DialogueInstance.new(
|
69
|
-
@version,
|
70
|
-
payload,
|
71
|
-
assistant_sid: @solution[:assistant_sid],
|
72
|
-
sid: @solution[:sid],
|
73
|
-
)
|
74
|
-
end
|
75
|
-
|
76
|
-
|
77
|
-
##
|
78
|
-
# Provide a user friendly representation
|
79
|
-
def to_s
|
80
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
81
|
-
"#<Twilio.Preview.Understand.DialogueContext #{context}>"
|
82
|
-
end
|
83
|
-
|
84
|
-
##
|
85
|
-
# Provide a detailed, user friendly representation
|
86
|
-
def inspect
|
87
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
88
|
-
"#<Twilio.Preview.Understand.DialogueContext #{context}>"
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
class DialoguePage < Page
|
93
|
-
##
|
94
|
-
# Initialize the DialoguePage
|
95
|
-
# @param [Version] version Version that contains the resource
|
96
|
-
# @param [Response] response Response from the API
|
97
|
-
# @param [Hash] solution Path solution for the resource
|
98
|
-
# @return [DialoguePage] DialoguePage
|
99
|
-
def initialize(version, response, solution)
|
100
|
-
super(version, response)
|
101
|
-
|
102
|
-
# Path Solution
|
103
|
-
@solution = solution
|
104
|
-
end
|
105
|
-
|
106
|
-
##
|
107
|
-
# Build an instance of DialogueInstance
|
108
|
-
# @param [Hash] payload Payload response from the API
|
109
|
-
# @return [DialogueInstance] DialogueInstance
|
110
|
-
def get_instance(payload)
|
111
|
-
DialogueInstance.new(@version, payload, assistant_sid: @solution[:assistant_sid])
|
112
|
-
end
|
113
|
-
|
114
|
-
##
|
115
|
-
# Provide a user friendly representation
|
116
|
-
def to_s
|
117
|
-
'<Twilio.Preview.Understand.DialoguePage>'
|
118
|
-
end
|
119
|
-
end
|
120
|
-
class DialogueInstance < InstanceResource
|
121
|
-
##
|
122
|
-
# Initialize the DialogueInstance
|
123
|
-
# @param [Version] version Version that contains the resource
|
124
|
-
# @param [Hash] payload payload that contains response from Twilio
|
125
|
-
# @param [String] account_sid The SID of the
|
126
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Dialogue
|
127
|
-
# resource.
|
128
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
129
|
-
# @return [DialogueInstance] DialogueInstance
|
130
|
-
def initialize(version, payload , assistant_sid: nil, sid: nil)
|
131
|
-
super(version)
|
132
|
-
|
133
|
-
# Marshaled Properties
|
134
|
-
@properties = {
|
135
|
-
'account_sid' => payload['account_sid'],
|
136
|
-
'assistant_sid' => payload['assistant_sid'],
|
137
|
-
'sid' => payload['sid'],
|
138
|
-
'data' => payload['data'],
|
139
|
-
'url' => payload['url'],
|
140
|
-
}
|
141
|
-
|
142
|
-
# Context
|
143
|
-
@instance_context = nil
|
144
|
-
@params = { 'assistant_sid' => assistant_sid || @properties['assistant_sid'] ,'sid' => sid || @properties['sid'] , }
|
145
|
-
end
|
146
|
-
|
147
|
-
##
|
148
|
-
# Generate an instance context for the instance, the context is capable of
|
149
|
-
# performing various actions. All instance actions are proxied to the context
|
150
|
-
# @return [DialogueContext] CallContext for this CallInstance
|
151
|
-
def context
|
152
|
-
unless @instance_context
|
153
|
-
@instance_context = DialogueContext.new(@version , @params['assistant_sid'], @params['sid'])
|
154
|
-
end
|
155
|
-
@instance_context
|
156
|
-
end
|
157
|
-
|
158
|
-
##
|
159
|
-
# @return [String] The unique ID of the Account that created this Field.
|
160
|
-
def account_sid
|
161
|
-
@properties['account_sid']
|
162
|
-
end
|
163
|
-
|
164
|
-
##
|
165
|
-
# @return [String] The unique ID of the parent Assistant.
|
166
|
-
def assistant_sid
|
167
|
-
@properties['assistant_sid']
|
168
|
-
end
|
169
|
-
|
170
|
-
##
|
171
|
-
# @return [String] The unique ID of the Dialogue
|
172
|
-
def sid
|
173
|
-
@properties['sid']
|
174
|
-
end
|
175
|
-
|
176
|
-
##
|
177
|
-
# @return [Hash] The dialogue memory object as json
|
178
|
-
def data
|
179
|
-
@properties['data']
|
180
|
-
end
|
181
|
-
|
182
|
-
##
|
183
|
-
# @return [String]
|
184
|
-
def url
|
185
|
-
@properties['url']
|
186
|
-
end
|
187
|
-
|
188
|
-
##
|
189
|
-
# Fetch the DialogueInstance
|
190
|
-
# @return [DialogueInstance] Fetched DialogueInstance
|
191
|
-
def fetch
|
192
|
-
|
193
|
-
context.fetch
|
194
|
-
end
|
195
|
-
|
196
|
-
##
|
197
|
-
# Provide a user friendly representation
|
198
|
-
def to_s
|
199
|
-
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
200
|
-
"<Twilio.Preview.Understand.DialogueInstance #{values}>"
|
201
|
-
end
|
202
|
-
|
203
|
-
##
|
204
|
-
# Provide a detailed, user friendly representation
|
205
|
-
def inspect
|
206
|
-
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
207
|
-
"<Twilio.Preview.Understand.DialogueInstance #{values}>"
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
|