workos 2.8.0 → 2.10.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: 8aa19ede17769e141b7fcffeeb62b5cf4b3629fa0e70d1084b79078b691e1a28
4
- data.tar.gz: '0395d416943a7f9f2e76643ae5eaa895025ee80acbdc751760e5cc7fb361b6f9'
3
+ metadata.gz: fd6da710852e1f089d5c3b501cc2d55ef5f9e85d8f8a745d740a5d6e0a6df4d6
4
+ data.tar.gz: 66ecf5d3316f904bacf20d9a0ecf7f7ff81633b455979863ce988d1d19f78c82
5
5
  SHA512:
6
- metadata.gz: db2f2a83a2805b3e1f838a5335cfc990edf2dd045955e4086ecc6b209c52dffad25b9d06e34f085e98e3f55b54b39d281a419026cc7216b6f368a95e17353679
7
- data.tar.gz: 90412141f8bda8924677b49381ee111fe06bff8dde9d7ff8b6c1c039c52f2970ef2b3b503766955f2454ccf92b7839087248f2796ea71d880546e24ec5c04628
6
+ metadata.gz: 036340bb1ba592f4abdf7884c1a64080a2d3b0c8bf1e24f6ed1323304f9a073723c5cd5297f6067f5d63b9e23ecdb498b2d776301c7d00431c9fc3085a9a070d
7
+ data.tar.gz: 10b5067388e52420fde807b1f0b40f66efd4cf9c9c027a6bc27610acc7700cdbee910311b819ad941d4be32ed78fa87356fc81c39555af947d984b6103bcbd6d
@@ -0,0 +1,11 @@
1
+ ## Description
2
+
3
+ ## Documentation
4
+
5
+ Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates.
6
+
7
+ ```
8
+ [ ] Yes
9
+ ```
10
+
11
+ If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- workos (2.8.0)
4
+ workos (2.10.0)
5
5
  sorbet-runtime (~> 0.5)
6
6
 
7
7
  GEM
data/lib/workos/portal.rb CHANGED
@@ -17,20 +17,23 @@ module WorkOS
17
17
  # Generate a link to grant access to an organization's Admin Portal
18
18
  #
19
19
  # @param [String] intent The access scope for the generated Admin Portal
20
- # link. Valid values are: ["sso", "dsync"]
20
+ # link. Valid values are: ["audit_logs", "dsync", "log_streams", "sso",]
21
21
  # @param [String] organization The ID of the organization the Admin
22
22
  # Portal link will be generated for.
23
23
  # @param [String] The URL that the end user will be redirected to upon
24
24
  # exiting the generated Admin Portal. If none is provided, the default
25
25
  # redirect link set in your WorkOS Dashboard will be used.
26
+ # @param [String] The URL to which WorkOS will redirect users to upon
27
+ # successfully setting up Single Sign On or Directory Sync.
26
28
  sig do
27
29
  params(
28
30
  intent: String,
29
31
  organization: String,
30
32
  return_url: T.nilable(String),
33
+ success_url: T.nilable(String),
31
34
  ).returns(String)
32
35
  end
33
- def generate_link(intent:, organization:, return_url: nil)
36
+ def generate_link(intent:, organization:, return_url: nil, success_url: nil)
34
37
  validate_intent(intent)
35
38
 
36
39
  request = post_request(
@@ -39,6 +42,7 @@ module WorkOS
39
42
  intent: intent,
40
43
  organization: organization,
41
44
  return_url: return_url,
45
+ success_url: success_url,
42
46
  },
43
47
  path: '/portal/generate_link',
44
48
  )
@@ -7,9 +7,10 @@ module WorkOS
7
7
  # intents while generating an Admin Portal link.
8
8
  class Intent < T::Enum
9
9
  enums do
10
- SSO = new('sso')
11
- DSYNC = new('dsync')
12
10
  AUDIT_LOGS = new('audit_logs')
11
+ DSYNC = new('dsync')
12
+ LOG_STREAMS = new('log_streams')
13
+ SSO = new('sso')
13
14
  end
14
15
  end
15
16
  end
@@ -2,5 +2,5 @@
2
2
  # typed: strong
3
3
 
4
4
  module WorkOS
5
- VERSION = '2.8.0'
5
+ VERSION = '2.10.0'
6
6
  end
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"audit_logs","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"audit_logs","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"dsync","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"dsync","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: https://api.workos.com/portal/generate_link
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"intent":"sso","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null}'
8
+ string: '{"intent":"sso","organization":"org_01EHQMYV6MBK39QC5PZXHY59C3","return_url":null,"success_url":null}'
9
9
  headers:
10
10
  Content-Type:
11
11
  - application/json
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: 2.8.0
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WorkOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime
@@ -162,6 +162,7 @@ extensions: []
162
162
  extra_rdoc_files: []
163
163
  files:
164
164
  - ".github/CODEOWNERS"
165
+ - ".github/pull_request_template.md"
165
166
  - ".github/renovate.json"
166
167
  - ".gitignore"
167
168
  - ".rspec"
@@ -402,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
403
  - !ruby/object:Gem::Version
403
404
  version: '0'
404
405
  requirements: []
405
- rubygems_version: 3.3.23
406
+ rubygems_version: 3.3.26
406
407
  signing_key:
407
408
  specification_version: 4
408
409
  summary: API client for WorkOS