workosv2 2.15.0

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 (242) hide show
  1. checksums.yaml +7 -0
  2. data/.github/CODEOWNERS +5 -0
  3. data/.github/pull_request_template.md +11 -0
  4. data/.github/renovate.json +5 -0
  5. data/.gitignore +49 -0
  6. data/.rspec +1 -0
  7. data/.rubocop.yml +24 -0
  8. data/.ruby-version +1 -0
  9. data/.semaphore/rubygems.yml +24 -0
  10. data/.semaphore/semaphore.yml +51 -0
  11. data/Gemfile +5 -0
  12. data/Gemfile.lock +126 -0
  13. data/Gemfile.lock.old +127 -0
  14. data/LICENSE +21 -0
  15. data/README.md +53 -0
  16. data/bin/build +3 -0
  17. data/bin/console +3 -0
  18. data/bin/docs +5 -0
  19. data/bin/publish +3 -0
  20. data/bin/tapioca +29 -0
  21. data/codecov.yml +12 -0
  22. data/docs/WorkOS/APIError.html +160 -0
  23. data/docs/WorkOS/AuditLog.html +235 -0
  24. data/docs/WorkOS/AuditTrail.html +235 -0
  25. data/docs/WorkOS/AuthenticationError.html +160 -0
  26. data/docs/WorkOS/Base.html +287 -0
  27. data/docs/WorkOS/Client.html +504 -0
  28. data/docs/WorkOS/InvalidRequestError.html +160 -0
  29. data/docs/WorkOS/Profile.html +788 -0
  30. data/docs/WorkOS/RequestError.html +135 -0
  31. data/docs/WorkOS/SSO.html +691 -0
  32. data/docs/WorkOS/Types/ProfileStruct.html +135 -0
  33. data/docs/WorkOS/Types/Provider.html +135 -0
  34. data/docs/WorkOS/Types.html +128 -0
  35. data/docs/WorkOS/WorkOSError.html +447 -0
  36. data/docs/WorkOS.html +324 -0
  37. data/docs/class_list.html +51 -0
  38. data/docs/css/common.css +1 -0
  39. data/docs/css/full_list.css +58 -0
  40. data/docs/css/style.css +496 -0
  41. data/docs/file.README.html +252 -0
  42. data/docs/file_list.html +56 -0
  43. data/docs/frames.html +17 -0
  44. data/docs/index.html +250 -0
  45. data/docs/js/app.js +314 -0
  46. data/docs/js/full_list.js +216 -0
  47. data/docs/js/jquery.js +4 -0
  48. data/docs/method_list.html +267 -0
  49. data/docs/top-level-namespace.html +110 -0
  50. data/lib/workosv2/audit_log_export.rb +55 -0
  51. data/lib/workosv2/audit_logs.rb +114 -0
  52. data/lib/workosv2/audit_trail.rb +111 -0
  53. data/lib/workosv2/challenge.rb +55 -0
  54. data/lib/workosv2/client.rb +186 -0
  55. data/lib/workosv2/configuration.rb +17 -0
  56. data/lib/workosv2/connection.rb +66 -0
  57. data/lib/workosv2/deprecated_hash_wrapper.rb +76 -0
  58. data/lib/workosv2/directory.rb +65 -0
  59. data/lib/workosv2/directory_group.rb +68 -0
  60. data/lib/workosv2/directory_sync.rb +218 -0
  61. data/lib/workosv2/directory_user.rb +97 -0
  62. data/lib/workosv2/errors.rb +81 -0
  63. data/lib/workosv2/event.rb +51 -0
  64. data/lib/workosv2/events.rb +52 -0
  65. data/lib/workosv2/factor.rb +54 -0
  66. data/lib/workosv2/hash_provider.rb +19 -0
  67. data/lib/workosv2/mfa.rb +178 -0
  68. data/lib/workosv2/organization.rb +57 -0
  69. data/lib/workosv2/organizations.rb +188 -0
  70. data/lib/workosv2/passwordless.rb +85 -0
  71. data/lib/workosv2/portal.rb +66 -0
  72. data/lib/workosv2/profile.rb +76 -0
  73. data/lib/workosv2/profile_and_token.rb +29 -0
  74. data/lib/workosv2/sso.rb +297 -0
  75. data/lib/workosv2/types/audit_log_export_struct.rb +17 -0
  76. data/lib/workosv2/types/challenge_struct.rb +18 -0
  77. data/lib/workosv2/types/connection_struct.rb +20 -0
  78. data/lib/workosv2/types/directory_group_struct.rb +19 -0
  79. data/lib/workosv2/types/directory_struct.rb +19 -0
  80. data/lib/workosv2/types/directory_user_struct.rb +26 -0
  81. data/lib/workosv2/types/event_struct.rb +15 -0
  82. data/lib/workosv2/types/factor_struct.rb +18 -0
  83. data/lib/workosv2/types/intent_enum.rb +17 -0
  84. data/lib/workosv2/types/list_struct.rb +13 -0
  85. data/lib/workosv2/types/organization_struct.rb +17 -0
  86. data/lib/workosv2/types/passwordless_session_struct.rb +17 -0
  87. data/lib/workosv2/types/profile_struct.rb +21 -0
  88. data/lib/workosv2/types/provider_enum.rb +15 -0
  89. data/lib/workosv2/types/verify_challenge_struct.rb +13 -0
  90. data/lib/workosv2/types/webhook_struct.rb +15 -0
  91. data/lib/workosv2/types.rb +25 -0
  92. data/lib/workosv2/verify_challenge.rb +39 -0
  93. data/lib/workosv2/version.rb +6 -0
  94. data/lib/workosv2/webhook.rb +51 -0
  95. data/lib/workosv2/webhooks.rb +217 -0
  96. data/lib/workosv2.rb +79 -0
  97. data/sorbet/config +2 -0
  98. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  99. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  100. data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
  101. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  102. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  103. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  104. data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
  105. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  106. data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
  107. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  108. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  109. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
  110. data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
  111. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
  112. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  113. data/sorbet/rbi/gems/rake@13.0.3.rbi +807 -0
  114. data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
  115. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
  116. data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
  117. data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +2467 -0
  118. data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +1569 -0
  119. data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +1493 -0
  120. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
  121. data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
  122. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
  123. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
  124. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  125. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  126. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  127. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
  128. data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
  129. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
  130. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  131. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
  132. data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
  133. data/sorbet/rbi/gems/vcr@5.0.0.rbi +699 -0
  134. data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
  135. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
  136. data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
  137. data/sorbet/tapioca/config.yml +13 -0
  138. data/sorbet/tapioca/require.rb +4 -0
  139. data/spec/lib/workos/audit_logs_spec.rb +151 -0
  140. data/spec/lib/workos/audit_trail_spec.rb +146 -0
  141. data/spec/lib/workos/configuration_spec.rb +61 -0
  142. data/spec/lib/workos/directory_sync_spec.rb +492 -0
  143. data/spec/lib/workos/directory_user_spec.rb +36 -0
  144. data/spec/lib/workos/event_spec.rb +88 -0
  145. data/spec/lib/workos/mfa_spec.rb +281 -0
  146. data/spec/lib/workos/organizations_spec.rb +257 -0
  147. data/spec/lib/workos/passwordless_spec.rb +77 -0
  148. data/spec/lib/workos/portal_spec.rb +87 -0
  149. data/spec/lib/workos/sso_spec.rb +650 -0
  150. data/spec/lib/workos/webhooks_spec.rb +236 -0
  151. data/spec/spec_helper.rb +56 -0
  152. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml +59 -0
  153. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml +60 -0
  154. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_invalid.yml +59 -0
  155. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export.yml +76 -0
  156. data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export_with_filters.yml +77 -0
  157. data/spec/support/fixtures/vcr_cassettes/audit_logs/get_export.yml +73 -0
  158. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event.yml +65 -0
  159. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_custom_idempotency_key.yml +67 -0
  160. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_invalid.yml +68 -0
  161. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_and_payload.yml +131 -0
  162. data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml +134 -0
  163. data/spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml +61 -0
  164. data/spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml +66 -0
  165. data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
  166. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_invalid_id.yml +83 -0
  167. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_valid_id.yml +84 -0
  168. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml +80 -0
  169. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml +62 -0
  170. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml +83 -0
  171. data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml +62 -0
  172. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +87 -0
  173. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +89 -0
  174. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +84 -0
  175. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +85 -0
  176. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +93 -0
  177. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +85 -0
  178. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +90 -0
  179. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +90 -0
  180. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +90 -0
  181. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +84 -0
  182. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml +84 -0
  183. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +82 -0
  184. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +186 -0
  185. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +88 -0
  186. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +194 -0
  187. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +186 -0
  188. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +189 -0
  189. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml +74 -0
  190. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_after.yml +80 -0
  191. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_event.yml +80 -0
  192. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_no_options.yml +80 -0
  193. data/spec/support/fixtures/vcr_cassettes/events/list_events_with_range.yml +80 -0
  194. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_generic_valid.yml +82 -0
  195. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_sms_valid.yml +82 -0
  196. data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_totp_valid.yml +82 -0
  197. data/spec/support/fixtures/vcr_cassettes/mfa/delete_factor.yml +80 -0
  198. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_generic_valid.yml +82 -0
  199. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_sms_valid.yml +82 -0
  200. data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_totp_valid.yml +82 -0
  201. data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_invalid.yml +82 -0
  202. data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_valid.yml +82 -0
  203. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_expired.yml +84 -0
  204. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_invalid.yml +84 -0
  205. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid.yml +82 -0
  206. data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml +82 -0
  207. data/spec/support/fixtures/vcr_cassettes/organization/create.yml +84 -0
  208. data/spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml +72 -0
  209. data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml +155 -0
  210. data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml +154 -0
  211. data/spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml +79 -0
  212. data/spec/support/fixtures/vcr_cassettes/organization/delete.yml +72 -0
  213. data/spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml +72 -0
  214. data/spec/support/fixtures/vcr_cassettes/organization/get.yml +84 -0
  215. data/spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml +72 -0
  216. data/spec/support/fixtures/vcr_cassettes/organization/list.yml +87 -0
  217. data/spec/support/fixtures/vcr_cassettes/organization/update.yml +84 -0
  218. data/spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml +72 -0
  219. data/spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml +73 -0
  220. data/spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml +72 -0
  221. data/spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml +73 -0
  222. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml +72 -0
  223. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
  224. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml +72 -0
  225. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml +72 -0
  226. data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml +72 -0
  227. data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml +70 -0
  228. data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml +72 -0
  229. data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml +86 -0
  230. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +83 -0
  231. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +86 -0
  232. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +90 -0
  233. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml +86 -0
  234. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +83 -0
  235. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +89 -0
  236. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml +86 -0
  237. data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +74 -0
  238. data/spec/support/profile.txt +1 -0
  239. data/spec/support/shared_examples/client_spec.rb +30 -0
  240. data/spec/support/webhook_payload.txt +1 -0
  241. data/workosv2.gemspec +38 -0
  242. metadata +531 -0
