stytch 7.8.1 → 8.0.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: ff5a6a36c47c302ec6cbcd712b1c428d392caccc0d423973130c209389a9064a
4
- data.tar.gz: 4eccfd119a8f6b3332c37bbe317eeece7b4dd67f2ee06af0f09ba2ce548cee06
3
+ metadata.gz: ccc9948429ae0e2593b84c5cc3a67f23ab3203c23884b93a58af2a7c6aa34c0b
4
+ data.tar.gz: bf365eef52a61a836855abf747aaab619b98244cdfef94fc091ee74366993e1b
5
5
  SHA512:
6
- metadata.gz: 17200c052d42d517aaa02cf295f23799c8c9a4ccc68499277ec135cca853f9be061909fc8f4ff9e79e048c3d889312491d5d663be1df940d2619940a65f21663
7
- data.tar.gz: 360d26af098aa0921781902493f669cef749d098cb2e71f0d2425eb027a40c4ea669ec4b4c1f754a0579f74de174bb01c4140415baddcb39adc16038894f98fc
6
+ metadata.gz: fc4cefae842f14dadd8152eb61095abb6969b4abe934c33f9fcf168377642a8101bdde9eab5c929d3dbf13a7dea1146b608f614ee678f7a485e13255d6376f5c
7
+ data.tar.gz: 6f3e5f2e1589a50898bc3a8fd95eb4a772e697de007d1b6a734c01fdeac46cc8ab71a7bcea4b97476ec8447da4ac16f1418452754af01ebaddafa873b4c84b57
@@ -151,6 +151,25 @@ module StytchB2B
151
151
  end
152
152
 
153
153
  class Email
154
+ class InviteRequestOptions
155
+ # Optional authorization object.
156
+ # Pass in an active Stytch Member session token or session JWT and the request
157
+ # will be run using that member's permissions.
158
+ attr_accessor :authorization
159
+
160
+ def initialize(
161
+ authorization: nil
162
+ )
163
+ @authorization = authorization
164
+ end
165
+
166
+ def to_headers
167
+ headers = {}
168
+ headers.merge!(@authorization.to_headers) if authorization
169
+ headers
170
+ end
171
+ end
172
+
154
173
  include Stytch::RequestHelper
155
174
  attr_reader :discovery
156
175
 
@@ -308,7 +327,7 @@ module StytchB2B
308
327
  # The type of this field is +Integer+.
309
328
  #
310
329
  # == Method Options:
