fusionauth_client 1.45.0 → 1.46.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: 925b64e30340b4f08b02e9f0a8bb8ec6f5f4bc4f998ad87907c33e2b798d3238
4
- data.tar.gz: 55bfc20e69673e6ac6e0df9c7acceb463e7c7433465b2d3ac857f38ae757e3bf
3
+ metadata.gz: 188a214d179542598a99c19b42cee7ded5a4fe5401833b7cd68c61f1ed116bc0
4
+ data.tar.gz: 7648163d9f63e75d8463a38d86108264036859942bf67208f671b49e363add09
5
5
  SHA512:
6
- metadata.gz: 96e35eff1ca90a003a48e14c6a0c86c4b712a482273da679095126cfbe291477d0910d78b5f88033e69b57ca7af20af6975fc7c065a082f321f125366f9d68c7
7
- data.tar.gz: 4addc2222ebbf3d51b4f6fcb0a70571c3a95132aeb0e5a24e14b5d629179b0b8e0c4fb2018e002dfa6da026525238bf07fe86c93fbe1306ba843d72d0bf79a13
6
+ metadata.gz: f8858c3bc5dce7ab05d4a74d647fbc5e0081c9c60dd10e9325172f41f770ce65a01f12cab19ba0b457d8833849ff812284b9fb619f4175ebd9ec10185f33b17a
7
+ data.tar.gz: 3d0db52b315ccbadbc0706e3f9030249d569f928e62d8def29a82bfdb0e51e2730ed397eb6a7f42e8bb3c97491dca6cbe44e279bb0c4639760a59df7d8d6ef45
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  .rakeTasks
9
9
  /build
10
10
  **/.DS_Store
