lingara 0.2.0.pre.alpha.7 → 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.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -0
  3. data/lib/lingara/client.rb +17 -2
  4. data/lib/lingara/models/activate_canvas_request.rb +1 -1
  5. data/lib/lingara/models/activate_dialogue_request.rb +1 -1
  6. data/lib/lingara/models/allowance_row.rb +1 -1
  7. data/lib/lingara/models/app_context_slice.rb +1 -1
  8. data/lib/lingara/models/app_disabled_data.rb +1 -1
  9. data/lib/lingara/models/app_enabled_data.rb +1 -1
  10. data/lib/lingara/models/app_installed_data.rb +1 -1
  11. data/lib/lingara/models/app_uninstalled_data.rb +1 -1
  12. data/lib/lingara/models/atom_kind.rb +44 -0
  13. data/lib/lingara/models/beat.rb +389 -0
  14. data/lib/lingara/models/canvas.rb +1 -1
  15. data/lib/lingara/models/canvas_activation_outcome.rb +1 -1
  16. data/lib/lingara/models/canvas_active.rb +1 -1
  17. data/lib/lingara/models/canvas_definition.rb +1 -1
  18. data/lib/lingara/models/canvas_draft.rb +1 -1
  19. data/lib/lingara/models/canvas_dry_run.rb +1 -1
  20. data/lib/lingara/models/canvas_edge.rb +1 -1
  21. data/lib/lingara/models/canvas_made_object.rb +1 -1
  22. data/lib/lingara/models/canvas_node.rb +1 -1
  23. data/lib/lingara/models/canvas_node_kind.rb +1 -1
  24. data/lib/lingara/models/canvas_object_ref.rb +1 -1
  25. data/lib/lingara/models/canvas_page.rb +1 -1
  26. data/lib/lingara/models/canvas_param.rb +1 -1
  27. data/lib/lingara/models/canvas_plan.rb +1 -1
  28. data/lib/lingara/models/canvas_recipe.rb +1 -1
  29. data/lib/lingara/models/canvas_summary.rb +1 -1
  30. data/lib/lingara/models/canvas_verdict.rb +1 -1
  31. data/lib/lingara/models/canvas_verdict_kind.rb +1 -1
  32. data/lib/lingara/models/create_canvas_request.rb +1 -1
  33. data/lib/lingara/models/create_dialogue_request.rb +2 -2
  34. data/lib/lingara/models/create_lesson_plan_event_error.rb +1 -1
  35. data/lib/lingara/models/create_lesson_plan_event_phase.rb +1 -1
  36. data/lib/lingara/models/create_lesson_plan_event_result.rb +1 -1
  37. data/lib/lingara/models/create_lesson_plan_event_started.rb +1 -1
  38. data/lib/lingara/models/dialogue.rb +1 -1
  39. data/lib/lingara/models/dialogue_active.rb +2 -2
  40. data/lib/lingara/models/dialogue_draft.rb +2 -2
  41. data/lib/lingara/models/dialogue_entry.rb +1 -1
  42. data/lib/lingara/models/dialogue_npc.rb +17 -6
  43. data/lib/lingara/models/dialogue_page.rb +1 -1
  44. data/lib/lingara/models/dialogue_plan_request.rb +620 -0
  45. data/lib/lingara/models/dialogue_plan_response.rb +105 -0
  46. data/lib/lingara/models/dialogue_plan_response_one_of.rb +287 -0
  47. data/lib/lingara/models/dialogue_plan_response_one_of1.rb +287 -0
  48. data/lib/lingara/models/dialogue_rule.rb +6 -2
  49. data/lib/lingara/models/dialogue_summary.rb +1 -1
  50. data/lib/lingara/models/dialogue_transition.rb +1 -1
  51. data/lib/lingara/models/dialogue_turn_request.rb +1 -1
  52. data/lib/lingara/models/dialogue_warning.rb +1 -1
  53. data/lib/lingara/models/dialogue_warning_code.rb +5 -2
  54. data/lib/lingara/models/embed_player_link.rb +1 -1
  55. data/lib/lingara/models/embed_token.rb +1 -1
  56. data/lib/lingara/models/embed_token_request.rb +1 -1
  57. data/lib/lingara/models/error_envelope.rb +1 -1
  58. data/lib/lingara/models/event_envelope.rb +1 -1
  59. data/lib/lingara/models/event_page.rb +1 -1
  60. data/lib/lingara/models/exit.rb +247 -0
  61. data/lib/lingara/models/fact_value.rb +1 -1
  62. data/lib/lingara/models/generate_vocabulary_event_done.rb +1 -1
  63. data/lib/lingara/models/generate_vocabulary_event_error.rb +1 -1
  64. data/lib/lingara/models/generate_vocabulary_event_item.rb +1 -1
  65. data/lib/lingara/models/generate_vocabulary_event_started.rb +1 -1
  66. data/lib/lingara/models/graph_checkpoint.rb +40 -5
  67. data/lib/lingara/models/graph_edge.rb +1 -1
  68. data/lib/lingara/models/inbound_event_accepted.rb +1 -1
  69. data/lib/lingara/models/kept_reason.rb +43 -0
  70. data/lib/lingara/models/lesson_plan.rb +1 -1
  71. data/lib/lingara/models/lesson_plan_content.rb +1 -1
  72. data/lib/lingara/models/lesson_plan_create_request.rb +1 -1
  73. data/lib/lingara/models/lesson_plan_failed_data.rb +1 -1
  74. data/lib/lingara/models/lesson_plan_ready_data.rb +1 -1
  75. data/lib/lingara/models/link_status.rb +1 -1
  76. data/lib/lingara/models/notice.rb +1 -1
  77. data/lib/lingara/models/npc.rb +1 -1
  78. data/lib/lingara/models/npc_disposition.rb +299 -0
  79. data/lib/lingara/models/npc_language.rb +1 -1
  80. data/lib/lingara/models/pedagogy.rb +1 -1
  81. data/lib/lingara/models/plan_fail_reason.rb +1 -1
  82. data/lib/lingara/models/plan_fragment.rb +265 -0
  83. data/lib/lingara/models/plan_pending.rb +1 -1
  84. data/lib/lingara/models/plan_phase.rb +1 -1
  85. data/lib/lingara/models/plan_question.rb +1 -1
  86. data/lib/lingara/models/plan_ready_status.rb +1 -1
  87. data/lib/lingara/models/plan_reason.rb +42 -0
  88. data/lib/lingara/models/plan_result.rb +1 -1
  89. data/lib/lingara/models/plan_set.rb +1 -1
  90. data/lib/lingara/models/plan_started.rb +1 -1
  91. data/lib/lingara/models/plan_status.rb +1 -1
  92. data/lib/lingara/models/plan_word.rb +1 -1
  93. data/lib/lingara/models/practice_completed_data.rb +1 -1
  94. data/lib/lingara/models/practice_item.rb +1 -1
  95. data/lib/lingara/models/practice_outcome.rb +1 -1
  96. data/lib/lingara/models/reaction_report.rb +1 -1
  97. data/lib/lingara/models/reaction_status.rb +1 -1
  98. data/lib/lingara/models/rename_canvas_request.rb +1 -1
  99. data/lib/lingara/models/rename_dialogue_request.rb +1 -1
  100. data/lib/lingara/models/save_canvas_draft_request.rb +1 -1
  101. data/lib/lingara/models/save_dialogue_draft_request.rb +2 -2
  102. data/lib/lingara/models/send_dialogue_turn_event_delta.rb +1 -1
  103. data/lib/lingara/models/send_dialogue_turn_event_done.rb +1 -1
  104. data/lib/lingara/models/send_dialogue_turn_event_error.rb +1 -1
  105. data/lib/lingara/models/send_dialogue_turn_event_notice.rb +1 -1
  106. data/lib/lingara/models/send_dialogue_turn_event_transition.rb +1 -1
  107. data/lib/lingara/models/send_tutor_message_event_delta.rb +1 -1
  108. data/lib/lingara/models/send_tutor_message_event_done.rb +1 -1
  109. data/lib/lingara/models/send_tutor_message_event_error.rb +1 -1
  110. data/lib/lingara/models/send_tutor_message_event_notice.rb +1 -1
  111. data/lib/lingara/models/speaker.rb +1 -1
  112. data/lib/lingara/models/stream_error.rb +1 -1
  113. data/lib/lingara/models/stream_events_event_done.rb +1 -1
  114. data/lib/lingara/models/stream_events_event_error.rb +1 -1
  115. data/lib/lingara/models/stream_events_event_event.rb +1 -1
  116. data/lib/lingara/models/stream_lesson_plan_event_error.rb +1 -1
  117. data/lib/lingara/models/stream_lesson_plan_event_pending.rb +1 -1
  118. data/lib/lingara/models/stream_lesson_plan_event_phase.rb +1 -1
  119. data/lib/lingara/models/stream_lesson_plan_event_result.rb +1 -1
  120. data/lib/lingara/models/stream_lesson_plan_event_started.rb +1 -1
  121. data/lib/lingara/models/threshold_scope.rb +1 -1
  122. data/lib/lingara/models/turn_delta.rb +1 -1
  123. data/lib/lingara/models/turn_entry.rb +1 -1
  124. data/lib/lingara/models/turn_role.rb +1 -1
  125. data/lib/lingara/models/tutor_turn_request.rb +1 -1
  126. data/lib/lingara/models/update_available.rb +1 -1
  127. data/lib/lingara/models/usage.rb +1 -1
  128. data/lib/lingara/models/usage_ledger.rb +1 -1
  129. data/lib/lingara/models/usage_threshold_reached_data.rb +1 -1
  130. data/lib/lingara/models/version_detail.rb +1 -1
  131. data/lib/lingara/models/version_history_entry.rb +1 -1
  132. data/lib/lingara/models/version_list.rb +1 -1
  133. data/lib/lingara/models/version_spec.rb +1 -1
  134. data/lib/lingara/models/version_state.rb +1 -1
  135. data/lib/lingara/models/version_summary.rb +1 -1
  136. data/lib/lingara/models/visited_beat.rb +269 -0
  137. data/lib/lingara/models/vocab_example.rb +1 -1
  138. data/lib/lingara/models/vocab_item.rb +1 -1
  139. data/lib/lingara/models/vocab_meta.rb +1 -1
  140. data/lib/lingara/models/vocab_request.rb +1 -1
  141. data/lib/lingara/models/vocab_started.rb +1 -1
  142. data/lib/lingara/models/world_context_changed.rb +1 -1
  143. data/lib/lingara/models/world_practice_completed.rb +1 -1
  144. data/lib/lingara/models/world_practice_requested.rb +1 -1
  145. data/lib/lingara/operations.rb +9 -0
  146. data/lib/lingara/response.rb +6 -1
  147. data/lib/lingara/version.rb +3 -3
  148. data/sig/lingara.rbs +3 -0
  149. metadata +14 -2
@@ -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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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
@@ -18,10 +18,13 @@ module Lingara
18
18
  CHECKPOINT_UNREACHABLE = "checkpoint_unreachable".freeze
19
19
  OUTCOME_UNREACHABLE = "outcome_unreachable".freeze
20
20
  PREDICATE_UNCHECKED = "predicate_unchecked".freeze
21
+ STANCE_CONTRADICTION = "stance_contradiction".freeze
22
+ STEER_WEAK = "steer_weak".freeze
23
+ SCHEMA_V2 = "schema_v2".freeze
21
24
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
22
25
 
23
26
  def self.all_vars
24
- @all_vars ||= [CHECKPOINT_UNREACHABLE, OUTCOME_UNREACHABLE, PREDICATE_UNCHECKED, UNKNOWN_DEFAULT_OPEN_API].freeze
27
+ @all_vars ||= [CHECKPOINT_UNREACHABLE, OUTCOME_UNREACHABLE, PREDICATE_UNCHECKED, STANCE_CONTRADICTION, STEER_WEAK, SCHEMA_V2, UNKNOWN_DEFAULT_OPEN_API].freeze
25
28
  end
26
29
 
27
30
  # Builds the enum from string
@@ -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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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
@@ -0,0 +1,247 @@
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 Exit
18
+ attr_accessor :to
19
+
20
+ attr_accessor :detour
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'to' => :'to',
26
+ :'detour' => :'detour'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'to' => :'String',
44
+ :'detour' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ :'detour'
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Lingara::Exit` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Lingara::Exit`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'to')
72
+ self.to = attributes[:'to']
73
+ else
74
+ self.to = nil
75
+ end
76
+
77
+ if attributes.key?(:'detour')
78
+ self.detour = attributes[:'detour']
79
+ end
80
+ end
81
+
82
+ # Show invalid properties with the reasons. Usually used together with valid?
83
+ # @return Array for valid properties with the reasons
84
+ def list_invalid_properties
85
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
86
+ invalid_properties = Array.new
87
+ if @to.nil?
88
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
89
+ end
90
+
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ warn '[DEPRECATED] the `valid?` method is obsolete'
98
+ return false if @to.nil?
99
+ true
100
+ end
101
+
102
+ # Custom attribute writer method with validation
103
+ # @param [Object] to Value to be assigned
104
+ def to=(to)
105
+ if to.nil?
106
+ fail ArgumentError, 'to cannot be nil'
107
+ end
108
+
109
+ @to = to
110
+ end
111
+
112
+ # Checks equality by comparing each attribute.
113
+ # @param [Object] Object to be compared
114
+ def ==(o)
115
+ return true if self.equal?(o)
116
+ self.class == o.class &&
117
+ to == o.to &&
118
+ detour == o.detour
119
+ end
120
+
121
+ # @see the `==` method
122
+ # @param [Object] Object to be compared
123
+ def eql?(o)
124
+ self == o
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Integer] Hash code
129
+ def hash
130
+ [to, detour].hash
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def self.build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ attributes = attributes.transform_keys(&:to_sym)
139
+ transformed_hash = {}
140
+ openapi_types.each_pair do |key, type|
141
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = nil
143
+ elsif type =~ /\AArray<(.*)>/i
144
+ # check to ensure the input is an array given that the attribute
145
+ # is documented as an array but the input is not
146
+ if attributes[attribute_map[key]].is_a?(Array)
147
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
148
+ end
149
+ elsif !attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
151
+ end
152
+ end
153
+ new(transformed_hash)
154
+ end
155
+
156
+ # Deserializes the data based on type
157
+ # @param string type Data type
158
+ # @param string value Value to be deserialized
159
+ # @return [Object] Deserialized data
160
+ def self._deserialize(type, value)
161
+ case type.to_sym
162
+ when :Time
163
+ Time.parse(value)
164
+ when :Date
165
+ Date.parse(value)
166
+ when :String
167
+ value.to_s
168
+ when :Integer
169
+ value.to_i
170
+ when :Float
171
+ value.to_f
172
+ when :Boolean
173
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
+ true
175
+ else
176
+ false
177
+ end
178
+ when :Object
179
+ # generic object (usually a Hash), return directly
180
+ value
181
+ when /\AArray<(?<inner_type>.+)>\z/
182
+ inner_type = Regexp.last_match[:inner_type]
183
+ value.map { |v| _deserialize(inner_type, v) }
184
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
+ k_type = Regexp.last_match[:k_type]
186
+ v_type = Regexp.last_match[:v_type]
187
+ {}.tap do |hash|
188
+ value.each do |k, v|
189
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
+ end
191
+ end
192
+ else # model
193
+ # models (e.g. Pet) or oneOf
194
+ klass = Lingara.const_get(type)
195
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ # Outputs non-array value in the form of hash
228
+ # For object, use to_hash. Otherwise, just return the value
229
+ # @param [Object] value Any valid value
230
+ # @return [Hash] Returns the value in the form of hash
231
+ def _to_hash(value)
232
+ if value.is_a?(Array)
233
+ value.compact.map { |v| _to_hash(v) }
234
+ elsif value.is_a?(Hash)
235
+ {}.tap do |hash|
236
+ value.each { |k, v| hash[k] = _to_hash(v) }
237
+ end
238
+ elsif value.respond_to? :to_hash
239
+ value.to_hash
240
+ else
241
+ value
242
+ end
243
+ end
244
+
245
+ end
246
+
247
+ 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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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
@@ -21,12 +21,16 @@ module Lingara
21
21
 
22
22
  attr_accessor :may_disclose
23
23
 
24
+ # The one outcome the character should drive toward, as plain-language text. The other edges are never shown to it.
25
+ attr_accessor :steer
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'id' => :'id',
28
31
  :'goal' => :'goal',
29
- :'may_disclose' => :'may_disclose'
32
+ :'may_disclose' => :'may_disclose',
33
+ :'steer' => :'steer'
30
34
  }
31
35
  end
32
36
 
@@ -45,13 +49,15 @@ module Lingara
45
49
  {
46
50
  :'id' => :'String',
47
51
  :'goal' => :'String',
48
- :'may_disclose' => :'Array<String>'
52
+ :'may_disclose' => :'Array<String>',
53
+ :'steer' => :'String'
49
54
  }
50
55
  end
51
56
 
52
57
  # List of attributes with nullable: true
53
58
  def self.openapi_nullable
54
59
  Set.new([
60
+ :'steer'
55
61
  ])
56
62
  end
57
63
 
@@ -88,6 +94,10 @@ module Lingara
88
94
  self.may_disclose = value
89
95
  end
90
96
  end
97
+
98
+ if attributes.key?(:'steer')
99
+ self.steer = attributes[:'steer']
100
+ end
91
101
  end
92
102
 
93
103
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -120,6 +130,14 @@ module Lingara
120
130
  invalid_properties.push('invalid value for "may_disclose", number of items must be less than or equal to 16.')
121
131
  end
122
132
 
133
+ if !@steer.nil? && @steer.to_s.length > 200
134
+ invalid_properties.push('invalid value for "steer", the character length must be smaller than or equal to 200.')
135
+ end
136
+
137
+ if !@steer.nil? && @steer.to_s.length < 1
138
+ invalid_properties.push('invalid value for "steer", the character length must be greater than or equal to 1.')
139
+ end
140
+
123
141
  invalid_properties
124
142
  end
125
143
 
@@ -133,6 +151,8 @@ module Lingara
133
151
  return false if @goal.to_s.length > 240
134
152
  return false if @goal.to_s.length < 1
135
153
  return false if !@may_disclose.nil? && @may_disclose.length > 16
154
+ return false if !@steer.nil? && @steer.to_s.length > 200
155
+ return false if !@steer.nil? && @steer.to_s.length < 1
136
156
  true
137
157
  end
138
158
 
@@ -183,6 +203,20 @@ module Lingara
183
203
  @may_disclose = may_disclose
184
204
  end
185
205
 
206
+ # Custom attribute writer method with validation
207
+ # @param [Object] steer Value to be assigned
208
+ def steer=(steer)
209
+ if !steer.nil? && steer.to_s.length > 200
210
+ fail ArgumentError, 'invalid value for "steer", the character length must be smaller than or equal to 200.'
211
+ end
212
+
213
+ if !steer.nil? && steer.to_s.length < 1
214
+ fail ArgumentError, 'invalid value for "steer", the character length must be greater than or equal to 1.'
215
+ end
216
+
217
+ @steer = steer
218
+ end
219
+
186
220
  # Checks equality by comparing each attribute.
