fusionauth_client 1.56.0 → 1.57.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.
Binary file
Binary file
@@ -1338,16 +1338,6 @@
1338
1338
  —
1339
1339
  <span class="container">FusionAuth::FusionAuthClient</span>
1340
1340
 
1341
- <li class="method">
1342
- <a href="FusionAuth/FusionAuthClient.html#method-i-retrieve_webhook_attempt_log">#retrieve_webhook_attempt_log</a>
1343
- &mdash;
1344
- <span class="container">FusionAuth::FusionAuthClient</span>
1345
-
1346
- <li class="method">
1347
- <a href="FusionAuth/FusionAuthClient.html#method-i-retrieve_webhook_event_log">#retrieve_webhook_event_log</a>
1348
- &mdash;
1349
- <span class="container">FusionAuth::FusionAuthClient</span>
1350
-
1351
1341
  <li class="method">
1352
1342
  <a href="FusionAuth/FusionAuthClient.html#method-i-retrieve_webhooks">#retrieve_webhooks</a>
1353
1343
  &mdash;
@@ -1508,11 +1498,6 @@
1508
1498
  &mdash;
1509
1499
  <span class="container">FusionAuth::FusionAuthClient</span>
1510
1500
 
1511
- <li class="method">
1512
- <a href="FusionAuth/FusionAuthClient.html#method-i-search_webhook_event_logs">#search_webhook_event_logs</a>
1513
- &mdash;
1514
- <span class="container">FusionAuth::FusionAuthClient</span>
1515
-
1516
1501
  <li class="method">
1517
1502
  <a href="FusionAuth/FusionAuthClient.html#method-i-search_webhooks">#search_webhooks</a>
1518
1503
  &mdash;
@@ -6,11 +6,11 @@
6
6
  <sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
7
7
  <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
8
8
  </content>
9
- <orderEntry type="jdk" jdkName="rbenv: 2.7.5" jdkType="RUBY_SDK" />
9
+ <orderEntry type="jdk" jdkName="rbenv: 3.4.2" jdkType="RUBY_SDK" />
10
10
  <orderEntry type="sourceFolder" forTests="false" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.22, rbenv: 2.7.5) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="cgi (v0.4.1, rbenv: 2.7.5) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="psych (v5.1.2, rbenv: 2.7.5) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, rbenv: 2.7.5) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.6.2, rbenv: 3.4.2) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="cgi (v0.4.2, rbenv: 3.4.2) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="psych (v5.2.3, rbenv: 3.4.2) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.2.1, rbenv: 3.4.2) [gem]" level="application" />
15
15
  </component>
16
- </module>
16
+ </module>
@@ -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.56.0'
22
+ spec.version = '1.57.0'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
@@ -1840,6 +1840,20 @@ module FusionAuth
1840
1840
  .go
1841
1841
  end
1842
1842
 
1843
+ #
1844
+ # Updates, via PATCH, the Entity with the given Id.
1845
+ #
1846
+ # @param entity_id [string] The Id of the Entity Type to update.
1847
+ # @param request [OpenStruct, Hash] The request that contains just the new Entity information.
1848
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1849
+ def patch_entity(entity_id, request)
1850
+ start.uri('/api/entity')
1851
+ .url_segment(entity_id)
1852
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1853
+ .patch
1854
+ .go
1855
+ end
1856
+
1843
1857
  #
1844
1858
  # Updates, via PATCH, the Entity Type with the given Id.
1845
1859
  #
@@ -1854,6 +1868,51 @@ module FusionAuth
1854
1868
  .go
1855
1869
  end
1856
1870
 
1871
+ #
1872
+ # Patches the permission with the given Id for the entity type.
1873
+ #
1874
+ # @param entity_type_id [string] The Id of the entityType that the permission belongs to.
1875
+ # @param permission_id [string] The Id of the permission to patch.
1876
+ # @param request [OpenStruct, Hash] The request that contains the new permission information.
1877
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1878
+ def patch_entity_type_permission(entity_type_id, permission_id, request)
1879
+ start.uri('/api/entity/type')
1880
+ .url_segment(entity_type_id)
1881
+ .url_segment("permission")
1882
+ .url_segment(permission_id)
1883
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1884
+ .patch
1885
+ .go
1886
+ end
1887
+
1888
+ #
1889
+ # Patches the form with the given Id.
1890
+ #
1891
+ # @param form_id [string] The Id of the form to patch.
1892
+ # @param request [OpenStruct, Hash] The request object that contains the new form information.
1893
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1894
+ def patch_form(form_id, request)
1895
+ start.uri('/api/form')
1896
+ .url_segment(form_id)
1897
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1898
+ .patch
1899
+ .go
1900
+ end
1901
+
1902
+ #
1903
+ # Patches the form field with the given Id.
1904
+ #
1905
+ # @param field_id [string] The Id of the form field to patch.
1906
+ # @param request [OpenStruct, Hash] The request object that contains the new form field information.
1907
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1908
+ def patch_form_field(field_id, request)
1909
+ start.uri('/api/form/field')
1910
+ .url_segment(field_id)
1911
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1912
+ .patch
1913
+ .go
1914
+ end
1915
+
1857
1916
  #
