lingara 0.2.0.pre.alpha.6 → 0.3.0.pre.alpha.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/README.md +17 -0
- data/lib/lingara/client.rb +17 -2
- data/lib/lingara/minted_token.rb +33 -7
- data/lib/lingara/models/activate_canvas_request.rb +1 -1
- data/lib/lingara/models/activate_dialogue_request.rb +1 -1
- data/lib/lingara/models/allowance_row.rb +1 -1
- data/lib/lingara/models/app_context_slice.rb +1 -1
- data/lib/lingara/models/app_disabled_data.rb +1 -1
- data/lib/lingara/models/app_enabled_data.rb +1 -1
- data/lib/lingara/models/app_installed_data.rb +1 -1
- data/lib/lingara/models/app_uninstalled_data.rb +1 -1
- data/lib/lingara/models/atom_kind.rb +44 -0
- data/lib/lingara/models/beat.rb +389 -0
- data/lib/lingara/models/canvas.rb +1 -1
- data/lib/lingara/models/canvas_activation_outcome.rb +1 -1
- data/lib/lingara/models/canvas_active.rb +1 -1
- data/lib/lingara/models/canvas_definition.rb +1 -1
- data/lib/lingara/models/canvas_draft.rb +1 -1
- data/lib/lingara/models/canvas_dry_run.rb +1 -1
- data/lib/lingara/models/canvas_edge.rb +1 -1
- data/lib/lingara/models/canvas_made_object.rb +1 -1
- data/lib/lingara/models/canvas_node.rb +1 -1
- data/lib/lingara/models/canvas_node_kind.rb +1 -1
- data/lib/lingara/models/canvas_object_ref.rb +1 -1
- data/lib/lingara/models/canvas_page.rb +1 -1
- data/lib/lingara/models/canvas_param.rb +1 -1
- data/lib/lingara/models/canvas_plan.rb +1 -1
- data/lib/lingara/models/canvas_recipe.rb +1 -1
- data/lib/lingara/models/canvas_summary.rb +1 -1
- data/lib/lingara/models/canvas_verdict.rb +1 -1
- data/lib/lingara/models/canvas_verdict_kind.rb +1 -1
- data/lib/lingara/models/create_canvas_request.rb +1 -1
- data/lib/lingara/models/create_dialogue_request.rb +2 -2
- data/lib/lingara/models/create_lesson_plan_event_error.rb +1 -1
- data/lib/lingara/models/create_lesson_plan_event_phase.rb +1 -1
- data/lib/lingara/models/create_lesson_plan_event_result.rb +1 -1
- data/lib/lingara/models/create_lesson_plan_event_started.rb +1 -1
- data/lib/lingara/models/dialogue.rb +1 -1
- data/lib/lingara/models/dialogue_active.rb +2 -2
- data/lib/lingara/models/dialogue_draft.rb +2 -2
- data/lib/lingara/models/dialogue_entry.rb +1 -1
- data/lib/lingara/models/dialogue_npc.rb +17 -6
- data/lib/lingara/models/dialogue_page.rb +1 -1
- data/lib/lingara/models/dialogue_plan_request.rb +620 -0
- data/lib/lingara/models/dialogue_plan_response.rb +105 -0
- data/lib/lingara/models/dialogue_plan_response_one_of.rb +287 -0
- data/lib/lingara/models/dialogue_plan_response_one_of1.rb +287 -0
- data/lib/lingara/models/dialogue_rule.rb +6 -2
- data/lib/lingara/models/dialogue_summary.rb +1 -1
- data/lib/lingara/models/dialogue_transition.rb +1 -1
- data/lib/lingara/models/dialogue_turn_request.rb +1 -1
- data/lib/lingara/models/dialogue_warning.rb +1 -1
- data/lib/lingara/models/dialogue_warning_code.rb +5 -2
- data/lib/lingara/models/embed_player_link.rb +1 -1
- data/lib/lingara/models/embed_token.rb +16 -5
- data/lib/lingara/models/embed_token_request.rb +43 -6
- data/lib/lingara/models/error_envelope.rb +1 -1
- data/lib/lingara/models/event_envelope.rb +1 -1
- data/lib/lingara/models/event_page.rb +1 -1
- data/lib/lingara/models/exit.rb +247 -0
- data/lib/lingara/models/fact_value.rb +1 -1
- data/lib/lingara/models/generate_vocabulary_event_done.rb +1 -1
- data/lib/lingara/models/generate_vocabulary_event_error.rb +1 -1
- data/lib/lingara/models/generate_vocabulary_event_item.rb +1 -1
- data/lib/lingara/models/generate_vocabulary_event_started.rb +1 -1
- data/lib/lingara/models/graph_checkpoint.rb +40 -5
- data/lib/lingara/models/graph_edge.rb +1 -1
- data/lib/lingara/models/inbound_event_accepted.rb +1 -1
- data/lib/lingara/models/kept_reason.rb +43 -0
- data/lib/lingara/models/lesson_plan.rb +1 -1
- data/lib/lingara/models/lesson_plan_content.rb +1 -1
- data/lib/lingara/models/lesson_plan_create_request.rb +1 -1
- data/lib/lingara/models/lesson_plan_failed_data.rb +1 -1
- data/lib/lingara/models/lesson_plan_ready_data.rb +1 -1
- data/lib/lingara/models/link_status.rb +1 -1
- data/lib/lingara/models/notice.rb +1 -1
- data/lib/lingara/models/npc.rb +1 -1
- data/lib/lingara/models/npc_disposition.rb +299 -0
- data/lib/lingara/models/npc_language.rb +1 -1
- data/lib/lingara/models/pedagogy.rb +1 -1
- data/lib/lingara/models/plan_fail_reason.rb +1 -1
- data/lib/lingara/models/plan_fragment.rb +265 -0
- data/lib/lingara/models/plan_pending.rb +1 -1
- data/lib/lingara/models/plan_phase.rb +1 -1
- data/lib/lingara/models/plan_question.rb +1 -1
- data/lib/lingara/models/plan_ready_status.rb +1 -1
- data/lib/lingara/models/plan_reason.rb +42 -0
- data/lib/lingara/models/plan_result.rb +1 -1
- data/lib/lingara/models/plan_set.rb +1 -1
- data/lib/lingara/models/plan_started.rb +1 -1
- data/lib/lingara/models/plan_status.rb +1 -1
- data/lib/lingara/models/plan_word.rb +1 -1
- data/lib/lingara/models/practice_completed_data.rb +1 -1
- data/lib/lingara/models/practice_item.rb +1 -1
- data/lib/lingara/models/practice_outcome.rb +1 -1
- data/lib/lingara/models/reaction_report.rb +1 -1
- data/lib/lingara/models/reaction_status.rb +1 -1
- data/lib/lingara/models/rename_canvas_request.rb +1 -1
- data/lib/lingara/models/rename_dialogue_request.rb +1 -1
- data/lib/lingara/models/save_canvas_draft_request.rb +1 -1
- data/lib/lingara/models/save_dialogue_draft_request.rb +2 -2
- data/lib/lingara/models/send_dialogue_turn_event_delta.rb +1 -1
- data/lib/lingara/models/send_dialogue_turn_event_done.rb +1 -1
- data/lib/lingara/models/send_dialogue_turn_event_error.rb +1 -1
- data/lib/lingara/models/send_dialogue_turn_event_notice.rb +1 -1
- data/lib/lingara/models/send_dialogue_turn_event_transition.rb +1 -1
- data/lib/lingara/models/send_tutor_message_event_delta.rb +1 -1
- data/lib/lingara/models/send_tutor_message_event_done.rb +1 -1
- data/lib/lingara/models/send_tutor_message_event_error.rb +1 -1
- data/lib/lingara/models/send_tutor_message_event_notice.rb +1 -1
- data/lib/lingara/models/speaker.rb +1 -1
- data/lib/lingara/models/stream_error.rb +1 -1
- data/lib/lingara/models/stream_events_event_done.rb +1 -1
- data/lib/lingara/models/stream_events_event_error.rb +1 -1
- data/lib/lingara/models/stream_events_event_event.rb +1 -1
- data/lib/lingara/models/stream_lesson_plan_event_error.rb +1 -1
- data/lib/lingara/models/stream_lesson_plan_event_pending.rb +1 -1
- data/lib/lingara/models/stream_lesson_plan_event_phase.rb +1 -1
- data/lib/lingara/models/stream_lesson_plan_event_result.rb +1 -1
- data/lib/lingara/models/stream_lesson_plan_event_started.rb +1 -1
- data/lib/lingara/models/threshold_scope.rb +1 -1
- data/lib/lingara/models/turn_delta.rb +1 -1
- data/lib/lingara/models/turn_entry.rb +1 -1
- data/lib/lingara/models/turn_role.rb +1 -1
- data/lib/lingara/models/tutor_turn_request.rb +1 -1
- data/lib/lingara/models/update_available.rb +279 -0
- data/lib/lingara/models/usage.rb +1 -1
- data/lib/lingara/models/usage_ledger.rb +1 -1
- data/lib/lingara/models/usage_threshold_reached_data.rb +1 -1
- data/lib/lingara/models/version_detail.rb +1 -1
- data/lib/lingara/models/version_history_entry.rb +1 -1
- data/lib/lingara/models/version_list.rb +1 -1
- data/lib/lingara/models/version_spec.rb +1 -1
- data/lib/lingara/models/version_state.rb +1 -1
- data/lib/lingara/models/version_summary.rb +1 -1
- data/lib/lingara/models/visited_beat.rb +269 -0
- data/lib/lingara/models/vocab_example.rb +1 -1
- data/lib/lingara/models/vocab_item.rb +1 -1
- data/lib/lingara/models/vocab_meta.rb +1 -1
- data/lib/lingara/models/vocab_request.rb +1 -1
- data/lib/lingara/models/vocab_started.rb +1 -1
- data/lib/lingara/models/world_context_changed.rb +1 -1
- data/lib/lingara/models/world_practice_completed.rb +1 -1
- data/lib/lingara/models/world_practice_requested.rb +1 -1
- data/lib/lingara/operations.rb +9 -0
- data/lib/lingara/response.rb +6 -1
- data/lib/lingara/version.rb +3 -3
- data/sig/lingara.rbs +7 -1
- metadata +15 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Lingara API
|
|
3
|
+
|
|
4
|
+
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Lingara
|
|
17
|
+
class VisitedBeat
|
|
18
|
+
attr_accessor :atom
|
|
19
|
+
|
|
20
|
+
attr_accessor :topic
|
|
21
|
+
|
|
22
|
+
class EnumAttributeValidator
|
|
23
|
+
attr_reader :datatype
|
|
24
|
+
attr_reader :allowable_values
|
|
25
|
+
|
|
26
|
+
def initialize(datatype, allowable_values)
|
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
|
28
|
+
case datatype.to_s
|
|
29
|
+
when /Integer/i
|
|
30
|
+
value.to_i
|
|
31
|
+
when /Float/i
|
|
32
|
+
value.to_f
|
|
33
|
+
else
|
|
34
|
+
value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def valid?(value)
|
|
40
|
+
!value || allowable_values.include?(value)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'atom' => :'atom',
|
|
48
|
+
:'topic' => :'topic'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns attribute mapping this model knows about
|
|
53
|
+
def self.acceptable_attribute_map
|
|
54
|
+
attribute_map
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
acceptable_attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'atom' => :'AtomKind',
|
|
66
|
+
:'topic' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
:'topic'
|
|
74
|
+
])
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Initializes the object
|
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
if (!attributes.is_a?(Hash))
|
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Lingara::VisitedBeat` initialize method"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
85
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
87
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Lingara::VisitedBeat`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
89
|
+
end
|
|
90
|
+
h[k.to_sym] = v
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'atom')
|
|
94
|
+
self.atom = attributes[:'atom']
|
|
95
|
+
else
|
|
96
|
+
self.atom = nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'topic')
|
|
100
|
+
self.topic = attributes[:'topic']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
|
+
invalid_properties = Array.new
|
|
109
|
+
if @atom.nil?
|
|
110
|
+
invalid_properties.push('invalid value for "atom", atom cannot be nil.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
return false if @atom.nil?
|
|
121
|
+
true
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Custom attribute writer method with validation
|
|
125
|
+
# @param [Object] atom Value to be assigned
|
|
126
|
+
def atom=(atom)
|
|
127
|
+
if atom.nil?
|
|
128
|
+
fail ArgumentError, 'atom cannot be nil'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
@atom = atom
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Checks equality by comparing each attribute.
|
|
135
|
+
# @param [Object] Object to be compared
|
|
136
|
+
def ==(o)
|
|
137
|
+
return true if self.equal?(o)
|
|
138
|
+
self.class == o.class &&
|
|
139
|
+
atom == o.atom &&
|
|
140
|
+
topic == o.topic
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# @see the `==` method
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def eql?(o)
|
|
146
|
+
self == o
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Calculates hash code according to all attributes.
|
|
150
|
+
# @return [Integer] Hash code
|
|
151
|
+
def hash
|
|
152
|
+
[atom, topic].hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Builds the object from hash
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
# @return [Object] Returns the model itself
|
|
158
|
+
def self.build_from_hash(attributes)
|
|
159
|
+
return nil unless attributes.is_a?(Hash)
|
|
160
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
161
|
+
transformed_hash = {}
|
|
162
|
+
openapi_types.each_pair do |key, type|
|
|
163
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
164
|
+
transformed_hash["#{key}"] = nil
|
|
165
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
166
|
+
# check to ensure the input is an array given that the attribute
|
|
167
|
+
# is documented as an array but the input is not
|
|
168
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
169
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
170
|
+
end
|
|
171
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
new(transformed_hash)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Deserializes the data based on type
|
|
179
|
+
# @param string type Data type
|
|
180
|
+
# @param string value Value to be deserialized
|
|
181
|
+
# @return [Object] Deserialized data
|
|
182
|
+
def self._deserialize(type, value)
|
|
183
|
+
case type.to_sym
|
|
184
|
+
when :Time
|
|
185
|
+
Time.parse(value)
|
|
186
|
+
when :Date
|
|
187
|
+
Date.parse(value)
|
|
188
|
+
when :String
|
|
189
|
+
value.to_s
|
|
190
|
+
when :Integer
|
|
191
|
+
value.to_i
|
|
192
|
+
when :Float
|
|
193
|
+
value.to_f
|
|
194
|
+
when :Boolean
|
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
196
|
+
true
|
|
197
|
+
else
|
|
198
|
+
false
|
|
199
|
+
end
|
|
200
|
+
when :Object
|
|
201
|
+
# generic object (usually a Hash), return directly
|
|
202
|
+
value
|
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
|
209
|
+
{}.tap do |hash|
|
|
210
|
+
value.each do |k, v|
|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
else # model
|
|
215
|
+
# models (e.g. Pet) or oneOf
|
|
216
|
+
klass = Lingara.const_get(type)
|
|
217
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Returns the string representation of the object
|
|
222
|
+
# @return [String] String presentation of the object
|
|
223
|
+
def to_s
|
|
224
|
+
to_hash.to_s
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
|
229
|
+
def to_body
|
|
230
|
+
to_hash
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the object in the form of hash
|
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
|
235
|
+
def to_hash
|
|
236
|
+
hash = {}
|
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
238
|
+
value = self.send(attr)
|
|
239
|
+
if value.nil?
|
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
hash[param] = _to_hash(value)
|
|
245
|
+
end
|
|
246
|
+
hash
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Outputs non-array value in the form of hash
|
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
251
|
+
# @param [Object] value Any valid value
|
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
|
253
|
+
def _to_hash(value)
|
|
254
|
+
if value.is_a?(Array)
|
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
|
256
|
+
elsif value.is_a?(Hash)
|
|
257
|
+
{}.tap do |hash|
|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
259
|
+
end
|
|
260
|
+
elsif value.respond_to? :to_hash
|
|
261
|
+
value.to_hash
|
|
262
|
+
else
|
|
263
|
+
value
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Generate vocabulary lists and lesson plans, and hold tutor conversations, in the languages Lingara teaches. Each call is paid for by the client that makes it: an `allowance` client spends its owner's allowance, and a `metered` client is billed for its usage.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026-10-
|
|
6
|
+
The version of the OpenAPI document: 2026-10-dauntless-hoopoe
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.14.0
|
data/lib/lingara/operations.rb
CHANGED
|
@@ -204,6 +204,15 @@ module Lingara
|
|
|
204
204
|
response: "EventPage",
|
|
205
205
|
stream: nil
|
|
206
206
|
}.freeze,
|
|
207
|
+
"planDialogue" => {
|
|
208
|
+
method: "POST",
|
|
209
|
+
path: "/v1/embed/dialogue/plan",
|
|
210
|
+
path_params: [].freeze,
|
|
211
|
+
needs_token: true,
|
|
212
|
+
request_body: "DialoguePlanRequest",
|
|
213
|
+
response: "DialoguePlanResponse",
|
|
214
|
+
stream: nil
|
|
215
|
+
}.freeze,
|
|
207
216
|
"renameCanvas" => {
|
|
208
217
|
method: "PATCH",
|
|
209
218
|
path: "/v1/canvases/{canvas_id}",
|
data/lib/lingara/response.rb
CHANGED
|
@@ -24,7 +24,12 @@ module Lingara
|
|
|
24
24
|
value = JSON.parse(body)
|
|
25
25
|
return value if model.nil? && value.is_a?(Hash)
|
|
26
26
|
raise TransportError.new(:malformed_response, "the response body is not a JSON object") unless value.is_a?(Hash)
|
|
27
|
-
Lingara.const_get(model)
|
|
27
|
+
klass = Lingara.const_get(model)
|
|
28
|
+
return klass.build_from_hash(value) unless klass.respond_to?(:openapi_one_of)
|
|
29
|
+
# A oneOf answer (planDialogue's, ADR 3.11.26n) is a module whose build
|
|
30
|
+
# picks the arm, nil when none fits. It matches keys against each arm's
|
|
31
|
+
# symbol attribute list, so the top level is given symbol keys.
|
|
32
|
+
klass.build(value.transform_keys(&:to_sym)) || raise("no arm of #{model} fits")
|
|
28
33
|
rescue Lingara::Error
|
|
29
34
|
raise
|
|
30
35
|
rescue
|
data/lib/lingara/version.rb
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Lingara
|
|
4
4
|
# This library's released version, SemVer, sent in every User-Agent (K6).
|
|
5
|
-
VERSION = "0.
|
|
5
|
+
VERSION = "0.3.0-alpha.1"
|
|
6
6
|
|
|
7
7
|
# The same version in RubyGems' spelling, which the gemspec uses.
|
|
8
|
-
GEM_VERSION = "0.
|
|
8
|
+
GEM_VERSION = "0.3.0.pre.alpha.1"
|
|
9
9
|
|
|
10
10
|
# The /v1 version this library's models were generated from. A response
|
|
11
11
|
# served under another version logs one warning per version id.
|
|
12
|
-
GENERATED_FOR_VERSION = "2026-10-
|
|
12
|
+
GENERATED_FOR_VERSION = "2026-10-dauntless-hoopoe"
|
|
13
13
|
end
|
data/sig/lingara.rbs
CHANGED
|
@@ -75,6 +75,9 @@ module Lingara
|
|
|
75
75
|
def link_embed_player: (String player_ref) -> Response
|
|
76
76
|
def unlink_embed_player: (String player_ref) -> Response
|
|
77
77
|
def send_dialogue_turn: (**untyped body) { (event) -> void } -> StreamResult
|
|
78
|
+
# ADR 3.11.26n: plan_dialogue's Response holds a DialoguePlanResponseOneOf
|
|
79
|
+
# (planned) or a DialoguePlanResponseOneOf1 (kept).
|
|
80
|
+
def plan_dialogue: (**untyped body) -> Response
|
|
78
81
|
# ADR 16.10.26ak: the canvas operations, as a group.
|
|
79
82
|
def canvases: () -> Canvases
|
|
80
83
|
# ADR 29.10.26c: the stored-dialogue operations, as a group.
|
|
@@ -137,9 +140,12 @@ module Lingara
|
|
|
137
140
|
attr_reader subject: String
|
|
138
141
|
attr_reader scopes: Array[String]
|
|
139
142
|
attr_reader account_linked: bool
|
|
143
|
+
# ADR 31.10.26g: an UpdateAvailable or nil, untyped as every generated model is.
|
|
144
|
+
attr_reader update_available: untyped
|
|
145
|
+
MESSAGE_MAX: Integer
|
|
140
146
|
|
|
141
147
|
def self.decode: (String body) -> MintedToken
|
|
142
|
-
def initialize: (token: AccessToken, expires_at: Time, expires_in: Integer, subject: String, scopes: Array[String], account_linked: bool) -> void
|
|
148
|
+
def initialize: (token: AccessToken, expires_at: Time, expires_in: Integer, subject: String, scopes: Array[String], account_linked: bool, ?update_available: untyped) -> void
|
|
143
149
|
end
|
|
144
150
|
|
|
145
151
|
# ADR 30.9.26aa: the event union, the verifier, the feed and the tail.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lingara
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0.pre.alpha.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Spinning Cat Studios
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Generate vocabulary lists and lesson plans, and hold tutor conversations,
|
|
14
14
|
through the Lingara API. Streams are blocks or Enumerables; the standard library
|
|
@@ -43,6 +43,8 @@ files:
|
|
|
43
43
|
- lib/lingara/models/app_enabled_data.rb
|
|
44
44
|
- lib/lingara/models/app_installed_data.rb
|
|
45
45
|
- lib/lingara/models/app_uninstalled_data.rb
|
|
46
|
+
- lib/lingara/models/atom_kind.rb
|
|
47
|
+
- lib/lingara/models/beat.rb
|
|
46
48
|
- lib/lingara/models/canvas.rb
|
|
47
49
|
- lib/lingara/models/canvas_activation_outcome.rb
|
|
48
50
|
- lib/lingara/models/canvas_active.rb
|
|
@@ -73,6 +75,10 @@ files:
|
|
|
73
75
|
- lib/lingara/models/dialogue_entry.rb
|
|
74
76
|
- lib/lingara/models/dialogue_npc.rb
|
|
75
77
|
- lib/lingara/models/dialogue_page.rb
|
|
78
|
+
- lib/lingara/models/dialogue_plan_request.rb
|
|
79
|
+
- lib/lingara/models/dialogue_plan_response.rb
|
|
80
|
+
- lib/lingara/models/dialogue_plan_response_one_of.rb
|
|
81
|
+
- lib/lingara/models/dialogue_plan_response_one_of1.rb
|
|
76
82
|
- lib/lingara/models/dialogue_rule.rb
|
|
77
83
|
- lib/lingara/models/dialogue_summary.rb
|
|
78
84
|
- lib/lingara/models/dialogue_transition.rb
|
|
@@ -85,6 +91,7 @@ files:
|
|
|
85
91
|
- lib/lingara/models/error_envelope.rb
|
|
86
92
|
- lib/lingara/models/event_envelope.rb
|
|
87
93
|
- lib/lingara/models/event_page.rb
|
|
94
|
+
- lib/lingara/models/exit.rb
|
|
88
95
|
- lib/lingara/models/fact_value.rb
|
|
89
96
|
- lib/lingara/models/generate_vocabulary_event_done.rb
|
|
90
97
|
- lib/lingara/models/generate_vocabulary_event_error.rb
|
|
@@ -93,6 +100,7 @@ files:
|
|
|
93
100
|
- lib/lingara/models/graph_checkpoint.rb
|
|
94
101
|
- lib/lingara/models/graph_edge.rb
|
|
95
102
|
- lib/lingara/models/inbound_event_accepted.rb
|
|
103
|
+
- lib/lingara/models/kept_reason.rb
|
|
96
104
|
- lib/lingara/models/lesson_plan.rb
|
|
97
105
|
- lib/lingara/models/lesson_plan_content.rb
|
|
98
106
|
- lib/lingara/models/lesson_plan_create_request.rb
|
|
@@ -101,13 +109,16 @@ files:
|
|
|
101
109
|
- lib/lingara/models/link_status.rb
|
|
102
110
|
- lib/lingara/models/notice.rb
|
|
103
111
|
- lib/lingara/models/npc.rb
|
|
112
|
+
- lib/lingara/models/npc_disposition.rb
|
|
104
113
|
- lib/lingara/models/npc_language.rb
|
|
105
114
|
- lib/lingara/models/pedagogy.rb
|
|
106
115
|
- lib/lingara/models/plan_fail_reason.rb
|
|
116
|
+
- lib/lingara/models/plan_fragment.rb
|
|
107
117
|
- lib/lingara/models/plan_pending.rb
|
|
108
118
|
- lib/lingara/models/plan_phase.rb
|
|
109
119
|
- lib/lingara/models/plan_question.rb
|
|
110
120
|
- lib/lingara/models/plan_ready_status.rb
|
|
121
|
+
- lib/lingara/models/plan_reason.rb
|
|
111
122
|
- lib/lingara/models/plan_result.rb
|
|
112
123
|
- lib/lingara/models/plan_set.rb
|
|
113
124
|
- lib/lingara/models/plan_started.rb
|
|
@@ -146,6 +157,7 @@ files:
|
|
|
146
157
|
- lib/lingara/models/turn_entry.rb
|
|
147
158
|
- lib/lingara/models/turn_role.rb
|
|
148
159
|
- lib/lingara/models/tutor_turn_request.rb
|
|
160
|
+
- lib/lingara/models/update_available.rb
|
|
149
161
|
- lib/lingara/models/usage.rb
|
|
150
162
|
- lib/lingara/models/usage_ledger.rb
|
|
151
163
|
- lib/lingara/models/usage_threshold_reached_data.rb
|
|
@@ -155,6 +167,7 @@ files:
|
|
|
155
167
|
- lib/lingara/models/version_spec.rb
|
|
156
168
|
- lib/lingara/models/version_state.rb
|
|
157
169
|
- lib/lingara/models/version_summary.rb
|
|
170
|
+
- lib/lingara/models/visited_beat.rb
|
|
158
171
|
- lib/lingara/models/vocab_example.rb
|
|
159
172
|
- lib/lingara/models/vocab_item.rb
|
|
160
173
|
- lib/lingara/models/vocab_meta.rb
|