311
- # This method supports an optional +InviteRequestOptions+ object which will modify the headers sent in the HTTP request.
330
+ # This method supports an optional +StytchB2B::MagicLinks::Email::InviteRequestOptions+ object which will modify the headers sent in the HTTP request.
312
331
  def invite(
313
332
  organization_id:,
314
333
  email_address:,
@@ -9,45 +9,45 @@
9
9
  require_relative 'request_helper'
10
10
 
11
11
  module StytchB2B
12
- class UpdateRequestOptions
13
- # Optional authorization object.
14
- # Pass in an active Stytch Member session token or session JWT and the request
15
- # will be run using that member's permissions.
16
- attr_accessor :authorization
17
-
18
- def initialize(
19
- authorization: nil
20
- )
21
- @authorization = authorization
22
- end
12
+ class Organizations
13
+ class UpdateRequestOptions
14
+ # Optional authorization object.
15
+ # Pass in an active Stytch Member session token or session JWT and the request
16
+ # will be run using that member's permissions.
17
+ attr_accessor :authorization
23
18
 
24
- def to_headers
25
- headers = {}
26
- headers.merge!(@authorization.to_headers) if authorization
27
- headers
19
+ def initialize(
20
+ authorization: nil
21
+ )
22
+ @authorization = authorization
23
+ end
24
+
25
+ def to_headers
26
+ headers = {}
27
+ headers.merge!(@authorization.to_headers) if authorization
28
+ headers
29
+ end
28
30
  end
29
- end
30
31
 
31
- class DeleteRequestOptions
32
- # Optional authorization object.
33
- # Pass in an active Stytch Member session token or session JWT and the request
34
- # will be run using that member's permissions.
35
- attr_accessor :authorization
32
+ class DeleteRequestOptions
33
+ # Optional authorization object.
34
+ # Pass in an active Stytch Member session token or session JWT and the request
35
+ # will be run using that member's permissions.
36
+ attr_accessor :authorization
36
37
 
37
- def initialize(
38
- authorization: nil
39
- )
40
- @authorization = authorization
41
- end
38
+ def initialize(
39
+ authorization: nil
40
+ )
41
+ @authorization = authorization
42
+ end
42
43
 
43
- def to_headers
44
- headers = {}
45
- headers.merge!(@authorization.to_headers) if authorization
46
- headers
44
+ def to_headers
45
+ headers = {}
46
+ headers.merge!(@authorization.to_headers) if authorization
47
+ headers
48
+ end
47
49
  end
48
- end
49
50
 
50
- class Organizations
51
51
  include Stytch::RequestHelper
52
52
  attr_reader :members
53
53
 
@@ -385,7 +385,7 @@ module StytchB2B
385
385
  # The type of this field is +Integer+.
386
386
  #
387
387
  # == Method Options:
388
- # This method supports an optional +UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
388
+ # This method supports an optional +StytchB2B::Organizations::UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
389
389
  def update(
390
390
  organization_id:,
391
391
  organization_name: nil,
@@ -449,7 +449,7 @@ module StytchB2B
449
449
  # The type of this field is +Integer+.
450
450
  #
451
451
  # == Method Options:
452
- # This method supports an optional +DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
452
+ # This method supports an optional +StytchB2B::Organizations::DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
453
453
  def delete(
454
454
  organization_id:,
455
455
  method_options: nil
@@ -510,6 +510,158 @@ module StytchB2B
510
510
  end
511
511
 
512
512
  class Members
513
+ class UpdateRequestOptions
514
+ # Optional authorization object.
515
+ # Pass in an active Stytch Member session token or session JWT and the request
516
+ # will be run using that member's permissions.
517
+ attr_accessor :authorization
518
+
519
+ def initialize(
520
+ authorization: nil
521
+ )
522
+ @authorization = authorization
523
+ end
524
+
525
+ def to_headers
526
+ headers = {}
527
+ headers.merge!(@authorization.to_headers) if authorization
528
+ headers
529
+ end
530
+ end
531
+
532
+ class DeleteRequestOptions
533
+ # Optional authorization object.
534
+ # Pass in an active Stytch Member session token or session JWT and the request
535
+ # will be run using that member's permissions.
536
+ attr_accessor :authorization
537
+
538
+ def initialize(
539
+ authorization: nil
540
+ )
541
+ @authorization = authorization
542
+ end
543
+
544
+ def to_headers
545
+ headers = {}
546
+ headers.merge!(@authorization.to_headers) if authorization
547
+ headers
548
+ end
549
+ end
550
+
551
+ class ReactivateRequestOptions
552
+ # Optional authorization object.
553
+ # Pass in an active Stytch Member session token or session JWT and the request
554
+ # will be run using that member's permissions.
555
+ attr_accessor :authorization
556
+
557
+ def initialize(
558
+ authorization: nil
559
+ )
560
+ @authorization = authorization
561
+ end
562
+
563
+ def to_headers
564
+ headers = {}
565
+ headers.merge!(@authorization.to_headers) if authorization
566
+ headers
567
+ end
568
+ end
569
+
570
+ class DeleteMFAPhoneNumberRequestOptions
571
+ # Optional authorization object.
572
+ # Pass in an active Stytch Member session token or session JWT and the request
573
+ # will be run using that member's permissions.
574
+ attr_accessor :authorization
575
+
576
+ def initialize(
577
+ authorization: nil
578
+ )
579
+ @authorization = authorization
580
+ end
581
+
582
+ def to_headers
583
+ headers = {}
584
+ headers.merge!(@authorization.to_headers) if authorization
585
+ headers
586
+ end
587
+ end
588
+
589
+ class DeleteTOTPRequestOptions
590
+ # Optional authorization object.
591
+ # Pass in an active Stytch Member session token or session JWT and the request
592
+ # will be run using that member's permissions.
593
+ attr_accessor :authorization
594
+
595
+ def initialize(
596
+ authorization: nil
597
+ )
598
+ @authorization = authorization
599
+ end
600
+
601
+ def to_headers
602
+ headers = {}
603
+ headers.merge!(@authorization.to_headers) if authorization
604
+ headers
605
+ end
606
+ end
607
+
608
+ class SearchRequestOptions
609
+ # Optional authorization object.
610
+ # Pass in an active Stytch Member session token or session JWT and the request
611
+ # will be run using that member's permissions.
612
+ attr_accessor :authorization
613
+
614
+ def initialize(
615
+ authorization: nil
616
+ )
617
+ @authorization = authorization
618
+ end
619
+
620
+ def to_headers
621
+ headers = {}
622
+ headers.merge!(@authorization.to_headers) if authorization
623
+ headers
624
+ end
625
+ end
626
+
627
+ class DeletePasswordRequestOptions
628
+ # Optional authorization object.
629
+ # Pass in an active Stytch Member session token or session JWT and the request
630
+ # will be run using that member's permissions.
631
+ attr_accessor :authorization
632
+
633
+ def initialize(
634
+ authorization: nil
635
+ )
636
+ @authorization = authorization
637
+ end
638
+
639
+ def to_headers
640
+ headers = {}
641
+ headers.merge!(@authorization.to_headers) if authorization
642
+ headers
643
+ end
644
+ end
645
+
646
+ class CreateRequestOptions
647
+ # Optional authorization object.
648
+ # Pass in an active Stytch Member session token or session JWT and the request
649
+ # will be run using that member's permissions.
650
+ attr_accessor :authorization
651
+
652
+ def initialize(
653
+ authorization: nil
654
+ )
655
+ @authorization = authorization
656
+ end
657
+
658
+ def to_headers
659
+ headers = {}
660
+ headers.merge!(@authorization.to_headers) if authorization
661
+ headers
662
+ end
663
+ end
664
+
513
665
  include Stytch::RequestHelper
514
666
  attr_reader :oauth_providers
515
667
 
@@ -621,7 +773,7 @@ module StytchB2B
621
773
  # The type of this field is +Integer+.
622
774
  #
623
775
  # == Method Options:
624
- # This method supports an optional +UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
776
+ # This method supports an optional +StytchB2B::Organizations::Members::UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
625
777
  def update(
626
778
  organization_id:,
627
779
  member_id:,
@@ -677,7 +829,7 @@ module StytchB2B
677
829
  # The type of this field is +Integer+.
678
830
  #
679
831
  # == Method Options:
680
- # This method supports an optional +DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
832
+ # This method supports an optional +StytchB2B::Organizations::Members::DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
681
833
  def delete(
682
834
  organization_id:,
683
835
  member_id:,
@@ -717,7 +869,7 @@ module StytchB2B
717
869
  # The type of this field is +Integer+.
718
870
  #
719
871
  # == Method Options:
720
- # This method supports an optional +ReactivateRequestOptions+ object which will modify the headers sent in the HTTP request.
872
+ # This method supports an optional +StytchB2B::Organizations::Members::ReactivateRequestOptions+ object which will modify the headers sent in the HTTP request.
721
873
  def reactivate(
722
874
  organization_id:,
723
875
  member_id:,
@@ -766,7 +918,7 @@ module StytchB2B
766
918
  # The type of this field is +Integer+.
767
919
  #
768
920
  # == Method Options:
769
- # This method supports an optional +DeleteMFAPhoneNumberRequestOptions+ object which will modify the headers sent in the HTTP request.
921
+ # This method supports an optional +StytchB2B::Organizations::Members::DeleteMFAPhoneNumberRequestOptions+ object which will modify the headers sent in the HTTP request.
770
922
  def delete_mfa_phone_number(
771
923
  organization_id:,
772
924
  member_id:,
@@ -836,7 +988,7 @@ module StytchB2B
836
988
  # The type of this field is +Integer+.
837
989
  #
838
990
  # == Method Options:
839
- # This method supports an optional +SearchRequestOptions+ object which will modify the headers sent in the HTTP request.
991
+ # This method supports an optional +StytchB2B::Organizations::Members::SearchRequestOptions+ object which will modify the headers sent in the HTTP request.
840
992
  def search(
841
993
  organization_ids:,
842
994
  cursor: nil,
@@ -885,7 +1037,7 @@ module StytchB2B
885
1037
  # The type of this field is +Integer+.
886
1038
  #
887
1039
  # == Method Options:
888
- # This method supports an optional +DeletePasswordRequestOptions+ object which will modify the headers sent in the HTTP request.
1040
+ # This method supports an optional +StytchB2B::Organizations::Members::DeletePasswordRequestOptions+ object which will modify the headers sent in the HTTP request.
889
1041
  def delete_password(
890
1042
  organization_id:,
891
1043
  member_password_id:,
@@ -985,7 +1137,7 @@ module StytchB2B
985
1137
  # The type of this field is +Integer+.
986
1138
  #
987
1139
  # == Method Options:
988
- # This method supports an optional +CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
1140
+ # This method supports an optional +StytchB2B::Organizations::Members::CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
989
1141
  def create(
990
1142
  organization_id:,
991
1143
  email_address:,
@@ -20,6 +20,139 @@ module StytchB2B
20
20
  end
21
21
 
22
22
  class Connections
23
+ class UpdateRequestOptions
24
+ # Optional authorization object.
25
+ # Pass in an active Stytch Member session token or session JWT and the request
26
+ # will be run using that member's permissions.
27
+ attr_accessor :authorization
28
+
29
+ def initialize(
30
+ authorization: nil
31
+ )
32
+ @authorization = authorization
33
+ end
34
+
35
+ def to_headers
36
+ headers = {}
37
+ headers.merge!(@authorization.to_headers) if authorization
38
+ headers
39
+ end
40
+ end
41
+
42
+ class DeleteRequestOptions
43
+ # Optional authorization object.
44
+ # Pass in an active Stytch Member session token or session JWT and the request
45
+ # will be run using that member's permissions.
46
+ attr_accessor :authorization
47
+
48
+ def initialize(
49
+ authorization: nil
50
+ )
51
+ @authorization = authorization
52
+ end
53
+
54
+ def to_headers
55
+ headers = {}
56
+ headers.merge!(@authorization.to_headers) if authorization
57
+ headers
58
+ end
59
+ end
60
+
61
+ class RotateStartRequestOptions
62
+ # Optional authorization object.
63
+ # Pass in an active Stytch Member session token or session JWT and the request
64
+ # will be run using that member's permissions.
65
+ attr_accessor :authorization
66
+
67
+ def initialize(
68
+ authorization: nil
69
+ )
70
+ @authorization = authorization
71
+ end
72
+
73
+ def to_headers
74
+ headers = {}
75
+ headers.merge!(@authorization.to_headers) if authorization
76
+ headers
77
+ end
78
+ end
79
+
80
+ class RotateCompleteRequestOptions
81
+ # Optional authorization object.
82
+ # Pass in an active Stytch Member session token or session JWT and the request
83
+ # will be run using that member's permissions.
84
+ attr_accessor :authorization
85
+
86
+ def initialize(
87
+ authorization: nil
88
+ )
89
+ @authorization = authorization
90
+ end
91
+
92
+ def to_headers
93
+ headers = {}
94
+ headers.merge!(@authorization.to_headers) if authorization
95
+ headers
96
+ end
97
+ end
98
+
99
+ class RotateCancelRequestOptions
100
+ # Optional authorization object.
101
+ # Pass in an active Stytch Member session token or session JWT and the request
102
+ # will be run using that member's permissions.
103
+ attr_accessor :authorization
104
+
105
+ def initialize(
106
+ authorization: nil
107
+ )
108
+ @authorization = authorization
109
+ end
110
+
111
+ def to_headers
112
+ headers = {}
113
+ headers.merge!(@authorization.to_headers) if authorization
114
+ headers
115
+ end
116
+ end
117
+
118
+ class CreateRequestOptions
119
+ # Optional authorization object.
120
+ # Pass in an active Stytch Member session token or session JWT and the request
121
+ # will be run using that member's permissions.
122
+ attr_accessor :authorization
123
+
124
+ def initialize(
125
+ authorization: nil
126
+ )
127
+ @authorization = authorization
128
+ end
129
+
130
+ def to_headers
131
+ headers = {}
132
+ headers.merge!(@authorization.to_headers) if authorization
133
+ headers
134
+ end
135
+ end
136
+
137
+ class GetRequestOptions
138
+ # Optional authorization object.
139
+ # Pass in an active Stytch Member session token or session JWT and the request
140
+ # will be run using that member's permissions.
141
+ attr_accessor :authorization
142
+
143
+ def initialize(
144
+ authorization: nil
145
+ )
146
+ @authorization = authorization
147
+ end
148
+
149
+ def to_headers
150
+ headers = {}
151
+ headers.merge!(@authorization.to_headers) if authorization
152
+ headers
153
+ end
154
+ end
155
+
23
156
  include Stytch::RequestHelper
24
157
 
25
158
  def initialize(connection)
@@ -58,7 +191,7 @@ module StytchB2B
58
191
  # The type of this field is nilable +SCIMConnection+ (+object+).
59
192
  #
60
193
  # == Method Options:
61
- # This method supports an optional +UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
194
+ # This method supports an optional +StytchB2B::SCIM::Connections::UpdateRequestOptions+ object which will modify the headers sent in the HTTP request.
62
195
  def update(
63
196
  organization_id:,
64
197
  connection_id:,
@@ -100,7 +233,7 @@ module StytchB2B
100
233
  # The type of this field is +Integer+.
101
234
  #
102
235
  # == Method Options:
103
- # This method supports an optional +DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
236
+ # This method supports an optional +StytchB2B::SCIM::Connections::DeleteRequestOptions+ object which will modify the headers sent in the HTTP request.
104
237
  def delete(
105
238
  organization_id:,
106
239
  connection_id:,
@@ -134,7 +267,7 @@ module StytchB2B
134
267
  # The type of this field is nilable +SCIMConnectionWithNextToken+ (+object+).
135
268
  #
136
269
  # == Method Options:
137
- # This method supports an optional +RotateStartRequestOptions+ object which will modify the headers sent in the HTTP request.
270
+ # This method supports an optional +StytchB2B::SCIM::Connections::RotateStartRequestOptions+ object which will modify the headers sent in the HTTP request.
138
271
  def rotate_start(
139
272
  organization_id:,
140
273
  connection_id:,
@@ -170,7 +303,7 @@ module StytchB2B
170
303
  # The type of this field is nilable +SCIMConnection+ (+object+).
171
304
  #
172
305
  # == Method Options:
173
- # This method supports an optional +RotateCompleteRequestOptions+ object which will modify the headers sent in the HTTP request.
306
+ # This method supports an optional +StytchB2B::SCIM::Connections::RotateCompleteRequestOptions+ object which will modify the headers sent in the HTTP request.
174
307
  def rotate_complete(
175
308
  organization_id:,
176
309
  connection_id:,
@@ -206,7 +339,7 @@ module StytchB2B
206
339
  # The type of this field is nilable +SCIMConnection+ (+object+).
207
340
  #
208
341
  # == Method Options:
209
- # This method supports an optional +RotateCancelRequestOptions+ object which will modify the headers sent in the HTTP request.
342
+ # This method supports an optional +StytchB2B::SCIM::Connections::RotateCancelRequestOptions+ object which will modify the headers sent in the HTTP request.
210
343
  def rotate_cancel(
211
344
  organization_id:,
212
345
  connection_id:,
@@ -245,7 +378,7 @@ module StytchB2B
245
378
  # The type of this field is nilable +SCIMConnectionWithToken+ (+object+).
246
379
  #
247
380
  # == Method Options:
248
- # This method supports an optional +CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
381
+ # This method supports an optional +StytchB2B::SCIM::Connections::CreateRequestOptions+ object which will modify the headers sent in the HTTP request.
249
382
  def create(
250
383
  organization_id:,
251
384
  display_name: nil,
@@ -281,7 +414,7 @@ module StytchB2B
281
414
  # The type of this field is +Integer+.
282
415
  #
283
416
  # == Method Options:
284
- # This method supports an optional +GetRequestOptions+ object which will modify the headers sent in the HTTP request.
417
+ # This method supports an optional +StytchB2B::SCIM::Connections::GetRequestOptions+ object which will modify the headers sent in the HTTP request.
285
418
  def get(
286
419
  organization_id:,
287
420
  method_options: nil
@@ -9,45 +9,45 @@
9
9
  require_relative 'request_helper'
10
10
 
11
11
  module StytchB2B
12
- class GetConnectionsRequestOptions
13
- # Optional authorization object.
14
- # Pass in an active Stytch Member session token or session JWT and the request
15
- # will be run using that member's permissions.
16
- attr_accessor :authorization
17
-
18
- def initialize(
19
- authorization: nil
20
- )
21
- @authorization = authorization
22
- end
12
+ class SSO
13
+ class GetConnectionsRequestOptions
14
+ # Optional authorization object.
15
+ # Pass in an active Stytch Member session token or session JWT and the request
16
+ # will be run using that member's permissions.
17
+ attr_accessor :authorization
23
18
 
24
- def to_headers
25
- headers = {}
26
- headers.merge!(@authorization.to_headers) if authorization
27
- headers
19
+ def initialize(
20
+ authorization: nil
21
+ )
22
+ @authorization = authorization
23
+ end
24
+
25
+ def to_headers
26
+ headers = {}
27
+ headers.merge!(@authorization.to_headers) if authorization
28
+ headers
29
+ end
28
30
  end
29
- end
30
31
 
31
- class DeleteConnectionRequestOptions
32
- # Optional authorization object.
33
- # Pass in an active Stytch Member session token or session JWT and the request
34
- # will be run using that member's permissions.
35
- attr_accessor :authorization
32
+ class DeleteConnectionRequestOptions
33
+ # Optional authorization object.
34
+ # Pass in an active Stytch Member session token or session JWT and the request
35
+ # will be run using that member's permissions.
36
+ attr_accessor :authorization
36
37
 
37
- def initialize(
38
- authorization: nil
39
- )
40
- @authorization = authorization
41
- end
38
+ def initialize(
39
+ authorization: nil
40
+ )
41
+ @authorization = authorization
42
+ end
42
43
 
43
- def to_headers
44
- headers = {}
45
- headers.merge!(@authorization.to_headers) if authorization
46
- headers
44
+ def to_headers
45
+ headers = {}
46
+ headers.merge!(@authorization.to_headers) if authorization
47
+ headers
48
+ end
47
49
  end
48
- end
49
50
 
50
- class SSO
51
51
  include Stytch::RequestHelper
52
52
  attr_reader :oidc, :saml
53
53
 
@@ -81,7 +81,7 @@ module StytchB2B
81
81
  # The type of this field is +Integer+.
82
82
  #
83
83
  # == Method Options:
84
- # This method supports an optional +GetConnectionsRequestOptions+ object which will modify the headers sent in the HTTP request.
84
+ # This method supports an optional +StytchB2B::SSO::GetConnectionsRequestOptions+ object which will modify the headers sent in the HTTP request.
85
85
  def get_connections(
86
86
  organization_id:,
87
87
  method_options: nil
@@ -116,7 +116,7 @@ module StytchB2B
116
116
  # The type of this field is +Integer+.
117
117
  #
118
118
  # == Method Options:
119
- # This method supports an optional +DeleteConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
119
+ # This method supports an optional +StytchB2B::SSO::DeleteConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
120
120
  def delete_connection(
121
121
  organization_id:,
122
122
  connection_id:,
@@ -253,6 +253,44 @@ module StytchB2B
253
253
  end
254
254
 
255
255
  class OIDC
256
+ class CreateConnectionRequestOptions
257
+ # Optional authorization object.
258
+ # Pass in an active Stytch Member session token or session JWT and the request
259
+ # will be run using that member's permissions.
260
+ attr_accessor :authorization
261
+
262
+ def initialize(
263
+ authorization: nil
264
+ )
265
+ @authorization = authorization
266
+ end
267
+
268
+ def to_headers
269
+ headers = {}
270
+ headers.merge!(@authorization.to_headers) if authorization
271
+ headers
272
+ end
273
+ end
274
+
275
+ class UpdateConnectionRequestOptions
276
+ # Optional authorization object.
277
+ # Pass in an active Stytch Member session token or session JWT and the request
278
+ # will be run using that member's permissions.
279
+ attr_accessor :authorization
280
+
281
+ def initialize(
282
+ authorization: nil
283
+ )
284
+ @authorization = authorization
285
+ end
286
+
287
+ def to_headers
288
+ headers = {}
289
+ headers.merge!(@authorization.to_headers) if authorization
290
+ headers
291
+ end
292
+ end
293
+
256
294
  include Stytch::RequestHelper
257
295
 
258
296
  def initialize(connection)
@@ -282,7 +320,7 @@ module StytchB2B
282
320
  # The type of this field is nilable +OIDCConnection+ (+object+).
283
321
  #
284
322
  # == Method Options:
285
- # This method supports an optional +CreateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
323
+ # This method supports an optional +StytchB2B::SSO::OIDC::CreateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
286
324
  def create_connection(
287
325
  organization_id:,
288
326
  display_name: nil,
@@ -364,7 +402,7 @@ module StytchB2B
364
402
  # The type of this field is nilable +String+.
365
403
  #
366
404
  # == Method Options:
367
- # This method supports an optional +UpdateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
405
+ # This method supports an optional +StytchB2B::SSO::OIDC::UpdateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
368
406
  def update_connection(
369
407
  organization_id:,
370
408
  connection_id:,
@@ -395,6 +433,82 @@ module StytchB2B
395
433
  end
396
434
 
397
435
  class SAML
436
+ class CreateConnectionRequestOptions
437
+ # Optional authorization object.
438
+ # Pass in an active Stytch Member session token or session JWT and the request
439
+ # will be run using that member's permissions.
440
+ attr_accessor :authorization
441
+
442
+ def initialize(
443
+ authorization: nil
444
+ )
445
+ @authorization = authorization
446
+ end
447
+
448
+ def to_headers
449
+ headers = {}
450
+ headers.merge!(@authorization.to_headers) if authorization
451
+ headers
452
+ end
453
+ end
454
+
455
+ class UpdateConnectionRequestOptions
456
+ # Optional authorization object.
457
+ # Pass in an active Stytch Member session token or session JWT and the request
458
+ # will be run using that member's permissions.
459
+ attr_accessor :authorization
460
+
461
+ def initialize(
462
+ authorization: nil
463
+ )
464
+ @authorization = authorization
465
+ end
466
+
467
+ def to_headers
468
+ headers = {}
469
+ headers.merge!(@authorization.to_headers) if authorization
470
+ headers
471
+ end
472
+ end
473
+
474
+ class UpdateByURLRequestOptions
475
+ # Optional authorization object.
476
+ # Pass in an active Stytch Member session token or session JWT and the request
477
+ # will be run using that member's permissions.
478
+ attr_accessor :authorization
479
+
480
+ def initialize(
481
+ authorization: nil
482
+ )
483
+ @authorization = authorization
484
+ end
485
+
486
+ def to_headers
487
+ headers = {}
488
+ headers.merge!(@authorization.to_headers) if authorization
489
+ headers
490
+ end
491
+ end
492
+
493
+ class DeleteVerificationCertificateRequestOptions
494
+ # Optional authorization object.
495
+ # Pass in an active Stytch Member session token or session JWT and the request
496
+ # will be run using that member's permissions.
497
+ attr_accessor :authorization
498
+
499
+ def initialize(
500
+ authorization: nil
501
+ )
502
+ @authorization = authorization
503
+ end
504
+
505
+ def to_headers
506
+ headers = {}
507
+ headers.merge!(@authorization.to_headers) if authorization
508
+ headers
509
+ end
510
+ end
511
+
398
512
  include Stytch::RequestHelper
399
513
 
400
514
  def initialize(connection)
@@ -424,7 +538,7 @@ module StytchB2B
424
538
  # The type of this field is nilable +SAMLConnection+ (+object+).
425
539
  #
426
540
  # == Method Options:
427
- # This method supports an optional +CreateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
541
+ # This method supports an optional +StytchB2B::SSO::SAML::CreateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
428
542
  def create_connection(
429
543
  organization_id:,
430
544
  display_name: nil,
@@ -497,7 +611,7 @@ module StytchB2B
497
611
  # The type of this field is nilable +SAMLConnection+ (+object+).
498
612
  #
499
613
  # == Method Options:
500
- # This method supports an optional +UpdateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
614
+ # This method supports an optional +StytchB2B::SSO::SAML::UpdateConnectionRequestOptions+ object which will modify the headers sent in the HTTP request.
501
615
  def update_connection(
502
616
  organization_id:,
503
617
  connection_id:,
@@ -559,7 +673,7 @@ module StytchB2B
559
673
  # The type of this field is nilable +SAMLConnection+ (+object+).
560
674
  #
561
675
  # == Method Options:
562
- # This method supports an optional +UpdateByURLRequestOptions+ object which will modify the headers sent in the HTTP request.
676
+ # This method supports an optional +StytchB2B::SSO::SAML::UpdateByURLRequestOptions+ object which will modify the headers sent in the HTTP request.
563
677
  def update_by_url(
564
678
  organization_id:,
565
679
  connection_id:,
@@ -604,7 +718,7 @@ module StytchB2B
604
718
  # The type of this field is +Integer+.
605
719
  #
606
720
  # == Method Options:
607
- # This method supports an optional +DeleteVerificationCertificateRequestOptions+ object which will modify the headers sent in the HTTP request.
721
+ # This method supports an optional +StytchB2B::SSO::SAML::DeleteVerificationCertificateRequestOptions+ object which will modify the headers sent in the HTTP request.
608
722
  def delete_verification_certificate(
609
723
  organization_id:,
610
724
  connection_id:,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '7.8.1'
4
+ VERSION = '8.0.0'
5
5
  end
data/lib/stytch.rb CHANGED
@@ -4,6 +4,7 @@ require 'faraday'
4
4
 
5
5
  require_relative 'stytch/b2b_client'
6
6
  require_relative 'stytch/client'
7
+ require_relative 'stytch/method_options'
7
8
  require_relative 'stytch/middleware'
8
9
  require_relative 'stytch/version'
9
10
 
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: 7.8.1
4
+ version: 8.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-04-16 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday