auth0 4.12.0 → 4.17.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: 5aa06f59c1696dbadf9345ff1843f247ca305fd5340d84b75252fe5bd465d27a
4
- data.tar.gz: dd3d9c156870dcf9b50a48870aab8a6b44c67b560835de6b52222f217718a5b1
3
+ metadata.gz: c8c62c5e91e6d2cb4c8f880cfaa40748810e4a4f4597614b62443a437ebe33da
4
+ data.tar.gz: 2c795124374e41882193dd1ca28f66d0836b41f612c19b886965f377d7180b0f
5
5
  SHA512:
6
- metadata.gz: 8369176c7e8b3dcf740aa144650d345c4c5803e8718764d278591e13b72327c0cb6bae1b2dde710b48fe0c31991433d0433cbac9a422cbea58359abb0b986764
7
- data.tar.gz: 5ff4c3af66bc7cd480808c98158f1a039eb765eed10ffa19d8a1c5c7bf4c9c8bdc20d8b535dd7ea5efcf934b64e8ffbd3395480b1925b33a8a6aba7550afdaf7
6
+ metadata.gz: 2b52f55fd579802757e32a671c8683e78b97aac5b16b95e01f12c38f1c07e309e144ce8e4e550708a1d8c6e020f562c465c217335fa11b7b1792fd7982b06df2
7
+ data.tar.gz: b001dad86055959657c27493d34a553e5a165a9ffd10947ac9d461bb76cc9c2c4995d82e99501ef8ea4b2d2f4cbbc08fdd3c7b59b145828cad40310c1b72e7b6
@@ -1,5 +1,65 @@
1
1
  # Change Log
2
2
 
3
+
4
+ ## [v4.17.0](https://github.com/auth0/ruby-auth0/tree/v4.17.0) (2020-10-19)
5
+
6
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.16.0...v4.17.0)
7
+
8
+ **Added**
9
+
10
+ - Add pagination to user permissions [\#241](https://github.com/auth0/ruby-auth0/pull/241) ([davidpatrick](https://github.com/davidpatrick))
11
+
12
+ **Deprecated**
13
+
14
+ - Addressable URI Escape [\#240](https://github.com/auth0/ruby-auth0/pull/240) ([davidpatrick](https://github.com/apps/davidpatrick))
15
+
16
+
17
+ ## [v4.16.0](https://github.com/auth0/ruby-auth0/tree/v4.16.0) (2020-10-02)
18
+
19
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.15.0...v4.16.0)
20
+
21
+ **Added**
22
+
23
+ - New Email Verification Fields [\#237](https://github.com/auth0/ruby-auth0/pull/237) ([davidpatrick](https://github.com/davidpatrick))
24
+
25
+ **Security**
26
+
27
+ - Bump actionview from 6.0.3.2 to 6.0.3.3 [\#236](https://github.com/auth0/ruby-auth0/pull/236) ([dependabot[bot]](https://github.com/apps/dependabot))
28
+
29
+ ## [v4.15.0](https://github.com/auth0/ruby-auth0/tree/v4.15.0) (2020-09-04)
30
+
31
+ **Added**
32
+
33
+ - Add log streaming endpoints [\#233](https://github.com/auth0/ruby-auth0/pull/233) ([davidpatrick](https://github.com/davidpatrick))
34
+
35
+ ## [v4.14.0](https://github.com/auth0/ruby-auth0/tree/v4.14.0) (2020-07-20)
36
+
37
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.13.0...v4.14.0)
38
+
39
+ **Deprecated**
40
+
41
+ - Deprecate mgmt v1 calls [\#230](https://github.com/auth0/ruby-auth0/pull/230) ([davidpatrick](https://github.com/davidpatrick))
42
+
43
+ **Removed**
44
+
45
+ - Remove iat claim value check [\#229](https://github.com/auth0/ruby-auth0/pull/229) ([lbalmaceda](https://github.com/lbalmaceda))
46
+
47
+ **Fixed**
48
+
49
+ - Handle missing reset header [\#228](https://github.com/auth0/ruby-auth0/pull/228) ([Widcket](https://github.com/Widcket))
50
+
51
+ ## [v4.13.0](https://github.com/auth0/ruby-auth0/tree/v4.13.0) (2020-06-18)
52
+
53
+ [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.12.0...v4.13.0)
54
+
55
+ **Added**
56
+
57
+ - Add prompts endpoints [\#205](https://github.com/auth0/ruby-auth0/pull/205) ([unhappychoice](https://github.com/unhappychoice))
58
+
59
+ **Fixed**
60
+
61
+ - Fix missing to_json [\#212](https://github.com/auth0/ruby-auth0/pull/212) ([qortex](https://github.com/qortex))
62
+
3
63
  ## [v4.12.0](https://github.com/auth0/ruby-auth0/tree/v4.12.0) (2020-06-10)
4
64
 
5
65
  [Full Changelog](https://github.com/auth0/ruby-auth0/compare/v4.11.0...v4.12.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auth0 (4.12.0)
4
+ auth0 (4.17.0)
5
5
  jwt (~> 2.2.0)
6
6
  rest-client (~> 2.0.0)
7
7
  zache (~> 0.12.0)
@@ -9,20 +9,20 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.0.3.1)
13
- actionview (= 6.0.3.1)
14
- activesupport (= 6.0.3.1)
12
+ actionpack (6.0.3.4)
13
+ actionview (= 6.0.3.4)
14
+ activesupport (= 6.0.3.4)
15
15
  rack (~> 2.0, >= 2.0.8)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.0.3.1)
20
- activesupport (= 6.0.3.1)
19
+ actionview (6.0.3.4)
20
+ activesupport (= 6.0.3.4)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activesupport (6.0.3.1)
25
+ activesupport (6.0.3.4)
26
26
  concurrent-ruby (~> 1.0, >= 1.0.2)
27
27
  i18n (>= 0.7, < 2)
28
28
  minitest (~> 5.1)
@@ -32,29 +32,27 @@ GEM
32
32
  public_suffix (>= 2.0.2, < 5.0)
33
33
  ast (2.4.1)
34
34
  builder (3.2.4)
35
- codecov (0.1.17)
35
+ codecov (0.2.12)
36
36
  json
37
37
  simplecov
38
- url
39
38
  coderay (1.1.3)
40
- concurrent-ruby (1.1.6)
39
+ concurrent-ruby (1.1.7)
41
40
  coveralls (0.7.1)
42
41
  multi_json (~> 1.3)
43
42
  rest-client
44
43
  simplecov (>= 0.7)
45
44
  term-ansicolor
46
45
  thor
47
- crack (0.4.3)
48
- safe_yaml (~> 1.0.0)
46
+ crack (0.4.4)
49
47
  crass (1.0.6)
50
- diff-lcs (1.3)
48
+ diff-lcs (1.4.4)
51
49
  docile (1.3.2)
52
50
  domain_name (0.5.20190701)
53
51
  unf (>= 0.0.5, < 1.0.0)
54
- dotenv (2.7.5)
55
- dotenv-rails (2.7.5)
56
- dotenv (= 2.7.5)
57
- railties (>= 3.2, < 6.1)
52
+ dotenv (2.7.6)
53
+ dotenv-rails (2.7.6)
54
+ dotenv (= 2.7.6)
55
+ railties (>= 3.2)
58
56
  erubi (1.9.0)
59
57
  faker (1.9.6)
60
58
  i18n (>= 0.7)
@@ -81,42 +79,42 @@ GEM
81
79
  hashdiff (1.0.1)
82
80
  http-cookie (1.0.3)
83
81
  domain_name (~> 0.5)
84
- i18n (1.8.3)
82
+ i18n (1.8.5)
85
83
  concurrent-ruby (~> 1.0)
86
- json (2.3.0)
87
- jwt (2.2.1)
84
+ json (2.3.1)
85
+ jwt (2.2.2)
88
86
  listen (3.2.1)
89
87
  rb-fsevent (~> 0.10, >= 0.10.3)
90
88
  rb-inotify (~> 0.9, >= 0.9.10)
91
- loofah (2.5.0)
89
+ loofah (2.7.0)
92
90
  crass (~> 1.0.2)
93
91
  nokogiri (>= 1.5.9)
94
- lumberjack (1.2.5)
92
+ lumberjack (1.2.8)
95
93
  method_source (0.8.2)
96
94
  mime-types (3.3.1)
97
95
  mime-types-data (~> 3.2015)
98
96
  mime-types-data (3.2020.0512)
99
97
  mini_portile2 (2.4.0)
100
- minitest (5.14.1)
101
- multi_json (1.14.1)
98
+ minitest (5.14.2)
99
+ multi_json (1.15.0)
102
100
  nenv (0.3.0)
103
101
  netrc (0.11.0)
104
- nokogiri (1.10.9)
102
+ nokogiri (1.10.10)
105
103
  mini_portile2 (~> 2.4.0)
106
104
  notiffany (0.1.3)
107
105
  nenv (~> 0.1)
108
106
  shellany (~> 0.0)
109
- parallel (1.19.1)
110
- parser (2.7.1.3)
111
- ast (~> 2.4.0)
107
+ parallel (1.19.2)
108
+ parser (2.7.2.0)
109
+ ast (~> 2.4.1)
112
110
  pry (0.10.4)
113
111
  coderay (~> 1.1.0)
114
112
  method_source (~> 0.8.1)
115
113
  slop (~> 3.4)
116
114
  pry-nav (0.2.4)
117
115
  pry (>= 0.9.10, < 0.11.0)
118
- public_suffix (4.0.5)
119
- rack (2.1.3)
116
+ public_suffix (4.0.6)
117
+ rack (2.1.4)
120
118
  rack-test (0.8.3)
121
119
  rack (>= 1.0, < 3)
122
120
  rails-dom-testing (2.0.3)
@@ -124,9 +122,9 @@ GEM
124
122
  nokogiri (>= 1.6)
125
123
  rails-html-sanitizer (1.3.0)
126
124
  loofah (~> 2.3)
127
- railties (6.0.3.1)
128
- actionpack (= 6.0.3.1)
129
- activesupport (= 6.0.3.1)
125
+ railties (6.0.3.4)
126
+ actionpack (= 6.0.3.4)
127
+ activesupport (= 6.0.3.4)
130
128
  method_source
131
129
  rake (>= 0.8.7)
132
130
  thor (>= 0.20.3, < 2.0)
@@ -135,7 +133,7 @@ GEM
135
133
  rb-fsevent (0.10.4)
136
134
  rb-inotify (0.10.1)
137
135
  ffi (~> 1.0)
138
- regexp_parser (1.7.1)
136
+ regexp_parser (1.8.2)
139
137
  rest-client (2.0.2)
140
138
  http-cookie (>= 1.0.2, < 2.0)
141
139
  mime-types (>= 1.16, < 4.0)
@@ -145,7 +143,7 @@ GEM
145
143
  rspec-core (~> 3.9.0)
146
144
  rspec-expectations (~> 3.9.0)
147
145
  rspec-mocks (~> 3.9.0)
148
- rspec-core (3.9.2)
146
+ rspec-core (3.9.3)
149
147
  rspec-support (~> 3.9.3)
150
148
  rspec-expectations (3.9.2)
151
149
  diff-lcs (>= 1.2.0, < 2.0)
@@ -154,28 +152,27 @@ GEM
154
152
  diff-lcs (>= 1.2.0, < 2.0)
155
153
  rspec-support (~> 3.9.0)
156
154
  rspec-support (3.9.3)
157
- rubocop (0.85.1)
155
+ rubocop (0.93.1)
158
156
  parallel (~> 1.10)
159
- parser (>= 2.7.0.1)
157
+ parser (>= 2.7.1.5)
160
158
  rainbow (>= 2.2.2, < 4.0)
161
- regexp_parser (>= 1.7)
159
+ regexp_parser (>= 1.8)
162
160
  rexml
163
- rubocop-ast (>= 0.0.3)
161
+ rubocop-ast (>= 0.6.0)
164
162
  ruby-progressbar (~> 1.7)
165
163
  unicode-display_width (>= 1.4.0, < 2.0)
166
- rubocop-ast (0.0.3)
167
- parser (>= 2.7.0.1)
168
- rubocop-rails (2.6.0)
164
+ rubocop-ast (0.8.0)
165
+ parser (>= 2.7.1.5)
166
+ rubocop-rails (2.8.1)
169
167
  activesupport (>= 4.2.0)
170
168
  rack (>= 1.1)
171
- rubocop (>= 0.82.0)
169
+ rubocop (>= 0.87.0)
172
170
  ruby-progressbar (1.10.1)
173
- safe_yaml (1.0.5)
174
171
  shellany (0.0.1)
175
- simplecov (0.18.5)
172
+ simplecov (0.19.0)
176
173
  docile (~> 1.1)
177
174
  simplecov-html (~> 0.11)
178
- simplecov-html (0.12.2)
175
+ simplecov-html (0.12.3)
179
176
  slop (3.6.0)
180
177
  sync (0.5.0)
181
178
  term-ansicolor (1.7.1)
@@ -183,7 +180,7 @@ GEM
183
180
  terminal-notifier-guard (1.7.0)
184
181
  thor (1.0.1)
185
182
  thread_safe (0.3.6)
186
- tins (1.25.0)
183
+ tins (1.26.0)
187
184
  sync
188
185
  tzinfo (1.2.7)
189
186
  thread_safe (~> 0.1)
@@ -191,15 +188,14 @@ GEM
191
188
  unf_ext
192
189
  unf_ext (0.0.7.7)
193
190
  unicode-display_width (1.7.0)
194
- url (0.3.2)
195
191
  vcr (6.0.0)
196
- webmock (3.8.3)
192
+ webmock (3.9.3)
197
193
  addressable (>= 2.3.6)
198
194
  crack (>= 0.3.2)
199
195
  hashdiff (>= 0.4.0, < 2.0.0)
200
196
  yard (0.9.25)
201
197
  zache (0.12.0)
202
- zeitwerk (2.3.0)
198
+ zeitwerk (2.4.0)
203
199
 
204
200
  PLATFORMS
205
201
  ruby
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  [![codecov](https://codecov.io/gh/auth0/ruby-auth0/branch/master/graph/badge.svg)](https://codecov.io/gh/auth0/ruby-auth0)
6
6
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/auth0/ruby-auth0/master/frames)
7
7
  [![MIT licensed](https://img.shields.io/dub/l/vibe-d.svg?style=flat)](https://github.com/auth0/ruby-auth0/blob/master/LICENSE)
8
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fruby-auth0.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fruby-auth0?ref=badge_shield)
8
9
 
9
10
  Ruby API client for the [Auth0](https://auth0.com) platform.
10
11
 
@@ -234,3 +235,6 @@ If you find a bug or have a feature request, please report them in this reposito
234
235
  ## License
235
236
 
236
237
  This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
238
+
239
+
240
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fauth0%2Fruby-auth0.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fauth0%2Fruby-auth0?ref=badge_large)
@@ -4,7 +4,10 @@ module Auth0
4
4
  # {https://auth0.com/docs/api#applications}
5
5
  module Clients
6
6
  # {https://auth0.com/docs/api#!#get--api-clients}
7
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Clients
8
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
7
9
  def clients
10
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
8
11
  path = '/api/clients'
9
12
  get(path)
10
13
  end
@@ -12,7 +15,10 @@ module Auth0
12
15
  alias get_clients clients
13
16
 
14
17
  # {https://auth0.com/docs/api#!#post--api-clients}
18
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Clients
19
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
15
20
  def create_client(name, callbacks = '')
21
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
16
22
  path = '/api/clients'
17
23
  request_params = {
18
24
  name: name,
@@ -21,10 +27,11 @@ module Auth0
21
27
  post(path, request_params)
22
28
  end
23
29
 
24
- # @deprecated use {#patch_client}
25
30
  # {https://auth0.com/docs/api#!#put--api-clients--client-id-}
31
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Clients
32
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
26
33
  def update_client(name, callbacks = '', client_id = @client_id)
27
- warn 'This endpoint has been deprecated in favor of PATCH.'
34
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
28
35
  path = "/api/clients/#{client_id}"
29
36
  request_params = {
30
37
  name: name,
@@ -34,7 +41,10 @@ module Auth0
34
41
  end
35
42
 
36
43
  # {https://auth0.com/docs/api#!#patch--api-clients--client-id-}
44
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Clients
45
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
37
46
  def patch_client(name, callbacks = '', client_id = @client_id)
47
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
38
48
  path = "/api/clients/#{client_id}"
39
49
  request_params = {
40
50
  name: name,
@@ -4,26 +4,38 @@ module Auth0
4
4
  # {https://auth0.com/docs/api#connections}
5
5
  module Connections
6
6
  # {https://auth0.com/docs/api#!#get--api-connections}
7
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Connections
8
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
7
9
  def connections
10
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
8
11
  get('/api/connections')
9
12
  end
10
13
  alias get_connections connections
11
14
 
12
15
  # {https://auth0.com/docs/api#!#get--api-connections--connection-name-}
16
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Connections
17
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
13
18
  def connection(connection_name)
19
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
14
20
  path = "/api/connections/#{connection_name}"
15
21
  get(path)
16
22
  end
17
23
  alias get_connection connection
18
24
 
19
25
  # {https://auth0.com/docs/api#!#delete--api-connections--connection-name-}
26
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Connections
27
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
20
28
  def delete_connection(connection_name)
29
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
21
30
  path = "/api/connections/#{connection_name}"
22
31
  delete(path)
23
32
  end
24
33
 
25
34
  # {https://auth0.com/docs/api#!#post--api-connections}
35
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Connections
36
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
26
37
  def create_connection(connection_name, strategy, tenant_domain, domain_aliases = nil)
38
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
27
39
  path = '/api/connections'
28
40
  request_params = {
29
41
  name: connection_name,
@@ -37,7 +49,10 @@ module Auth0
37
49
  end
38
50
 
39
51
  # {https://auth0.com/docs/api#!#put--api-connections--connection-name-}
52
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Connections
53
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
40
54
  def update_connection(connection_name, tenant_domain, status = true)
55
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
41
56
  path = "/api/connections/#{connection_name}"
42
57
  request_params = {
43
58
  status: status,
@@ -4,7 +4,10 @@ module Auth0
4
4
  # {https://auth0.com/docs/api#logs}
5
5
  module Logs
6
6
  # https://auth0.com/docs/api/v1#!#logs
7
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Logs
8
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
7
9
  def logs(options = {})
10
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
8
11
  acceptable_params = %i(take from search_criteria page per_page sort fields exclude_fields)
9
12
  options.reject! do |key, value|
10
13
  next unless key.nil? || value.nil? || !acceptable_params.include?(key.to_sym)
@@ -18,13 +21,19 @@ module Auth0
18
21
  alias search_logs logs
19
22
 
20
23
  # {https://auth0.com/docs/api#!#get--api-logs--_id-}
24
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Logs
25
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
21
26
  def log(id)
27
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
22
28
  path = "/api/logs/#{id}"
23
29
  get(path)
24
30
  end
25
31
 
26
32
  # {https://auth0.com/docs/api#!#get--api-users--user_id--logs-page--number--per_page--items-}
33
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Logs
34
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
27
35
  def user_logs(user_id, page = 0, per_page = 50)
36
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
28
37
  path = "/api/users/#{user_id}/logs?page=#{page}&per_page=#{per_page}"
29
38
  get(path)
30
39
  end
@@ -4,7 +4,10 @@ module Auth0
4
4
  # https://auth0.com/docs/api#rules
5
5
  module Rules
6
6
  # https://auth0.com/docs/api#!#get--api-rules
7
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules
8
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
7
9
  def rules
10
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
8
11
  path = '/api/rules'
9
12
  get(path)
10
13
  end
@@ -12,7 +15,10 @@ module Auth0
12
15
  alias get_rules rules
13
16
 
14
17
  # https://auth0.com/docs/api#!#post--api-rules
18
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules
19
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
15
20
  def create_rule(name, script, order = nil, status = true)
21
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
16
22
  path = '/api/rules'
17
23
  request_params = {
18
24
  name: name,
@@ -24,7 +30,10 @@ module Auth0
24
30
  end
25
31
 
26
32
  # https://auth0.com/docs/api#!#put--api-rules--rule-name-
33
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules
34
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
27
35
  def update_rule(name, script, order = nil, status = true)
36
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
28
37
  path = "/api/rules/#{name}"
29
38
  request_params = {
30
39
  status: status,
@@ -35,7 +44,10 @@ module Auth0
35
44
  end
36
45
 
37
46
  # https://auth0.com/docs/api#!#delete--api-rules--rule-name-
47
+ # @deprecated - 4.14.0, please use Auth0::Api::V2::Rules
48
+ # @see - https://auth0.com/docs/migrations/guides/management-api-v1-v2
38
49
  def delete_rule(name)
50
+ warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
39
51
  path = "/api/rules/#{name}"
40
52
  delete(path)
41
53
  end