187
221
  # @param [Object] Object to be compared
188
222
  def ==(o)
@@ -190,7 +224,8 @@ module Lingara
190
224
  self.class == o.class &&
191
225
  id == o.id &&
192
226
  goal == o.goal &&
193
- may_disclose == o.may_disclose
227
+ may_disclose == o.may_disclose &&
228
+ steer == o.steer
194
229
  end
195
230
 
196
231
  # @see the `==` method
@@ -202,7 +237,7 @@ module Lingara
202
237
  # Calculates hash code according to all attributes.
203
238
  # @return [Integer] Hash code
204
239
  def hash
205
- [id, goal, may_disclose].hash
240
+ [id, goal, may_disclose, steer].hash
206
241
  end
207
242
 
208
243
  # Builds the object from hash
@@ -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-expensive-sauger
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-expensive-sauger
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
@@ -0,0 +1,43 @@
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 KeptReason
18
+ UNAVAILABLE = "unavailable".freeze
19
+ TIMEOUT = "timeout".freeze
20
+ UNPARSEABLE = "unparseable".freeze
21
+ REJECTED = "rejected".freeze
22
+ UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
23
+
24
+ def self.all_vars
25
+ @all_vars ||= [UNAVAILABLE, TIMEOUT, UNPARSEABLE, REJECTED, UNKNOWN_DEFAULT_OPEN_API].freeze
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def self.build_from_hash(value)
32
+ new.build_from_hash(value)
33
+ end
34
+
35
+ # Builds the enum from string
36
+ # @param [String] The enum value in the form of the string
37
+ # @return [String] The enum value
38
+ def build_from_hash(value)
39
+ return value if KeptReason.all_vars.include?(value)
40
+ raise "Invalid ENUM value #{value} for class #KeptReason"
41
+ end
42
+ end
43
+ 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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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-expensive-sauger
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