1858
1917
  # Updates, via PATCH, the group with the given Id.
1859
1918
  #
@@ -1868,6 +1927,20 @@ module FusionAuth
1868
1927
  .go
1869
1928
  end
1870
1929
 
1930
+ #
1931
+ # Update the IP Access Control List with the given Id.
1932
+ #
1933
+ # @param access_control_list_id [string] The Id of the IP Access Control List to patch.
1934
+ # @param request [OpenStruct, Hash] The request that contains the new IP Access Control List information.
1935
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1936
+ def patch_ip_access_control_list(access_control_list_id, request)
1937
+ start.uri('/api/ip-acl')
1938
+ .url_segment(access_control_list_id)
1939
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1940
+ .patch
1941
+ .go
1942
+ end
1943
+
1871
1944
  #
1872
1945
  # Updates, via PATCH, the identity provider with the given Id.
1873
1946
  #
@@ -2063,6 +2136,20 @@ module FusionAuth
2063
2136
  .go
2064
2137
  end
2065
2138
 
2139
+ #
2140
+ # Patches the webhook with the given Id.
2141
+ #
2142
+ # @param webhook_id [string] The Id of the webhook to update.
2143
+ # @param request [OpenStruct, Hash] The request that contains the new webhook information.
2144
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2145
+ def patch_webhook(webhook_id, request)
2146
+ start.uri('/api/webhook')
2147
+ .url_segment(webhook_id)
2148
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
2149
+ .patch
2150
+ .go
2151
+ end
2152
+
2066
2153
  #
2067
2154
  # Reactivates the application with the given Id.
2068
2155
  #
@@ -4304,6 +4391,20 @@ module FusionAuth
4304
4391
  .go
4305
4392
  end
4306
4393
 
4394
+ #
4395
+ # Updates a family with a given Id.
4396
+ #
4397
+ # @param family_id [string] The Id of the family to update.
4398
+ # @param request [OpenStruct, Hash] The request object that contains all the new family information.
4399
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4400
+ def update_family(family_id, request)
4401
+ start.uri('/api/user/family')
4402
+ .url_segment(family_id)
4403
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
4404
+ .put
4405
+ .go
4406
+ end
4407
+
4307
4408
  #
4308
4409
  # Updates the form with the given Id.
4309
4410
  #
