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
|
@@ -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
|
|
@@ -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-
|
|
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
|
|
@@ -28,6 +28,9 @@ module Lingara
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account_linked
|
|
30
30
|
|
|
31
|
+
# Present only when the request named an `embed_version` that is behind the serving version, deprecated, or withdrawn.
|
|
32
|
+
attr_accessor :update_available
|
|
33
|
+
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
@@ -36,7 +39,8 @@ module Lingara
|
|
|
36
39
|
:'expires_in' => :'expires_in',
|
|
37
40
|
:'subject' => :'subject',
|
|
38
41
|
:'scopes' => :'scopes',
|
|
39
|
-
:'account_linked' => :'account_linked'
|
|
42
|
+
:'account_linked' => :'account_linked',
|
|
43
|
+
:'update_available' => :'update_available'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -58,13 +62,15 @@ module Lingara
|
|
|
58
62
|
:'expires_in' => :'Integer',
|
|
59
63
|
:'subject' => :'String',
|
|
60
64
|
:'scopes' => :'Array<String>',
|
|
61
|
-
:'account_linked' => :'Boolean'
|
|
65
|
+
:'account_linked' => :'Boolean',
|
|
66
|
+
:'update_available' => :'UpdateAvailable'
|
|
62
67
|
}
|
|
63
68
|
end
|
|
64
69
|
|
|
65
70
|
# List of attributes with nullable: true
|
|
66
71
|
def self.openapi_nullable
|
|
67
72
|
Set.new([
|
|
73
|
+
:'update_available'
|
|
68
74
|
])
|
|
69
75
|
end
|
|
70
76
|
|
|
@@ -121,6 +127,10 @@ module Lingara
|
|
|
121
127
|
else
|
|
122
128
|
self.account_linked = nil
|
|
123
129
|
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'update_available')
|
|
132
|
+
self.update_available = attributes[:'update_available']
|
|
133
|
+
end
|
|
124
134
|
end
|
|
125
135
|
|
|
126
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -247,7 +257,8 @@ module Lingara
|
|
|
247
257
|
expires_in == o.expires_in &&
|
|
248
258
|
subject == o.subject &&
|
|
249
259
|
scopes == o.scopes &&
|
|
250
|
-
account_linked == o.account_linked
|
|
260
|
+
account_linked == o.account_linked &&
|
|
261
|
+
update_available == o.update_available
|
|
251
262
|
end
|
|
252
263
|
|
|
253
264
|
# @see the `==` method
|
|
@@ -259,7 +270,7 @@ module Lingara
|
|
|
259
270
|
# Calculates hash code according to all attributes.
|
|
260
271
|
# @return [Integer] Hash code
|
|
261
272
|
def hash
|
|
262
|
-
[token, expires_at, expires_in, subject, scopes, account_linked].hash
|
|
273
|
+
[token, expires_at, expires_in, subject, scopes, account_linked, update_available].hash
|
|
263
274
|
end
|
|
264
275
|
|
|
265
276
|
# 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-
|
|
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
|
|
@@ -22,6 +22,9 @@ module Lingara
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :origin
|
|
24
24
|
|
|
25
|
+
# The embed version your game build runs, as MAJOR.MINOR.PATCH. Send it to be told when an update is available. Only a caller that sends it is warned about, or refused on, a yanked version.
|
|
26
|
+
attr_accessor :embed_version
|
|
27
|
+
|
|
25
28
|
class EnumAttributeValidator
|
|
26
29
|
attr_reader :datatype
|
|
27
30
|
attr_reader :allowable_values
|
|
@@ -49,7 +52,8 @@ module Lingara
|
|
|
49
52
|
{
|
|
50
53
|
:'player_ref' => :'player_ref',
|
|
51
54
|
:'scopes' => :'scopes',
|
|
52
|
-
:'origin' => :'origin'
|
|
55
|
+
:'origin' => :'origin',
|
|
56
|
+
:'embed_version' => :'embed_version'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -68,7 +72,8 @@ module Lingara
|
|
|
68
72
|
{
|
|
69
73
|
:'player_ref' => :'String',
|
|
70
74
|
:'scopes' => :'Array<String>',
|
|
71
|
-
:'origin' => :'String'
|
|
75
|
+
:'origin' => :'String',
|
|
76
|
+
:'embed_version' => :'String'
|
|
72
77
|
}
|
|
73
78
|
end
|
|
74
79
|
|
|
@@ -76,7 +81,8 @@ module Lingara
|
|
|
76
81
|
def self.openapi_nullable
|
|
77
82
|
Set.new([
|
|
78
83
|
:'scopes',
|
|
79
|
-
:'origin'
|
|
84
|
+
:'origin',
|
|
85
|
+
:'embed_version'
|
|
80
86
|
])
|
|
81
87
|
end
|
|
82
88
|
|
|
@@ -111,6 +117,10 @@ module Lingara
|
|
|
111
117
|
if attributes.key?(:'origin')
|
|
112
118
|
self.origin = attributes[:'origin']
|
|
113
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'embed_version')
|
|
122
|
+
self.embed_version = attributes[:'embed_version']
|
|
123
|
+
end
|
|
114
124
|
end
|
|
115
125
|
|
|
116
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -143,6 +153,15 @@ module Lingara
|
|
|
143
153
|
invalid_properties.push("invalid value for \"origin\", must conform to the pattern #{pattern}.")
|
|
144
154
|
end
|
|
145
155
|
|
|
156
|
+
if !@embed_version.nil? && @embed_version.to_s.length > 20
|
|
157
|
+
invalid_properties.push('invalid value for "embed_version", the character length must be smaller than or equal to 20.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
pattern = Regexp.new(/^(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})$/)
|
|
161
|
+
if !@embed_version.nil? && @embed_version !~ pattern
|
|
162
|
+
invalid_properties.push("invalid value for \"embed_version\", must conform to the pattern #{pattern}.")
|
|
163
|
+
end
|
|
164
|
+
|
|
146
165
|
invalid_properties
|
|
147
166
|
end
|
|
148
167
|
|
|
@@ -156,6 +175,8 @@ module Lingara
|
|
|
156
175
|
return false if !@scopes.nil? && @scopes.length > 5
|
|
157
176
|
return false if !@origin.nil? && @origin.to_s.length > 255
|
|
158
177
|
return false if !@origin.nil? && @origin !~ Regexp.new(/^https?:\/\/[^\/?#@ ]+$/)
|
|
178
|
+
return false if !@embed_version.nil? && @embed_version.to_s.length > 20
|
|
179
|
+
return false if !@embed_version.nil? && @embed_version !~ Regexp.new(/^(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})$/)
|
|
159
180
|
true
|
|
160
181
|
end
|
|
161
182
|
|
|
@@ -192,6 +213,21 @@ module Lingara
|
|
|
192
213
|
@origin = origin
|
|
193
214
|
end
|
|
194
215
|
|
|
216
|
+
# Custom attribute writer method with validation
|
|
217
|
+
# @param [Object] embed_version Value to be assigned
|
|
218
|
+
def embed_version=(embed_version)
|
|
219
|
+
if !embed_version.nil? && embed_version.to_s.length > 20
|
|
220
|
+
fail ArgumentError, 'invalid value for "embed_version", the character length must be smaller than or equal to 20.'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
pattern = Regexp.new(/^(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})\.(0|[1-9][0-9]{0,5})$/)
|
|
224
|
+
if !embed_version.nil? && embed_version !~ pattern
|
|
225
|
+
fail ArgumentError, "invalid value for \"embed_version\", must conform to the pattern #{pattern}."
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
@embed_version = embed_version
|
|
229
|
+
end
|
|
230
|
+
|
|
195
231
|
# Checks equality by comparing each attribute.
|
|
196
232
|
# @param [Object] Object to be compared
|
|
197
233
|
def ==(o)
|
|
@@ -199,7 +235,8 @@ module Lingara
|
|
|
199
235
|
self.class == o.class &&
|
|
200
236
|
player_ref == o.player_ref &&
|
|
201
237
|
scopes == o.scopes &&
|
|
202
|
-
origin == o.origin
|
|
238
|
+
origin == o.origin &&
|
|
239
|
+
embed_version == o.embed_version
|
|
203
240
|
end
|
|
204
241
|
|
|
205
242
|
# @see the `==` method
|
|
@@ -211,7 +248,7 @@ module Lingara
|
|
|
211
248
|
# Calculates hash code according to all attributes.
|
|
212
249
|
# @return [Integer] Hash code
|
|
213
250
|
def hash
|
|
214
|
-
[player_ref, scopes, origin].hash
|
|
251
|
+
[player_ref, scopes, origin, embed_version].hash
|
|
215
252
|
end
|
|
216
253
|
|
|
217
254
|
# 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-
|
|
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
|
|
@@ -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-
|
|
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
|