stytch 8.1.0 → 9.0.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: 641a8f3466452e18a1f85ed1f410a575100ca512de0118a638735dc93d2f5842
4
- data.tar.gz: 31a2da5d7789dc4bdf160654201dfcbe8000d3c76450aa7b09f4c63247eaa644
3
+ metadata.gz: c5075518300c9fb8d82d98b80851825a1bfc72d61b637dbbbc54df07ad4b40f9
4
+ data.tar.gz: e4abd2aec41c59f9d9605f0c6f43a62d5d4126991cfe89b5e96ad293a33922d5
5
5
  SHA512:
6
- metadata.gz: 1141d505b32c4184040a2637da78dcc255cf9d07488cb411edeb0d382edba1343df9b571f7eddcb678b5253fe0ce90b2e9897bc21432c980a472ee54ad20442d
7
- data.tar.gz: f4bd6e921c39ae22ca405e6c6b1b5c300a2a23da5b3986faf4d04db5199c50488aadb4082710e4fb2422b755849f3dae9777664d368a7120dddf5d553bf0f7ea
6
+ metadata.gz: 29a88d3485f4cabefe89721a83506e0dcbe64d8864780eec0508da70f5d308a204fa427cd0fb8e0c725c07bb45c20f37d182cb3f75e2694536f562b863a35ce9
7
+ data.tar.gz: 6eaf332fea8ba9eb38da3af8d6eea7376b947a97e93f6478c0e149cc44d35236d9f148ee42e7179fb83ec6fa743076c806a7fc5b6c9e19e584763a3d2a5a2297
@@ -181,6 +181,8 @@ module StytchB2B
181
181
 
182
182
  # Send either a login or signup magic link to a Member. A new, pending, or invited Member will receive a signup Email Magic Link. Members will have a `pending` status until they successfully authenticate. An active Member will receive a login Email Magic Link.
183
183
  #
184
+ # The magic link is valid for 60 minutes.
185
+ #
184
186
  # == Parameters:
185
187
  # organization_id::
186
188
  # Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value.
@@ -263,7 +265,10 @@ module StytchB2B
263
265
  post_request('/v1/b2b/magic_links/email/login_or_signup', request, headers)
264
266
  end
265
267
 
266
- # Send an invite email to a new Member to join an Organization. The Member will be created with an `invited` status until they successfully authenticate. Sending invites to `pending` Members will update their status to `invited`. Sending invites to already `active` Members will return an error. /%}
268
+ # Send an invite email to a new Member to join an Organization. The Member will be created with an `invited` status until they successfully authenticate. Sending invites to `pending` Members will update their status to `invited`. Sending invites to already `active` Members will return an error.
269
+ #
270
+ # The magic link invite will be valid for 1 week.
271
+ # /%}
267
272
  #
268
273
  # == Parameters:
269
274
  # organization_id::
@@ -366,7 +371,7 @@ module StytchB2B
366
371
  @connection = connection
367
372
  end
368
373
 
369
- # Send a discovery magic link to an email address.
374
+ # Send a discovery magic link to an email address. The magic link is valid for 60 minutes.
370
375
  #
371
376
  # == Parameters:
372
377
  # email_address::
@@ -11,15 +11,15 @@ require_relative 'request_helper'
11
11
  module StytchB2B
12
12
  class SCIM
13
13
  include Stytch::RequestHelper
14
- attr_reader :connections
14
+ attr_reader :connection
15
15
 
16
16
  def initialize(connection)
17
17
  @connection = connection
18
18
 
19
- @connections = StytchB2B::SCIM::Connections.new(@connection)
19
+ @connection = StytchB2B::SCIM::Connection.new(@connection)
20
20
  end
21
21
 
22
- class Connections
22
+ class Connection
23
23
  class UpdateRequestOptions
24
24
  # Optional authorization object.
25
25
  # Pass in an active Stytch Member session token or session JWT and the request
@@ -173,7 +173,7 @@ module StytchB2B
173
173
  # The type of this field is nilable +String+.
174
174
  # identity_provider::
175
175
  # (no documentation yet)
176
- # The type of this field is nilable +UpdateRequestIdp+ (string enum).
176
+ # The type of this field is nilable +UpdateRequestIdentityProvider+ (string enum).
177
177
  # scim_group_implicit_role_assignments::
178
178
  # (no documentation yet)
179
179
  # The type of this field is nilable list of +SCIMGroupImplicitRoleAssignments+.
@@ -191,7 +191,7 @@ module StytchB2B
191
191
  # The type of this field is nilable +SCIMConnection+ (+object+).
192
192
  #
193
193
  # == Method Options:
194
- # This method supports an optional +StytchB2B::SCIM::Connections::UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
194
+ # This method supports an optional +StytchB2B::SCIM::Connection::UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
195
195
  def update(
196
196
  organization_id:,
197
197
  connection_id:,
@@ -207,7 +207,7 @@ module StytchB2B
207
207
  request[:identity_provider] = identity_provider unless identity_provider.nil?
208
208
  request[:scim_group_implicit_role_assignments] = scim_group_implicit_role_assignments unless scim_group_implicit_role_assignments.nil?
209
209
 
210
- put_request("/v1/b2b/scim/#{organization_id}/connections/#{connection_id}", request, headers)
210
+ put_request("/v1/b2b/scim/#{organization_id}/connection/#{connection_id}", request, headers)
211
211
  end
212
212
 
213
213
  # Deletes a SCIM Connection. /%}
@@ -233,7 +233,7 @@ module StytchB2B
233
233
  # The type of this field is +Integer+.
234
234
  #
235
235
  # == Method Options:
236
- # This method supports an optional +StytchB2B::SCIM::Connections::DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
236
+ # This method supports an optional +StytchB2B::SCIM::Connection::DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
237
237
  def delete(
238
238
  organization_id:,
239
239
  connection_id:,
@@ -241,7 +241,7 @@ module StytchB2B
241
241
  )
242
242
  headers = {}
243
243
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
244
- delete_request("/v1/b2b/scim/#{organization_id}/connections/#{connection_id}", headers)
244
+ delete_request("/v1/b2b/scim/#{organization_id}/connection/#{connection_id}", headers)
245
245
  end
246
246
 
247
247
  # Start a SCIM token rotation. /%}
@@ -267,7 +267,7 @@ module StytchB2B
267
267
  # The type of this field is nilable +SCIMConnectionWithNextToken+ (+object+).
268
268
  #
269
269
  # == Method Options:
270
- # This method supports an optional +StytchB2B::SCIM::Connections::RotateStartRequestOptions+ object which will modify the headers sent in the HTTP request.
270
+ # This method supports an optional +StytchB2B::SCIM::Connection::RotateStartRequestOptions+ object which will modify the headers sent in the HTTP request.
271
271
  def rotate_start(
272
272
  organization_id:,
273
273
  connection_id:,
@@ -277,7 +277,7 @@ module StytchB2B
277
277
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
278
278
  request = {}
279
279
 
280
- post_request("/v1/b2b/scim/#{organization_id}/connections/#{connection_id}/rotate/start", request, headers)
280
+ post_request("/v1/b2b/scim/#{organization_id}/connection/#{connection_id}/rotate/start", request, headers)
281
281
  end
282
282
 
283
283
  # Completes a SCIM token rotation. This will complete the current token rotation process and update the active token to be the new token supplied in the [start SCIM token rotation](https://stytch.com/docs/b2b/api/scim-rotate-token-start) response. /%}
@@ -303,7 +303,7 @@ module StytchB2B
303
303
  # The type of this field is nilable +SCIMConnection+ (+object+).
304
304
  #
305
305
  # == Method Options:
306
- # This method supports an optional +StytchB2B::SCIM::Connections::RotateCompleteRequestOptions+ object which will modify the headers sent in the HTTP request.
306
+ # This method supports an optional +StytchB2B::SCIM::Connection::RotateCompleteRequestOptions+ object which will modify the headers sent in the HTTP request.
307
307
  def rotate_complete(
308
308
  organization_id:,
309
309
  connection_id:,
@@ -313,7 +313,7 @@ module StytchB2B
313
313
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
314
314
  request = {}
315
315
 
316
- post_request("/v1/b2b/scim/#{organization_id}/connections/#{connection_id}/rotate/complete", request, headers)
316
+ post_request("/v1/b2b/scim/#{organization_id}/connection/#{connection_id}/rotate/complete", request, headers)
317
317
  end
318
318
 
319
319
  # Cancel a SCIM token rotation. This will cancel the current token rotation process, keeping the original token active. /%}
@@ -339,7 +339,7 @@ module StytchB2B
339
339
  # The type of this field is nilable +SCIMConnection+ (+object+).
340
340
  #
341
341
  # == Method Options:
342
- # This method supports an optional +StytchB2B::SCIM::Connections::RotateCancelRequestOptions+ object which will modify the headers sent in the HTTP request.
342
+ # This method supports an optional +StytchB2B::SCIM::Connection::RotateCancelRequestOptions+ object which will modify the headers sent in the HTTP request.
343
343
  def rotate_cancel(
344
344
  organization_id:,
345
345
  connection_id:,
@@ -349,7 +349,7 @@ module StytchB2B
349
349
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
350
350
  request = {}
351
351
 
352
- post_request("/v1/b2b/scim/#{organization_id}/connections/#{connection_id}/rotate/cancel", request, headers)
352
+ post_request("/v1/b2b/scim/#{organization_id}/connection/#{connection_id}/rotate/cancel", request, headers)
353
353
  end
354
354
 
355
355
  # Create a new SCIM Connection. /%}
@@ -363,7 +363,7 @@ module StytchB2B
363
363
  # The type of this field is nilable +String+.
364
364
  # identity_provider::
365
365
  # (no documentation yet)
366
- # The type of this field is nilable +CreateRequestIdp+ (string enum).
366
+ # The type of this field is nilable +CreateRequestIdentityProvider+ (string enum).
367
367
  #
368
368
  # == Returns:
369
369
  # An object with the following fields:
@@ -378,7 +378,7 @@ module StytchB2B
378
378
  # The type of this field is nilable +SCIMConnectionWithToken+ (+object+).
379
379
  #
380
380
  # == Method Options:
381
- # This method supports an optional +StytchB2B::SCIM::Connections::CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
381
+ # This method supports an optional +StytchB2B::SCIM::Connection::CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
382
382
  def create(
383
383
  organization_id:,
384
384
  display_name: nil,
@@ -391,7 +391,7 @@ module StytchB2B
391
391
  request[:display_name] = display_name unless display_name.nil?
392
392
  request[:identity_provider] = identity_provider unless identity_provider.nil?
393
393
 
394
- post_request("/v1/b2b/scim/#{organization_id}/connections", request, headers)
394
+ post_request("/v1/b2b/scim/#{organization_id}/connection", request, headers)
395
395
  end
396
396
 
397
397
  # Get SCIM Connections. /%}
@@ -406,15 +406,15 @@ module StytchB2B
406
406
  # request_id::
407
407
  # Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
408
408
  # The type of this field is +String+.
409
- # connections::
410
- # (no documentation yet)
411
- # The type of this field is list of +SCIMConnection+ (+object+).
412
409
  # status_code::
413
410
  # The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.
414
411
  # The type of this field is +Integer+.
412
+ # connection::
413
+ # (no documentation yet)
414
+ # The type of this field is nilable +SCIMConnection+ (+object+).
415
415
  #
416
416
  # == Method Options:
417
- # This method supports an optional +StytchB2B::SCIM::Connections::GetRequestOptions+ object which will modify the headers sent in the HTTP request.
417
+ # This method supports an optional +StytchB2B::SCIM::Connection::GetRequestOptions+ object which will modify the headers sent in the HTTP request.
418
418
  def get(
419
419
  organization_id:,
420
420
  method_options: nil
@@ -422,7 +422,7 @@ module StytchB2B
422
422
  headers = {}
423
423
  headers = headers.merge(method_options.to_headers) unless method_options.nil?
424
424
  query_params = {}
425
- request = request_with_query_params("/v1/b2b/scim/#{organization_id}/connections", query_params)
425
+ request = request_with_query_params("/v1/b2b/scim/#{organization_id}/connection", query_params)
426
426
  get_request(request, headers)
427
427
  end
428
428
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '8.1.0'
4
+ VERSION = '9.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stytch
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.0
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday