workos 3.0.0 → 3.1.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: 8a7377543b69e5754e2754e56bd4c43683ffe6177d678449150b41178cddc2b0
4
- data.tar.gz: 8e0c5d4ee45c39f8084d4b5c31b0e8058ba52ba7d3a7ca56e0146491af723d10
3
+ metadata.gz: 9ad84077c20052b97407464d2d226f58f15633fc075ad94da6072e60258ffb89
4
+ data.tar.gz: 8d740970f9e7def49c1faeb4f3eddf7da2e8289a6ad8d7e6f1f9e2f730899a7e
5
5
  SHA512:
6
- metadata.gz: d987073ab5dfe9eac87cf279ac8b5e75aff23fd56faf2c4b16f0c6acb43054112042915f1662685af16ec80d172c11b8b6c0bf5a02f44440ac9bf2d973f036ea
7
- data.tar.gz: 1627133ce7178bd72df4a6b0d710a842c9a66926d83ff05283836d3ff9afd958d10b8512c3f119621b4cc8ada2445e1854ae1d237f30e7430468b6dd2a90c6b1
6
+ metadata.gz: cff690a42ec04e6ff9ebfe23564573165d0ac39764ed0c8f6b62abb7b19365b1e86d8fe86e19d405cc4529f9104d64f2c6526ec053d8d536037eff9088c1edfc
7
+ data.tar.gz: 4afff676be0ba3eed8c6c5ce657d9fb6944a55eda0c165e027f34e9362f6ffd5a6cb17363b010682b702f5223e478687bdefa7cd3fa3440cd3d7677584d79a48
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (3.0.0)
4
+ workos (3.1.0)
5
5
  sorbet-runtime (~> 0.5)
6
6
 
7
7
  GEM
@@ -10,6 +10,7 @@ module WorkOS
10
10
  const :first_name, T.nilable(String)
11
11
  const :last_name, T.nilable(String)
12
12
  const :email_verified, T::Boolean
13
+ const :profile_picture_url, T.nilable(String)
13
14
  const :created_at, String
14
15
  const :updated_at, String
15
16
  end
data/lib/workos/user.rb CHANGED
@@ -10,7 +10,7 @@ module WorkOS
10
10
  extend T::Sig
11
11
 
12
12
  attr_accessor :id, :email, :first_name, :last_name, :email_verified,
13
- :created_at, :updated_at
13
+ :profile_picture_url, :created_at, :updated_at
14
14
 
15
15
  sig { params(json: String).void }
16
16
  def initialize(json)
@@ -21,6 +21,7 @@ module WorkOS
21
21
  @first_name = raw.first_name
22
22
  @last_name = raw.last_name
23
23
  @email_verified = raw.email_verified
24
+ @profile_picture_url = raw.profile_picture_url
24
25
  @created_at = T.let(raw.created_at, String)
25
26
  @updated_at = T.let(raw.updated_at, String)
26
27
  end
@@ -32,6 +33,7 @@ module WorkOS
32
33
  first_name: first_name,
33
34
  last_name: last_name,
34
35
  email_verified: email_verified,
36
+ profile_picture_url: profile_picture_url,
35
37
  created_at: created_at,
36
38
  updated_at: updated_at,
37
39
  }
@@ -49,6 +51,7 @@ module WorkOS
49
51
  first_name: hash[:first_name],
50
52
  last_name: hash[:last_name],
51
53
  email_verified: hash[:email_verified],
54
+ profile_picture_url: hash[:profile_picture_url],
52
55
  created_at: hash[:created_at],
53
56
  updated_at: hash[:updated_at],
54
57
  )
@@ -2,5 +2,5 @@
2
2
  # typed: strong
3
3
 
4
4
  module WorkOS
5
- VERSION = '3.0.0'
5
+ VERSION = '3.1.0'
6
6
  end
@@ -225,7 +225,7 @@ describe WorkOS::UserManagement do
225
225
  it 'returns a user' do
226
226
  VCR.use_cassette 'user_management/get_user' do
227
227
  user = described_class.get_user(
228
- id: 'user_01H7TVSKS45SDHN5V9XPSM6H44',
228
+ id: 'user_01HP0B4ZV2FWWVY0BF16GFDAER',
229
229
  )
230
230
 
231
231
  expect(user.id.instance_of?(String))
@@ -1,82 +1,82 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.workos.com/user_management/users/user_01H7TVSKS45SDHN5V9XPSM6H44
6
- body:
7
- encoding: US-ASCII
8
- string: ""
9
- headers:
10
- Content-Type:
11
- - application/json
12
- Accept-Encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- Accept:
15
- - "*/*"
16
- User-Agent:
17
- - WorkOS; ruby/3.0.2; arm64-darwin22; v2.16.0
18
- Authorization:
19
- - Bearer <API_KEY>
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Date:
26
- - Mon, 14 Aug 2023 21:42:04 GMT
27
- Content-Type:
28
- - application/json; charset=utf-8
29
- Transfer-Encoding:
30
- - chunked
31
- Connection:
32
- - keep-alive
33
- Cf-Ray:
34
- - 7f6c5d952da1431b-EWR
35
- Cf-Cache-Status:
36
- - DYNAMIC
37
- Etag:
38
- - W/"141-O6DsNeF3SRNndlNrActm2XgXhM8"
39
- Strict-Transport-Security:
40
- - max-age=15552000; includeSubDomains
41
- Vary:
42
- - Origin, Accept-Encoding
43
- Via:
44
- - 1.1 spaces-router (devel)
45
- Access-Control-Allow-Credentials:
46
- - "true"
47
- Content-Security-Policy:
48
- - "default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self'
49
- https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src
50
- 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"
51
- Expect-Ct:
52
- - max-age=0
53
- Referrer-Policy:
54
- - no-referrer
55
- X-Content-Type-Options:
56
- - nosniff
57
- X-Dns-Prefetch-Control:
58
- - "off"
59
- X-Download-Options:
60
- - noopen
61
- X-Frame-Options:
62
- - SAMEORIGIN
63
- X-Permitted-Cross-Domain-Policies:
64
- - none
65
- X-Request-Id:
66
- - d774318d-c77b-47eb-9974-47e587a5242e
67
- X-Xss-Protection:
68
- - "0"
69
- Set-Cookie:
70
- - __cf_bm=BV7wg6GRB.g.PmjVqpTueEgpVm4zhgL.Jb_FhpUkQDc-1692049324-0-AXZinFJJ+pibtaAcxVXaSSRque4aiUt1xUih81Q0oIyBpuoQFVT1fZc5kmyCUhdM/7VR/NhM818gxjJLjAC0BHE=;
71
- path=/; expires=Mon, 14-Aug-23 22:12:04 GMT; domain=.workos.com; HttpOnly;
72
- Secure; SameSite=None
73
- - __cfruid=5c73c06a5245951a8821c4d8302ae7be643317b4-1692049324; path=/; domain=.workos.com;
74
- HttpOnly; Secure; SameSite=None
75
- Server:
76
- - cloudflare
77
- body:
78
- encoding: ASCII-8BIT
79
- string: '{"object":"user","id":"user_01H7TVSKS45SDHN5V9XPSM6H44","email":"bob@example.com","first_name":"Bob","last_name":"Loblaw","created_at":"2023-08-14T20:28:58.929Z","updated_at":"2023-08-14T20:28:58.929Z","email_verified":false}'
80
- http_version:
81
- recorded_at: Mon, 14 Aug 2023 21:42:04 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://api.workos.com/user_management/users/user_01HP0B4ZV2FWWVY0BF16GFDAER
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - WorkOS; ruby/3.1.1; arm64-darwin21; v3.0.0
18
+ Authorization:
19
+ - Bearer <API_KEY>
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Tue, 06 Feb 2024 23:16:59 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Cf-Ray:
34
+ - 85171aa13cb71017-LAX
35
+ Cf-Cache-Status:
36
+ - DYNAMIC
37
+ Etag:
38
+ - W/"fc-DvbCxkCW5Wocu/IoMzE4Fvwf0ns"
39
+ Strict-Transport-Security:
40
+ - max-age=15552000; includeSubDomains
41
+ Vary:
42
+ - Origin, Accept-Encoding
43
+ Via:
44
+ - 1.1 spaces-router (devel)
45
+ Access-Control-Allow-Credentials:
46
+ - 'true'
47
+ Content-Security-Policy:
48
+ - 'default-src ''self'';base-uri ''self'';block-all-mixed-content;font-src ''self''
49
+ https: data:;frame-ancestors ''self'';img-src ''self'' data:;object-src ''none'';script-src
50
+ ''self'';script-src-attr ''none'';style-src ''self'' https: ''unsafe-inline'';upgrade-insecure-requests'
51
+ Expect-Ct:
52
+ - max-age=0
53
+ Referrer-Policy:
54
+ - no-referrer
55
+ X-Content-Type-Options:
56
+ - nosniff
57
+ X-Dns-Prefetch-Control:
58
+ - 'off'
59
+ X-Download-Options:
60
+ - noopen
61
+ X-Frame-Options:
62
+ - SAMEORIGIN
63
+ X-Permitted-Cross-Domain-Policies:
64
+ - none
65
+ X-Request-Id:
66
+ - d889e317-2368-4fe7-b0a2-1c47be3d9ca3
67
+ X-Xss-Protection:
68
+ - '0'
69
+ Set-Cookie:
70
+ - __cf_bm=zsxf6bU0PO_IAuZj57IP3Rk5q298HNg4.dSEXeYctso-1707261419-1-AdcDe/e31u5UfcVRh4MJqIcXlsdh/l5nwm8LpGN+dPD9ouq8nTzZ4nfMdt4Ukpc91Tohr0dOd9F6590AmrTiLUM=;
71
+ path=/; expires=Tue, 06-Feb-24 23:46:59 GMT; domain=.workos.com; HttpOnly;
72
+ Secure; SameSite=None
73
+ - __cfruid=60c1b96c058658fb8ea6f02357a98f597642db51-1707261419; path=/; domain=.workos.com;
74
+ HttpOnly; Secure; SameSite=None
75
+ Server:
76
+ - cloudflare
77
+ body:
78
+ encoding: ASCII-8BIT
79
+ string: '{"object":"user","id":"user_01HP0B4ZV2FWWVY0BF16GFDAER","email":"bob@example.com","email_verified":false,"first_name":"Bob","last_name":"Loblaw","profile_picture_url":null,"created_at":"2024-02-06T23:13:18.137Z","updated_at":"2024-02-06T23:13:36.946Z"}'
80
+ http_version:
81
+ recorded_at: Tue, 06 Feb 2024 23:16:59 GMT
82
82
  recorded_with: VCR 5.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workos
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -443,7 +443,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
443
443
  - !ruby/object:Gem::Version
444
444
  version: '0'
445
445
  requirements: []
446
- rubygems_version: 3.5.3
446
+ rubygems_version: 3.5.6
447
447
  signing_key:
448
448
  specification_version: 4
449
449
  summary: API client for WorkOS