11
+ .savant/cache
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.45.0)
4
+ fusionauth_client (1.46.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/build.savant CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2018-2022, FusionAuth, All Rights Reserved
2
+ * Copyright (c) 2018-2023, FusionAuth, All Rights Reserved
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  pubVersion = ""
18
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.45.0", licenses: ["ApacheV2_0"]) {
18
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.46.0", licenses: ["ApacheV2_0"]) {
19
19
  workflow {
20
20
  fetch {
21
21
  cache()
@@ -39,8 +39,8 @@ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.45.0
39
39
  }
40
40
 
41
41
  // Plugins
42
- file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.4")
43
- release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0-RC.4")
42
+ file = loadPlugin(id: "org.savantbuild.plugin:file:2.0.0-RC.6")
43
+ release = loadPlugin(id: "org.savantbuild.plugin:release-git:2.0.0-RC.6")
44
44
 
45
45
  target(name: "clean", description: "Cleans build directory") {
46
46
  file.prune(dir: 'pkg')
@@ -19,7 +19,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
19
19
 
20
20
  Gem::Specification.new do |spec|
21
21
  spec.name = 'fusionauth_client'
22
- spec.version = '1.45.0'
22
+ spec.version = '1.46.0'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
@@ -45,7 +45,7 @@ module FusionAuth
45
45
  # Takes an action on a user. The user being actioned is called the "actionee" and the user taking the action is called the
46
46
  # "actioner". Both user ids are required in the request object.
47
47
  #
48
- # @param request [OpenStruct, Hash] The action request that includes all of the information about the action being taken including
48
+ # @param request [OpenStruct, Hash] The action request that includes all the information about the action being taken including
49
49
  # the id of the action, any options and the duration (if applicable).
50
50
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
51
51
  def action_user(request)
@@ -81,6 +81,27 @@ module FusionAuth
81
81
  .go()
82
82
  end
83
83
 
84
+ #
85
+ # Approve a device grant.
86
+ #
87
+ # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
88
+ # @param client_secret [string] (Optional) The client secret. This value will be required if client authentication is enabled.
89
+ # @param token [string] The access token used to identify the user.
90
+ # @param user_code [string] The end-user verification code.
91
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
92
+ def approve_device(client_id, client_secret, token, user_code)
93
+ body = {
94
+ "client_id" => client_id,
95
+ "client_secret" => client_secret,
96
+ "token" => token,
97
+ "user_code" => user_code
98
+ }
99
+ start.uri('/oauth2/device/approve')
100
+ .body_handler(FusionAuth::FormDataBodyHandler.new(body))
101
+ .post()
102
+ .go()
103
+ end
104
+
84
105
  #
85
106
  # Cancels the user action.
86
107
  #
@@ -103,7 +124,7 @@ module FusionAuth
103
124
  # the value in the request body.
104
125
  #
105
126
  # @param change_password_id [string] The change password Id used to find the user. This value is generated by FusionAuth once the change password workflow has been initiated.
106
- # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password.
127
+ # @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
107
128
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
108
129
  def change_password(change_password_id, request)
109
130
  startAnonymous.uri('/api/user/change-password')
@@ -118,7 +139,7 @@ module FusionAuth
118
139
  # bypasses the email verification and allows a password to be changed directly without first calling the #forgotPassword
119
140
  # method.
120
141
  #
121
- # @param request [OpenStruct, Hash] The change password request that contains all of the information used to change the password.
142
+ # @param request [OpenStruct, Hash] The change password request that contains all the information used to change the password.
122
143
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
123
144
  def change_password_by_identity(request)
124
145
  start.uri('/api/user/change-password')
@@ -178,8 +199,10 @@ module FusionAuth
178
199
  #
179
200
  # Make a Client Credentials grant request to obtain an access token.
180
201
  #
181
- # @param client_id [string] The client identifier. The client Id is the Id of the FusionAuth Entity in which you are attempting to authenticate.
182
- # @param client_secret [string] The client secret used to authenticate this request.
202
+ # @param client_id [string] (Optional) The client identifier. The client Id is the Id of the FusionAuth Entity in which you are attempting to authenticate.
203
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
204
+ # @param client_secret [string] (Optional) The client secret used to authenticate this request.
205
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
183
206
  # @param scope [string] (Optional) This parameter is used to indicate which target entity you are requesting access. To request access to an entity, use the format target-entity:<target-entity-id>:<roles>. Roles are an optional comma separated list.
184
207
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
185
208
  def client_credentials_grant(client_id, client_secret, scope)
@@ -251,7 +274,7 @@ module FusionAuth
251
274
  # If an API key is locked to a tenant, it can only create API Keys for that same tenant.
252
275
  #
253
276
  # @param key_id [string] (Optional) The unique Id of the API key. If not provided a secure random Id will be generated.
254
- # @param request [OpenStruct, Hash] The request object that contains all of the information needed to create the APIKey.
277
+ # @param request [OpenStruct, Hash] The request object that contains all the information needed to create the APIKey.
255
278
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
256
279
  def create_api_key(key_id, request)
257
280
  start.uri('/api/api-key')
@@ -897,7 +920,7 @@ module FusionAuth
897
920
  #
898
921
  # Removes users as members of a group.
899
922
  #
900
- # @param request [OpenStruct, Hash] The member request that contains all of the information used to remove members to the group.
923
+ # @param request [OpenStruct, Hash] The member request that contains all the information used to remove members to the group.
901
924
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
902
925
  def delete_group_members(request)
903
926
  start.uri('/api/group/member')
@@ -1239,7 +1262,8 @@ module FusionAuth
1239
1262
  # Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token.
1240
1263
  #
1241
1264
  # @param code [string] The authorization code returned on the /oauth2/authorize response.
1242
- # @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
1265
+ # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate.
1266
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
1243
1267
  # @param client_secret [string] (Optional) The client secret. This value will be required if client authentication is enabled.
1244
1268
  # @param redirect_uri [string] The URI to redirect to upon a successful request.
1245
1269
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -1263,6 +1287,7 @@ module FusionAuth
1263
1287
  #
1264
1288
  # @param code [string] The authorization code returned on the /oauth2/authorize response.
1265
1289
  # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
1290
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
1266
1291
  # @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1267
1292
  # @param redirect_uri [string] The URI to redirect to upon a successful request.
1268
1293
  # @param code_verifier [string] The random string generated previously. Will be compared with the code_challenge sent previously, which allows the OAuth provider to authenticate your app.
@@ -1288,6 +1313,7 @@ module FusionAuth
1288
1313
  #
1289
1314
  # @param refresh_token [string] The refresh token that you would like to use to exchange for an access token.
1290
1315
  # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
1316
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
1291
1317
  # @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1292
1318
  # @param scope [string] (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
1293
1319
  # @param user_code [string] (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
@@ -1326,6 +1352,7 @@ module FusionAuth
1326
1352
  # @param username [string] The login identifier of the user. The login identifier can be either the email or the username.
1327
1353
  # @param password [string] The user’s password.
1328
1354
  # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
1355
+ # This parameter is optional when Basic Authorization is used to authenticate this request.
1329
1356
  # @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1330
1357
  # @param scope [string] (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
1331
1358
  # @param user_code [string] (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
@@ -1478,7 +1505,7 @@ module FusionAuth
1478
1505
  # body with specific validation errors. This will slow the request down but will allow you to identify the cause of
1479
1506
  # the failure. See the validateDbConstraints request parameter.
1480
1507
  #
1481
- # @param request [OpenStruct, Hash] The request that contains all of the information about all of the refresh tokens to import.
1508
+ # @param request [OpenStruct, Hash] The request that contains all the information about all the refresh tokens to import.
1482
1509
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1483
1510
  def import_refresh_tokens(request)
1484
1511
  start.uri('/api/user/refresh-token/import')
@@ -1497,7 +1524,7 @@ module FusionAuth
1497
1524
  # body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See
1498
1525
  # the validateDbConstraints request parameter.
1499
1526
  #
1500
- # @param request [OpenStruct, Hash] The request that contains all of the information about all of the users to import.
1527
+ # @param request [OpenStruct, Hash] The request that contains all the information about all the users to import.
1501
1528
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1502
1529
  def import_users(request)
1503
1530
  start.uri('/api/user/import')
@@ -1519,10 +1546,10 @@ module FusionAuth
1519
1546
  end
1520
1547
 
1521
1548
  #
1522
- # Inspect an access token issued by FusionAuth.
1549
+ # Inspect an access token issued as the result of the User based grant such as the Authorization Code Grant, Implicit Grant, the User Credentials Grant or the Refresh Grant.
1523
1550
  #
1524
1551
  # @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application for which this token was generated.
1525
- # @param token [string] The access token returned by this OAuth provider as the result of a successful authentication.
1552
+ # @param token [string] The access token returned by this OAuth provider as the result of a successful client credentials grant.
1526
1553
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1527
1554
  def introspect_access_token(client_id, token)
1528
1555
  body = {
@@ -1535,6 +1562,21 @@ module FusionAuth
1535
1562
  .go()
1536
1563
  end
1537
1564
 
1565
+ #
1566
+ # Inspect an access token issued as the result of the Client Credentials Grant.
1567
+ #
1568
+ # @param token [string] The access token returned by this OAuth provider as the result of a successful client credentials grant.
1569
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1570
+ def introspect_client_credentials_access_token(token)
1571
+ body = {
1572
+ "token" => token
1573
+ }
1574
+ startAnonymous.uri('/oauth2/introspect')
1575
+ .body_handler(FusionAuth::FormDataBodyHandler.new(body))
1576
+ .post()
1577
+ .go()
1578
+ end
1579
+
1538
1580
  #
1539
1581
  # Issue a new access token (JWT) for the requested Application after ensuring the provided JWT is valid. A valid
1540
1582
  # access token is properly signed and not expired.
@@ -1611,7 +1653,7 @@ module FusionAuth
1611
1653
  # client and revoke the refresh token stored. This API does nothing if the request does not contain an access
1612
1654
  # token or refresh token cookies.
1613
1655
  #
1614
- # @param global [Boolean] When this value is set to true all of the refresh tokens issued to the owner of the
1656
+ # @param global [Boolean] When this value is set to true all the refresh tokens issued to the owner of the
1615
1657
  # provided token will be revoked.
1616
1658
  # @param refresh_token [string] (Optional) The refresh_token as a request parameter instead of coming in via a cookie.
1617
1659
  # If provided this takes precedence over the cookie.
@@ -1655,7 +1697,7 @@ module FusionAuth
1655
1697
  # action.
1656
1698
  #
1657
1699
  # @param action_id [string] The Id of the action to modify. This is technically the user action log id.
1658
- # @param request [OpenStruct, Hash] The request that contains all of the information about the modification.
1700
+ # @param request [OpenStruct, Hash] The request that contains all the information about the modification.
1659
1701
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1660
1702
  def modify_action(action_id, request)
1661
1703
  start.uri('/api/user/action')
@@ -1668,7 +1710,7 @@ module FusionAuth
1668
1710
  #
1669
1711
  # Complete a login request using a passwordless code
1670
1712
  #
1671
- # @param request [OpenStruct, Hash] The passwordless login request that contains all of the information used to complete login.
1713
+ # @param request [OpenStruct, Hash] The passwordless login request that contains all the information used to complete login.
1672
1714
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1673
1715
  def passwordless_login(request)
1674
1716
  startAnonymous.uri('/api/passwordless/login')
@@ -1681,7 +1723,7 @@ module FusionAuth
1681
1723
  # Updates an authentication API key by given id
1682
1724
  #
1683
1725
  # @param key_id [string] The Id of the authentication key. If not provided a secure random api key will be generated.
1684
- # @param request [OpenStruct, Hash] The request object that contains all of the information needed to create the APIKey.
1726
+ # @param request [OpenStruct, Hash] The request object that contains all the information needed to create the APIKey.
1685
1727
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
1686
1728
  def patch_api_key(key_id, request)
1687
1729
  start.uri('/api/api-key')
@@ -2211,7 +2253,7 @@ module FusionAuth
2211
2253
  end
2212
2254
 
2213
2255
  #
2214
- # Retrieves the application for the given id or all of the applications if the id is null.
2256
+ # Retrieves the application for the given id or all the applications if the id is null.
2215
2257
  #
2216
2258
  # @param application_id [string] (Optional) The application id.
2217
2259
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2306,7 +2348,7 @@ module FusionAuth
2306
2348
  end
2307
2349
 
2308
2350
  #
2309
- # Retrieves the email template for the given Id. If you don't specify the id, this will return all of the email templates.
2351
+ # Retrieves the email template for the given Id. If you don't specify the id, this will return all the email templates.
2310
2352
  #
2311
2353
  # @param email_template_id [string] (Optional) The Id of the email template.
2312
2354
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2507,7 +2549,7 @@ module FusionAuth
2507
2549
  end
2508
2550
 
2509
2551
  #
2510
- # Retrieves the identity provider for the given id or all of the identity providers if the id is null.
2552
+ # Retrieves the identity provider for the given id or all the identity providers if the id is null.
2511
2553
  #
2512
2554
  # @param identity_provider_id [string] The identity provider Id.
2513
2555
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2706,7 +2748,7 @@ module FusionAuth
2706
2748
  end
2707
2749
 
2708
2750
  #
2709
- # Retrieves the message template for the given Id. If you don't specify the id, this will return all of the message templates.
2751
+ # Retrieves the message template for the given Id. If you don't specify the id, this will return all the message templates.
2710
2752
  #
2711
2753
  # @param message_template_id [string] (Optional) The Id of the message template.
2712
2754
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2840,6 +2882,20 @@ module FusionAuth
2840
2882
  .go()
2841
2883
  end
2842
2884
 
2885
+ #
2886
+ # Retrieve a pending identity provider link. This is useful to validate a pending link and retrieve meta-data about the identity provider link.
2887
+ #
2888
+ # @param p_ending_link_id [string] The pending link Id.
2889
+ # @param user_id [string] The optional userId. When provided additional meta-data will be provided to identify how many links if any the user already has.
2890
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2891
+ def retrieve_pending_link(pending_link_id, user_id)
2892
+ start.uri('/api/identity-provider/link/pending')
2893
+ .url_segment(pending_link_id)
2894
+ .url_parameter('userId', user_id)
2895
+ .get()
2896
+ .go()
2897
+ end
2898
+
2843
2899
  #
2844
2900
  # Retrieves the FusionAuth Reactor metrics.
2845
2901
  #
@@ -2995,7 +3051,7 @@ module FusionAuth
2995
3051
  end
2996
3052
 
2997
3053
  #
2998
- # Retrieves the totals report. This contains all of the total counts for each application and the global registration
3054
+ # Retrieves the totals report. This contains all the total counts for each application and the global registration
2999
3055
  # count.
3000
3056
  #
3001
3057
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3049,7 +3105,7 @@ module FusionAuth
3049
3105
  end
3050
3106
 
3051
3107
  #
3052
- # Retrieves the user action for the given Id. If you pass in null for the id, this will return all of the user
3108
+ # Retrieves the user action for the given Id. If you pass in null for the id, this will return all the user
3053
3109
  # actions.
3054
3110
  #
3055
3111
  # @param user_action_id [string] (Optional) The Id of the user action.
@@ -3062,7 +3118,7 @@ module FusionAuth
3062
3118
  end
3063
3119
 
3064
3120
  #
3065
- # Retrieves the user action reason for the given Id. If you pass in null for the id, this will return all of the user
3121
+ # Retrieves the user action reason for the given Id. If you pass in null for the id, this will return all the user
3066
3122
  # action reasons.
3067
3123
  #
3068
3124
  # @param user_action_reason_id [string] (Optional) The Id of the user action reason.
@@ -3156,6 +3212,46 @@ module FusionAuth
3156
3212
  .go()
3157
3213
  end
3158
3214
 
3215
+ #
3216
+ # Retrieve a user_code that is part of an in-progress Device Authorization Grant.
3217
+ #
3218
+ # This API is useful if you want to build your own login workflow to complete a device grant.
3219
+ #
3220
+ # @param client_id [string] The client id.
3221
+ # @param client_secret [string] The client id.
3222
+ # @param user_code [string] The end-user verification code.
3223
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3224
+ def retrieve_user_code(client_id, client_secret, user_code)
3225
+ body = {
3226
+ "client_id" => client_id,
3227
+ "client_secret" => client_secret,
3228
+ "user_code" => user_code
3229
+ }
3230
+ startAnonymous.uri('/oauth2/device/user-code')
3231
+ .body_handler(FusionAuth::FormDataBodyHandler.new(body))
3232
+ .get()
3233
+ .go()
3234
+ end
3235
+
3236
+ #
3237
+ # Retrieve a user_code that is part of an in-progress Device Authorization Grant.
3238
+ #
3239
+ # This API is useful if you want to build your own login workflow to complete a device grant.
3240
+ #
3241
+ # This request will require an API key.
3242
+ #
3243
+ # @param user_code [string] The end-user verification code.
3244
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3245
+ def retrieve_user_code_using_api_key(user_code)
3246
+ body = {
3247
+ "user_code" => user_code
3248
+ }
3249
+ startAnonymous.uri('/oauth2/device/user-code')
3250
+ .body_handler(FusionAuth::FormDataBodyHandler.new(body))
3251
+ .get()
3252
+ .go()
3253
+ end
3254
+
3159
3255
  #
3160
3256
  # Retrieves all the comments for the user with the given Id.
3161
3257
  #
@@ -3779,7 +3875,7 @@ module FusionAuth
3779
3875
  # pairs in the email template.
3780
3876
  #
3781
3877
  # @param email_template_id [string] The id for the template.
3782
- # @param request [OpenStruct, Hash] The send email request that contains all of the information used to send the email.
3878
+ # @param request [OpenStruct, Hash] The send email request that contains all the information used to send the email.
3783
3879
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3784
3880
  def send_email(email_template_id, request)
3785
3881
  start.uri('/api/email/send')
@@ -3804,7 +3900,7 @@ module FusionAuth
3804
3900
  #
3805
3901
  # Send a passwordless authentication code in an email to complete login.
3806
3902
  #
3807
- # @param request [OpenStruct, Hash] The passwordless send request that contains all of the information used to send an email containing a code.
3903
+ # @param request [OpenStruct, Hash] The passwordless send request that contains all the information used to send an email containing a code.
3808
3904
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3809
3905
  def send_passwordless_code(request)
3810
3906
  startAnonymous.uri('/api/passwordless/send')
@@ -3855,7 +3951,7 @@ module FusionAuth
3855
3951
  # Send a Two Factor authentication code to allow the completion of Two Factor authentication.
3856
3952
  #
3857
3953
  # @param two_factor_id [string] The Id returned by the Login API necessary to complete Two Factor authentication.
3858
- # @param request [OpenStruct, Hash] The Two Factor send request that contains all of the information used to send the Two Factor code to the user.
3954
+ # @param request [OpenStruct, Hash] The Two Factor send request that contains all the information used to send the Two Factor code to the user.
3859
3955
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3860
3956
  def send_two_factor_code_for_login_using_method(two_factor_id, request)
3861
3957
  startAnonymous.uri('/api/two-factor/send')
@@ -3882,7 +3978,7 @@ module FusionAuth
3882
3978
  # Start a passwordless login request by generating a passwordless code. This code can be sent to the User using the Send
3883
3979
  # Passwordless Code API or using a mechanism outside of FusionAuth. The passwordless login is completed by using the Passwordless Login API with this code.
3884
3980
  #
3885
- # @param request [OpenStruct, Hash] The passwordless start request that contains all of the information used to begin the passwordless login request.
3981
+ # @param request [OpenStruct, Hash] The passwordless start request that contains all the information used to begin the passwordless login request.
3886
3982
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3887
3983
  def start_passwordless_login(request)
3888
3984
  start.uri('/api/passwordless/start')
@@ -3897,9 +3993,9 @@ module FusionAuth
3897
3993
  # to send the code out-of-band. The Two-Factor login is completed by making a request to the Two-Factor Login
3898
3994
  # API (/api/two-factor/login). with the two-factor identifier and the one-time use code.
3899
3995
  #
3900
- # This API is intended to allow you to begin a Two-Factor login outside of a normal login that originated from the Login API (/api/login).
3996
+ # This API is intended to allow you to begin a Two-Factor login outside a normal login that originated from the Login API (/api/login).
3901
3997
  #
3902
- # @param request [OpenStruct, Hash] The Two-Factor start request that contains all of the information used to begin the Two-Factor login request.
3998
+ # @param request [OpenStruct, Hash] The Two-Factor start request that contains all the information used to begin the Two-Factor login request.
3903
3999
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3904
4000
  def start_two_factor_login(request)
3905
4001
  start.uri('/api/two-factor/start')
@@ -3962,7 +4058,7 @@ module FusionAuth
3962
4058
  # Updates the application with the given Id.
3963
4059
  #
3964
4060
  # @param application_id [string] The Id of the application to update.
3965
- # @param request [OpenStruct, Hash] The request that contains all of the new application information.
4061
+ # @param request [OpenStruct, Hash] The request that contains all the new application information.
3966
4062
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3967
4063
  def update_application(application_id, request)
3968
4064
  start.uri('/api/application')
@@ -3977,7 +4073,7 @@ module FusionAuth
3977
4073
  #
3978
4074
  # @param application_id [string] The Id of the application that the role belongs to.
3979
4075
  # @param role_id [string] The Id of the role to update.
3980
- # @param request [OpenStruct, Hash] The request that contains all of the new role information.
4076
+ # @param request [OpenStruct, Hash] The request that contains all the new role information.
3981
4077
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3982
4078
  def update_application_role(application_id, role_id, request)
3983
4079
  start.uri('/api/application')
@@ -3993,7 +4089,7 @@ module FusionAuth
3993
4089
  # Updates the connector with the given Id.
3994
4090
  #
3995
4091
  # @param connector_id [string] The Id of the connector to update.
3996
- # @param request [OpenStruct, Hash] The request object that contains all of the new connector information.
4092
+ # @param request [OpenStruct, Hash] The request object that contains all the new connector information.
3997
4093
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3998
4094
  def update_connector(connector_id, request)
3999
4095
  start.uri('/api/connector')
@@ -4007,7 +4103,7 @@ module FusionAuth
4007
4103
  # Updates the consent with the given Id.
4008
4104
  #
4009
4105
  # @param consent_id [string] The Id of the consent to update.
4010
- # @param request [OpenStruct, Hash] The request that contains all of the new consent information.
4106
+ # @param request [OpenStruct, Hash] The request that contains all the new consent information.
4011
4107
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4012
4108
  def update_consent(consent_id, request)
4013
4109
  start.uri('/api/consent')
@@ -4021,7 +4117,7 @@ module FusionAuth
4021
4117
  # Updates the email template with the given Id.
4022
4118
  #
4023
4119
  # @param email_template_id [string] The Id of the email template to update.
4024
- # @param request [OpenStruct, Hash] The request that contains all of the new email template information.
4120
+ # @param request [OpenStruct, Hash] The request that contains all the new email template information.
4025
4121
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4026
4122
  def update_email_template(email_template_id, request)
4027
4123
  start.uri('/api/email/template')
@@ -4035,7 +4131,7 @@ module FusionAuth
4035
4131
  # Updates the Entity with the given Id.
4036
4132
  #
4037
4133
  # @param entity_id [string] The Id of the Entity to update.
4038
- # @param request [OpenStruct, Hash] The request that contains all of the new Entity information.
4134
+ # @param request [OpenStruct, Hash] The request that contains all the new Entity information.
4039
4135
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4040
4136
  def update_entity(entity_id, request)
4041
4137
  start.uri('/api/entity')
@@ -4049,7 +4145,7 @@ module FusionAuth
4049
4145
  # Updates the Entity Type with the given Id.
4050
4146
  #
4051
4147
  # @param entity_type_id [string] The Id of the Entity Type to update.
4052
- # @param request [OpenStruct, Hash] The request that contains all of the new Entity Type information.
4148
+ # @param request [OpenStruct, Hash] The request that contains all the new Entity Type information.
4053
4149
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4054
4150
  def update_entity_type(entity_type_id, request)
4055
4151
  start.uri('/api/entity/type')
@@ -4064,7 +4160,7 @@ module FusionAuth
4064
4160
  #
4065
4161
  # @param entity_type_id [string] The Id of the entityType that the permission belongs to.
4066
4162
  # @param permission_id [string] The Id of the permission to update.
4067
- # @param request [OpenStruct, Hash] The request that contains all of the new permission information.
4163
+ # @param request [OpenStruct, Hash] The request that contains all the new permission information.
4068
4164
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4069
4165
  def update_entity_type_permission(entity_type_id, permission_id, request)
4070
4166
  start.uri('/api/entity/type')
@@ -4080,7 +4176,7 @@ module FusionAuth
4080
4176
  # Updates the form with the given Id.
4081
4177
  #
4082
4178
  # @param form_id [string] The Id of the form to update.
4083
- # @param request [OpenStruct, Hash] The request object that contains all of the new form information.
4179
+ # @param request [OpenStruct, Hash] The request object that contains all the new form information.
4084
4180
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4085
4181
  def update_form(form_id, request)
4086
4182
  start.uri('/api/form')
@@ -4094,7 +4190,7 @@ module FusionAuth
4094
4190
  # Updates the form field with the given Id.
4095
4191
  #
4096
4192
  # @param field_id [string] The Id of the form field to update.
4097
- # @param request [OpenStruct, Hash] The request object that contains all of the new form field information.
4193
+ # @param request [OpenStruct, Hash] The request object that contains all the new form field information.
4098
4194
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4099
4195
  def update_form_field(field_id, request)
4100
4196
  start.uri('/api/form/field')
@@ -4108,7 +4204,7 @@ module FusionAuth
4108
4204
  # Updates the group with the given Id.
4109
4205
  #
4110
4206
  # @param group_id [string] The Id of the group to update.
4111
- # @param request [OpenStruct, Hash] The request that contains all of the new group information.
4207
+ # @param request [OpenStruct, Hash] The request that contains all the new group information.
4112
4208
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4113
4209
  def update_group(group_id, request)
4114
4210
  start.uri('/api/group')
@@ -4134,7 +4230,7 @@ module FusionAuth
4134
4230
  # Updates the IP Access Control List with the given Id.
4135
4231
  #
4136
4232
  # @param access_control_list_id [string] The Id of the IP Access Control List to update.
4137
- # @param request [OpenStruct, Hash] The request that contains all of the new IP Access Control List information.
4233
+ # @param request [OpenStruct, Hash] The request that contains all the new IP Access Control List information.
4138
4234
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4139
4235
  def update_ip_access_control_list(access_control_list_id, request)
4140
4236
  start.uri('/api/ip-acl')
@@ -4161,7 +4257,7 @@ module FusionAuth
4161
4257
  #
4162
4258
  # Updates the available integrations.
4163
4259
  #
4164
- # @param request [OpenStruct, Hash] The request that contains all of the new integration information.
4260
+ # @param request [OpenStruct, Hash] The request that contains all the new integration information.
4165
4261
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4166
4262
  def update_integrations(request)
4167
4263
  start.uri('/api/integration')
@@ -4174,7 +4270,7 @@ module FusionAuth
4174
4270
  # Updates the key with the given Id.
4175
4271
  #
4176
4272
  # @param key_id [string] The Id of the key to update.
4177
- # @param request [OpenStruct, Hash] The request that contains all of the new key information.
4273
+ # @param request [OpenStruct, Hash] The request that contains all the new key information.
4178
4274
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4179
4275
  def update_key(key_id, request)
4180
4276
  start.uri('/api/key')
@@ -4188,7 +4284,7 @@ module FusionAuth
4188
4284
  # Updates the lambda with the given Id.
4189
4285
  #
4190
4286
  # @param lambda_id [string] The Id of the lambda to update.
4191
- # @param request [OpenStruct, Hash] The request that contains all of the new lambda information.
4287
+ # @param request [OpenStruct, Hash] The request that contains all the new lambda information.
4192
4288
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4193
4289
  def update_lambda(lambda_id, request)
4194
4290
  start.uri('/api/lambda')
@@ -4202,7 +4298,7 @@ module FusionAuth
4202
4298
  # Updates the message template with the given Id.
4203
4299
  #
4204
4300
  # @param message_template_id [string] The Id of the message template to update.
4205
- # @param request [OpenStruct, Hash] The request that contains all of the new message template information.
4301
+ # @param request [OpenStruct, Hash] The request that contains all the new message template information.
4206
4302
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4207
4303
  def update_message_template(message_template_id, request)
4208
4304
  start.uri('/api/message/template')
@@ -4216,7 +4312,7 @@ module FusionAuth
4216
4312
  # Updates the messenger with the given Id.
4217
4313
  #
4218
4314
  # @param messenger_id [string] The Id of the messenger to update.
4219
- # @param request [OpenStruct, Hash] The request object that contains all of the new messenger information.
4315
+ # @param request [OpenStruct, Hash] The request object that contains all the new messenger information.
4220
4316
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4221
4317
  def update_messenger(messenger_id, request)
4222
4318
  start.uri('/api/messenger')
@@ -4230,7 +4326,7 @@ module FusionAuth
4230
4326
  # Updates the registration for the user with the given id and the application defined in the request.
4231
4327
  #
4232
4328
  # @param user_id [string] The Id of the user whose registration is going to be updated.
4233
- # @param request [OpenStruct, Hash] The request that contains all of the new registration information.
4329
+ # @param request [OpenStruct, Hash] The request that contains all the new registration information.
4234
4330
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4235
4331
  def update_registration(user_id, request)
4236
4332
  start.uri('/api/user/registration')
@@ -4243,7 +4339,7 @@ module FusionAuth
4243
4339
  #
4244
4340
  # Updates the system configuration.
4245
4341
  #
4246
- # @param request [OpenStruct, Hash] The request that contains all of the new system configuration information.
4342
+ # @param request [OpenStruct, Hash] The request that contains all the new system configuration information.
4247
4343
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4248
4344
  def update_system_configuration(request)
4249
4345
  start.uri('/api/system-configuration')
@@ -4256,7 +4352,7 @@ module FusionAuth
4256
4352
  # Updates the tenant with the given Id.
4257
4353
  #
4258
4354
  # @param tenant_id [string] The Id of the tenant to update.
4259
- # @param request [OpenStruct, Hash] The request that contains all of the new tenant information.
4355
+ # @param request [OpenStruct, Hash] The request that contains all the new tenant information.
4260
4356
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4261
4357
  def update_tenant(tenant_id, request)
4262
4358
  start.uri('/api/tenant')
@@ -4270,7 +4366,7 @@ module FusionAuth
4270
4366
  # Updates the theme with the given Id.
4271
4367
  #
4272
4368
  # @param theme_id [string] The Id of the theme to update.
4273
- # @param request [OpenStruct, Hash] The request that contains all of the new theme information.
4369
+ # @param request [OpenStruct, Hash] The request that contains all the new theme information.
4274
4370
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4275
4371
  def update_theme(theme_id, request)
4276
4372
  start.uri('/api/theme')
@@ -4284,7 +4380,7 @@ module FusionAuth
4284
4380
  # Updates the user with the given Id.
4285
4381
  #
4286
4382
  # @param user_id [string] The Id of the user to update.
4287
- # @param request [OpenStruct, Hash] The request that contains all of the new user information.
4383
+ # @param request [OpenStruct, Hash] The request that contains all the new user information.
4288
4384
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4289
4385
  def update_user(user_id, request)
4290
4386
  start.uri('/api/user')
@@ -4298,7 +4394,7 @@ module FusionAuth
4298
4394
  # Updates the user action with the given Id.
4299
4395
  #
4300
4396
  # @param user_action_id [string] The Id of the user action to update.
4301
- # @param request [OpenStruct, Hash] The request that contains all of the new user action information.
4397
+ # @param request [OpenStruct, Hash] The request that contains all the new user action information.
4302
4398
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4303
4399
  def update_user_action(user_action_id, request)
4304
4400
  start.uri('/api/user-action')
@@ -4312,7 +4408,7 @@ module FusionAuth
4312
4408
  # Updates the user action reason with the given Id.
4313
4409
  #
4314
4410
  # @param user_action_reason_id [string] The Id of the user action reason to update.
4315
- # @param request [OpenStruct, Hash] The request that contains all of the new user action reason information.
4411
+ # @param request [OpenStruct, Hash] The request that contains all the new user action reason information.
4316
4412
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4317
4413
  def update_user_action_reason(user_action_reason_id, request)
4318
4414
  start.uri('/api/user-action-reason')
@@ -4340,7 +4436,7 @@ module FusionAuth
4340
4436
  # Updates the webhook with the given Id.
4341
4437
  #
4342
4438
  # @param webhook_id [string] The Id of the webhook to update.
4343
- # @param request [OpenStruct, Hash] The request that contains all of the new webhook information.
4439
+ # @param request [OpenStruct, Hash] The request that contains all the new webhook information.
4344
4440
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4345
4441
  def update_webhook(webhook_id, request)
4346
4442
  start.uri('/api/webhook')
@@ -4406,7 +4502,7 @@ module FusionAuth
4406
4502
  # 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
4407
4503
  # by way of the X-FusionAuth-TenantId request header, or a tenant scoped API key.
4408
4504
  #
4409
- # @param request [OpenStruct, Hash] The request that contains all of the claims for this JWT.
4505
+ # @param request [OpenStruct, Hash] The request that contains all the claims for this JWT.
4410
4506
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4411
4507
  def vend_jwt(request)
4412
4508
  start.uri('/api/jwt/vend')
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.45.0
4
+ version: 1.46.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: 2023-04-11 00:00:00.000000000 Z
12
+ date: 2023-06-20 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.