stytch 3.14.0 → 3.15.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: ae1b0badeeeb101eacc09ac6c5b1ab41efe3d28b5b3fccbf697e38aae6b0764f
4
- data.tar.gz: 665537eb21d7e4dc3871c1010f2119584211b9ba1c4e354a6c8378af70a648d4
3
+ metadata.gz: 877bbf928a020bfd70bbd7fb80c293dfa0e9f6917cb1c55236fa875c5c88c291
4
+ data.tar.gz: 16b19e1a4799f4b3c6318aa50fc16dd8146713be7fedd634cbef59308416ec33
5
5
  SHA512:
6
- metadata.gz: 17cdeaf4331dd52062b6f2ca3c29313e6a79d7d239089d1610d0a6a94133ea4005b8e500d3317d15d7c218a84165c668a309ef8bdc4e3cd45ffeb7c2d1f68e9f
7
- data.tar.gz: 32fe32f005ccdf9e7fc55e7541864215b556b61b2e3d41edd01e4a7d66b61aff3b9b1dec7b37422c4b1530f16850f5faedf19bcf9b58dcebf7101ca7b45eeedf
6
+ metadata.gz: 5c08f2d69315af27f9509ebd7d211683aa9eb2dab019bb511d77002cfcddebee1f886a1ca86c52858e3f56df90fc0e09f07508a5dcb5eb86715d727ba617c79b
7
+ data.tar.gz: c4febeb5378922394803bfae81116e08fad5bc0357602f24ee0faab7613df9bebd656f13f1f4b4b34395f0bbbb27b060a2febdc5ff1528aa856cef38e8f05a88
data/lib/stytch/users.rb CHANGED
@@ -59,7 +59,9 @@ module Stytch
59
59
  phone_number: nil,
60
60
  name: {},
61
61
  create_user_as_pending: false,
62
- attributes: {}
62
+ attributes: {},
63
+ trusted_metadata: {},
64
+ untrusted_metadata: {}
63
65
  )
64
66
  request = {
65
67
  email: email,
@@ -69,6 +71,8 @@ module Stytch
69
71
 
70
72
  request[:name] = name if name != {}
71
73
  request[:attributes] = attributes if attributes != {}
74
+ request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
75
+ request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
72
76
 
73
77
  post_request(PATH, request)
74
78
  end
@@ -79,7 +83,9 @@ module Stytch
79
83
  emails: [],
80
84
  phone_numbers: [],
81
85
  crypto_wallets: [],
82
- attributes: {}
86
+ attributes: {},
87
+ trusted_metadata: {},
88
+ untrusted_metadata: {}
83
89
  )
84
90
  request = {
85
91
  emails: format_emails(emails),
@@ -89,6 +95,8 @@ module Stytch
89
95
 
90
96
  request[:name] = name if name != {}
91
97
  request[:attributes] = attributes if attributes != {}
98
+ request[:trusted_metadata] = trusted_metadata if trusted_metadata != {}
99
+ request[:untrusted_metadata] = untrusted_metadata if untrusted_metadata != {}
92
100
 
93
101
  put_request("#{PATH}/#{user_id}", request)
94
102
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stytch
4
- VERSION = '3.14.0'
4
+ VERSION = '3.15.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: 3.14.0
4
+ version: 3.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stytch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-26 00:00:00.000000000 Z
11
+ date: 2022-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday