fusionauth_client 1.26.0 → 1.28.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a950e65ea4b1b98b030175aa96aa10e60eaa283adffb60f940e7faaf03ea3db8
4
- data.tar.gz: fb0218fa311d0c815042e7d062319827c5361a84831d42abd3be103886335a9e
3
+ metadata.gz: 2f5c7cb69f901d83dc3b55ed925aea41ada2b94c81807017034173b54f707281
4
+ data.tar.gz: ff270948d4d1fbc257ccbc176d6d7955a77eb40599c31b85e3ba926295d003d7
5
5
  SHA512:
6
- metadata.gz: 76a87d490167744f343858a59f416fcf97ecf351421d4b89463a8f523fe51bdd44c46724bf3824a5570ebf2e0db43287d8a256f4d5e581563716596560f9a8d8
7
- data.tar.gz: cbe4905cd5fa7266e968a3fd506bcd0a7db27d1309ec03f11fe9c35a59f0e535ba20a400a7fbef1a089c4b05a8a8e724e1844daaf737db2263cfa03fd50d6b7e
6
+ metadata.gz: b0ffcab47aeba93d264758a13c68c0145476b1a3bff94898d04978495a2c6c3144980885d8d35fb3715c6ccbc3c7bf407c4c252c391a8cb117fdcf8cdbd5ea7d
7
+ data.tar.gz: cfc5c3bea25ffe600f04c4665c6d07dfd9ca1427d25a5bebc5d763b4bd0373d101e9ba33cdcdb7f1ca5db19f2b29f131fcedd4d798b92589c69714fe223156df
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.26.0)
4
+ fusionauth_client (1.28.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/build.savant CHANGED
@@ -16,7 +16,7 @@
16
16
  savantVersion = "1.0.0"
17
17
 
18
18
  pubVersion = ""
19
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.26.0", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.28.1", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -16,16 +16,16 @@
16
16
  <option name="myRootTask">
17
17
  <RakeTaskImpl id="rake">
18
18
  <subtasks>
19
- <RakeTaskImpl description="Build fusionauth_client-1.26.0.gem into the pkg directory" fullCommand="build" id="build" />
19
+ <RakeTaskImpl description="Build fusionauth_client-1.28.1.gem into the pkg directory" fullCommand="build" id="build" />
20
20
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
21
21
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
22
- <RakeTaskImpl description="Build and install fusionauth_client-1.26.0.gem into system gems" fullCommand="install" id="install" />
22
+ <RakeTaskImpl description="Build and install fusionauth_client-1.28.1.gem into system gems" fullCommand="install" id="install" />
23
23
  <RakeTaskImpl id="install">
24
24
  <subtasks>
25
- <RakeTaskImpl description="Build and install fusionauth_client-1.26.0.gem into system gems without network access" fullCommand="install:local" id="local" />
25
+ <RakeTaskImpl description="Build and install fusionauth_client-1.28.1.gem into system gems without network access" fullCommand="install:local" id="local" />
26
26
  </subtasks>
27
27
  </RakeTaskImpl>
28
- <RakeTaskImpl description="Create tag v1.26.0 and build and push fusionauth_client-1.26.0.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
28
+ <RakeTaskImpl description="Create tag v1.28.1 and build and push fusionauth_client-1.28.1.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
29
29
  <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
30
30
  <RakeTaskImpl description="" fullCommand="default" id="default" />
31
31
  <RakeTaskImpl description="" fullCommand="release" id="release" />
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fusionauth_client'
7
- spec.version = '1.26.0'
7
+ spec.version = '1.28.1'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -58,12 +58,10 @@ module FusionAuth
58
58
  #
59
59
  # Activates the FusionAuth Reactor using a license id and optionally a license text (for air-gapped deployments)
60
60
  #
61
- # @param license_id [string] The license id
62
61
  # @param request [OpenStruct, Hash] An optional request that contains the license text to activate Reactor (useful for air-gap deployments of FusionAuth).
63
62
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
64
- def activate_reactor(license_id, request)
63
+ def activate_reactor(request)
65
64
  start.uri('/api/reactor')
66
- .url_segment(license_id)
67
65
  .body_handler(FusionAuth::JSONBodyHandler.new(request))
68
66
  .post()
69
67
  .go()
@@ -105,7 +103,7 @@ module FusionAuth
105
103
  # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password.
106
104
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
107
105
  def change_password(change_password_id, request)
108
- start.uri('/api/user/change-password')
106
+ startAnonymous.uri('/api/user/change-password')
109
107
  .url_segment(change_password_id)
110
108
  .body_handler(FusionAuth::JSONBodyHandler.new(request))
111
109
  .post()
@@ -501,6 +499,18 @@ module FusionAuth
501
499
  .go()
502
500
  end
503
501
 
502
+ #
503
+ # Link an external user from a 3rd party identity provider to a FusionAuth user.
504
+ #
505
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to link the FusionAuth user.
506
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
507
+ def create_user_link(request)
508
+ start.uri('/api/identity-provider/link')
509
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
510
+ .post()
511
+ .go()
512
+ end
513
+
504
514
  #
505
515
  # Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
506
516
  #
@@ -927,6 +937,22 @@ module FusionAuth
927
937
  .go()
928
938
  end
929
939
 
940
+ #
941
+ # Remove an existing link that has been made from a 3rd party identity provider to a FusionAuth user.
942
+ #
943
+ # @param identity_provider_id [string] The unique Id of the identity provider.
944
+ # @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider to unlink.
945
+ # @param user_id [string] The unique Id of the FusionAuth user to unlink.
946
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
947
+ def delete_user_link(identity_provider_id, identity_provider_user_id, user_id)
948
+ start.uri('/api/identity-provider/link')
949
+ .url_parameter('identityProviderId', identity_provider_id)
950
+ .url_parameter('identityProviderUserId', identity_provider_user_id)
951
+ .url_parameter('userId', user_id)
952
+ .delete()
953
+ .go()
954
+ end
955
+
930
956
  #
931
957
  # Deletes the users with the given ids, or users matching the provided JSON query or queryString.
932
958
  # The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
@@ -1803,6 +1829,22 @@ module FusionAuth
1803
1829
  .go()
1804
1830
  end
1805
1831
 
1832
+ #
1833
+ # Requests Elasticsearch to delete and rebuild the index for FusionAuth users or entities. Be very careful when running this request as it will
1834
+ # increase the CPU and I/O load on your database until the operation completes. Generally speaking you do not ever need to run this operation unless
1835
+ # instructed by FusionAuth support, or if you are migrating a database another system and you are not brining along the Elasticsearch index.
1836
+ #
1837
+ # You have been warned.
1838
+ #
1839
+ # @param request [OpenStruct, Hash] The request that contains the index name.
1840
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1841
+ def reindex(request)
1842
+ start.uri('/api/system/reindex')
1843
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1844
+ .post()
1845
+ .go()
1846
+ end
1847
+
1806
1848
  #
1807
1849
  # Removes a user from the family with the given id.
1808
1850
  #
@@ -2619,6 +2661,17 @@ module FusionAuth
2619
2661
  .go()
2620
2662
  end
2621
2663
 
2664
+ #
2665
+ # Retrieve the status of a re-index process. A status code of 200 indicates the re-index is in progress, a status code of
2666
+ # 404 indicates no re-index is in progress.
2667
+ #
2668
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2669
+ def retrieve_reindex_status()
2670
+ start.uri('/api/system/reindex')
2671
+ .get()
2672
+ .go()
2673
+ end
2674
+
2622
2675
  #
2623
2676
  # Retrieves the system configuration.
2624
2677
  #
@@ -2864,6 +2917,36 @@ module FusionAuth
2864
2917
  .go()
2865
2918
  end
2866
2919
 
2920
+ #
2921
+ # Retrieve a single Identity Provider user (link).
2922
+ #
2923
+ # @param identity_provider_id [string] The unique Id of the identity provider.
2924
+ # @param identity_provider_user_id [string] The unique Id of the user in the 3rd party identity provider.
2925
+ # @param user_id [string] The unique Id of the FusionAuth user.
2926
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2927
+ def retrieve_user_link(identity_provider_id, identity_provider_user_id, user_id)
2928
+ start.uri('/api/identity-provider/link')
2929
+ .url_parameter('identityProviderId', identity_provider_id)
2930
+ .url_parameter('identityProviderUserId', identity_provider_user_id)
2931
+ .url_parameter('userId', user_id)
2932
+ .get()
2933
+ .go()
2934
+ end
2935
+
2936
+ #
2937
+ # Retrieve all Identity Provider users (links) for the user. Specify the optional identityProviderId to retrieve links for a particular IdP.
2938
+ #
2939
+ # @param identity_provider_id [string] (Optional) The unique Id of the identity provider. Specify this value to reduce the links returned to those for a particular IdP.
2940
+ # @param user_id [string] The unique Id of the user.
2941
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2942
+ def retrieve_user_links_by_user_id(identity_provider_id, user_id)
2943
+ start.uri('/api/identity-provider/link')
2944
+ .url_parameter('identityProviderId', identity_provider_id)
2945
+ .url_parameter('userId', user_id)
2946
+ .get()
2947
+ .go()
2948
+ end
2949
+
2867
2950
  #
2868
2951
  # Retrieves the login report between the two instants for a particular user by Id. If you specify an application id, it will only return the
2869
2952
  # login counts for that application.
@@ -2930,6 +3013,16 @@ module FusionAuth
2930
3013
  .go()
2931
3014
  end
2932
3015
 
3016
+ #
3017
+ # Retrieves the FusionAuth version string.
3018
+ #
3019
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3020
+ def retrieve_version()
3021
+ start.uri('/api/system/version')
3022
+ .get()
3023
+ .go()
3024
+ end
3025
+
2933
3026
  #
2934
3027
  # Retrieves the webhook for the given Id. If you pass in null for the id, this will return all the webhooks.
2935
3028
  #
@@ -3777,6 +3870,7 @@ module FusionAuth
3777
3870
  #
3778
3871
  # @param verification_id [string] The email verification id sent to the user.
3779
3872
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3873
+ # @deprecated This method has been renamed to verify_email_address and changed to take a JSON request body, use that method instead.
3780
3874
  def verify_email(verification_id)
3781
3875
  startAnonymous.uri('/api/user/verify-email')
3782
3876
  .url_segment(verification_id)
@@ -3784,11 +3878,29 @@ module FusionAuth
3784
3878
  .go()
3785
3879
  end
3786
3880
 
3881
+ #
3882
+ # Confirms a user's email address.
3883
+ #
3884
+ # The request body will contain the verificationId. You may also be required to send a one-time use code based upon your configuration. When
3885
+ # the tenant is configured to gate a user until their email address is verified, this procedures requires two values instead of one.
3886
+ # The verificationId is a high entropy value and the one-time use code is a low entropy value that is easily entered in a user interactive form. The
3887
+ # two values together are able to confirm a user's email address and mark the user's email address as verified.
3888
+ #
3889
+ # @param request [OpenStruct, Hash] The request that contains the verificationId and optional one-time use code paired with the verificationId.
3890
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3891
+ def verify_email_address(request)
3892
+ startAnonymous.uri('/api/user/verify-email')
3893
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3894
+ .post()
3895
+ .go()
3896
+ end
3897
+
3787
3898
  #
3788
3899
  # Confirms an application registration. The Id given is usually from an email sent to the user.
3789
3900
  #
3790
3901
  # @param verification_id [string] The registration verification Id sent to the user.
3791
3902
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3903
+ # @deprecated This method has been renamed to verify_user_registration and changed to take a JSON request body, use that method instead.
3792
3904
  def verify_registration(verification_id)
3793
3905
  startAnonymous.uri('/api/user/verify-registration')
3794
3906
  .url_segment(verification_id)
@@ -3796,6 +3908,23 @@ module FusionAuth
3796
3908
  .go()
3797
3909
  end
3798
3910
 
3911
+ #
3912
+ # Confirms a user's registration.
3913
+ #
3914
+ # The request body will contain the verificationId. You may also be required to send a one-time use code based upon your configuration. When
3915
+ # the application is configured to gate a user until their registration is verified, this procedures requires two values instead of one.
3916
+ # The verificationId is a high entropy value and the one-time use code is a low entropy value that is easily entered in a user interactive form. The
3917
+ # two values together are able to confirm a user's registration and mark the user's registration as verified.
3918
+ #
3919
+ # @param request [OpenStruct, Hash] The request that contains the verificationId and optional one-time use code paired with the verificationId.
3920
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3921
+ def verify_user_registration(request)
3922
+ startAnonymous.uri('/api/user/verify-registration')
3923
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3924
+ .post()
3925
+ .go()
3926
+ end
3927
+
3799
3928
  #
3800
3929
  # Starts the HTTP call
3801
3930
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-04-20 00:00:00.000000000 Z
12
+ date: 2021-06-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This library contains the Ruby client library that helps you connect
15
15
  your application to FusionAuth.