thinkthen 0.1.2-x86_64-linux → 0.2.0-x86_64-linux

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 (181) hide show
  1. checksums.yaml +4 -4
  2. data/API.md +40 -0
  3. data/LICENSE +21 -0
  4. data/README.md +562 -0
  5. data/THIRD-PARTY-NOTICES/anstream-1.0.0/LICENSE-APACHE +202 -0
  6. data/THIRD-PARTY-NOTICES/anstream-1.0.0/LICENSE-MIT +19 -0
  7. data/THIRD-PARTY-NOTICES/anstyle-1.0.14/LICENSE-APACHE +202 -0
  8. data/THIRD-PARTY-NOTICES/anstyle-1.0.14/LICENSE-MIT +19 -0
  9. data/THIRD-PARTY-NOTICES/anstyle-parse-1.0.0/LICENSE-APACHE +202 -0
  10. data/THIRD-PARTY-NOTICES/anstyle-parse-1.0.0/LICENSE-MIT +19 -0
  11. data/THIRD-PARTY-NOTICES/anstyle-query-1.1.5/LICENSE-APACHE +202 -0
  12. data/THIRD-PARTY-NOTICES/anstyle-query-1.1.5/LICENSE-MIT +19 -0
  13. data/THIRD-PARTY-NOTICES/base64-0.23.1/LICENSE-APACHE +201 -0
  14. data/THIRD-PARTY-NOTICES/base64-0.23.1/LICENSE-MIT +21 -0
  15. data/THIRD-PARTY-NOTICES/bitflags-2.13.2/LICENSE-APACHE +201 -0
  16. data/THIRD-PARTY-NOTICES/bitflags-2.13.2/LICENSE-MIT +25 -0
  17. data/THIRD-PARTY-NOTICES/block-buffer-0.10.4/LICENSE-APACHE +201 -0
  18. data/THIRD-PARTY-NOTICES/block-buffer-0.10.4/LICENSE-MIT +25 -0
  19. data/THIRD-PARTY-NOTICES/bytes-1.12.1/LICENSE +25 -0
  20. data/THIRD-PARTY-NOTICES/cfg-if-1.0.5/LICENSE-APACHE +201 -0
  21. data/THIRD-PARTY-NOTICES/cfg-if-1.0.5/LICENSE-MIT +25 -0
  22. data/THIRD-PARTY-NOTICES/clap-4.6.7/LICENSE-APACHE +202 -0
  23. data/THIRD-PARTY-NOTICES/clap-4.6.7/LICENSE-MIT +19 -0
  24. data/THIRD-PARTY-NOTICES/clap_builder-4.6.7/LICENSE-APACHE +202 -0
  25. data/THIRD-PARTY-NOTICES/clap_builder-4.6.7/LICENSE-MIT +19 -0
  26. data/THIRD-PARTY-NOTICES/clap_complete-4.6.11/LICENSE-APACHE +202 -0
  27. data/THIRD-PARTY-NOTICES/clap_complete-4.6.11/LICENSE-MIT +19 -0
  28. data/THIRD-PARTY-NOTICES/clap_lex-1.1.1/LICENSE-APACHE +202 -0
  29. data/THIRD-PARTY-NOTICES/clap_lex-1.1.1/LICENSE-MIT +19 -0
  30. data/THIRD-PARTY-NOTICES/clap_mangen-0.2.33/LICENSE-APACHE +202 -0
  31. data/THIRD-PARTY-NOTICES/clap_mangen-0.2.33/LICENSE-MIT +19 -0
  32. data/THIRD-PARTY-NOTICES/colorchoice-1.0.5/LICENSE-APACHE +202 -0
  33. data/THIRD-PARTY-NOTICES/colorchoice-1.0.5/LICENSE-MIT +19 -0
  34. data/THIRD-PARTY-NOTICES/command-group-5.0.1/COPYRIGHT +29 -0
  35. data/THIRD-PARTY-NOTICES/command-group-5.0.1/LICENSE-APACHE +176 -0
  36. data/THIRD-PARTY-NOTICES/command-group-5.0.1/LICENSE-MIT +23 -0
  37. data/THIRD-PARTY-NOTICES/cpufeatures-0.2.17/LICENSE-APACHE +201 -0
  38. data/THIRD-PARTY-NOTICES/cpufeatures-0.2.17/LICENSE-MIT +25 -0
  39. data/THIRD-PARTY-NOTICES/crc32fast-1.5.3/LICENSE-APACHE +202 -0
  40. data/THIRD-PARTY-NOTICES/crc32fast-1.5.3/LICENSE-MIT +21 -0
  41. data/THIRD-PARTY-NOTICES/crypto-common-0.1.7/LICENSE-APACHE +201 -0
  42. data/THIRD-PARTY-NOTICES/crypto-common-0.1.7/LICENSE-MIT +25 -0
  43. data/THIRD-PARTY-NOTICES/ctrlc-3.5.2/LICENSE-APACHE +201 -0
  44. data/THIRD-PARTY-NOTICES/ctrlc-3.5.2/LICENSE-MIT +23 -0
  45. data/THIRD-PARTY-NOTICES/digest-0.10.7/LICENSE-APACHE +201 -0
  46. data/THIRD-PARTY-NOTICES/digest-0.10.7/LICENSE-MIT +25 -0
  47. data/THIRD-PARTY-NOTICES/dyn-clone-1.0.20/LICENSE-APACHE +176 -0
  48. data/THIRD-PARTY-NOTICES/dyn-clone-1.0.20/LICENSE-MIT +23 -0
  49. data/THIRD-PARTY-NOTICES/equivalent-1.0.3/LICENSE-APACHE +201 -0
  50. data/THIRD-PARTY-NOTICES/equivalent-1.0.3/LICENSE-MIT +25 -0
  51. data/THIRD-PARTY-NOTICES/fastrand-2.5.0/LICENSE-APACHE +201 -0
  52. data/THIRD-PARTY-NOTICES/fastrand-2.5.0/LICENSE-MIT +23 -0
  53. data/THIRD-PARTY-NOTICES/flate2-1.1.10/LICENSE-APACHE +201 -0
  54. data/THIRD-PARTY-NOTICES/flate2-1.1.10/LICENSE-MIT +25 -0
  55. data/THIRD-PARTY-NOTICES/generic-array-0.14.7/LICENSE +21 -0
  56. data/THIRD-PARTY-NOTICES/getrandom-0.2.17/LICENSE-APACHE +201 -0
  57. data/THIRD-PARTY-NOTICES/getrandom-0.2.17/LICENSE-MIT +26 -0
  58. data/THIRD-PARTY-NOTICES/getrandom-0.3.4/LICENSE-APACHE +201 -0
  59. data/THIRD-PARTY-NOTICES/getrandom-0.3.4/LICENSE-MIT +26 -0
  60. data/THIRD-PARTY-NOTICES/getrandom-0.4.3/LICENSE-APACHE +201 -0
  61. data/THIRD-PARTY-NOTICES/getrandom-0.4.3/LICENSE-MIT +26 -0
  62. data/THIRD-PARTY-NOTICES/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  63. data/THIRD-PARTY-NOTICES/hashbrown-0.17.1/LICENSE-MIT +25 -0
  64. data/THIRD-PARTY-NOTICES/http-1.5.0/LICENSE-APACHE +201 -0
  65. data/THIRD-PARTY-NOTICES/http-1.5.0/LICENSE-MIT +25 -0
  66. data/THIRD-PARTY-NOTICES/httparse-1.10.1/LICENSE-APACHE +201 -0
  67. data/THIRD-PARTY-NOTICES/httparse-1.10.1/LICENSE-MIT +20 -0
  68. data/THIRD-PARTY-NOTICES/httpdate-1.0.3/LICENSE-APACHE +201 -0
  69. data/THIRD-PARTY-NOTICES/httpdate-1.0.3/LICENSE-MIT +19 -0
  70. data/THIRD-PARTY-NOTICES/index.json +633 -0
  71. data/THIRD-PARTY-NOTICES/indexmap-2.14.2/LICENSE-APACHE +201 -0
  72. data/THIRD-PARTY-NOTICES/indexmap-2.14.2/LICENSE-MIT +25 -0
  73. data/THIRD-PARTY-NOTICES/is_terminal_polyfill-1.70.2/LICENSE-APACHE +202 -0
  74. data/THIRD-PARTY-NOTICES/is_terminal_polyfill-1.70.2/LICENSE-MIT +19 -0
  75. data/THIRD-PARTY-NOTICES/itoa-1.0.18/LICENSE-APACHE +176 -0
  76. data/THIRD-PARTY-NOTICES/itoa-1.0.18/LICENSE-MIT +23 -0
  77. data/THIRD-PARTY-NOTICES/libc-0.2.190/LICENSE-APACHE +176 -0
  78. data/THIRD-PARTY-NOTICES/libc-0.2.190/LICENSE-MIT +25 -0
  79. data/THIRD-PARTY-NOTICES/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  80. data/THIRD-PARTY-NOTICES/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  81. data/THIRD-PARTY-NOTICES/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  82. data/THIRD-PARTY-NOTICES/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  83. data/THIRD-PARTY-NOTICES/log-0.4.34/LICENSE-APACHE +201 -0
  84. data/THIRD-PARTY-NOTICES/log-0.4.34/LICENSE-MIT +25 -0
  85. data/THIRD-PARTY-NOTICES/memchr-2.8.3/COPYING +3 -0
  86. data/THIRD-PARTY-NOTICES/memchr-2.8.3/LICENSE-MIT +21 -0
  87. data/THIRD-PARTY-NOTICES/nix-0.27.1/LICENSE +21 -0
  88. data/THIRD-PARTY-NOTICES/nix-0.31.3/LICENSE +21 -0
  89. data/THIRD-PARTY-NOTICES/once_cell-1.21.4/LICENSE-APACHE +201 -0
  90. data/THIRD-PARTY-NOTICES/once_cell-1.21.4/LICENSE-MIT +23 -0
  91. data/THIRD-PARTY-NOTICES/openssl-probe-0.2.1/LICENSE-APACHE +201 -0
  92. data/THIRD-PARTY-NOTICES/openssl-probe-0.2.1/LICENSE-MIT +25 -0
  93. data/THIRD-PARTY-NOTICES/percent-encoding-2.3.2/LICENSE-APACHE +201 -0
  94. data/THIRD-PARTY-NOTICES/percent-encoding-2.3.2/LICENSE-MIT +25 -0
  95. data/THIRD-PARTY-NOTICES/quick-xml-0.41.0/LICENSE-MIT.md +23 -0
  96. data/THIRD-PARTY-NOTICES/ref-cast-1.0.27/LICENSE-APACHE +176 -0
  97. data/THIRD-PARTY-NOTICES/ref-cast-1.0.27/LICENSE-MIT +23 -0
  98. data/THIRD-PARTY-NOTICES/ring-0.17.14/LICENSE +9 -0
  99. data/THIRD-PARTY-NOTICES/ring-0.17.14/LICENSE-BoringSSL +272 -0
  100. data/THIRD-PARTY-NOTICES/ring-0.17.14/LICENSE-other-bits +13 -0
  101. data/THIRD-PARTY-NOTICES/ring-0.17.14/src/polyfill/once_cell/LICENSE-APACHE +201 -0
  102. data/THIRD-PARTY-NOTICES/ring-0.17.14/src/polyfill/once_cell/LICENSE-MIT +23 -0
  103. data/THIRD-PARTY-NOTICES/ring-0.17.14/third_party/fiat/LICENSE +15 -0
  104. data/THIRD-PARTY-NOTICES/roff-1.1.1/LICENSE-APACHE +202 -0
  105. data/THIRD-PARTY-NOTICES/roff-1.1.1/LICENSE-MIT +19 -0
  106. data/THIRD-PARTY-NOTICES/rustix-1.1.5/COPYRIGHT +29 -0
  107. data/THIRD-PARTY-NOTICES/rustix-1.1.5/LICENSE-APACHE +201 -0
  108. data/THIRD-PARTY-NOTICES/rustix-1.1.5/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  109. data/THIRD-PARTY-NOTICES/rustix-1.1.5/LICENSE-MIT +23 -0
  110. data/THIRD-PARTY-NOTICES/rustls-0.23.46/LICENSE-APACHE +201 -0
  111. data/THIRD-PARTY-NOTICES/rustls-0.23.46/LICENSE-ISC +15 -0
  112. data/THIRD-PARTY-NOTICES/rustls-0.23.46/LICENSE-MIT +25 -0
  113. data/THIRD-PARTY-NOTICES/rustls-native-certs-0.8.5/LICENSE +10 -0
  114. data/THIRD-PARTY-NOTICES/rustls-native-certs-0.8.5/LICENSE-APACHE +201 -0
  115. data/THIRD-PARTY-NOTICES/rustls-native-certs-0.8.5/LICENSE-ISC +15 -0
  116. data/THIRD-PARTY-NOTICES/rustls-native-certs-0.8.5/LICENSE-MIT +25 -0
  117. data/THIRD-PARTY-NOTICES/rustls-pki-types-1.15.1/LICENSE-APACHE +201 -0
  118. data/THIRD-PARTY-NOTICES/rustls-pki-types-1.15.1/LICENSE-MIT +25 -0
  119. data/THIRD-PARTY-NOTICES/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  120. data/THIRD-PARTY-NOTICES/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  121. data/THIRD-PARTY-NOTICES/rustls-webpki-0.103.16/LICENSE +19 -0
  122. data/THIRD-PARTY-NOTICES/schemars-1.2.3/LICENSE +21 -0
  123. data/THIRD-PARTY-NOTICES/serde-1.0.229/LICENSE-APACHE +176 -0
  124. data/THIRD-PARTY-NOTICES/serde-1.0.229/LICENSE-MIT +23 -0
  125. data/THIRD-PARTY-NOTICES/serde_core-1.0.229/LICENSE-APACHE +176 -0
  126. data/THIRD-PARTY-NOTICES/serde_core-1.0.229/LICENSE-MIT +23 -0
  127. data/THIRD-PARTY-NOTICES/serde_json-1.0.151/LICENSE-APACHE +176 -0
  128. data/THIRD-PARTY-NOTICES/serde_json-1.0.151/LICENSE-MIT +23 -0
  129. data/THIRD-PARTY-NOTICES/sha2-0.10.9/LICENSE-APACHE +201 -0
  130. data/THIRD-PARTY-NOTICES/sha2-0.10.9/LICENSE-MIT +27 -0
  131. data/THIRD-PARTY-NOTICES/strsim-0.11.1/LICENSE +23 -0
  132. data/THIRD-PARTY-NOTICES/subtle-2.6.1/LICENSE +29 -0
  133. data/THIRD-PARTY-NOTICES/tempfile-3.23.0/LICENSE-APACHE +201 -0
  134. data/THIRD-PARTY-NOTICES/tempfile-3.23.0/LICENSE-MIT +25 -0
  135. data/THIRD-PARTY-NOTICES/thiserror-2.0.21/LICENSE-APACHE +176 -0
  136. data/THIRD-PARTY-NOTICES/thiserror-2.0.21/LICENSE-MIT +23 -0
  137. data/THIRD-PARTY-NOTICES/tinyvec-1.13.3/LICENSE-APACHE.md +202 -0
  138. data/THIRD-PARTY-NOTICES/tinyvec-1.13.3/LICENSE-MIT.md +5 -0
  139. data/THIRD-PARTY-NOTICES/tinyvec-1.13.3/LICENSE-ZLIB.md +11 -0
  140. data/THIRD-PARTY-NOTICES/typed-path-0.13.0/LICENSE-APACHE +176 -0
  141. data/THIRD-PARTY-NOTICES/typed-path-0.13.0/LICENSE-MIT +23 -0
  142. data/THIRD-PARTY-NOTICES/typenum-1.20.1/LICENSE +1 -0
  143. data/THIRD-PARTY-NOTICES/typenum-1.20.1/LICENSE-APACHE +201 -0
  144. data/THIRD-PARTY-NOTICES/typenum-1.20.1/LICENSE-MIT +21 -0
  145. data/THIRD-PARTY-NOTICES/unicode-general-category-1.1.0/LICENSE +201 -0
  146. data/THIRD-PARTY-NOTICES/unicode-normalization-0.1.26/COPYRIGHT +7 -0
  147. data/THIRD-PARTY-NOTICES/unicode-normalization-0.1.26/LICENSE-APACHE +201 -0
  148. data/THIRD-PARTY-NOTICES/unicode-normalization-0.1.26/LICENSE-MIT +25 -0
  149. data/THIRD-PARTY-NOTICES/unicode-normalization-0.1.26/LICENSE-UNICODE +39 -0
  150. data/THIRD-PARTY-NOTICES/untrusted-0.9.0/LICENSE.txt +13 -0
  151. data/THIRD-PARTY-NOTICES/ureq-3.4.2/LICENSE-APACHE +201 -0
  152. data/THIRD-PARTY-NOTICES/ureq-3.4.2/LICENSE-MIT +21 -0
  153. data/THIRD-PARTY-NOTICES/ureq-proto-0.6.4/LICENSE-APACHE.txt +202 -0
  154. data/THIRD-PARTY-NOTICES/ureq-proto-0.6.4/LICENSE-MIT.txt +7 -0
  155. data/THIRD-PARTY-NOTICES/utf8-zero-0.8.1/LICENSE-APACHE +176 -0
  156. data/THIRD-PARTY-NOTICES/utf8-zero-0.8.1/LICENSE-MIT +23 -0
  157. data/THIRD-PARTY-NOTICES/utf8parse-0.2.2/LICENSE-APACHE +176 -0
  158. data/THIRD-PARTY-NOTICES/utf8parse-0.2.2/LICENSE-MIT +25 -0
  159. data/THIRD-PARTY-NOTICES/zeroize-1.9.0/LICENSE-APACHE +202 -0
  160. data/THIRD-PARTY-NOTICES/zeroize-1.9.0/LICENSE-MIT +25 -0
  161. data/THIRD-PARTY-NOTICES/zip-9.1.2/LICENSE +21 -0
  162. data/THIRD-PARTY-NOTICES/zlib-rs-0.6.8/LICENSE +19 -0
  163. data/THIRD-PARTY-NOTICES/zmij-1.0.23/LICENSE-MIT +23 -0
  164. data/lib/thinkthen/call_owner.rb +68 -0
  165. data/lib/thinkthen/client.rb +293 -0
  166. data/lib/thinkthen/configuration.rb +76 -0
  167. data/lib/thinkthen/contract.rb +89 -0
  168. data/lib/thinkthen/{thinkthen.so → libthinkthen_ffi.so} +0 -0
  169. data/lib/thinkthen/native.rb +350 -0
  170. data/lib/thinkthen/native_allocator.rb +35 -0
  171. data/lib/thinkthen/native_reader.rb +87 -0
  172. data/lib/thinkthen/questions.rb +184 -0
  173. data/lib/thinkthen/row.rb +173 -0
  174. data/lib/thinkthen/rows.rb +199 -0
  175. data/lib/thinkthen/values.rb +111 -0
  176. data/lib/thinkthen/version.rb +3 -1
  177. data/lib/thinkthen.rb +79 -699
  178. data/sig/error_codes.rbs +3 -0
  179. data/sig/internal.rbs +277 -0
  180. data/sig/thinkthen.rbs +440 -0
  181. metadata +207 -13
