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.
- checksums.yaml +7 -0
- data/.github/CODEOWNERS +5 -0
- data/.github/pull_request_template.md +11 -0
- data/.github/renovate.json +5 -0
- data/.gitignore +49 -0
- data/.rspec +1 -0
- data/.rubocop.yml +24 -0
- data/.ruby-version +1 -0
- data/.semaphore/rubygems.yml +24 -0
- data/.semaphore/semaphore.yml +51 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +126 -0
- data/Gemfile.lock.old +127 -0
- data/LICENSE +21 -0
- data/README.md +53 -0
- data/bin/build +3 -0
- data/bin/console +3 -0
- data/bin/docs +5 -0
- data/bin/publish +3 -0
- data/bin/tapioca +29 -0
- data/codecov.yml +12 -0
- data/docs/WorkOS/APIError.html +160 -0
- data/docs/WorkOS/AuditLog.html +235 -0
- data/docs/WorkOS/AuditTrail.html +235 -0
- data/docs/WorkOS/AuthenticationError.html +160 -0
- data/docs/WorkOS/Base.html +287 -0
- data/docs/WorkOS/Client.html +504 -0
- data/docs/WorkOS/InvalidRequestError.html +160 -0
- data/docs/WorkOS/Profile.html +788 -0
- data/docs/WorkOS/RequestError.html +135 -0
- data/docs/WorkOS/SSO.html +691 -0
- data/docs/WorkOS/Types/ProfileStruct.html +135 -0
- data/docs/WorkOS/Types/Provider.html +135 -0
- data/docs/WorkOS/Types.html +128 -0
- data/docs/WorkOS/WorkOSError.html +447 -0
- data/docs/WorkOS.html +324 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +252 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +250 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +267 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/workosv2/audit_log_export.rb +55 -0
- data/lib/workosv2/audit_logs.rb +114 -0
- data/lib/workosv2/audit_trail.rb +111 -0
- data/lib/workosv2/challenge.rb +55 -0
- data/lib/workosv2/client.rb +186 -0
- data/lib/workosv2/configuration.rb +17 -0
- data/lib/workosv2/connection.rb +66 -0
- data/lib/workosv2/deprecated_hash_wrapper.rb +76 -0
- data/lib/workosv2/directory.rb +65 -0
- data/lib/workosv2/directory_group.rb +68 -0
- data/lib/workosv2/directory_sync.rb +218 -0
- data/lib/workosv2/directory_user.rb +97 -0
- data/lib/workosv2/errors.rb +81 -0
- data/lib/workosv2/event.rb +51 -0
- data/lib/workosv2/events.rb +52 -0
- data/lib/workosv2/factor.rb +54 -0
- data/lib/workosv2/hash_provider.rb +19 -0
- data/lib/workosv2/mfa.rb +178 -0
- data/lib/workosv2/organization.rb +57 -0
- data/lib/workosv2/organizations.rb +188 -0
- data/lib/workosv2/passwordless.rb +85 -0
- data/lib/workosv2/portal.rb +66 -0
- data/lib/workosv2/profile.rb +76 -0
- data/lib/workosv2/profile_and_token.rb +29 -0
- data/lib/workosv2/sso.rb +297 -0
- data/lib/workosv2/types/audit_log_export_struct.rb +17 -0
- data/lib/workosv2/types/challenge_struct.rb +18 -0
- data/lib/workosv2/types/connection_struct.rb +20 -0
- data/lib/workosv2/types/directory_group_struct.rb +19 -0
- data/lib/workosv2/types/directory_struct.rb +19 -0
- data/lib/workosv2/types/directory_user_struct.rb +26 -0
- data/lib/workosv2/types/event_struct.rb +15 -0
- data/lib/workosv2/types/factor_struct.rb +18 -0
- data/lib/workosv2/types/intent_enum.rb +17 -0
- data/lib/workosv2/types/list_struct.rb +13 -0
- data/lib/workosv2/types/organization_struct.rb +17 -0
- data/lib/workosv2/types/passwordless_session_struct.rb +17 -0
- data/lib/workosv2/types/profile_struct.rb +21 -0
- data/lib/workosv2/types/provider_enum.rb +15 -0
- data/lib/workosv2/types/verify_challenge_struct.rb +13 -0
- data/lib/workosv2/types/webhook_struct.rb +15 -0
- data/lib/workosv2/types.rb +25 -0
- data/lib/workosv2/verify_challenge.rb +39 -0
- data/lib/workosv2/version.rb +6 -0
- data/lib/workosv2/webhook.rb +51 -0
- data/lib/workosv2/webhooks.rb +217 -0
- data/lib/workosv2.rb +79 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
- data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
- data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
- data/sorbet/rbi/gems/rake@13.0.3.rbi +807 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +709 -0
- data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +2467 -0
- data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +1569 -0
- data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +1493 -0
- data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
- data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
- data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
- data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
- data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
- data/sorbet/rbi/gems/vcr@5.0.0.rbi +699 -0
- data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
- data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- data/spec/lib/workos/audit_logs_spec.rb +151 -0
- data/spec/lib/workos/audit_trail_spec.rb +146 -0
- data/spec/lib/workos/configuration_spec.rb +61 -0
- data/spec/lib/workos/directory_sync_spec.rb +492 -0
- data/spec/lib/workos/directory_user_spec.rb +36 -0
- data/spec/lib/workos/event_spec.rb +88 -0
- data/spec/lib/workos/mfa_spec.rb +281 -0
- data/spec/lib/workos/organizations_spec.rb +257 -0
- data/spec/lib/workos/passwordless_spec.rb +77 -0
- data/spec/lib/workos/portal_spec.rb +87 -0
- data/spec/lib/workos/sso_spec.rb +650 -0
- data/spec/lib/workos/webhooks_spec.rb +236 -0
- data/spec/spec_helper.rb +56 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event.yml +59 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_custom_idempotency_key.yml +60 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_event_invalid.yml +59 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export.yml +76 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/create_export_with_filters.yml +77 -0
- data/spec/support/fixtures/vcr_cassettes/audit_logs/get_export.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event.yml +65 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_custom_idempotency_key.yml +67 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_event_invalid.yml +68 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_and_payload.yml +131 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/create_events_duplicate_idempotency_key_different_payload.yml +134 -0
- data/spec/support/fixtures/vcr_cassettes/audit_trail/get_events.yml +61 -0
- data/spec/support/fixtures/vcr_cassettes/base/execute_request_unauthenticated.yml +66 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_invalid_id.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_directory_with_valid_id.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_group_with_invalid_id.yml +62 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/get_user_with_invalid_id.yml +62 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_after.yml +87 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_before.yml +89 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_domain.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +85 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_no_options.yml +93 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +85 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_limit.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_no_options.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +186 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +88 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +194 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +186 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +189 -0
- data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_no_options.yml +74 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_after.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_event.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_no_options.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/events/list_events_with_range.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_sms_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/challenge_factor_totp_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/delete_factor.yml +80 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_sms_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/enroll_factor_totp_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_invalid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/get_factor_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_expired.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_invalid.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/mfa/verify_challenge_generic_valid_is_false.yml +82 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_different_payload.yml +155 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_duplicate_idempotency_key_and_payload.yml +154 -0
- data/spec/support/fixtures/vcr_cassettes/organization/create_with_idempotency_key.yml +79 -0
- data/spec/support/fixtures/vcr_cassettes/organization/delete.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/delete_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/get.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/organization/get_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/organization/list.yml +87 -0
- data/spec/support/fixtures/vcr_cassettes/organization/update.yml +84 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/create_session.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/create_session_invalid.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/send_session.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/passwordless/send_session_invalid.yml +73 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_audit_logs.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_invalid.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/portal/generate_link_sso.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_invalid_id.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/delete_connection_with_valid_id.yml +70 -0
- data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_invalid_id.yml +72 -0
- data/spec/support/fixtures/vcr_cassettes/sso/get_connection_with_valid_id.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +90 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_domain.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +83 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +89 -0
- data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_organization_id.yml +86 -0
- data/spec/support/fixtures/vcr_cassettes/sso/profile.yml +74 -0
- data/spec/support/profile.txt +1 -0
- data/spec/support/shared_examples/client_spec.rb +30 -0
- data/spec/support/webhook_payload.txt +1 -0
- data/workosv2.gemspec +38 -0
- metadata +531 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `pry` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem pry`.
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `public_suffix` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem public_suffix`.
|
6
|
+
|
7
|
+
module PublicSuffix
|
8
|
+
class << self
|
9
|
+
def decompose(name, rule); end
|
10
|
+
def domain(name, **options); end
|
11
|
+
def normalize(name); end
|
12
|
+
def parse(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
13
|
+
def valid?(name, list: T.unsafe(nil), default_rule: T.unsafe(nil), ignore_private: T.unsafe(nil)); end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
PublicSuffix::BANG = T.let(T.unsafe(nil), String)
|
18
|
+
PublicSuffix::DOT = T.let(T.unsafe(nil), String)
|
19
|
+
|
20
|
+
class PublicSuffix::Domain
|
21
|
+
def initialize(*args); end
|
22
|
+
|
23
|
+
def domain; end
|
24
|
+
def domain?; end
|
25
|
+
def name; end
|
26
|
+
def sld; end
|
27
|
+
def subdomain; end
|
28
|
+
def subdomain?; end
|
29
|
+
def tld; end
|
30
|
+
def to_a; end
|
31
|
+
def to_s; end
|
32
|
+
def trd; end
|
33
|
+
|
34
|
+
class << self
|
35
|
+
def name_to_labels(name); end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class PublicSuffix::DomainInvalid < ::PublicSuffix::Error; end
|
40
|
+
class PublicSuffix::DomainNotAllowed < ::PublicSuffix::DomainInvalid; end
|
41
|
+
class PublicSuffix::Error < ::StandardError; end
|
42
|
+
|
43
|
+
class PublicSuffix::List
|
44
|
+
def initialize; end
|
45
|
+
|
46
|
+
def <<(rule); end
|
47
|
+
def ==(other); end
|
48
|
+
def add(rule); end
|
49
|
+
def clear; end
|
50
|
+
def default_rule; end
|
51
|
+
def each(&block); end
|
52
|
+
def empty?; end
|
53
|
+
def eql?(other); end
|
54
|
+
def find(name, default: T.unsafe(nil), **options); end
|
55
|
+
def size; end
|
56
|
+
|
57
|
+
protected
|
58
|
+
|
59
|
+
def rules; end
|
60
|
+
|
61
|
+
private
|
62
|
+
|
63
|
+
def entry_to_rule(entry, value); end
|
64
|
+
def rule_to_entry(rule); end
|
65
|
+
def select(name, ignore_private: T.unsafe(nil)); end
|
66
|
+
|
67
|
+
class << self
|
68
|
+
def default(**options); end
|
69
|
+
def default=(value); end
|
70
|
+
def parse(input, private_domains: T.unsafe(nil)); end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
PublicSuffix::List::DEFAULT_LIST_PATH = T.let(T.unsafe(nil), String)
|
75
|
+
|
76
|
+
module PublicSuffix::Rule
|
77
|
+
class << self
|
78
|
+
def default; end
|
79
|
+
def factory(content, private: T.unsafe(nil)); end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
class PublicSuffix::Rule::Base
|
84
|
+
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
85
|
+
|
86
|
+
def ==(other); end
|
87
|
+
def decompose(*_arg0); end
|
88
|
+
def eql?(other); end
|
89
|
+
def length; end
|
90
|
+
def match?(name); end
|
91
|
+
def parts; end
|
92
|
+
def private; end
|
93
|
+
def value; end
|
94
|
+
|
95
|
+
class << self
|
96
|
+
def build(content, private: T.unsafe(nil)); end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
class PublicSuffix::Rule::Entry < ::Struct
|
101
|
+
def length; end
|
102
|
+
def length=(_); end
|
103
|
+
def private; end
|
104
|
+
def private=(_); end
|
105
|
+
def type; end
|
106
|
+
def type=(_); end
|
107
|
+
|
108
|
+
class << self
|
109
|
+
def [](*_arg0); end
|
110
|
+
def inspect; end
|
111
|
+
def keyword_init?; end
|
112
|
+
def members; end
|
113
|
+
def new(*_arg0); end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
class PublicSuffix::Rule::Exception < ::PublicSuffix::Rule::Base
|
118
|
+
def decompose(domain); end
|
119
|
+
def parts; end
|
120
|
+
def rule; end
|
121
|
+
|
122
|
+
class << self
|
123
|
+
def build(content, private: T.unsafe(nil)); end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class PublicSuffix::Rule::Normal < ::PublicSuffix::Rule::Base
|
128
|
+
def decompose(domain); end
|
129
|
+
def parts; end
|
130
|
+
def rule; end
|
131
|
+
end
|
132
|
+
|
133
|
+
class PublicSuffix::Rule::Wildcard < ::PublicSuffix::Rule::Base
|
134
|
+
def initialize(value:, length: T.unsafe(nil), private: T.unsafe(nil)); end
|
135
|
+
|
136
|
+
def decompose(domain); end
|
137
|
+
def parts; end
|
138
|
+
def rule; end
|
139
|
+
|
140
|
+
class << self
|
141
|
+
def build(content, private: T.unsafe(nil)); end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
PublicSuffix::STAR = T.let(T.unsafe(nil), String)
|
146
|
+
PublicSuffix::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,153 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `rainbow` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rainbow`.
|
6
|
+
|
7
|
+
module Rainbow
|
8
|
+
class << self
|
9
|
+
def enabled; end
|
10
|
+
def enabled=(value); end
|
11
|
+
def global; end
|
12
|
+
def new; end
|
13
|
+
def uncolor(string); end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class Rainbow::Color
|
18
|
+
def ground; end
|
19
|
+
|
20
|
+
class << self
|
21
|
+
def build(ground, values); end
|
22
|
+
def parse_hex_color(hex); end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
class Rainbow::Color::Indexed < ::Rainbow::Color
|
27
|
+
def initialize(ground, num); end
|
28
|
+
|
29
|
+
def codes; end
|
30
|
+
def num; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class Rainbow::Color::Named < ::Rainbow::Color::Indexed
|
34
|
+
def initialize(ground, name); end
|
35
|
+
|
36
|
+
class << self
|
37
|
+
def color_names; end
|
38
|
+
def valid_names; end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
43
|
+
|
44
|
+
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
45
|
+
def initialize(ground, *values); end
|
46
|
+
|
47
|
+
def b; end
|
48
|
+
def codes; end
|
49
|
+
def g; end
|
50
|
+
def r; end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def code_from_rgb; end
|
55
|
+
|
56
|
+
class << self
|
57
|
+
def to_ansi_domain(value); end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
62
|
+
include ::Rainbow::X11ColorNames
|
63
|
+
|
64
|
+
def initialize(ground, name); end
|
65
|
+
|
66
|
+
class << self
|
67
|
+
def color_names; end
|
68
|
+
def valid_names; end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
class Rainbow::NullPresenter < ::String
|
73
|
+
def background(*_values); end
|
74
|
+
def bg(*_values); end
|
75
|
+
def black; end
|
76
|
+
def blink; end
|
77
|
+
def blue; end
|
78
|
+
def bold; end
|
79
|
+
def bright; end
|
80
|
+
def color(*_values); end
|
81
|
+
def cyan; end
|
82
|
+
def dark; end
|
83
|
+
def faint; end
|
84
|
+
def fg(*_values); end
|
85
|
+
def foreground(*_values); end
|
86
|
+
def green; end
|
87
|
+
def hide; end
|
88
|
+
def inverse; end
|
89
|
+
def italic; end
|
90
|
+
def magenta; end
|
91
|
+
def method_missing(method_name, *args); end
|
92
|
+
def red; end
|
93
|
+
def reset; end
|
94
|
+
def underline; end
|
95
|
+
def white; end
|
96
|
+
def yellow; end
|
97
|
+
|
98
|
+
private
|
99
|
+
|
100
|
+
def respond_to_missing?(method_name, *args); end
|
101
|
+
end
|
102
|
+
|
103
|
+
class Rainbow::Presenter < ::String
|
104
|
+
def background(*values); end
|
105
|
+
def bg(*values); end
|
106
|
+
def black; end
|
107
|
+
def blink; end
|
108
|
+
def blue; end
|
109
|
+
def bold; end
|
110
|
+
def bright; end
|
111
|
+
def color(*values); end
|
112
|
+
def cyan; end
|
113
|
+
def dark; end
|
114
|
+
def faint; end
|
115
|
+
def fg(*values); end
|
116
|
+
def foreground(*values); end
|
117
|
+
def green; end
|
118
|
+
def hide; end
|
119
|
+
def inverse; end
|
120
|
+
def italic; end
|
121
|
+
def magenta; end
|
122
|
+
def method_missing(method_name, *args); end
|
123
|
+
def red; end
|
124
|
+
def reset; end
|
125
|
+
def underline; end
|
126
|
+
def white; end
|
127
|
+
def yellow; end
|
128
|
+
|
129
|
+
private
|
130
|
+
|
131
|
+
def respond_to_missing?(method_name, *args); end
|
132
|
+
def wrap_with_sgr(codes); end
|
133
|
+
end
|
134
|
+
|
135
|
+
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
136
|
+
|
137
|
+
class Rainbow::StringUtils
|
138
|
+
class << self
|
139
|
+
def uncolor(string); end
|
140
|
+
def wrap_with_sgr(string, codes); end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class Rainbow::Wrapper
|
145
|
+
def initialize(enabled = T.unsafe(nil)); end
|
146
|
+
|
147
|
+
def enabled; end
|
148
|
+
def enabled=(_arg0); end
|
149
|
+
def wrap(string); end
|
150
|
+
end
|
151
|
+
|
152
|
+
module Rainbow::X11ColorNames; end
|
153
|
+
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|