passbase 1.0.0 → 1.2.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 +4 -4
- data/Gemfile.lock +4 -2
- data/README.md +13 -13
- data/docs/Identity.md +4 -0
- data/docs/IdentityApi.md +72 -13
- data/docs/IdentityOwner.md +21 -0
- data/docs/IdentityResource.md +2 -2
- data/docs/ProjectSettings.md +2 -2
- data/docs/ProjectSettingsVerificationSteps.md +1 -1
- data/docs/Resource.md +2 -2
- data/docs/ResourceInput.md +2 -2
- data/docs/User.md +1 -1
- data/lib/passbase.rb +1 -1
- data/lib/passbase/api/identity_api.rb +92 -18
- data/lib/passbase/api_client.rb +1 -1
- data/lib/passbase/models/identity.rb +20 -1
- data/lib/passbase/models/identity_owner.rb +229 -0
- data/lib/passbase/models/identity_resource.rb +2 -1
- data/lib/passbase/models/project_settings.rb +1 -1
- data/lib/passbase/models/project_settings_customizations.rb +0 -34
- data/lib/passbase/models/project_settings_verification_steps.rb +1 -1
- data/lib/passbase/models/resource.rb +2 -1
- data/lib/passbase/models/resource_input.rb +2 -1
- data/lib/passbase/version.rb +1 -1
- data/spec/api/identity_api_spec.rb +20 -6
- data/spec/models/{resource_type_spec.rb → identity_owner_spec.rb} +24 -6
- data/spec/models/identity_spec.rb +12 -0
- data/spec/models/project_settings_customizations_spec.rb +0 -4
- data/vendor/bundle/ruby/2.7.0/bin/htmldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/bin/ldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out +14 -14
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/mkmf.log +15 -15
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/psych.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +5 -5
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/breakpoint.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/locker.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/threads.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/CHANGELOG.md +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/LICENSE.md +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/README.md +2 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/examples/client_spec.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/examples/client_test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter.rb +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_http.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_http_ssl_patch.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_synchrony.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/excon.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/httpclient.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/net_http.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/net_http_persistent.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/patron.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/rack.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/typhoeus.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/autoload.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/connection.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/dependency_loader.rb +3 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/encoders/flat_params_encoder.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/encoders/nested_params_encoder.rb +7 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/error.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/file_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/logging/formatter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/middleware.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/middleware_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options.rb +4 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/connection_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/env.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/proxy_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/request_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/ssl_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/param_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/parameters.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/rack_builder.rb +13 -12
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request.rb +20 -10
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/authorization.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/basic_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/instrumentation.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/multipart.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/retry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/token_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/url_encoded.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response/logger.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response/raise_error.rb +12 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/headers.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/params_hash.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/external_adapters/faraday_specs_setup.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/em_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/em_synchrony_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/excon_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/httpclient_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/net_http_persistent_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/net_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/patron_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/rack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/test_spec.rb +260 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/typhoeus_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter_registry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/composite_read_io_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/connection_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/error_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/env_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/proxy_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/request_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/params_encoders/flat_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/params_encoders/nested_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/rack_builder_spec.rb +149 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/authorization_spec.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/instrumentation_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/multipart_spec.rb +41 -13
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/retry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/url_encoded_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request_spec.rb +16 -5
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/logger_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/raise_error_spec.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/utils/headers_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/utils_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/disabling_stub.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/fake_safe_buffer.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/helper_methods.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/adapter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/request_method.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/streaming_response_checker.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/webmock_rack_app.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +6 -6
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/Makefile +6 -6
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/README.md +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/lib/ruby2_keywords.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/ruby2_keywords.gemspec +16 -0
- data/vendor/bundle/ruby/2.7.0/specifications/ast-2.4.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/byebug-11.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/coderay-1.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/{faraday-1.0.1.gemspec → faraday-1.1.0.gemspec} +0 -0
- data/vendor/bundle/ruby/2.7.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/method_source-1.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/multipart-post-2.1.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parallel-1.19.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parser-2.7.1.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/psych-3.2.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rainbow-3.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rubocop-0.66.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/ruby-progressbar-1.10.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/ruby2_keywords-0.0.2.gemspec +18 -0
- data/vendor/bundle/ruby/2.7.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
- data/walkthrough.md +2 -2
- metadata +123 -117
- data/docs/ResourceType.md +0 -16
- data/lib/passbase/models/resource_type.rb +0 -41
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.0.1.gem +0 -0
data/lib/passbase/api_client.rb
CHANGED
@@ -30,7 +30,7 @@ module Passbase
|
|
30
30
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
31
|
def initialize(config = Configuration.default)
|
32
32
|
@config = config
|
33
|
-
@user_agent = "passbase/ruby@1.
|
33
|
+
@user_agent = "passbase/ruby@1.2.0"
|
34
34
|
@default_headers = {
|
35
35
|
'Content-Type' => 'application/json',
|
36
36
|
'User-Agent' => @user_agent
|
@@ -20,6 +20,11 @@ module Passbase
|
|
20
20
|
# Current state of the identity in Passbase's systems
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
+
attr_accessor :owner
|
24
|
+
|
25
|
+
# Float between 0 and 1 representing our confidence that this identity is valid. 0 meaning we couldn't verify any of the information provided with accuracy, and 1 absolute confidence.
|
26
|
+
attr_accessor :score
|
27
|
+
|
23
28
|
# Unix-timestamp of when the identity was created
|
24
29
|
attr_accessor :created
|
25
30
|
|
@@ -58,6 +63,8 @@ module Passbase
|
|
58
63
|
{
|
59
64
|
:'id' => :'id',
|
60
65
|
:'status' => :'status',
|
66
|
+
:'owner' => :'owner',
|
67
|
+
:'score' => :'score',
|
61
68
|
:'created' => :'created',
|
62
69
|
:'updated' => :'updated',
|
63
70
|
:'resources' => :'resources',
|
@@ -70,6 +77,8 @@ module Passbase
|
|
70
77
|
{
|
71
78
|
:'id' => :'String',
|
72
79
|
:'status' => :'String',
|
80
|
+
:'owner' => :'IdentityOwner',
|
81
|
+
:'score' => :'Float',
|
73
82
|
:'created' => :'Integer',
|
74
83
|
:'updated' => :'Integer',
|
75
84
|
:'resources' => :'Array<IdentityResource>',
|
@@ -106,6 +115,14 @@ module Passbase
|
|
106
115
|
self.status = attributes[:'status']
|
107
116
|
end
|
108
117
|
|
118
|
+
if attributes.key?(:'owner')
|
119
|
+
self.owner = attributes[:'owner']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'score')
|
123
|
+
self.score = attributes[:'score']
|
124
|
+
end
|
125
|
+
|
109
126
|
if attributes.key?(:'created')
|
110
127
|
self.created = attributes[:'created']
|
111
128
|
end
|
@@ -157,6 +174,8 @@ module Passbase
|
|
157
174
|
self.class == o.class &&
|
158
175
|
id == o.id &&
|
159
176
|
status == o.status &&
|
177
|
+
owner == o.owner &&
|
178
|
+
score == o.score &&
|
160
179
|
created == o.created &&
|
161
180
|
updated == o.updated &&
|
162
181
|
resources == o.resources &&
|
@@ -172,7 +191,7 @@ module Passbase
|
|
172
191
|
# Calculates hash code according to all attributes.
|
173
192
|
# @return [Integer] Hash code
|
174
193
|
def hash
|
175
|
-
[id, status, created, updated, resources, watchlist].hash
|
194
|
+
[id, status, owner, score, created, updated, resources, watchlist].hash
|
176
195
|
end
|
177
196
|
|
178
197
|
# Builds the object from hash
|
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Verification API
|
3
|
+
|
4
|
+
## Introduction <span class=\"subtext\"> Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Passbase. In case of feedback or questions you can reach us under this email address: [developer@passbase.com](mailto:developer@passbase.com). </span> A User submits a video selfie and valid identifying __Resources__ during a __Verification__ guided by the Passbase client-side integration. Once all the necessary __Resources__ are submitted, __Data points__ are extracted, digitized, and authenticated. These Data points then becomes part of the User's __Identity__. The User then consents to share __Resources__ and/or __Data points__ from their Identity with you. This information is passed to you and can be used to make decisions about a User (e.g. activate account). This table below explains our terminology further. | Term | Description | |-----------------------------------------|-------------| | [Identity](#tag/identity_model) | A set of Data points and Resources related to and owned by one single User. This data can be accessed by you through a Verification. | | Data points | Any data about a User extracted from a Resource (E.g. Passport Number, or Age). | | [Resource](#tag/resource_model) | A source document used to generate the Data points for a User (E.g. Passport). | | [User](#tag/user_model) | The owner of an email address associated with an Identity. | | Verification | A transaction through which a User consents to share Data points with you. If the Data points you request are not already available in the User's Identity, the Passbase client will ask the User to submit the necessary Resource required to extract them. | | Re-authentication (login) | A transaction through which a User can certify the ownership of Personal data previously shared through an Authentication. | # Authentication <span class=\"subtext\"> There are two forms of authentication for the API: <br/>• API Key <br/>• Bearer JWT Token </span>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Passbase
|
16
|
+
class IdentityOwner
|
17
|
+
# Email of the user the identity belongs to
|
18
|
+
attr_accessor :email
|
19
|
+
|
20
|
+
# First name of the user the identity belongs to
|
21
|
+
attr_accessor :first_name
|
22
|
+
|
23
|
+
# Last name of the user the identity belongs to
|
24
|
+
attr_accessor :last_name
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'email' => :'email',
|
30
|
+
:'first_name' => :'first_name',
|
31
|
+
:'last_name' => :'last_name'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'email' => :'String',
|
39
|
+
:'first_name' => :'String',
|
40
|
+
:'last_name' => :'String'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Passbase::IdentityOwner` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Passbase::IdentityOwner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'email')
|
66
|
+
self.email = attributes[:'email']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'first_name')
|
70
|
+
self.first_name = attributes[:'first_name']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'last_name')
|
74
|
+
self.last_name = attributes[:'last_name']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
invalid_properties
|
83
|
+
end
|
84
|
+
|
85
|
+
# Check to see if the all the properties in the model are valid
|
86
|
+
# @return true if the model is valid
|
87
|
+
def valid?
|
88
|
+
true
|
89
|
+
end
|
90
|
+
|
91
|
+
# Checks equality by comparing each attribute.
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
email == o.email &&
|
97
|
+
first_name == o.first_name &&
|
98
|
+
last_name == o.last_name
|
99
|
+
end
|
100
|
+
|
101
|
+
# @see the `==` method
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def eql?(o)
|
104
|
+
self == o
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
def hash
|
110
|
+
[email, first_name, last_name].hash
|
111
|
+
end
|
112
|
+
|
113
|
+
# Builds the object from hash
|
114
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @return [Object] Returns the model itself
|
116
|
+
def self.build_from_hash(attributes)
|
117
|
+
new.build_from_hash(attributes)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Builds the object from hash
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
+
# @return [Object] Returns the model itself
|
123
|
+
def build_from_hash(attributes)
|
124
|
+
return nil unless attributes.is_a?(Hash)
|
125
|
+
self.class.openapi_types.each_pair do |key, type|
|
126
|
+
if type =~ /\AArray<(.*)>/i
|
127
|
+
# check to ensure the input is an array given that the attribute
|
128
|
+
# is documented as an array but the input is not
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
131
|
+
end
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
135
|
+
self.send("#{key}=", nil)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
self
|
140
|
+
end
|
141
|
+
|
142
|
+
# Deserializes the data based on type
|
143
|
+
# @param string type Data type
|
144
|
+
# @param string value Value to be deserialized
|
145
|
+
# @return [Object] Deserialized data
|
146
|
+
def _deserialize(type, value)
|
147
|
+
case type.to_sym
|
148
|
+
when :DateTime
|
149
|
+
DateTime.parse(value)
|
150
|
+
when :Date
|
151
|
+
Date.parse(value)
|
152
|
+
when :String
|
153
|
+
value.to_s
|
154
|
+
when :Integer
|
155
|
+
value.to_i
|
156
|
+
when :Float
|
157
|
+
value.to_f
|
158
|
+
when :Boolean
|
159
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
160
|
+
true
|
161
|
+
else
|
162
|
+
false
|
163
|
+
end
|
164
|
+
when :Object
|
165
|
+
# generic object (usually a Hash), return directly
|
166
|
+
value
|
167
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
168
|
+
inner_type = Regexp.last_match[:inner_type]
|
169
|
+
value.map { |v| _deserialize(inner_type, v) }
|
170
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
171
|
+
k_type = Regexp.last_match[:k_type]
|
172
|
+
v_type = Regexp.last_match[:v_type]
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each do |k, v|
|
175
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
else # model
|
179
|
+
Passbase.const_get(type).build_from_hash(value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the string representation of the object
|
184
|
+
# @return [String] String presentation of the object
|
185
|
+
def to_s
|
186
|
+
to_hash.to_s
|
187
|
+
end
|
188
|
+
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_body
|
192
|
+
to_hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the object in the form of hash
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_hash
|
198
|
+
hash = {}
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
200
|
+
value = self.send(attr)
|
201
|
+
if value.nil?
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
|
+
end
|
205
|
+
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -17,6 +17,7 @@ module Passbase
|
|
17
17
|
# Dynamic key/value hashmap of the data extracted from the resource.
|
18
18
|
attr_accessor :datapoints
|
19
19
|
|
20
|
+
# All resource types that passbase supports
|
20
21
|
attr_accessor :type
|
21
22
|
|
22
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,7 +32,7 @@ module Passbase
|
|
31
32
|
def self.openapi_types
|
32
33
|
{
|
33
34
|
:'datapoints' => :'Object',
|
34
|
-
:'type' => :'
|
35
|
+
:'type' => :'String'
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
@@ -17,7 +17,7 @@ module Passbase
|
|
17
17
|
# Unique ID of the project
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
#
|
20
|
+
# Slugs are meant to be a way to verify people just with the link
|
21
21
|
attr_accessor :slug
|
22
22
|
|
23
23
|
attr_accessor :environment
|
@@ -24,28 +24,6 @@ module Passbase
|
|
24
24
|
# Font used in the verification flow
|
25
25
|
attr_accessor :font_family
|
26
26
|
|
27
|
-
class EnumAttributeValidator
|
28
|
-
attr_reader :datatype
|
29
|
-
attr_reader :allowable_values
|
30
|
-
|
31
|
-
def initialize(datatype, allowable_values)
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
33
|
-
case datatype.to_s
|
34
|
-
when /Integer/i
|
35
|
-
value.to_i
|
36
|
-
when /Float/i
|
37
|
-
value.to_f
|
38
|
-
else
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
def valid?(value)
|
45
|
-
!value || allowable_values.include?(value)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
28
|
def self.attribute_map
|
51
29
|
{
|
@@ -108,21 +86,9 @@ module Passbase
|
|
108
86
|
# Check to see if the all the properties in the model are valid
|
109
87
|
# @return true if the model is valid
|
110
88
|
def valid?
|
111
|
-
font_family_validator = EnumAttributeValidator.new('String', ["Arial", "Exo", "Open Sans", "Lato", "Baskerville"])
|
112
|
-
return false unless font_family_validator.valid?(@font_family)
|
113
89
|
true
|
114
90
|
end
|
115
91
|
|
116
|
-
# Custom attribute writer method checking allowed values (enum).
|
117
|
-
# @param [Object] font_family Object to be assigned
|
118
|
-
def font_family=(font_family)
|
119
|
-
validator = EnumAttributeValidator.new('String', ["Arial", "Exo", "Open Sans", "Lato", "Baskerville"])
|
120
|
-
unless validator.valid?(font_family)
|
121
|
-
fail ArgumentError, "invalid value for \"font_family\", must be one of #{validator.allowable_values}."
|
122
|
-
end
|
123
|
-
@font_family = font_family
|
124
|
-
end
|
125
|
-
|
126
92
|
# Checks equality by comparing each attribute.
|
127
93
|
# @param [Object] Object to be compared
|
128
94
|
def ==(o)
|
@@ -26,6 +26,7 @@ module Passbase
|
|
26
26
|
# Unix-timestamp of when the resource was updated
|
27
27
|
attr_accessor :updated
|
28
28
|
|
29
|
+
# All resource types that passbase supports
|
29
30
|
attr_accessor :type
|
30
31
|
|
31
32
|
attr_accessor :resource_files
|
@@ -71,7 +72,7 @@ module Passbase
|
|
71
72
|
:'status' => :'String',
|
72
73
|
:'created' => :'Integer',
|
73
74
|
:'updated' => :'Integer',
|
74
|
-
:'type' => :'
|
75
|
+
:'type' => :'String',
|
75
76
|
:'resource_files' => :'Array<Object>'
|
76
77
|
}
|
77
78
|
end
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module Passbase
|
16
16
|
class ResourceInput
|
17
|
+
# All resource types that passbase supports
|
17
18
|
attr_accessor :type
|
18
19
|
|
19
20
|
# 2-letter code of the country
|
@@ -39,7 +40,7 @@ module Passbase
|
|
39
40
|
# Attribute type mapping.
|
40
41
|
def self.openapi_types
|
41
42
|
{
|
42
|
-
:'type' => :'
|
43
|
+
:'type' => :'String',
|
43
44
|
:'country' => :'String',
|
44
45
|
:'resource_files' => :'Array<Array>',
|
45
46
|
:'resource_data' => :'Object',
|
data/lib/passbase/version.rb
CHANGED
@@ -32,6 +32,18 @@ describe 'IdentityApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for get_identity_by_id
|
36
|
+
# Get identity
|
37
|
+
# Retrieve an identity by providing the identity ID.
|
38
|
+
# @param id Unique ID of the identity to return
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Identity]
|
41
|
+
describe 'get_identity_by_id test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
35
47
|
# unit tests for get_identity_resource_by_id
|
36
48
|
# Get resource
|
37
49
|
# Get a resource attached to an identity by providing the resource ID.
|
@@ -45,13 +57,15 @@ describe 'IdentityApi' do
|
|
45
57
|
end
|
46
58
|
end
|
47
59
|
|
48
|
-
# unit tests for
|
49
|
-
# Get
|
50
|
-
#
|
51
|
-
# @param id
|
60
|
+
# unit tests for get_identity_resource_file_by_id
|
61
|
+
# Get resource file
|
62
|
+
# Get a raw resource file attached to an identity by providing the resource ID and the resource file ID. This is a protected route and you'll need a specific government authorization to access it.
|
63
|
+
# @param id Identity id
|
64
|
+
# @param resource_id Resource id
|
65
|
+
# @param resource_file_id Resource file id
|
52
66
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [
|
54
|
-
describe '
|
67
|
+
# @return [ResourceFile]
|
68
|
+
describe 'get_identity_resource_file_by_id test' do
|
55
69
|
it 'should work' do
|
56
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
71
|
end
|