fusionauth_client 1.27.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee219ef1738d6ccb97d8bb5cdba190a5658dcc9263dcb460c811d97c02da025
4
- data.tar.gz: f9858eb19f04b69197b1dcf3f2c35a6e7429e331bfd764a95b55101f6b101cc4
3
+ metadata.gz: 0f1f43b28cf211f2c01b2e47171059047f9819dcf6188c8d707784c25070fa57
4
+ data.tar.gz: 54c810e12716603c4496c2563b4284602cb591def4e7c5d83da9fce343e1911a
5
5
  SHA512:
6
- metadata.gz: 71dae847ef49057df21dfc2966596f22b0fe65e5ccd6b37af5cb883b26aa21bc6be6ca0092e25e3e74126c0c74a553d566937f513adf2381d2c438ed1e8f6062
7
- data.tar.gz: 0c9ab46e8f349387417374abfb4ad2d4ec085d399f25fa489d02e83c2d69bffa09fd0a5eaccb3828d345545856f443c14b42d6e910a94aa8438a9145241c2973
6
+ metadata.gz: 641e630a66bf0bd324cb744aeb0fc29b44142ce4d0723704e2728949a88c5732a2afe5a2c591076bdb0626da9c136cd4ce98a9e0c5358cb6bf3f96a12f45cab9
7
+ data.tar.gz: 318b5443dd8221ee5916c6aef850a1404172196e079358eb5c5777960a3dc81e988ffb24794854838c00ab194517a59ac0c867698f9d9e78049b76996ce22356
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.27.0)
4
+ fusionauth_client (1.29.0)
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.27.0", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.29.0", 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.27.0'
7
+ spec.version = '1.29.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -103,7 +103,7 @@ module FusionAuth
103
103
  # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password.
104
104
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
105
105
  def change_password(change_password_id, request)
106
- start.uri('/api/user/change-password')
106
+ startAnonymous.uri('/api/user/change-password')
107
107
  .url_segment(change_password_id)
108
108
  .body_handler(FusionAuth::JSONBodyHandler.new(request))
109
109
  .post()
@@ -499,6 +499,18 @@ module FusionAuth
499
499
  .go()
500
500
  end
501
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
+
502
514
  #
503
515
  # Creates a webhook. You can optionally specify an Id for the webhook, if not provided one will be generated.
504
516
  #
@@ -925,6 +937,22 @@ module FusionAuth
925
937
  .go()
926
938
  end
927
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
+
928
956
  #
929
957
  # Deletes the users with the given ids, or users matching the provided JSON query or queryString.
930
958
  # The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
@@ -1801,6 +1829,22 @@ module FusionAuth
1801
1829
  .go()
1802
1830
  end
1803
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
+
1804
1848
  #
1805
1849
  # Removes a user from the family with the given id.
1806
1850
  #
@@ -2617,6 +2661,17 @@ module FusionAuth
2617
2661
  .go()
2618
2662
  end
2619
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
+
2620
2675
  #
2621
2676
  # Retrieves the system configuration.
2622
2677
  #
@@ -2862,6 +2917,36 @@ module FusionAuth
2862
2917
  .go()
2863
2918
  end
2864
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
+
2865
2950
  #
2866
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
2867
2952
  # login counts for that application.
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.27.0
4
+ version: 1.29.0
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-05-05 00:00:00.000000000 Z
12
+ date: 2021-07-10 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.