fusionauth_client 1.29.1 → 1.30.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cae8af7f739562d92e736f5d9ff6955ced3e3aba66171a26cf35568fa71c0f24
4
- data.tar.gz: bb6762275a129b25d654e5dba4b384986212a63f55c7103925d5c72d82b5d947
3
+ metadata.gz: 8821419690c791f11750787da579e3b59c16c48dcfb3893954c0c03174f58709
4
+ data.tar.gz: e9e28c5195df7f10d563512be3ae6d496b78496e0c13099b31d21afd6bf34465
5
5
  SHA512:
6
- metadata.gz: b73c87ad929af3a314805aecf672cef3047ea468c4300b27fa26022b9e19f35a489f2ecc375e4549115bb1751d51297b354c58ee38e602da888df3ab93ba9882
7
- data.tar.gz: 5da62fb18c3db0f538d30753e1cd5c87cafe0a9742f87f3dc7c4a4c09f1d84451630b124bad09840f6d712ede762f55cbbe85099fc6a81e936affe2e1433aba8
6
+ metadata.gz: f0e5c2c7f800aad8076f7319ec8a041ada8fe5c50b9dae14c0d0d91d79d7c9caf63e9dddb1fed35a4d124175fa26feede35639c37dfb021daef51669072412d2
7
+ data.tar.gz: 1d8997d959f1be03627a5f8eaf14254dad1d70b4f10538e027d24f07b8621a46394507bfbb214cec694578fde06ef2591c74541e9b5da2339c0dd929b2841e9b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.29.1)
4
+ fusionauth_client (1.30.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.29.1", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.30.0", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -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.29.1'
7
+ spec.version = '1.30.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -357,6 +357,20 @@ module FusionAuth
357
357
  .go()
358
358
  end
359
359
 
360
+ #
361
+ # Creates an IP Access Control List. You can optionally specify an Id on this create request, if one is not provided one will be generated.
362
+ #
363
+ # @param access_control_list_id [string] (Optional) The Id for the IP Access Control List. If not provided a secure random UUID will be generated.
364
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to create the IP Access Control List.
365
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
366
+ def create_ip_access_control_list(access_control_list_id, request)
367
+ start.uri('/api/ip-acl')
368
+ .url_segment(access_control_list_id)
369
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
370
+ .post()
371
+ .go()
372
+ end
373
+
360
374
  #
361
375
  # Creates an identity provider. You can optionally specify an Id for the identity provider, if not provided one will be generated.
362
376
  #
@@ -785,6 +799,18 @@ module FusionAuth
785
799
  .go()
786
800
  end
787
801
 
802
+ #
803
+ # Deletes the IP Access Control List for the given Id.
804
+ #
805
+ # @param ip_access_control_list_id [string] The Id of the IP Access Control List to delete.
806
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
807
+ def delete_ip_access_control_list(ip_access_control_list_id)
808
+ start.uri('/api/ip-acl')
809
+ .url_segment(ip_access_control_list_id)
810
+ .delete()
811
+ .go()
812
+ end
813
+
788
814
  #
789
815
  # Deletes the identity provider for the given Id.
790
816
  #
@@ -860,7 +886,24 @@ module FusionAuth
860
886
  end
861
887
 
862
888
  #
863
- # Deletes the tenant for the given Id.
889
+ # Deletes the user registration for the given user and application along with the given JSON body that contains the event information.
890
+ #
891
+ # @param user_id [string] The Id of the user whose registration is being deleted.
892
+ # @param application_id [string] The Id of the application to remove the registration for.
893
+ # @param request [OpenStruct, Hash] The request body that contains the event information.
894
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
895
+ def delete_registration_with_request(user_id, application_id, request)
896
+ start.uri('/api/user/registration')
897
+ .url_segment(user_id)
898
+ .url_segment(application_id)
899
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
900
+ .delete()
901
+ .go()
902
+ end
903
+
904
+ #
905
+ # Deletes the tenant based on the given Id on the URL. This permanently deletes all information, metrics, reports and data associated
906
+ # with the tenant and everything under the tenant (applications, users, etc).
864
907
  #
865
908
  # @param tenant_id [string] The Id of the tenant to delete.
866
909
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -885,6 +928,21 @@ module FusionAuth
885
928
  .go()
886
929
  end
887
930
 
931
+ #
932
+ # Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
933
+ # with the tenant and everything under the tenant (applications, users, etc).
934
+ #
935
+ # @param tenant_id [string] The Id of the tenant to delete.
936
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to delete the user.
937
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
938
+ def delete_tenant_with_request(tenant_id, request)
939
+ start.uri('/api/tenant')
940
+ .url_segment(tenant_id)
941
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
942
+ .delete()
943
+ .go()
944
+ end
945
+
888
946
  #
889
947
  # Deletes the theme for the given Id.
890
948
  #
@@ -953,6 +1011,21 @@ module FusionAuth
953
1011
  .go()
954
1012
  end
955
1013
 
1014
+ #
1015
+ # Deletes the user based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated
1016
+ # with the user.
1017
+ #
1018
+ # @param user_id [string] The Id of the user to delete (required).
1019
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to delete the user.
1020
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1021
+ def delete_user_with_request(user_id, request)
1022
+ start.uri('/api/user')
1023
+ .url_segment(user_id)
1024
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1025
+ .delete()
1026
+ .go()
1027
+ end
1028
+
956
1029
  #
957
1030
  # Deletes the users with the given ids, or users matching the provided JSON query or queryString.
958
1031
  # The order of preference is ids, query and then queryString, it is recommended to only provide one of the three for the request.
@@ -1007,13 +1080,27 @@ module FusionAuth
1007
1080
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1008
1081
  def disable_two_factor(user_id, method_id, code)
1009
1082
  start.uri('/api/user/two-factor')
1010
- .url_parameter('userId', user_id)
1083
+ .url_segment(user_id)
1011
1084
  .url_parameter('methodId', method_id)
1012
1085
  .url_parameter('code', code)
1013
1086
  .delete()
1014
1087
  .go()
1015
1088
  end
1016
1089
 
1090
+ #
1091
+ # Disable Two Factor authentication for a user using a JSON body rather than URL parameters.
1092
+ #
1093
+ # @param user_id [string] The Id of the User for which you're disabling Two Factor authentication.
1094
+ # @param request [OpenStruct, Hash] The request information that contains the code and methodId along with any event information.
1095
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1096
+ def disable_two_factor_with_request(user_id, request)
1097
+ start.uri('/api/user/two-factor')
1098
+ .url_segment(user_id)
1099
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1100
+ .delete()
1101
+ .go()
1102
+ end
1103
+
1017
1104
  #
1018
1105
  # Enable Two Factor authentication for a user.
1019
1106
  #
@@ -1391,6 +1478,19 @@ module FusionAuth
1391
1478
  .go()
1392
1479
  end
1393
1480
 
1481
+ #
1482
+ # The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the
1483
+ # client and revoke the refresh token stored. This API takes the refresh token in the JSON body.
1484
+ #
1485
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to logout the user.
1486
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1487
+ def logout_with_request(request)
1488
+ startAnonymous.uri('/api/logout')
1489
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1490
+ .post()
1491
+ .go()
1492
+ end
1493
+
1394
1494
  #
1395
1495
  # Retrieves the identity provider for the given domain. A 200 response code indicates the domain is managed
1396
1496
  # by a registered identity provider. A 404 indicates the domain is not managed.
@@ -2248,6 +2348,18 @@ module FusionAuth
2248
2348
  .go()
2249
2349
  end
2250
2350
 
2351
+ #
2352
+ # Retrieves the IP Access Control List with the given Id.
2353
+ #
2354
+ # @param ip_access_control_list_id [string] The Id of the IP Access Control List.
2355
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2356
+ def retrieve_ip_access_control_list(ip_access_control_list_id)
2357
+ start.uri('/api/ip-acl')
2358
+ .url_segment(ip_access_control_list_id)
2359
+ .get()
2360
+ .go()
2361
+ end
2362
+
2251
2363
  #
2252
2364
  # Retrieves the identity provider for the given id or all of the identity providers if the id is null.
2253
2365
  #
@@ -3146,6 +3258,19 @@ module FusionAuth
3146
3258
  .go()
3147
3259
  end
3148
3260
 
3261
+ #
3262
+ # Revokes refresh tokens using the information in the JSON body. The handling for this method is the same as the revokeRefreshToken method
3263
+ # and is based on the information you provide in the RefreshDeleteRequest object. See that method for additional information.
3264
+ #
3265
+ # @param request [OpenStruct, Hash] The request information used to revoke the refresh tokens.
3266
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3267
+ def revoke_refresh_tokens_with_request(request)
3268
+ start.uri('/api/jwt/refresh')
3269
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3270
+ .delete()
3271
+ .go()
3272
+ end
3273
+
3149
3274
  #
3150
3275
  # Revokes a single User consent by Id.
3151
3276
  #
@@ -3230,6 +3355,18 @@ module FusionAuth
3230
3355
  .go()
3231
3356
  end
3232
3357
 
3358
+ #
3359
+ # Searches the IP Access Control Lists with the specified criteria and pagination.
3360
+ #
3361
+ # @param request [OpenStruct, Hash] The search criteria and pagination information.
3362
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3363
+ def search_ip_access_control_lists(request)
3364
+ start.uri('/api/ip-acl/search')
3365
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3366
+ .post()
3367
+ .go()
3368
+ end
3369
+
3233
3370
  #
3234
3371
  # Searches the login records with the specified criteria and pagination.
3235
3372
  #
@@ -3614,6 +3751,20 @@ module FusionAuth
3614
3751
  .go()
3615
3752
  end
3616
3753
 
3754
+ #
3755
+ # Updates the IP Access Control List with the given Id.
3756
+ #
3757
+ # @param access_control_list_id [string] The Id of the IP Access Control List to update.
3758
+ # @param request [OpenStruct, Hash] The request that contains all of the new IP Access Control List information.
3759
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3760
+ def update_ip_access_control_list(access_control_list_id, request)
3761
+ start.uri('/api/ip-acl')
3762
+ .url_segment(access_control_list_id)
3763
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3764
+ .put()
3765
+ .go()
3766
+ end
3767
+
3617
3768
  #
3618
3769
  # Updates the identity provider with the given Id.
3619
3770
  #
@@ -3865,6 +4016,26 @@ module FusionAuth
3865
4016
  .go()
3866
4017
  end
3867
4018
 
4019
+ #
4020
+ # It's a JWT vending machine!
4021
+ #
4022
+ # Issue a new access token (JWT) with the provided claims in the request. This JWT is not scoped to a tenant or user, it is a free form
4023
+ # token that will contain what claims you provide.
4024
+ # <p>
4025
+ # The iat, exp and jti claims will be added by FusionAuth, all other claims must be provided by the caller.
4026
+ #
4027
+ # If a TTL is not provided in the request, the TTL will be retrieved from the default Tenant or the Tenant specified on the request either
4028
+ # by way of the X-FusionAuth-TenantId request header, or a tenant scoped API key.
4029
+ #
4030
+ # @param request [OpenStruct, Hash] The request that contains all of the claims for this JWT.
4031
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4032
+ def vend_jwt(request)
4033
+ start.uri('/api/jwt/vend')
4034
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
4035
+ .post()
4036
+ .go()
4037
+ end
4038
+
3868
4039
  #
3869
4040
  # Confirms a email verification. The Id given is usually from an email sent to the user.
3870
4041
  #
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.29.1
4
+ version: 1.30.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-07-26 00:00:00.000000000 Z
12
+ date: 2021-09-14 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.