passbase 1.0.1 → 1.3.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 +15 -3
- data/README.md +16 -15
- data/docs/Cursor.md +8 -7
- data/docs/Identity.md +24 -17
- data/docs/IdentityApi.md +204 -61
- data/docs/IdentityOwner.md +22 -0
- data/docs/IdentityResource.md +10 -9
- data/docs/PaginatedIdentities.md +10 -9
- data/docs/PaginatedResources.md +10 -9
- data/docs/ProjectApi.md +29 -12
- data/docs/ProjectSettings.md +18 -17
- data/docs/ProjectSettingsCustomizations.md +12 -11
- data/docs/ProjectSettingsVerificationSteps.md +10 -9
- data/docs/Resource.md +18 -17
- data/docs/ResourceFile.md +14 -13
- data/docs/ResourceInput.md +16 -15
- data/docs/User.md +12 -11
- data/docs/WatchlistResponse.md +16 -15
- data/lib/passbase.rb +2 -1
- data/lib/passbase/api/identity_api.rb +109 -30
- data/lib/passbase/api/project_api.rb +5 -4
- data/lib/passbase/api_client.rb +42 -51
- data/lib/passbase/api_error.rb +1 -1
- data/lib/passbase/configuration.rb +42 -13
- data/lib/passbase/models/cursor.rb +18 -8
- data/lib/passbase/models/identity.rb +48 -9
- data/lib/passbase/models/identity_owner.rb +239 -0
- data/lib/passbase/models/identity_resource.rb +18 -8
- data/lib/passbase/models/paginated_identities.rb +18 -8
- data/lib/passbase/models/paginated_resources.rb +18 -8
- data/lib/passbase/models/project_settings.rb +19 -9
- data/lib/passbase/models/project_settings_customizations.rb +18 -42
- data/lib/passbase/models/project_settings_verification_steps.rb +18 -8
- data/lib/passbase/models/resource.rb +18 -8
- data/lib/passbase/models/resource_file.rb +18 -8
- data/lib/passbase/models/resource_input.rb +18 -8
- data/lib/passbase/models/user.rb +18 -8
- data/lib/passbase/models/watchlist_response.rb +18 -8
- data/lib/passbase/version.rb +3 -3
- data/passbase.gemspec +4 -4
- data/spec/api/identity_api_spec.rb +21 -7
- data/spec/api/project_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/cursor_spec.rb +4 -11
- data/spec/models/identity_owner_spec.rb +46 -0
- data/spec/models/identity_resource_spec.rb +4 -11
- data/spec/models/identity_spec.rb +23 -12
- data/spec/models/paginated_identities_spec.rb +4 -11
- data/spec/models/paginated_resources_spec.rb +4 -11
- data/spec/models/project_settings_customizations_spec.rb +4 -15
- data/spec/models/project_settings_spec.rb +5 -12
- data/spec/models/project_settings_verification_steps_spec.rb +4 -11
- data/spec/models/resource_file_spec.rb +4 -11
- data/spec/models/resource_input_spec.rb +4 -11
- data/spec/models/resource_spec.rb +5 -12
- data/spec/models/user_spec.rb +4 -11
- data/spec/models/watchlist_response_spec.rb +4 -11
- data/spec/spec_helper.rb +1 -1
- 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.4.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-em_http-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-em_synchrony-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-excon-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http-1.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/faraday-net_http_persistent-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.4.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/jaro_winkler-1.5.4/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/jaro_winkler-1.5.4/gem_make.out +67 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/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 → 2.7.0}/psych-3.2.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/{2.7.0-static → 2.7.0}/psych-3.2.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/mkmf.log +196 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/psych-3.2.0/psych.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +13 -13
- 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.4.2}/CHANGELOG.md +104 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/LICENSE.md +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/README.md +3 -5
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/examples/client_spec.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/examples/client_test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday.rb +55 -41
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter.rb +1 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/httpclient.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/patron.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/rack.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter/typhoeus.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/adapter_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/autoload.rb +1 -6
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/connection.rb +11 -4
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/dependency_loader.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/encoders/flat_params_encoder.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/encoders/nested_params_encoder.rb +7 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/error.rb +20 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/file_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/logging/formatter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/methods.rb +6 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/middleware.rb +31 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/middleware_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options.rb +4 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/connection_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/env.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/proxy_options.rb +4 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/request_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/options/ssl_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/param_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/parameters.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/rack_builder.rb +13 -12
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request.rb +20 -10
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/authorization.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/basic_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/instrumentation.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/multipart.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/retry.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/token_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/request/url_encoded.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response.rb +0 -6
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response/logger.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/response/raise_error.rb +12 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils/headers.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/lib/faraday/utils/params_hash.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/lib/faraday/version.rb +5 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/external_adapters/faraday_specs_setup.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/em_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/em_synchrony_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/excon_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/httpclient_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/net_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/patron_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/rack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/faraday/adapter/test_spec.rb +260 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter/typhoeus_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter_registry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/adapter_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/composite_read_io_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/connection_spec.rb +38 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/error_spec.rb +15 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/faraday/middleware_spec.rb +52 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/env_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/proxy_options_spec.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/options/request_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/params_encoders/flat_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/params_encoders/nested_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/rack_builder_spec.rb +149 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/authorization_spec.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/instrumentation_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/multipart_spec.rb +41 -13
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/retry_spec.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request/url_encoded_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/request_spec.rb +16 -5
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/logger_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response/raise_error_spec.rb +63 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/response_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/utils/headers_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday/utils_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/faraday_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/disabling_stub.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/fake_safe_buffer.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/helper_methods.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/adapter.rb +2 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/shared_examples/request_method.rb +39 -11
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/streaming_response_checker.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.4.2}/spec/support/webmock_rack_app.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/README.md +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http.rb +23 -20
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_http-1.0.0}/lib/faraday/adapter/em_http_ssl_patch.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/README.md +65 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony.rb +16 -13
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-em_synchrony-1.0.0}/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony.rb +12 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/README.md +61 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-excon-1.1.0}/lib/faraday/adapter/excon.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon.rb +11 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-excon-1.1.0/lib/faraday/excon/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/README.md +57 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-net_http-1.0.1}/lib/faraday/adapter/net_http.rb +21 -27
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http.rb +10 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/README.md +73 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-net_http_persistent-1.1.0}/lib/faraday/adapter/net_http_persistent.rb +11 -11
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent.rb +17 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-net_http_persistent-1.1.0/lib/faraday/net_http_persistent/version.rb +7 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +14 -14
- 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 +14 -14
- 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.4/LICENSE +22 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/README.md +67 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.4/lib/ruby2_keywords.rb +57 -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.4.2.gemspec +0 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_http-1.0.0.gemspec +52 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-em_synchrony-1.0.0.gemspec +56 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-excon-1.1.0.gemspec +52 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http-1.0.1.gemspec +50 -0
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-net_http_persistent-1.1.0.gemspec +48 -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.4.gemspec +19 -0
- data/vendor/bundle/ruby/2.7.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
- data/walkthrough.md +1 -1
- metadata +172 -125
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.0.1.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/jaro_winkler-1.5.4/gem_make.out +0 -64
- 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/mkmf.log +0 -197
- 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/faraday-1.0.1/lib/faraday/middleware.rb +0 -21
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/spec/faraday/adapter/net_http_persistent_spec.rb +0 -57
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.0.1/spec/faraday/middleware_spec.rb +0 -26
- data/vendor/bundle/ruby/2.7.0/specifications/faraday-1.0.1.gemspec +0 -0
data/docs/WatchlistResponse.md
CHANGED
@@ -2,24 +2,25 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**clean** | **Boolean** | Indicates whether the authentication watchlist check is clean or not | [optional]
|
8
|
-
**listings** | **Object** | Watchlist check findings | [optional]
|
9
|
-
**media** | **Array<Object>** | List of media entries, with the date, title, and url parameters | [optional]
|
10
|
-
**sources** | **Array<String>** | Array of listing sources (eg. sanction lists) | [optional]
|
11
|
-
**types** | **Array<String>** | What kind of alert or warning is associated with the entity (eg. sanction, pep, warning) | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **clean** | **Boolean** | Indicates whether the authentication watchlist check is clean or not | [optional] |
|
8
|
+
| **listings** | **Object** | Watchlist check findings | [optional] |
|
9
|
+
| **media** | **Array<Object>** | List of media entries, with the date, title, and url parameters | [optional] |
|
10
|
+
| **sources** | **Array<String>** | Array of listing sources (eg. sanction lists) | [optional] |
|
11
|
+
| **types** | **Array<String>** | What kind of alert or warning is associated with the entity (eg. sanction, pep, warning) | [optional] |
|
12
12
|
|
13
|
-
##
|
13
|
+
## Example
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
require '
|
16
|
+
require 'passbase'
|
17
17
|
|
18
|
-
instance = Passbase::WatchlistResponse.new(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
instance = Passbase::WatchlistResponse.new(
|
19
|
+
clean: false,
|
20
|
+
listings: {"finanstilsynet":{"url":"https://www.finanstilsynet.dk","name":"Denmark Finanstilsynet Foreign Regulators Warnings","aml_types":["warning"],"listing_started_utc":"2020-02-17T00:00:00Z"},"...":{}},
|
21
|
+
media: [{"url":"http://www.macnn.com/searchcatnext/tag/Puccini/2","title":"(no title)"}],
|
22
|
+
sources: ["african-development-bank","..."],
|
23
|
+
types: ["adverse-media","..."]
|
24
|
+
)
|
23
25
|
```
|
24
26
|
|
25
|
-
|
data/lib/passbase.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,7 @@ require 'passbase/configuration'
|
|
19
19
|
# Models
|
20
20
|
require 'passbase/models/cursor'
|
21
21
|
require 'passbase/models/identity'
|
22
|
+
require 'passbase/models/identity_owner'
|
22
23
|
require 'passbase/models/identity_resource'
|
23
24
|
require 'passbase/models/paginated_identities'
|
24
25
|
require 'passbase/models/paginated_resources'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,69 @@ module Passbase
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Get identity
|
23
|
+
# Retrieve an identity by providing the identity ID.
|
24
|
+
# @param id [String] Unique ID of the identity to return
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [Identity]
|
27
|
+
def get_identity_by_id(id, opts = {})
|
28
|
+
data, _status_code, _headers = get_identity_by_id_with_http_info(id, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Get identity
|
33
|
+
# Retrieve an identity by providing the identity ID.
|
34
|
+
# @param id [String] Unique ID of the identity to return
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
|
37
|
+
def get_identity_by_id_with_http_info(id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.get_identity_by_id ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'id' is set
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.get_identity_by_id"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:debug_body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:debug_return_type] || 'Identity'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:operation => :"IdentityApi.get_identity_by_id",
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: IdentityApi#get_identity_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
22
85
|
# Get resource
|
23
86
|
# Get a resource attached to an identity by providing the resource ID.
|
24
87
|
# @param id [String] Identity id
|
@@ -49,7 +112,7 @@ module Passbase
|
|
49
112
|
fail ArgumentError, "Missing the required parameter 'resource_id' when calling IdentityApi.get_identity_resource_by_id"
|
50
113
|
end
|
51
114
|
# resource path
|
52
|
-
local_var_path = '/
|
115
|
+
local_var_path = '/identity/{id}/resources/{resource_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s))
|
53
116
|
|
54
117
|
# query parameters
|
55
118
|
query_params = opts[:query_params] || {}
|
@@ -63,15 +126,16 @@ module Passbase
|
|
63
126
|
form_params = opts[:form_params] || {}
|
64
127
|
|
65
128
|
# http body (model)
|
66
|
-
post_body = opts[:
|
129
|
+
post_body = opts[:debug_body]
|
67
130
|
|
68
131
|
# return_type
|
69
|
-
return_type = opts[:
|
132
|
+
return_type = opts[:debug_return_type] || 'Resource'
|
70
133
|
|
71
134
|
# auth_names
|
72
|
-
auth_names = opts[:
|
135
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
73
136
|
|
74
137
|
new_options = opts.merge(
|
138
|
+
:operation => :"IdentityApi.get_identity_resource_by_id",
|
75
139
|
:header_params => header_params,
|
76
140
|
:query_params => query_params,
|
77
141
|
:form_params => form_params,
|
@@ -87,31 +151,43 @@ module Passbase
|
|
87
151
|
return data, status_code, headers
|
88
152
|
end
|
89
153
|
|
90
|
-
# Get
|
91
|
-
#
|
92
|
-
# @param id [String]
|
154
|
+
# Get resource file
|
155
|
+
# 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.
|
156
|
+
# @param id [String] Identity id
|
157
|
+
# @param resource_id [String] Resource id
|
158
|
+
# @param resource_file_id [String] Resource file id
|
93
159
|
# @param [Hash] opts the optional parameters
|
94
|
-
# @return [
|
95
|
-
def
|
96
|
-
data, _status_code, _headers =
|
160
|
+
# @return [ResourceFile]
|
161
|
+
def get_identity_resource_file_by_id(id, resource_id, resource_file_id, opts = {})
|
162
|
+
data, _status_code, _headers = get_identity_resource_file_by_id_with_http_info(id, resource_id, resource_file_id, opts)
|
97
163
|
data
|
98
164
|
end
|
99
165
|
|
100
|
-
# Get
|
101
|
-
#
|
102
|
-
# @param id [String]
|
166
|
+
# Get resource file
|
167
|
+
# 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.
|
168
|
+
# @param id [String] Identity id
|
169
|
+
# @param resource_id [String] Resource id
|
170
|
+
# @param resource_file_id [String] Resource file id
|
103
171
|
# @param [Hash] opts the optional parameters
|
104
|
-
# @return [Array<(
|
105
|
-
def
|
172
|
+
# @return [Array<(ResourceFile, Integer, Hash)>] ResourceFile data, response status code and response headers
|
173
|
+
def get_identity_resource_file_by_id_with_http_info(id, resource_id, resource_file_id, opts = {})
|
106
174
|
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug 'Calling API: IdentityApi.
|
175
|
+
@api_client.config.logger.debug 'Calling API: IdentityApi.get_identity_resource_file_by_id ...'
|
108
176
|
end
|
109
177
|
# verify the required parameter 'id' is set
|
110
178
|
if @api_client.config.client_side_validation && id.nil?
|
111
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.
|
179
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.get_identity_resource_file_by_id"
|
180
|
+
end
|
181
|
+
# verify the required parameter 'resource_id' is set
|
182
|
+
if @api_client.config.client_side_validation && resource_id.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'resource_id' when calling IdentityApi.get_identity_resource_file_by_id"
|
184
|
+
end
|
185
|
+
# verify the required parameter 'resource_file_id' is set
|
186
|
+
if @api_client.config.client_side_validation && resource_file_id.nil?
|
187
|
+
fail ArgumentError, "Missing the required parameter 'resource_file_id' when calling IdentityApi.get_identity_resource_file_by_id"
|
112
188
|
end
|
113
189
|
# resource path
|
114
|
-
local_var_path = '/
|
190
|
+
local_var_path = '/identity/{id}/resources/{resource_id}/resource_files/{resource_file_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s)).sub('{' + 'resource_file_id' + '}', CGI.escape(resource_file_id.to_s))
|
115
191
|
|
116
192
|
# query parameters
|
117
193
|
query_params = opts[:query_params] || {}
|
@@ -125,15 +201,16 @@ module Passbase
|
|
125
201
|
form_params = opts[:form_params] || {}
|
126
202
|
|
127
203
|
# http body (model)
|
128
|
-
post_body = opts[:
|
204
|
+
post_body = opts[:debug_body]
|
129
205
|
|
130
206
|
# return_type
|
131
|
-
return_type = opts[:
|
207
|
+
return_type = opts[:debug_return_type] || 'ResourceFile'
|
132
208
|
|
133
209
|
# auth_names
|
134
|
-
auth_names = opts[:
|
210
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
135
211
|
|
136
212
|
new_options = opts.merge(
|
213
|
+
:operation => :"IdentityApi.get_identity_resource_file_by_id",
|
137
214
|
:header_params => header_params,
|
138
215
|
:query_params => query_params,
|
139
216
|
:form_params => form_params,
|
@@ -144,7 +221,7 @@ module Passbase
|
|
144
221
|
|
145
222
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
146
223
|
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug "API called: IdentityApi#
|
224
|
+
@api_client.config.logger.debug "API called: IdentityApi#get_identity_resource_file_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
225
|
end
|
149
226
|
return data, status_code, headers
|
150
227
|
end
|
@@ -187,15 +264,16 @@ module Passbase
|
|
187
264
|
form_params = opts[:form_params] || {}
|
188
265
|
|
189
266
|
# http body (model)
|
190
|
-
post_body = opts[:
|
267
|
+
post_body = opts[:debug_body]
|
191
268
|
|
192
269
|
# return_type
|
193
|
-
return_type = opts[:
|
270
|
+
return_type = opts[:debug_return_type] || 'PaginatedIdentities'
|
194
271
|
|
195
272
|
# auth_names
|
196
|
-
auth_names = opts[:
|
273
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
197
274
|
|
198
275
|
new_options = opts.merge(
|
276
|
+
:operation => :"IdentityApi.list_identities",
|
199
277
|
:header_params => header_params,
|
200
278
|
:query_params => query_params,
|
201
279
|
:form_params => form_params,
|
@@ -239,7 +317,7 @@ module Passbase
|
|
239
317
|
fail ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.list_identity_resources"
|
240
318
|
end
|
241
319
|
# resource path
|
242
|
-
local_var_path = '/
|
320
|
+
local_var_path = '/identity/{id}/resources'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
243
321
|
|
244
322
|
# query parameters
|
245
323
|
query_params = opts[:query_params] || {}
|
@@ -255,15 +333,16 @@ module Passbase
|
|
255
333
|
form_params = opts[:form_params] || {}
|
256
334
|
|
257
335
|
# http body (model)
|
258
|
-
post_body = opts[:
|
336
|
+
post_body = opts[:debug_body]
|
259
337
|
|
260
338
|
# return_type
|
261
|
-
return_type = opts[:
|
339
|
+
return_type = opts[:debug_return_type] || 'PaginatedResources'
|
262
340
|
|
263
341
|
# auth_names
|
264
|
-
auth_names = opts[:
|
342
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
265
343
|
|
266
344
|
new_options = opts.merge(
|
345
|
+
:operation => :"IdentityApi.list_identity_resources",
|
267
346
|
:header_params => header_params,
|
268
347
|
:query_params => query_params,
|
269
348
|
:form_params => form_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,15 +51,16 @@ module Passbase
|
|
51
51
|
form_params = opts[:form_params] || {}
|
52
52
|
|
53
53
|
# http body (model)
|
54
|
-
post_body = opts[:
|
54
|
+
post_body = opts[:debug_body]
|
55
55
|
|
56
56
|
# return_type
|
57
|
-
return_type = opts[:
|
57
|
+
return_type = opts[:debug_return_type] || 'ProjectSettings'
|
58
58
|
|
59
59
|
# auth_names
|
60
|
-
auth_names = opts[:
|
60
|
+
auth_names = opts[:debug_auth_names] || ['SecretApiKey']
|
61
61
|
|
62
62
|
new_options = opts.merge(
|
63
|
+
:operation => :"ProjectApi.get_settings",
|
63
64
|
:header_params => header_params,
|
64
65
|
:query_params => query_params,
|
65
66
|
:form_params => form_params,
|
data/lib/passbase/api_client.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Verification API
|
3
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>
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
require 'json'
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
|
+
require 'time'
|
17
18
|
require 'faraday'
|
18
19
|
|
19
20
|
module Passbase
|
@@ -30,7 +31,7 @@ module Passbase
|
|
30
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
31
32
|
def initialize(config = Configuration.default)
|
32
33
|
@config = config
|
33
|
-
@user_agent = "passbase/ruby@1.0
|
34
|
+
@user_agent = "passbase/ruby@1.3.0"
|
34
35
|
@default_headers = {
|
35
36
|
'Content-Type' => 'application/json',
|
36
37
|
'User-Agent' => @user_agent
|
@@ -106,7 +107,7 @@ module Passbase
|
|
106
107
|
# @option opts [Object] :body HTTP body (JSON/XML)
|
107
108
|
# @return [Typhoeus::Request] A Typhoeus Request
|
108
109
|
def build_request(http_method, path, request, opts = {})
|
109
|
-
url = build_request_url(path)
|
110
|
+
url = build_request_url(path, opts)
|
110
111
|
http_method = http_method.to_sym.downcase
|
111
112
|
|
112
113
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
@@ -171,6 +172,15 @@ module Passbase
|
|
171
172
|
data
|
172
173
|
end
|
173
174
|
|
175
|
+
def download_file(request)
|
176
|
+
@stream = []
|
177
|
+
|
178
|
+
# handle streaming Responses
|
179
|
+
request.options.on_data = Proc.new do |chunk, overall_received_bytes|
|
180
|
+
@stream << chunk
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
174
184
|
# Check if the given MIME is a JSON MIME.
|
175
185
|
# JSON MIME examples:
|
176
186
|
# application/json
|
@@ -192,7 +202,25 @@ module Passbase
|
|
192
202
|
|
193
203
|
# handle file downloading - return the File instance processed in request callbacks
|
194
204
|
# note that response body is empty when the file is written in chunks in request on_body callback
|
195
|
-
|
205
|
+
if return_type == 'File'
|
206
|
+
content_disposition = response.headers['Content-Disposition']
|
207
|
+
if content_disposition && content_disposition =~ /filename=/i
|
208
|
+
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
209
|
+
prefix = sanitize_filename(filename)
|
210
|
+
else
|
211
|
+
prefix = 'download-'
|
212
|
+
end
|
213
|
+
prefix = prefix + '-' unless prefix.end_with?('-')
|
214
|
+
encoding = body.encoding
|
215
|
+
@tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
216
|
+
@tempfile.write(@stream.join.force_encoding(encoding))
|
217
|
+
@tempfile.close
|
218
|
+
@config.logger.info "Temp file written to #{@tempfile.path}, please copy the file to a proper folder "\
|
219
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
220
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
221
|
+
"explicitly with `tempfile.delete`"
|
222
|
+
return @tempfile
|
223
|
+
end
|
196
224
|
|
197
225
|
return nil if body.nil? || body.empty?
|
198
226
|
|
@@ -207,7 +235,7 @@ module Passbase
|
|
207
235
|
begin
|
208
236
|
data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
|
209
237
|
rescue JSON::ParserError => e
|
210
|
-
if %w(String Date
|
238
|
+
if %w(String Date Time).include?(return_type)
|
211
239
|
data = body
|
212
240
|
else
|
213
241
|
raise e
|
@@ -232,9 +260,9 @@ module Passbase
|
|
232
260
|
data.to_f
|
233
261
|
when 'Boolean'
|
234
262
|
data == true
|
235
|
-
when '
|
263
|
+
when 'Time'
|
236
264
|
# parse date time (expecting ISO 8601 format)
|
237
|
-
|
265
|
+
Time.parse data
|
238
266
|
when 'Date'
|
239
267
|
# parse date time (expecting ISO 8601 format)
|
240
268
|
Date.parse data
|
@@ -252,46 +280,9 @@ module Passbase
|
|
252
280
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
253
281
|
end
|
254
282
|
else
|
255
|
-
# models
|
256
|
-
Passbase.const_get(return_type)
|
257
|
-
|
258
|
-
end
|
259
|
-
|
260
|
-
# Save response body into a file in (the defined) temporary folder, using the filename
|
261
|
-
# from the "Content-Disposition" header if provided, otherwise a random filename.
|
262
|
-
# The response body is written to the file in chunks in order to handle files which
|
263
|
-
# size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
|
264
|
-
# process can use.
|
265
|
-
#
|
266
|
-
# @see Configuration#temp_folder_path
|
267
|
-
def download_file(request)
|
268
|
-
tempfile = nil
|
269
|
-
encoding = nil
|
270
|
-
request.on_headers do |response|
|
271
|
-
content_disposition = response.headers['Content-Disposition']
|
272
|
-
if content_disposition && content_disposition =~ /filename=/i
|
273
|
-
filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
|
274
|
-
prefix = sanitize_filename(filename)
|
275
|
-
else
|
276
|
-
prefix = 'download-'
|
277
|
-
end
|
278
|
-
prefix = prefix + '-' unless prefix.end_with?('-')
|
279
|
-
encoding = response.body.encoding
|
280
|
-
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
|
281
|
-
@tempfile = tempfile
|
282
|
-
end
|
283
|
-
request.on_body do |chunk|
|
284
|
-
chunk.force_encoding(encoding)
|
285
|
-
tempfile.write(chunk)
|
286
|
-
end
|
287
|
-
request.on_complete do |response|
|
288
|
-
if tempfile
|
289
|
-
tempfile.close
|
290
|
-
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
291
|
-
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
292
|
-
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
293
|
-
"explicitly with `tempfile.delete`"
|
294
|
-
end
|
283
|
+
# models (e.g. Pet) or oneOf
|
284
|
+
klass = Passbase.const_get(return_type)
|
285
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
|
295
286
|
end
|
296
287
|
end
|
297
288
|
|
@@ -304,10 +295,10 @@ module Passbase
|
|
304
295
|
filename.gsub(/.*[\/\\]/, '')
|
305
296
|
end
|
306
297
|
|
307
|
-
def build_request_url(path)
|
298
|
+
def build_request_url(path, opts = {})
|
308
299
|
# Add leading and trailing slashes to path
|
309
300
|
path = "/#{path}".gsub(/\/+/, '/')
|
310
|
-
@config.base_url + path
|
301
|
+
@config.base_url(opts[:operation]) + path
|
311
302
|
end
|
312
303
|
|
313
304
|
# Update hearder and query params based on authentication settings.
|
@@ -322,7 +313,7 @@ module Passbase
|
|
322
313
|
case auth_setting[:in]
|
323
314
|
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
324
315
|
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
325
|
-
else fail ArgumentError, 'Authentication token must be in `query`
|
316
|
+
else fail ArgumentError, 'Authentication token must be in `query` or `header`'
|
326
317
|
end
|
327
318
|
end
|
328
319
|
end
|