@@ -0,0 +1,3 @@
1
+ module ThinkThen
2
+ type error_code = :"usage.threshold" | :"usage.question" | :"usage.name" | :"usage.settings" | :"usage.backend" | :"usage.url" | :"usage.key-missing" | :"usage.batch" | :"usage.pointer" | :"usage.sql-policy" | :"usage.sql-selection" | :"usage.abi" | :"usage.closed" | :"usage.function" | :"usage.record-kind" | :"usage.offsets" | :"usage.argument" | :"usage.option" | :"usage.column" | :"usage.sheet" | :"usage.output" | :"usage.table" | :"record.json" | :"record.missing" | :"record.too-large" | :"record.invalid" | :"record.empty" | :"backend.transport" | :"backend.status" | :"backend.reply" | :"local.cancelled" | :"local.io" | :"local.toolbox" | :"local.accounting" | :"local.request-limit" | :"internal.bug" | :unknown
3
+ end
data/sig/internal.rbs ADDED
@@ -0,0 +1,277 @@
1
+ class WeakRef
2
+ def initialize: (untyped) -> void
3
+ def __getobj__: () -> untyped
4
+ def weakref_alive?: () -> bool
5
+ end
6
+
7
+ module FFI
8
+ class NotFoundError < LoadError
9
+ end
10
+ module Library
11
+ LIBC: String
12
+ def ffi_lib: (*untyped) -> untyped
13
+ def attach_function: (*untyped, **untyped) -> untyped
14
+ end
15
+ module Platform
16
+ def self.windows?: () -> bool
17
+ def self.mac?: () -> bool
18
+ IS_LINUX: bool
19
+ end
20
+ class DynamicLibrary
21
+ RTLD_LAZY: Integer
22
+ RTLD_LOCAL: Integer
23
+ def self.open: (untyped, Integer) -> untyped
24
+ end
25
+ class Function
26
+ def self.new: (*untyped) -> untyped
27
+ end
28
+ class Pointer
29
+ NULL: untyped
30
+ end
31
+ class MemoryPointer
32
+ def self.new: (*untyped) -> untyped
33
+ def self.from_string: (String) -> untyped
34
+ end
35
+ class AutoPointer
36
+ def self.new: (*untyped) -> untyped
37
+ end
38
+ class Struct
39
+ def self.layout: (*untyped) -> untyped
40
+ def self.size: () -> Integer
41
+ def self.new: (*untyped) -> untyped
42
+ def []: (Symbol) -> untyped
43
+ def []=: (Symbol, untyped) -> untyped
44
+ end
45
+ end
46
+ module ThinkThen
47
+ UNSET: untyped
48
+ def self.native: () -> untyped
49
+ module NativeContract
50
+ ABI_VERSION: Integer
51
+ ABI_CODE: error_code
52
+ ABI_MESSAGE: String
53
+ LIBRARY_VARIABLE: String
54
+ LIBRARY_PATH_MESSAGE: String
55
+ FUNCTION_NAMES: Hash[Integer, String]
56
+ STATUS_NAMES: Hash[Integer, String]
57
+ BACKEND_NAMES: Hash[Integer, String]
58
+ ID_NAMES: Hash[Integer, String]
59
+ RECORD_NAMES: Hash[Integer, String]
60
+ OFFSET_NAMES: Hash[Integer, String]
61
+ CODE_NAMES: Hash[Integer, String]
62
+ end
63
+ module Native
64
+ extend FFI::Library
65
+ class Buffer < FFI::Struct
66
+ end
67
+ class RecordInput < FFI::Struct
68
+ end
69
+ class NativeError < FFI::Struct
70
+ def initialize: () -> void
71
+ end
72
+ class Row < FFI::Struct
73
+ def initialize: () -> void
74
+ end
75
+ class SettingsPointer < FFI::AutoPointer
76
+ def self.release: (untyped) -> void
77
+ end
78
+ class ClientPointer < FFI::AutoPointer
79
+ def self.release: (untyped) -> void
80
+ end
81
+ class CallPointer < FFI::AutoPointer
82
+ def self.release: (untyped) -> void
83
+ end
84
+ def self.thinkthen_abi_version: (*untyped) -> untyped
85
+ def self.thinkthen_abi_compatible: (Integer, Integer) -> Integer
86
+ def self.thinkthen_code_name: (Integer) -> String?
87
+ def self.thinkthen_code_family: (Integer) -> String?
88
+ def self.toolbox_json: (String, ?saved: bool, ?definitions: bool, ?select: [String, String]?) -> String
89
+ def self.thinkthen_toolbox_from_json: (*untyped) -> untyped
90
+ def self.thinkthen_toolbox_from_definitions_json: (*untyped) -> untyped
91
+ def self.thinkthen_toolbox_to_json: (*untyped) -> untyped
92
+ def self.thinkthen_toolbox_definitions_json: (*untyped) -> untyped
93
+ def self.thinkthen_toolbox_select_as: (*untyped) -> untyped
94
+ def self.thinkthen_toolbox_free: (*untyped) -> untyped
95
+ def self.thinkthen_buffer_free: (*untyped) -> untyped
96
+ def self.thinkthen_question_new: (*untyped) -> untyped
97
+ def self.thinkthen_question_set_cut: (*untyped) -> untyped
98
+ def self.thinkthen_question_set_band: (*untyped) -> untyped
99
+ def self.thinkthen_question_free: (*untyped) -> untyped
100
+ def self.thinkthen_settings_new: (*untyped) -> untyped
101
+ def self.thinkthen_settings_set_api_key: (*untyped) -> untyped
102
+ def self.thinkthen_settings_from_json: (*untyped) -> untyped
103
+ def self.thinkthen_settings_copy_api_key: (*untyped) -> untyped
104
+ def self.thinkthen_settings_free: (*untyped) -> untyped
105
+ def self.thinkthen_client_open: (*untyped) -> untyped
106
+ def self.thinkthen_client_open_json: (*untyped) -> untyped
107
+ def self.thinkthen_settings_conversion_error: (*untyped) -> untyped
108
+ def self.thinkthen_question_conversion_error: (*untyped) -> untyped
109
+ def self.thinkthen_cancelled_error: (*untyped) -> untyped
110
+ def self.thinkthen_call_send_invalid: (*untyped) -> untyped
111
+ def self.usage: (untyped, ?settled: bool) -> Usage
112
+ def self.thinkthen_client_usage: (*untyped) -> untyped
113
+ def self.thinkthen_client_usage_settled: (*untyped) -> untyped
114
+ def self.thinkthen_client_free: (*untyped) -> untyped
115
+ def self.thinkthen_call_open_records_json: (*untyped) -> untyped
116
+ def self.thinkthen_call_open_json: (*untyped) -> untyped
117
+ def self.thinkthen_call_send_text: (*untyped) -> untyped
118
+ def self.thinkthen_call_send_json: (*untyped) -> untyped
119
+ def self.thinkthen_call_send_missing: (*untyped) -> untyped
120
+ def self.thinkthen_call_end_input: (*untyped) -> untyped
121
+ def self.thinkthen_call_next: (*untyped) -> untyped
122
+ def self.thinkthen_call_cancel: (*untyped) -> untyped
123
+ def self.thinkthen_call_free: (*untyped) -> untyped
124
+ def self.thinkthen_error_free: (*untyped) -> untyped
125
+ def self.thinkthen_row_free: (*untyped) -> untyped
126
+ def self.row_json: (untyped) -> String
127
+ def self.thinkthen_row_to_json: (*untyped) -> untyped
128
+ def self.settings: () -> untyped
129
+ def self.validate_threshold: (Symbol, String?, untyped) -> void
130
+ def self.thinkthen_question_from_json: (*untyped) -> untyped
131
+ def self.validate_question: (untyped) -> void
132
+ def self.dump: (untyped, ?symbols: bool) -> String
133
+ def self.snapshot: (untyped, ?untyped, ?bool) -> untyped
134
+ def self.context_dump: (untyped, Symbol) -> String
135
+ def self.records: (untyped) { (untyped, Integer) -> untyped } -> untyped
136
+ def self.record_value: (untyped) -> [String, String?]
137
+ def self.parse: (String) -> untyped
138
+ def self.copy: (untyped) -> String
139
+ def self.error_symbol: (String) -> error_code
140
+ def self.error_class: (Integer, String) -> (singleton(UsageError) | singleton(LibraryError))
141
+ def self.checked: () { (untyped) -> untyped } -> untyped
142
+ def self.bytes: (String) { (untyped, Integer) -> untyped } -> untyped
143
+ end
144
+ module NativeAllocator
145
+ @library: untyped
146
+ @trim: untyped
147
+ def self.prepare: () -> untyped
148
+ def self.trim: () -> nil
149
+ end
150
+ module Values
151
+ def self.freeze_copy: (untyped) -> untyped
152
+ def self.wire: (untyped) -> untyped
153
+ end
154
+ module WireValue : Object
155
+ def to_json: (*untyped) -> String
156
+ def to_h: () -> Hash[String, json]
157
+ end
158
+ class Result
159
+ @wire: untyped
160
+ @answer: untyped
161
+ @value: untyped
162
+ def initialize: (untyped, ?question: Question?, ?item: untyped, ?parent: Result?, ?raw_code: Integer?) -> void
163
+ private
164
+ def raise_failure: (Result) -> bot
165
+ end
166
+ module Row
167
+ def self.decode: (untyped, ?question: Question?, ?item: untyped) -> Result
168
+ def self.variant: (untyped, ?question: Question?, ?item: untyped, ?parent: Result?, ?raw_code: Integer?) -> Result
169
+ def self.value: (untyped, untyped) -> untyped
170
+ def self.row_error: (untyped, ?raw_code: Integer?) -> RowError
171
+ def self.relation: (untyped) -> Relation
172
+ def self.answer: (String, untyped, Question?, Result) -> untyped
173
+ def self.detail: (String, untyped) -> untyped
174
+ def self.number: (Float) -> String
175
+ def self.leaf: (untyped) -> String
176
+ def self.text: (Result, untyped) -> String
177
+ end
178
+ class Question
179
+ @symbols: bool?
180
+ def symbols?: () -> bool
181
+ attr_reader value: untyped
182
+ def initialize: (Symbol, ?String?, **untyped) -> void
183
+ def self.field: (field?) -> String?
184
+ def self.threshold: (threshold?, band: bool) -> untyped
185
+ def self.list: (Symbol, untyped, ?untyped) -> untyped
186
+ end
187
+ class AnnotateQuestion
188
+ attr_reader questions: Hash[String, toolbox_question]
189
+ end
190
+ class AnnotationQuestions
191
+ def value: () -> untyped
192
+ end
193
+ class Cancel
194
+ def attach: (untyped) -> untyped
195
+ def detach: (untyped) -> untyped
196
+ end
197
+ class RedactedKey
198
+ def initialize: (String) -> void
199
+ private
200
+ def copy_to: (untyped) -> untyped
201
+ end
202
+ class Configuration
203
+ def initialize: () -> void
204
+ def to_h: () -> untyped
205
+ end
206
+ class Client
207
+ private
208
+ def single_result: (untyped) -> untyped
209
+ def single_record: (untyped, Symbol) -> Array[untyped]
210
+ def build_question: (Symbol, untyped, untyped) -> untyped
211
+ def open_rows: (untyped, untyped, untyped, untyped) -> untyped
212
+ def admit: (String, ?untyped) -> untyped
213
+ def check_process: () -> void
214
+ def forget: (untyped) -> untyped
215
+ end
216
+ class CallOwner
217
+ private
218
+ def check_process: () -> void
219
+ public
220
+ def initialize: (untyped) -> void
221
+ def use: () { (untyped) -> untyped } -> untyped
222
+ def close: () -> nil
223
+ def cancel: () -> nil
224
+ def closed?: () -> bool
225
+ end
226
+ end
227
+
228
+ module JSON
229
+ def self.generate: (untyped, **untyped) -> String
230
+ def self.parse: (String, **untyped) -> untyped
231
+ end
232
+ class Data
233
+ def initialize: (*untyped, **untyped) -> void
234
+ def self.members: () -> Array[Symbol]
235
+ end
236
+ module ThinkThen
237
+ class Source
238
+ def initialize: (question_identity: String, backend: backend, model: String, ?name: String?) -> void
239
+ end
240
+ class RowError
241
+ def initialize: (code: error_code, message: String, ?http_status: Integer?, ?raw_code: Integer?, ?raw_name: String?) -> void
242
+ end
243
+ class RelationRule
244
+ private
245
+ def definition: () -> untyped
246
+ public
247
+ def initialize: (source: String, target: String, relation: String, ?reads: String?, ?either: bool) -> void
248
+ end
249
+ class RetryPolicy
250
+ def initialize: (?max_retries: Integer?, ?initial_backoff: Float?, ?attempt_timeout: Float?) -> void
251
+ end
252
+ end
253
+
254
+ # RBS 3.10 omits the documented block on this Ruby core method.
255
+ class Thread
256
+ def self.handle_interrupt: [T] (untyped) { () -> T } -> T
257
+ | ...
258
+ end
259
+
260
+ module ThinkThen
261
+ class NativeRead
262
+ @result: untyped
263
+ @error: Exception?
264
+ def initialize: (untyped) -> void
265
+ def run: (untyped) -> void
266
+ def abandon: () -> void
267
+ def value: () -> untyped
268
+ end
269
+ class NativeReader
270
+ @requests: untyped
271
+ def initialize: (untyped) -> void
272
+ def self.finalizer: (untyped) -> untyped
273
+ def self.worker: (untyped, untyped) -> Thread
274
+ def start: (untyped) -> NativeRead
275
+ def close: () -> nil
276
+ end
277
+ end