data/run-act.sh ADDED
@@ -0,0 +1,130 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -o errexit
4
+ set -o nounset
5
+ set -o pipefail
6
+
7
+ EVENT="workflow_dispatch"
8
+ INPUTS=""
9
+ PARSED_INPUTS=()
10
+ PROFILE=""
11
+ VERBOSE=false
12
+ WORKFLOW=""
13
+
14
+ # Script metadata. Don't modify this.
15
+ MYDIR=$(cd -- "$(dirname "$0")" >/dev/null 2>&1; pwd -P)
16
+ cd "${MYDIR}"
17
+ MYNAME=$(basename "$0")
18
+
19
+ # Configure colorful messages.
20
+ GRAY=$(tput setaf 248)
21
+ GREEN=$(tput setaf 2)
22
+ RED=$(tput setaf 202)
23
+ RESET=$(tput sgr0)
24
+
25
+ # Output formatting.
26
+ function success() { echo -e "${GREEN}${1}${RESET}"; }
27
+ function info() { echo -e "${GRAY}${1}${RESET}"; }
28
+ function error() { echo -e "${RED}ERROR: ${1}${RESET}" >&2; }
29
+ function fail() { echo -e "\n${RED}ERROR: ${1}${RESET}" >&2; exit 1; }
30
+ function argerr() { echo -e "\n${RED}ERROR: ${1}${RESET}" >&2; show_help; }
31
+
32
+ # Helper functions.
33
+ function file_missing() { if [[ -f "${1}" ]]; then return 1; else return 0; fi }
34
+
35
+ function show_help() {
36
+ echo -e "\nUsage: ${MYNAME} --workflow [workflow-name.yaml] --profile [aws-profile-name]\n"
37
+ echo -e " Flags Description Req Default"
38
+ echo -e " ------------- ---------------------------- --- -------------------"
39
+ echo -e " -e --event Github event to simulate workflow_dispatch"
40
+ echo -e " -i --inputs CSV list of k/v pairs * ${GRAY}null${RESET}"
41
+ echo -e " -p --profile AWS profile to use for auth Y ${GRAY}null${RESET}"
42
+ echo -e " -v --verbose Enable verbose mode (set -xv) ${GRAY}disabled${RESET}"
43
+ echo -e " -w --workflow Path/file of workflow to run Y ${GRAY}null${RESET}"
44
+ echo -e " -h --help Show this message\n"
45
+ echo -e " * --inputs requirements are determined by the workflow.\n"
46
+ echo -e "See https://nektosact.com/ for more info about 'act'.\n"
47
+ exit
48
+ }
49
+
50
+
51
+ function parse_args() {
52
+ # Parse the args.
53
+ while [[ $# -gt 0 ]]; do
54
+ case $1 in
55
+ -e|--event) shift
56
+ if (( $# < 1 )); then argerr "--event requires an event type [push|pull_request|workflow_dispatch]"
57
+ else EVENT="${1}"; fi
58
+ shift;;
59
+ -i|--inputs) shift
60
+ if (( $# < 1 )); then argerr "--inputs requires a csv list of input args"
61
+ else INPUTS="${1}"; fi
62
+ shift;;
63
+ -p|--profile) shift
64
+ if (( $# < 1 )); then argerr "--profile requires an AWS profile name"
65
+ else PROFILE="${1}"; fi
66
+ shift;;
67
+ -w|--workflow) shift
68
+ if (( $# < 1 )); then argerr "--workflow requires a path to a workflow file"
69
+ else WORKFLOW="${1}"; fi
70
+ shift;;
71
+ -v|--verbose) VERBOSE=true; shift;;
72
+ -h|--help) show_help;;
73
+ *) argerr "Unknown argument '$1'";;
74
+ esac
75
+ done
76
+
77
+ # Enable verbose mode if requested.
78
+ if [ "${VERBOSE}" = true ]; then set -xv; fi
79
+
80
+ # Make sure --workflow is passed.
81
+ if [[ -z "${WORKFLOW}" ]]; then argerr "--workflow is required"; fi
82
+ # Make sure --workflow is passed.
83
+ if [[ -z "${PROFILE}" ]]; then argerr "--profile is required"; fi
84
+ # Make sure workflow file exists
85
+ if file_missing "${WORKFLOW}"; then fail "Workflow '${WORKFLOW}' does not exist"; fi
86
+ }
87
+
88
+
89
+ function validate_prereqs() {
90
+ local prereqs="act gh"
91
+ for p in ${prereqs}; do
92
+ if ! command -v "${p}" &>/dev/null; then
93
+ error "${p} not found. Install it and try again."
94
+ if [[ "${p}" == "gh" ]]; then
95
+ info "\nAfter installing gh, login:"
96
+ info " gh auth login"
97
+ info "\nMake sure you can get a token:"
98
+ info " gh auth token"
99
+ fi
100
+ exit 1
101
+ fi
102
+ done
103
+ }
104
+
105
+
106
+ function parse_inputs() {
107
+ if [[ -n "${INPUTS}" ]]; then
108
+ IFS=","
109
+ for i in ${INPUTS}; do
110
+ PARSED_INPUTS+=(--input "${i}")
111
+ done
112
+ fi
113
+ }
114
+
115
+
116
+ function main() {
117
+ parse_args "$@"
118
+ validate_prereqs
119
+ parse_inputs
120
+
121
+ act "${EVENT}" \
122
+ --secret GITHUB_TOKEN="$(gh auth token)" \
123
+ --secret-file .env \
124
+ --workflows "${WORKFLOW}" \
125
+ --env-file <(aws configure export-credentials --profile "${PROFILE}" --format env) \
126
+ "${PARSED_INPUTS[@]}"
127
+ }
128
+
129
+
130
+ main "$@"
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.56.0
4
+ version: 1.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
8
8
  - Daniel DeGroff
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2025-03-07 00:00:00.000000000 Z
11
+ date: 2025-04-07 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: This library contains the Ruby client library that helps you connect
15
14
  your application to FusionAuth.
@@ -90,12 +89,12 @@ files:
90
89
  - fusionauth_client.gemspec
91
90
  - lib/fusionauth/fusionauth_client.rb
92
91
  - lib/fusionauth/rest_client.rb
92
+ - run-act.sh
93
93
  homepage: https://github.com/FusionAuth/fusionauth-ruby-client
94
94
  licenses:
95
95
  - Apache-2.0
96
96
  metadata:
97
97
  allowed_push_host: https://rubygems.org
98
- post_install_message:
99
98
  rdoc_options: []
100
99
  require_paths:
101
100
  - lib
@@ -110,8 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
109
  - !ruby/object:Gem::Version
111
110
  version: '0'
112
111
  requirements: []
113
- rubygems_version: 3.4.22
114
- signing_key:
112
+ rubygems_version: 3.6.2
115
113
  specification_version: 4
116
114
  summary: The Ruby client library for FusionAuth
117
115
  test_files: []