@@ -0,0 +1,709 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rexml` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rexml`.
6
+
7
+ class REXML::AttlistDecl < ::REXML::Child
8
+ include ::Enumerable
9
+
10
+ def initialize(source); end
11
+
12
+ def [](key); end
13
+ def each(&block); end
14
+ def element_name; end
15
+ def include?(key); end
16
+ def node_type; end
17
+ def write(out, indent = T.unsafe(nil)); end
18
+ end
19
+
20
+ class REXML::Attribute
21
+ include ::REXML::Node
22
+ include ::REXML::XMLTokens
23
+ include ::REXML::Namespace
24
+
25
+ def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end
26
+
27
+ def ==(other); end
28
+ def clone; end
29
+ def doctype; end
30
+ def element; end
31
+ def element=(element); end
32
+ def hash; end
33
+ def inspect; end
34
+ def namespace(arg = T.unsafe(nil)); end
35
+ def node_type; end
36
+ def normalized=(_arg0); end
37
+ def prefix; end
38
+ def remove; end
39
+ def to_s; end
40
+ def to_string; end
41
+ def value; end
42
+ def write(output, indent = T.unsafe(nil)); end
43
+ def xpath; end
44
+ end
45
+
46
+ class REXML::Attributes < ::Hash
47
+ def initialize(element); end
48
+
49
+ def <<(attribute); end
50
+ def [](name); end
51
+ def []=(name, value); end
52
+ def add(attribute); end
53
+ def delete(attribute); end
54
+ def delete_all(name); end
55
+ def each; end
56
+ def each_attribute; end
57
+ def get_attribute(name); end
58
+ def get_attribute_ns(namespace, name); end
59
+ def length; end
60
+ def namespaces; end
61
+ def prefixes; end
62
+ def size; end
63
+ def to_a; end
64
+ end
65
+
66
+ class REXML::CData < ::REXML::Text
67
+ def initialize(first, whitespace = T.unsafe(nil), parent = T.unsafe(nil)); end
68
+
69
+ def clone; end
70
+ def to_s; end
71
+ def value; end
72
+ def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
73
+ end
74
+
75
+ class REXML::Child
76
+ include ::REXML::Node
77
+
78
+ def initialize(parent = T.unsafe(nil)); end
79
+
80
+ def bytes; end
81
+ def document; end
82
+ def next_sibling; end
83
+ def next_sibling=(other); end
84
+ def parent; end
85
+ def parent=(other); end
86
+ def previous_sibling; end
87
+ def previous_sibling=(other); end
88
+ def remove; end
89
+ def replace_with(child); end
90
+ end
91
+
92
+ class REXML::Comment < ::REXML::Child
93
+ include ::Comparable
94
+
95
+ def initialize(first, second = T.unsafe(nil)); end
96
+
97
+ def <=>(other); end
98
+ def ==(other); end
99
+ def clone; end
100
+ def node_type; end
101
+ def string; end
102
+ def string=(_arg0); end
103
+ def to_s; end
104
+ def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
105
+ end
106
+
107
+ module REXML::DClonable; end
108
+
109
+ class REXML::Declaration < ::REXML::Child
110
+ def initialize(src); end
111
+
112
+ def to_s; end
113
+ def write(output, indent); end
114
+ end
115
+
116
+ class REXML::DocType < ::REXML::Parent
117
+ include ::REXML::XMLTokens
118
+
119
+ def initialize(first, parent = T.unsafe(nil)); end
120
+
121
+ def add(child); end
122
+ def attribute_of(element, attribute); end
123
+ def attributes_of(element); end
124
+ def clone; end
125
+ def context; end
126
+ def entities; end
127
+ def entity(name); end
128
+ def external_id; end
129
+ def name; end
130
+ def namespaces; end
131
+ def node_type; end
132
+ def notation(name); end
133
+ def notations; end
134
+ def public; end
135
+ def system; end
136
+ def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
137
+ end
138
+
139
+ class REXML::Document < ::REXML::Element
140
+ def initialize(source = T.unsafe(nil), context = T.unsafe(nil)); end
141
+
142
+ def <<(child); end
143
+ def add(child); end
144
+ def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
145
+ def clone; end
146
+ def doctype; end
147
+ def document; end
148
+ def encoding; end
149
+ def entity_expansion_count; end
150
+ def expanded_name; end
151
+ def name; end
152
+ def node_type; end
153
+ def record_entity_expansion; end
154
+ def root; end
155
+ def stand_alone?; end
156
+ def version; end
157
+ def write(*arguments); end
158
+ def xml_decl; end
159
+
160
+ private
161
+
162
+ def build(source); end
163
+
164
+ class << self
165
+ def entity_expansion_limit; end
166
+ def entity_expansion_limit=(val); end
167
+ def entity_expansion_text_limit; end
168
+ def entity_expansion_text_limit=(val); end
169
+ def parse_stream(source, listener); end
170
+ end
171
+ end
172
+
173
+ class REXML::Element < ::REXML::Parent
174
+ include ::REXML::XMLTokens
175
+ include ::REXML::Namespace
176
+
177
+ def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
178
+
179
+ def [](name_or_index); end
180
+ def add_attribute(key, value = T.unsafe(nil)); end
181
+ def add_attributes(hash); end
182
+ def add_element(element, attrs = T.unsafe(nil)); end
183
+ def add_namespace(prefix, uri = T.unsafe(nil)); end
184
+ def add_text(text); end
185
+ def attribute(name, namespace = T.unsafe(nil)); end
186
+ def attributes; end
187
+ def cdatas; end
188
+ def clone; end
189
+ def comments; end
190
+ def context; end
191
+ def context=(_arg0); end
192
+ def delete_attribute(key); end
193
+ def delete_element(element); end
194
+ def delete_namespace(namespace = T.unsafe(nil)); end
195
+ def document; end
196
+ def each_element(xpath = T.unsafe(nil), &block); end
197
+ def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
198
+ def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
199
+ def elements; end
200
+ def get_elements(xpath); end
201
+ def get_text(path = T.unsafe(nil)); end
202
+ def has_attributes?; end
203
+ def has_elements?; end
204
+ def has_text?; end
205
+ def ignore_whitespace_nodes; end
206
+ def inspect; end
207
+ def instructions; end
208
+ def namespace(prefix = T.unsafe(nil)); end
209
+ def namespaces; end
210
+ def next_element; end
211
+ def node_type; end
212
+ def prefixes; end
213
+ def previous_element; end
214
+ def raw; end
215
+ def root; end
216
+ def root_node; end
217
+ def text(path = T.unsafe(nil)); end
218
+ def text=(text); end
219
+ def texts; end
220
+ def whitespace; end
221
+ def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
222
+ def xpath; end
223
+
224
+ private
225
+
226
+ def __to_xpath_helper(node); end
227
+ def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
228
+ end
229
+
230
+ class REXML::ElementDecl < ::REXML::Declaration
231
+ def initialize(src); end
232
+ end
233
+
234
+ class REXML::Elements
235
+ include ::Enumerable
236
+
237
+ def initialize(parent); end
238
+
239
+ def <<(element = T.unsafe(nil)); end
240
+ def [](index, name = T.unsafe(nil)); end
241
+ def []=(index, element); end
242
+ def add(element = T.unsafe(nil)); end
243
+ def collect(xpath = T.unsafe(nil)); end
244
+ def delete(element); end
245
+ def delete_all(xpath); end
246
+ def each(xpath = T.unsafe(nil)); end
247
+ def empty?; end
248
+ def index(element); end
249
+ def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
250
+ def parent; end
251
+ def size; end
252
+ def to_a(xpath = T.unsafe(nil)); end
253
+
254
+ private
255
+
256
+ def literalize(name); end
257
+ end
258
+
259
+ module REXML::Encoding
260
+ def decode(string); end
261
+ def encode(string); end
262
+ def encoding; end
263
+ def encoding=(encoding); end
264
+
265
+ private
266
+
267
+ def find_encoding(name); end
268
+ end
269
+
270
+ class REXML::Entity < ::REXML::Child
271
+ include ::REXML::XMLTokens
272
+
273
+ def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
274
+
275
+ def external; end
276
+ def name; end
277
+ def ndata; end
278
+ def normalized; end
279
+ def pubid; end
280
+ def ref; end
281
+ def to_s; end
282
+ def unnormalized; end
283
+ def value; end
284
+ def write(out, indent = T.unsafe(nil)); end
285
+
286
+ class << self
287
+ def matches?(string); end
288
+ end
289
+ end
290
+
291
+ class REXML::ExternalEntity < ::REXML::Child
292
+ def initialize(src); end
293
+
294
+ def to_s; end
295
+ def write(output, indent); end
296
+ end
297
+
298
+ class REXML::Formatters::Default
299
+ def initialize(ie_hack = T.unsafe(nil)); end
300
+
301
+ def write(node, output); end
302
+
303
+ protected
304
+
305
+ def write_cdata(node, output); end
306
+ def write_comment(node, output); end
307
+ def write_document(node, output); end
308
+ def write_element(node, output); end
309
+ def write_instruction(node, output); end
310
+ def write_text(node, output); end
311
+ end
312
+
313
+ class REXML::Formatters::Pretty < ::REXML::Formatters::Default
314
+ def initialize(indentation = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
315
+
316
+ def compact; end
317
+ def compact=(_arg0); end
318
+ def width; end
319
+ def width=(_arg0); end
320
+
321
+ protected
322
+
323
+ def write_cdata(node, output); end
324
+ def write_comment(node, output); end
325
+ def write_document(node, output); end
326
+ def write_element(node, output); end
327
+ def write_text(node, output); end
328
+
329
+ private
330
+
331
+ def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
332
+ def wrap(string, width); end
333
+ end
334
+
335
+ class REXML::IOSource < ::REXML::Source
336
+ def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
337
+
338
+ def consume(pattern); end
339
+ def current_line; end
340
+ def empty?; end
341
+ def match(pattern, cons = T.unsafe(nil)); end
342
+ def position; end
343
+ def read; end
344
+ def scan(pattern, cons = T.unsafe(nil)); end
345
+
346
+ private
347
+
348
+ def encoding_updated; end
349
+ def readline; end
350
+ end
351
+
352
+ class REXML::Instruction < ::REXML::Child
353
+ def initialize(target, content = T.unsafe(nil)); end
354
+
355
+ def ==(other); end
356
+ def clone; end
357
+ def content; end
358
+ def content=(_arg0); end
359
+ def inspect; end
360
+ def node_type; end
361
+ def target; end
362
+ def target=(_arg0); end
363
+ def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
364
+ end
365
+
366
+ module REXML::Light; end
367
+
368
+ class REXML::Light::Node
369
+ def initialize(node = T.unsafe(nil)); end
370
+
371
+ def <<(element); end
372
+ def =~(path); end
373
+ def [](reference, ns = T.unsafe(nil)); end
374
+ def []=(reference, ns, value = T.unsafe(nil)); end
375
+ def children; end
376
+ def each; end
377
+ def has_name?(name, namespace = T.unsafe(nil)); end
378
+ def local_name; end
379
+ def local_name=(name_str); end
380
+ def name; end
381
+ def name=(name_str, ns = T.unsafe(nil)); end
382
+ def namespace(prefix = T.unsafe(nil)); end
383
+ def namespace=(namespace); end
384
+ def node_type; end
385
+ def parent; end
386
+ def parent=(node); end
387
+ def prefix(namespace = T.unsafe(nil)); end
388
+ def root; end
389
+ def size; end
390
+ def text=(foo); end
391
+ def to_s; end
392
+
393
+ private
394
+
395
+ def namespace_of(node, prefix = T.unsafe(nil)); end
396
+ def namesplit; end
397
+ def prefix_of(node, namespace = T.unsafe(nil)); end
398
+ end
399
+
400
+ REXML::Light::Node::NAMESPLIT = T.let(T.unsafe(nil), Regexp)
401
+ REXML::Light::Node::PARENTS = T.let(T.unsafe(nil), Array)
402
+
403
+ class REXML::NotationDecl < ::REXML::Child
404
+ def initialize(name, middle, pub, sys); end
405
+
406
+ def name; end
407
+ def public; end
408
+ def public=(_arg0); end
409
+ def system; end
410
+ def system=(_arg0); end
411
+ def to_s; end
412
+ def write(output, indent = T.unsafe(nil)); end
413
+ end
414
+
415
+ class REXML::Output
416
+ include ::REXML::Encoding
417
+
418
+ def initialize(real_IO, encd = T.unsafe(nil)); end
419
+
420
+ def <<(content); end
421
+ def encoding; end
422
+ def to_s; end
423
+ end
424
+
425
+ class REXML::Parent < ::REXML::Child
426
+ include ::Enumerable
427
+
428
+ def initialize(parent = T.unsafe(nil)); end
429
+
430
+ def <<(object); end
431
+ def [](index); end
432
+ def []=(*args); end
433
+ def add(object); end
434
+ def children; end
435
+ def deep_clone; end
436
+ def delete(object); end
437
+ def delete_at(index); end
438
+ def delete_if(&block); end
439
+ def each(&block); end
440
+ def each_child(&block); end
441
+ def each_index(&block); end
442
+ def index(child); end
443
+ def insert_after(child1, child2); end
444
+ def insert_before(child1, child2); end
445
+ def length; end
446
+ def parent?; end
447
+ def push(object); end
448
+ def replace_child(to_replace, replacement); end
449
+ def size; end
450
+ def to_a; end
451
+ def unshift(object); end
452
+ end
453
+
454
+ class REXML::ParseException < ::RuntimeError
455
+ def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
456
+
457
+ def context; end
458
+ def continued_exception; end
459
+ def continued_exception=(_arg0); end
460
+ def line; end
461
+ def parser; end
462
+ def parser=(_arg0); end
463
+ def position; end
464
+ def source; end
465
+ def source=(_arg0); end
466
+ def to_s; end
467
+ end
468
+
469
+ class REXML::Parsers::BaseParser
470
+ def initialize(source); end
471
+
472
+ def add_listener(listener); end
473
+ def empty?; end
474
+ def entity(reference, entities); end
475
+ def has_next?; end
476
+ def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
477
+ def peek(depth = T.unsafe(nil)); end
478
+ def position; end
479
+ def pull; end
480
+ def source; end
481
+ def stream=(source); end
482
+ def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
483
+ def unshift(token); end
484
+
485
+ private
486
+
487
+ def need_source_encoding_update?(xml_declaration_encoding); end
488
+ def parse_attributes(prefixes, curr_ns); end
489
+ def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
490
+ def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
491
+ def parse_name(base_error_message); end
492
+ def process_instruction; end
493
+ def pull_event; end
494
+ end
495
+
496
+ REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
497
+ REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
498
+ REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
499
+ REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
500
+ REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
501
+
502
+ class REXML::Parsers::StreamParser
503
+ def initialize(source, listener); end
504
+
505
+ def add_listener(listener); end
506
+ def parse; end
507
+ end
508
+
509
+ class REXML::Parsers::TreeParser
510
+ def initialize(source, build_context = T.unsafe(nil)); end
511
+
512
+ def add_listener(listener); end
513
+ def parse; end
514
+ end
515
+
516
+ class REXML::Parsers::XPathParser
517
+ include ::REXML::XMLTokens
518
+
519
+ def abbreviate(path); end
520
+ def expand(path); end
521
+ def namespaces=(namespaces); end
522
+ def parse(path); end
523
+ def predicate(path); end
524
+ def predicate_to_string(path, &block); end
525
+
526
+ private
527
+
528
+ def AdditiveExpr(path, parsed); end
529
+ def AndExpr(path, parsed); end
530
+ def EqualityExpr(path, parsed); end
531
+ def FilterExpr(path, parsed); end
532
+ def FunctionCall(rest, parsed); end
533
+ def LocationPath(path, parsed); end
534
+ def MultiplicativeExpr(path, parsed); end
535
+ def NodeTest(path, parsed); end
536
+ def OrExpr(path, parsed); end
537
+ def PathExpr(path, parsed); end
538
+ def Predicate(path, parsed); end
539
+ def PrimaryExpr(path, parsed); end
540
+ def RelationalExpr(path, parsed); end
541
+ def RelativeLocationPath(path, parsed); end
542
+ def UnaryExpr(path, parsed); end
543
+ def UnionExpr(path, parsed); end
544
+ def get_group(string); end
545
+ def parse_args(string); end
546
+ end
547
+
548
+ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
549
+ REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
550
+
551
+ class REXML::ReferenceWriter
552
+ def initialize(id_type, public_id_literal, system_literal, context = T.unsafe(nil)); end
553
+
554
+ def write(output); end
555
+ end
556
+
557
+ class REXML::Source
558
+ include ::REXML::Encoding
559
+
560
+ def initialize(arg, encoding = T.unsafe(nil)); end
561
+
562
+ def buffer; end
563
+ def consume(pattern); end
564
+ def current_line; end
565
+ def empty?; end
566
+ def encoding; end
567
+ def encoding=(enc); end
568
+ def line; end
569
+ def match(pattern, cons = T.unsafe(nil)); end
570
+ def match_to(char, pattern); end
571
+ def match_to_consume(char, pattern); end
572
+ def position; end
573
+ def read; end
574
+ def scan(pattern, cons = T.unsafe(nil)); end
575
+
576
+ private
577
+
578
+ def detect_encoding; end
579
+ def encoding_updated; end
580
+ end
581
+
582
+ class REXML::Text < ::REXML::Child
583
+ include ::Comparable
584
+
585
+ def initialize(arg, respect_whitespace = T.unsafe(nil), parent = T.unsafe(nil), raw = T.unsafe(nil), entity_filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
586
+
587
+ def <<(to_append); end
588
+ def <=>(other); end
589
+ def clone; end
590
+ def doctype; end
591
+ def empty?; end
592
+ def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
593
+ def inspect; end
594
+ def node_type; end
595
+ def parent=(parent); end
596
+ def raw; end
597
+ def raw=(_arg0); end
598
+ def to_s; end
599
+ def value; end
600
+ def value=(val); end
601
+ def wrap(string, width, addnewline = T.unsafe(nil)); end
602
+ def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
603
+ def write_with_substitution(out, input); end
604
+ def xpath; end
605
+
606
+ private
607
+
608
+ def clear_cache; end
609
+
610
+ class << self
611
+ def check(string, pattern, doctype); end
612
+ def expand(ref, doctype, filter); end
613
+ def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
614
+ def read_with_substitution(input, illegal = T.unsafe(nil)); end
615
+ def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
616
+ end
617
+ end
618
+
619
+ class REXML::UndefinedNamespaceException < ::REXML::ParseException
620
+ def initialize(prefix, source, parser); end
621
+ end
622
+
623
+ class REXML::Validation::ValidationException < ::RuntimeError
624
+ def initialize(msg); end
625
+ end
626
+
627
+ class REXML::XMLDecl < ::REXML::Child
628
+ include ::REXML::Encoding
629
+
630
+ def initialize(version = T.unsafe(nil), encoding = T.unsafe(nil), standalone = T.unsafe(nil)); end
631
+
632
+ def ==(other); end
633
+ def clone; end
634
+ def dowrite; end
635
+ def encoding=(enc); end
636
+ def inspect; end
637
+ def node_type; end
638
+ def nowrite; end
639
+ def old_enc=(encoding); end
640
+ def stand_alone?; end
641
+ def standalone; end
642
+ def standalone=(_arg0); end
643
+ def version; end
644
+ def version=(_arg0); end
645
+ def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
646
+ def writeencoding; end
647
+ def writethis; end
648
+ def xmldecl(version, encoding, standalone); end
649
+
650
+ private
651
+
652
+ def content(enc); end
653
+
654
+ class << self
655
+ def default; end
656
+ end
657
+ end
658
+
659
+ class REXML::XPathNode
660
+ def initialize(node, context = T.unsafe(nil)); end
661
+
662
+ def context; end
663
+ def position; end
664
+ def raw_node; end
665
+ end
666
+
667
+ class REXML::XPathParser
668
+ include ::REXML::XMLTokens
669
+
670
+ def initialize(strict: T.unsafe(nil)); end
671
+
672
+ def []=(variable_name, value); end
673
+ def first(path_stack, node); end
674
+ def get_first(path, nodeset); end
675
+ def match(path_stack, nodeset); end
676
+ def namespaces=(namespaces = T.unsafe(nil)); end
677
+ def parse(path, nodeset); end
678
+ def predicate(path, nodeset); end
679
+ def variables=(vars = T.unsafe(nil)); end
680
+
681
+ private
682
+
683
+ def child(nodeset); end
684
+ def compare(a, operator, b); end
685
+ def descendant(nodeset, include_self); end
686
+ def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
687
+ def each_unnode(nodeset); end
688
+ def enter(tag, *args); end
689
+ def equality_relational_compare(set1, op, set2); end
690
+ def evaluate_predicate(expression, nodesets); end
691
+ def expr(path_stack, nodeset, context = T.unsafe(nil)); end
692
+ def filter_nodeset(nodeset); end
693
+ def following(node); end
694
+ def following_node_of(node); end
695
+ def get_namespace(node, prefix); end
696
+ def leave(tag, *args); end
697
+ def next_sibling_node(node); end
698
+ def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
699
+ def norm(b); end
700
+ def normalize_compare_values(a, operator, b); end
701
+ def preceding(node); end
702
+ def preceding_node_of(node); end
703
+ def sort(array_of_nodes, order); end
704
+ def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end
705
+ def strict?; end
706
+ def trace(*args); end
707
+ def unnode(nodeset); end
708
+ def value_type(value); end
709
+ end