workos 9.0.0 → 9.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 +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/.github/workflows/docs.yml +2 -2
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/release-please.yml +27 -3
- data/.github/workflows/release.yml +2 -2
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +28 -12
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +33 -0
- data/Gemfile.lock +4 -4
- data/lib/workos/{directory_sync/dsync_deactivated.rb → api_keys/api_key_updated.rb} +2 -2
- data/lib/workos/api_keys/api_key_updated_data.rb +49 -0
- data/lib/workos/{directory_sync/dsync_deactivated_data_domain.rb → api_keys/api_key_updated_data_owner.rb} +1 -1
- data/lib/workos/api_keys/api_key_updated_data_previous_attribute.rb +18 -0
- data/lib/workos/api_keys/expire_api_key.rb +18 -0
- data/lib/workos/api_keys.rb +25 -0
- data/lib/workos/authorization.rb +10 -10
- data/lib/workos/base_client.rb +19 -2
- data/lib/workos/connect/user_object.rb +3 -0
- data/lib/workos/connect.rb +1 -1
- data/lib/workos/directory_sync/dsync_token_created.rb +34 -0
- data/lib/workos/directory_sync/dsync_token_created_data.rb +34 -0
- data/lib/workos/directory_sync/dsync_token_revoked.rb +34 -0
- data/lib/workos/{types/dsync_deactivated_data_type.rb → directory_sync/dsync_token_revoked_data.rb} +1 -3
- data/lib/workos/directory_sync.rb +2 -2
- data/lib/workos/events.rb +1 -1
- data/lib/workos/groups.rb +2 -2
- data/lib/workos/inflections.rb +0 -1
- data/lib/workos/organization_membership_service.rb +2 -2
- data/lib/workos/organizations.rb +1 -1
- data/lib/workos/types/audit_log_configuration_log_stream_type.rb +2 -1
- data/lib/workos/types/create_webhook_endpoint_events.rb +2 -1
- data/lib/workos/types/radar_standalone_response_control.rb +1 -2
- data/lib/workos/user_management/create_user.rb +3 -0
- data/lib/workos/user_management/email_change_confirmation_user.rb +3 -0
- data/lib/workos/user_management/revoke_session.rb +2 -6
- data/lib/workos/user_management/update_user.rb +3 -0
- data/lib/workos/{types/dsync_deactivated_data_state.rb → user_management/user_api_key_updated_data_owner.rb} +1 -3
- data/lib/workos/user_management.rb +12 -9
- data/lib/workos/vault/{object.rb → vault_object.rb} +1 -1
- data/lib/workos/vault.rb +4 -4
- data/lib/workos/version.rb +1 -1
- data/lib/workos/webhooks.rb +1 -1
- data/rbi/workos/{dsync_deactivated.rbi → api_key_updated.rbi} +3 -3
- data/rbi/workos/api_key_updated_data.rbi +84 -0
- data/rbi/workos/api_key_updated_data_owner.rbi +30 -0
- data/rbi/workos/api_key_updated_data_previous_attribute.rbi +24 -0
- data/rbi/workos/api_keys.rbi +9 -0
- data/rbi/workos/create_user.rbi +6 -0
- data/rbi/workos/dsync_token_created.rbi +54 -0
- data/rbi/workos/{dsync_deactivated_data.rbi → dsync_token_created_data.rbi} +9 -33
- data/rbi/workos/dsync_token_revoked.rbi +54 -0
- data/rbi/workos/dsync_token_revoked_data.rbi +54 -0
- data/rbi/workos/email_change_confirmation_user.rbi +6 -0
- data/rbi/workos/expire_api_key.rbi +24 -0
- data/rbi/workos/revoke_session.rbi +0 -6
- data/rbi/workos/update_user.rbi +6 -0
- data/rbi/workos/user.rbi +6 -0
- data/rbi/workos/{dsync_deactivated_data_domain.rbi → user_api_key_updated_data_owner.rbi} +5 -5
- data/rbi/workos/user_management.rbi +5 -4
- data/rbi/workos/user_object.rbi +6 -0
- data/rbi/workos/vault.rbi +2 -2
- data/rbi/workos/{object.rbi → vault_object.rbi} +1 -1
- data/renovate.json +1 -61
- data/test/workos/test_api_keys.rb +9 -1
- data/test/workos/test_base_client.rb +64 -0
- data/test/workos/test_model_round_trip.rb +167 -53
- data/test/workos/test_vault.rb +0 -1
- metadata +26 -17
- data/lib/workos/directory_sync/dsync_deactivated_data.rb +0 -46
- /data/lib/workos/{authorization → groups}/user_organization_membership_base_list_data.rb +0 -0
data/lib/workos/base_client.rb
CHANGED
|
@@ -166,7 +166,7 @@ module WorkOS
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# Close all persistent connections cached by this client on the current
|
|
169
|
-
#
|
|
169
|
+
# thread.
|
|
170
170
|
#
|
|
171
171
|
# Call this before forking (e.g. in a Puma `on_worker_boot` block) to
|
|
172
172
|
# avoid sharing `Net::HTTP` sockets across processes.
|
|
@@ -302,8 +302,25 @@ module WorkOS
|
|
|
302
302
|
"#{uri.scheme}:#{uri.host}:#{uri.port}:#{timeout}"
|
|
303
303
|
end
|
|
304
304
|
|
|
305
|
+
# Per-fiber connection cache (non-inherited).
|
|
306
|
+
#
|
|
307
|
+
# Uses Thread.current[] (Ruby fiber-local storage) rather than
|
|
308
|
+
# Fiber[] (inheritable fiber storage). Fiber[] is inherited *by
|
|
309
|
+
# reference* by every child fiber and every child thread, so a live
|
|
310
|
+
# Net::HTTP socket cached in a parent fiber would be shared across
|
|
311
|
+
# worker threads spawned afterward (e.g. Solid Queue, Puma). Net::HTTP
|
|
312
|
+
# sockets are not thread-safe; concurrent use corrupts the stream and
|
|
313
|
+
# surfaces as FrozenError on the SSLContext, Errno::EBADF, "stream
|
|
314
|
+
# closed in another thread" (IOError), and Net::HTTPBadResponse.
|
|
315
|
+
# Thread.current[] is not inherited across threads, so each thread
|
|
316
|
+
# gets its own isolated cache.
|
|
317
|
+
#
|
|
318
|
+
# Note: Thread.current[] is fiber-local in Ruby — each Fiber within a
|
|
319
|
+
# thread has its own slot. In fiber-based servers (Async, Falcon) this
|
|
320
|
+
# means one connection cache per fiber rather than per OS thread, which
|
|
321
|
+
# is the desired behavior: each concurrent request gets its own sockets.
|
|
305
322
|
def thread_connections
|
|
306
|
-
|
|
323
|
+
Thread.current[:workos_connections] ||= {}
|
|
307
324
|
end
|
|
308
325
|
|
|
309
326
|
def build_request(klass, path, auth:, request_options:)
|
|
@@ -9,6 +9,7 @@ module WorkOS
|
|
|
9
9
|
email: :email,
|
|
10
10
|
first_name: :first_name,
|
|
11
11
|
last_name: :last_name,
|
|
12
|
+
name: :name,
|
|
12
13
|
metadata: :metadata
|
|
13
14
|
}.freeze
|
|
14
15
|
|
|
@@ -17,6 +18,7 @@ module WorkOS
|
|
|
17
18
|
:email,
|
|
18
19
|
:first_name,
|
|
19
20
|
:last_name,
|
|
21
|
+
:name,
|
|
20
22
|
:metadata
|
|
21
23
|
|
|
22
24
|
def initialize(json)
|
|
@@ -25,6 +27,7 @@ module WorkOS
|
|
|
25
27
|
@email = hash[:email]
|
|
26
28
|
@first_name = hash[:first_name]
|
|
27
29
|
@last_name = hash[:last_name]
|
|
30
|
+
@name = hash[:name]
|
|
28
31
|
@metadata = hash[:metadata] || {}
|
|
29
32
|
end
|
|
30
33
|
end
|
data/lib/workos/connect.rb
CHANGED
|
@@ -43,7 +43,7 @@ module WorkOS
|
|
|
43
43
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
44
44
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
45
45
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
46
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
46
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
47
47
|
# @param organization_id [String, nil] Filter Connect Applications by organization ID.
|
|
48
48
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
49
49
|
# @return [WorkOS::Types::ListStruct<WorkOS::ConnectApplication>]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DsyncTokenCreated < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
event: :event,
|
|
11
|
+
data: :data,
|
|
12
|
+
created_at: :created_at,
|
|
13
|
+
context: :context
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
attr_accessor \
|
|
17
|
+
:object,
|
|
18
|
+
:id,
|
|
19
|
+
:event,
|
|
20
|
+
:data,
|
|
21
|
+
:created_at,
|
|
22
|
+
:context
|
|
23
|
+
|
|
24
|
+
def initialize(json)
|
|
25
|
+
hash = self.class.normalize(json)
|
|
26
|
+
@object = hash[:object]
|
|
27
|
+
@id = hash[:id]
|
|
28
|
+
@event = hash[:event]
|
|
29
|
+
@data = hash[:data] ? WorkOS::DsyncTokenCreatedData.new(hash[:data]) : nil
|
|
30
|
+
@created_at = hash[:created_at]
|
|
31
|
+
@context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DsyncTokenCreatedData < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
directory_id: :directory_id,
|
|
11
|
+
organization_id: :organization_id,
|
|
12
|
+
token_suffix: :token_suffix,
|
|
13
|
+
created_at: :created_at
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
attr_accessor \
|
|
17
|
+
:object,
|
|
18
|
+
:id,
|
|
19
|
+
:directory_id,
|
|
20
|
+
:organization_id,
|
|
21
|
+
:token_suffix,
|
|
22
|
+
:created_at
|
|
23
|
+
|
|
24
|
+
def initialize(json)
|
|
25
|
+
hash = self.class.normalize(json)
|
|
26
|
+
@object = hash[:object]
|
|
27
|
+
@id = hash[:id]
|
|
28
|
+
@directory_id = hash[:directory_id]
|
|
29
|
+
@organization_id = hash[:organization_id]
|
|
30
|
+
@token_suffix = hash[:token_suffix]
|
|
31
|
+
@created_at = hash[:created_at]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class DsyncTokenRevoked < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
event: :event,
|
|
11
|
+
data: :data,
|
|
12
|
+
created_at: :created_at,
|
|
13
|
+
context: :context
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
attr_accessor \
|
|
17
|
+
:object,
|
|
18
|
+
:id,
|
|
19
|
+
:event,
|
|
20
|
+
:data,
|
|
21
|
+
:created_at,
|
|
22
|
+
:context
|
|
23
|
+
|
|
24
|
+
def initialize(json)
|
|
25
|
+
hash = self.class.normalize(json)
|
|
26
|
+
@object = hash[:object]
|
|
27
|
+
@id = hash[:id]
|
|
28
|
+
@event = hash[:event]
|
|
29
|
+
@data = hash[:data] ? WorkOS::DsyncTokenRevokedData.new(hash[:data]) : nil
|
|
30
|
+
@created_at = hash[:created_at]
|
|
31
|
+
@context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -106,7 +106,7 @@ module WorkOS
|
|
|
106
106
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
107
107
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
108
108
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
109
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
109
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
110
110
|
# @param directory [String, nil] Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API.
|
|
111
111
|
# @param user [String, nil] Unique identifier of the WorkOS Directory User. This value can be obtained from the WorkOS API.
|
|
112
112
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
@@ -177,7 +177,7 @@ module WorkOS
|
|
|
177
177
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
178
178
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
179
179
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
180
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
180
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
181
181
|
# @param directory [String, nil] Unique identifier of the WorkOS Directory. This value can be obtained from the WorkOS dashboard or from the WorkOS API.
|
|
182
182
|
# @param group [String, nil] Unique identifier of the WorkOS Directory Group. This value can be obtained from the WorkOS API.
|
|
183
183
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
data/lib/workos/events.rb
CHANGED
|
@@ -14,7 +14,7 @@ module WorkOS
|
|
|
14
14
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
15
15
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
16
16
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
17
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
17
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
18
|
# @param events [Array<String>, nil] Filter events by one or more event types (e.g. `dsync.user.created`).
|
|
19
19
|
# @param range_start [String, nil] ISO-8601 date string to filter events created after this date.
|
|
20
20
|
# @param range_end [String, nil] ISO-8601 date string to filter events created before this date.
|
data/lib/workos/groups.rb
CHANGED
|
@@ -15,7 +15,7 @@ module WorkOS
|
|
|
15
15
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
16
16
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
17
17
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
18
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
19
19
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
20
20
|
# @return [WorkOS::Types::ListStruct<WorkOS::Group>]
|
|
21
21
|
def list_organization_groups(
|
|
@@ -161,7 +161,7 @@ module WorkOS
|
|
|
161
161
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
162
162
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
163
163
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
164
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
164
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
165
165
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
166
166
|
# @return [WorkOS::Types::ListStruct<WorkOS::UserOrganizationMembershipBaseListData>]
|
|
167
167
|
def list_group_organization_memberships(
|
data/lib/workos/inflections.rb
CHANGED
|
@@ -50,7 +50,6 @@ WORKOS_INFLECTIONS = {
|
|
|
50
50
|
"create_oauth_application" => "CreateOAuthApplication",
|
|
51
51
|
"jwt_template_response" => "JWTTemplateResponse",
|
|
52
52
|
"mfa_totp_session_authenticate_request" => "MFATotpSessionAuthenticateRequest",
|
|
53
|
-
"object" => "ObjectModel",
|
|
54
53
|
"pkce" => "PKCE",
|
|
55
54
|
"sso" => "SSO",
|
|
56
55
|
"sso_authorize_url_response" => "SSOAuthorizeUrlResponse",
|
|
@@ -26,7 +26,7 @@ module WorkOS
|
|
|
26
26
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
27
27
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
28
28
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
29
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
29
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
30
30
|
# @param organization_id [String, nil] The ID of the [organization](https://workos.com/docs/reference/organization) which the user belongs to.
|
|
31
31
|
# @param statuses [Array<WorkOS::Types::UserManagementOrganizationMembershipStatuses>, nil] Filter by the status of the organization membership. Array including any of `active`, `inactive`, or `pending`.
|
|
32
32
|
# @param user_id [String, nil] The ID of the [user](https://workos.com/docs/reference/authkit/user).
|
|
@@ -228,7 +228,7 @@ module WorkOS
|
|
|
228
228
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
229
229
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
230
230
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
231
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
231
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
232
232
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
233
233
|
# @return [WorkOS::Types::ListStruct<WorkOS::Group>]
|
|
234
234
|
def list_organization_membership_groups(
|
data/lib/workos/organizations.rb
CHANGED
|
@@ -14,7 +14,7 @@ module WorkOS
|
|
|
14
14
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
15
15
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
16
16
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
17
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
17
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
18
|
# @param domains [Array<String>, nil] The domains of an Organization. Any Organization with a matching domain will be returned.
|
|
19
19
|
# @param search [String, nil] Searchable text for an Organization. Matches against the organization name.
|
|
20
20
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
@@ -10,8 +10,9 @@ module WorkOS
|
|
|
10
10
|
GENERIC_HTTPS = "GenericHttps"
|
|
11
11
|
GOOGLE_CLOUD_STORAGE = "GoogleCloudStorage"
|
|
12
12
|
S_3 = "S3"
|
|
13
|
+
SNOWFLAKE = "Snowflake"
|
|
13
14
|
SPLUNK = "Splunk"
|
|
14
|
-
ALL = [AZURE_SENTINEL, DATADOG, GENERIC_HTTPS, GOOGLE_CLOUD_STORAGE, S_3, SPLUNK].freeze
|
|
15
|
+
ALL = [AZURE_SENTINEL, DATADOG, GENERIC_HTTPS, GOOGLE_CLOUD_STORAGE, S_3, SNOWFLAKE, SPLUNK].freeze
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
end
|
|
@@ -22,6 +22,7 @@ module WorkOS
|
|
|
22
22
|
AUTHENTICATION_RADAR_RISK_DETECTED = "authentication.radar_risk_detected"
|
|
23
23
|
API_KEY_CREATED = "api_key.created"
|
|
24
24
|
API_KEY_REVOKED = "api_key.revoked"
|
|
25
|
+
API_KEY_UPDATED = "api_key.updated"
|
|
25
26
|
CONNECTION_ACTIVATED = "connection.activated"
|
|
26
27
|
CONNECTION_DEACTIVATED = "connection.deactivated"
|
|
27
28
|
CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED = "connection.saml_certificate_renewal_required"
|
|
@@ -85,7 +86,7 @@ module WorkOS
|
|
|
85
86
|
WAITLIST_USER_APPROVED = "waitlist_user.approved"
|
|
86
87
|
WAITLIST_USER_CREATED = "waitlist_user.created"
|
|
87
88
|
WAITLIST_USER_DENIED = "waitlist_user.denied"
|
|
88
|
-
ALL = [AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED, AUTHENTICATION_MAGIC_AUTH_FAILED, AUTHENTICATION_MAGIC_AUTH_SUCCEEDED, AUTHENTICATION_MFA_SUCCEEDED, AUTHENTICATION_OAUTH_FAILED, AUTHENTICATION_OAUTH_SUCCEEDED, AUTHENTICATION_PASSWORD_FAILED, AUTHENTICATION_PASSWORD_SUCCEEDED, AUTHENTICATION_PASSKEY_FAILED, AUTHENTICATION_PASSKEY_SUCCEEDED, AUTHENTICATION_SSO_FAILED, AUTHENTICATION_SSO_STARTED, AUTHENTICATION_SSO_SUCCEEDED, AUTHENTICATION_SSO_TIMED_OUT, AUTHENTICATION_RADAR_RISK_DETECTED, API_KEY_CREATED, API_KEY_REVOKED, CONNECTION_ACTIVATED, CONNECTION_DEACTIVATED, CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED, CONNECTION_SAML_CERTIFICATE_RENEWED, CONNECTION_DELETED, DSYNC_ACTIVATED, DSYNC_DELETED, DSYNC_GROUP_CREATED, DSYNC_GROUP_DELETED, DSYNC_GROUP_UPDATED, DSYNC_GROUP_USER_ADDED, DSYNC_GROUP_USER_REMOVED, DSYNC_USER_CREATED, DSYNC_USER_DELETED, DSYNC_USER_UPDATED, EMAIL_VERIFICATION_CREATED, GROUP_CREATED, GROUP_DELETED, GROUP_MEMBER_ADDED, GROUP_MEMBER_REMOVED, GROUP_UPDATED, FLAG_CREATED, FLAG_DELETED, FLAG_UPDATED, FLAG_RULE_UPDATED, INVITATION_ACCEPTED, INVITATION_CREATED, INVITATION_RESENT, INVITATION_REVOKED, MAGIC_AUTH_CREATED, ORGANIZATION_CREATED, ORGANIZATION_DELETED, ORGANIZATION_UPDATED, ORGANIZATION_DOMAIN_CREATED, ORGANIZATION_DOMAIN_DELETED, ORGANIZATION_DOMAIN_UPDATED, ORGANIZATION_DOMAIN_VERIFIED, ORGANIZATION_DOMAIN_VERIFICATION_FAILED, PASSWORD_RESET_CREATED, PASSWORD_RESET_SUCCEEDED, USER_CREATED, USER_UPDATED, USER_DELETED, ORGANIZATION_MEMBERSHIP_CREATED, ORGANIZATION_MEMBERSHIP_DELETED, ORGANIZATION_MEMBERSHIP_UPDATED, ROLE_CREATED, ROLE_DELETED, ROLE_UPDATED, ORGANIZATION_ROLE_CREATED, ORGANIZATION_ROLE_DELETED, ORGANIZATION_ROLE_UPDATED, PERMISSION_CREATED, PERMISSION_DELETED, PERMISSION_UPDATED, PIPES_CONNECTED_ACCOUNT_CONNECTED, PIPES_CONNECTED_ACCOUNT_DISCONNECTED, PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDED, SESSION_CREATED, SESSION_REVOKED, WAITLIST_USER_APPROVED, WAITLIST_USER_CREATED, WAITLIST_USER_DENIED].freeze
|
|
89
|
+
ALL = [AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED, AUTHENTICATION_MAGIC_AUTH_FAILED, AUTHENTICATION_MAGIC_AUTH_SUCCEEDED, AUTHENTICATION_MFA_SUCCEEDED, AUTHENTICATION_OAUTH_FAILED, AUTHENTICATION_OAUTH_SUCCEEDED, AUTHENTICATION_PASSWORD_FAILED, AUTHENTICATION_PASSWORD_SUCCEEDED, AUTHENTICATION_PASSKEY_FAILED, AUTHENTICATION_PASSKEY_SUCCEEDED, AUTHENTICATION_SSO_FAILED, AUTHENTICATION_SSO_STARTED, AUTHENTICATION_SSO_SUCCEEDED, AUTHENTICATION_SSO_TIMED_OUT, AUTHENTICATION_RADAR_RISK_DETECTED, API_KEY_CREATED, API_KEY_REVOKED, API_KEY_UPDATED, CONNECTION_ACTIVATED, CONNECTION_DEACTIVATED, CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED, CONNECTION_SAML_CERTIFICATE_RENEWED, CONNECTION_DELETED, DSYNC_ACTIVATED, DSYNC_DELETED, DSYNC_GROUP_CREATED, DSYNC_GROUP_DELETED, DSYNC_GROUP_UPDATED, DSYNC_GROUP_USER_ADDED, DSYNC_GROUP_USER_REMOVED, DSYNC_USER_CREATED, DSYNC_USER_DELETED, DSYNC_USER_UPDATED, EMAIL_VERIFICATION_CREATED, GROUP_CREATED, GROUP_DELETED, GROUP_MEMBER_ADDED, GROUP_MEMBER_REMOVED, GROUP_UPDATED, FLAG_CREATED, FLAG_DELETED, FLAG_UPDATED, FLAG_RULE_UPDATED, INVITATION_ACCEPTED, INVITATION_CREATED, INVITATION_RESENT, INVITATION_REVOKED, MAGIC_AUTH_CREATED, ORGANIZATION_CREATED, ORGANIZATION_DELETED, ORGANIZATION_UPDATED, ORGANIZATION_DOMAIN_CREATED, ORGANIZATION_DOMAIN_DELETED, ORGANIZATION_DOMAIN_UPDATED, ORGANIZATION_DOMAIN_VERIFIED, ORGANIZATION_DOMAIN_VERIFICATION_FAILED, PASSWORD_RESET_CREATED, PASSWORD_RESET_SUCCEEDED, USER_CREATED, USER_UPDATED, USER_DELETED, ORGANIZATION_MEMBERSHIP_CREATED, ORGANIZATION_MEMBERSHIP_DELETED, ORGANIZATION_MEMBERSHIP_UPDATED, ROLE_CREATED, ROLE_DELETED, ROLE_UPDATED, ORGANIZATION_ROLE_CREATED, ORGANIZATION_ROLE_DELETED, ORGANIZATION_ROLE_UPDATED, PERMISSION_CREATED, PERMISSION_DELETED, PERMISSION_UPDATED, PIPES_CONNECTED_ACCOUNT_CONNECTED, PIPES_CONNECTED_ACCOUNT_DISCONNECTED, PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDED, SESSION_CREATED, SESSION_REVOKED, WAITLIST_USER_APPROVED, WAITLIST_USER_CREATED, WAITLIST_USER_DENIED].freeze
|
|
89
90
|
end
|
|
90
91
|
end
|
|
91
92
|
end
|
|
@@ -7,13 +7,12 @@ module WorkOS
|
|
|
7
7
|
class RadarStandaloneResponseControl
|
|
8
8
|
BOT_DETECTION = "bot_detection"
|
|
9
9
|
BRUTE_FORCE_ATTACK = "brute_force_attack"
|
|
10
|
-
DOMAIN_SIGN_UP_RATE_LIMIT = "domain_sign_up_rate_limit"
|
|
11
10
|
IMPOSSIBLE_TRAVEL = "impossible_travel"
|
|
12
11
|
REPEAT_SIGN_UP = "repeat_sign_up"
|
|
13
12
|
STALE_ACCOUNT = "stale_account"
|
|
14
13
|
UNRECOGNIZED_DEVICE = "unrecognized_device"
|
|
15
14
|
RESTRICTION = "restriction"
|
|
16
|
-
ALL = [BOT_DETECTION, BRUTE_FORCE_ATTACK,
|
|
15
|
+
ALL = [BOT_DETECTION, BRUTE_FORCE_ATTACK, IMPOSSIBLE_TRAVEL, REPEAT_SIGN_UP, STALE_ACCOUNT, UNRECOGNIZED_DEVICE, RESTRICTION].freeze
|
|
17
16
|
end
|
|
18
17
|
end
|
|
19
18
|
end
|
|
@@ -8,6 +8,7 @@ module WorkOS
|
|
|
8
8
|
email: :email,
|
|
9
9
|
first_name: :first_name,
|
|
10
10
|
last_name: :last_name,
|
|
11
|
+
name: :name,
|
|
11
12
|
email_verified: :email_verified,
|
|
12
13
|
metadata: :metadata,
|
|
13
14
|
external_id: :external_id,
|
|
@@ -20,6 +21,7 @@ module WorkOS
|
|
|
20
21
|
:email,
|
|
21
22
|
:first_name,
|
|
22
23
|
:last_name,
|
|
24
|
+
:name,
|
|
23
25
|
:email_verified,
|
|
24
26
|
:metadata,
|
|
25
27
|
:external_id,
|
|
@@ -32,6 +34,7 @@ module WorkOS
|
|
|
32
34
|
@email = hash[:email]
|
|
33
35
|
@first_name = hash[:first_name]
|
|
34
36
|
@last_name = hash[:last_name]
|
|
37
|
+
@name = hash[:name]
|
|
35
38
|
@email_verified = hash[:email_verified]
|
|
36
39
|
@metadata = hash[:metadata] || {}
|
|
37
40
|
@external_id = hash[:external_id]
|
|
@@ -9,6 +9,7 @@ module WorkOS
|
|
|
9
9
|
id: :id,
|
|
10
10
|
first_name: :first_name,
|
|
11
11
|
last_name: :last_name,
|
|
12
|
+
name: :name,
|
|
12
13
|
profile_picture_url: :profile_picture_url,
|
|
13
14
|
email: :email,
|
|
14
15
|
email_verified: :email_verified,
|
|
@@ -25,6 +26,7 @@ module WorkOS
|
|
|
25
26
|
:id,
|
|
26
27
|
:first_name,
|
|
27
28
|
:last_name,
|
|
29
|
+
:name,
|
|
28
30
|
:profile_picture_url,
|
|
29
31
|
:email,
|
|
30
32
|
:email_verified,
|
|
@@ -41,6 +43,7 @@ module WorkOS
|
|
|
41
43
|
@id = hash[:id]
|
|
42
44
|
@first_name = hash[:first_name]
|
|
43
45
|
@last_name = hash[:last_name]
|
|
46
|
+
@name = hash[:name]
|
|
44
47
|
@profile_picture_url = hash[:profile_picture_url]
|
|
45
48
|
@email = hash[:email]
|
|
46
49
|
@email_verified = hash[:email_verified]
|
|
@@ -5,18 +5,14 @@
|
|
|
5
5
|
module WorkOS
|
|
6
6
|
class RevokeSession < WorkOS::Types::BaseModel
|
|
7
7
|
HASH_ATTRS = {
|
|
8
|
-
session_id: :session_id
|
|
9
|
-
return_to: :return_to
|
|
8
|
+
session_id: :session_id
|
|
10
9
|
}.freeze
|
|
11
10
|
|
|
12
|
-
attr_accessor
|
|
13
|
-
:session_id,
|
|
14
|
-
:return_to
|
|
11
|
+
attr_accessor :session_id
|
|
15
12
|
|
|
16
13
|
def initialize(json)
|
|
17
14
|
hash = self.class.normalize(json)
|
|
18
15
|
@session_id = hash[:session_id]
|
|
19
|
-
@return_to = hash[:return_to]
|
|
20
16
|
end
|
|
21
17
|
end
|
|
22
18
|
end
|
|
@@ -8,6 +8,7 @@ module WorkOS
|
|
|
8
8
|
email: :email,
|
|
9
9
|
first_name: :first_name,
|
|
10
10
|
last_name: :last_name,
|
|
11
|
+
name: :name,
|
|
11
12
|
email_verified: :email_verified,
|
|
12
13
|
metadata: :metadata,
|
|
13
14
|
external_id: :external_id,
|
|
@@ -21,6 +22,7 @@ module WorkOS
|
|
|
21
22
|
:email,
|
|
22
23
|
:first_name,
|
|
23
24
|
:last_name,
|
|
25
|
+
:name,
|
|
24
26
|
:email_verified,
|
|
25
27
|
:metadata,
|
|
26
28
|
:external_id,
|
|
@@ -34,6 +36,7 @@ module WorkOS
|
|
|
34
36
|
@email = hash[:email]
|
|
35
37
|
@first_name = hash[:first_name]
|
|
36
38
|
@last_name = hash[:last_name]
|
|
39
|
+
@name = hash[:name]
|
|
37
40
|
@email_verified = hash[:email_verified]
|
|
38
41
|
@metadata = hash[:metadata] || {}
|
|
39
42
|
@external_id = hash[:external_id]
|
|
@@ -432,18 +432,15 @@ module WorkOS
|
|
|
432
432
|
|
|
433
433
|
# Revoke Session
|
|
434
434
|
# @param session_id [String] The ID of the session to revoke. This can be extracted from the `sid` claim of the access token.
|
|
435
|
-
# @param return_to [String, nil] The URL to redirect the user to after session revocation.
|
|
436
435
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
437
436
|
# @return [void]
|
|
438
437
|
def revoke_session(
|
|
439
438
|
session_id:,
|
|
440
|
-
return_to: nil,
|
|
441
439
|
request_options: {}
|
|
442
440
|
)
|
|
443
441
|
body = {
|
|
444
|
-
"session_id" => session_id
|
|
445
|
-
|
|
446
|
-
}.compact
|
|
442
|
+
"session_id" => session_id
|
|
443
|
+
}
|
|
447
444
|
@client.request(
|
|
448
445
|
method: :post,
|
|
449
446
|
path: "/user_management/sessions/revoke",
|
|
@@ -568,7 +565,7 @@ module WorkOS
|
|
|
568
565
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
569
566
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
570
567
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
571
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
568
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
572
569
|
# @param organization [String, nil] (deprecated) Filter users by the organization they are a member of. Deprecated in favor of `organization_id`.
|
|
573
570
|
# @param organization_id [String, nil] Filter users by the organization they are a member of.
|
|
574
571
|
# @param email [String, nil] Filter users by their email address.
|
|
@@ -624,6 +621,7 @@ module WorkOS
|
|
|
624
621
|
# @param email [String] The email address of the user.
|
|
625
622
|
# @param first_name [String, nil] The first name of the user.
|
|
626
623
|
# @param last_name [String, nil] The last name of the user.
|
|
624
|
+
# @param name [String, nil] The user's full name.
|
|
627
625
|
# @param email_verified [Boolean, nil] Whether the user's email has been verified.
|
|
628
626
|
# @param metadata [Hash{String => String}, nil] Object containing metadata key/value pairs associated with the user.
|
|
629
627
|
# @param external_id [String, nil] The external ID of the user.
|
|
@@ -634,6 +632,7 @@ module WorkOS
|
|
|
634
632
|
email:,
|
|
635
633
|
first_name: nil,
|
|
636
634
|
last_name: nil,
|
|
635
|
+
name: nil,
|
|
637
636
|
email_verified: nil,
|
|
638
637
|
metadata: nil,
|
|
639
638
|
external_id: nil,
|
|
@@ -644,6 +643,7 @@ module WorkOS
|
|
|
644
643
|
"email" => email,
|
|
645
644
|
"first_name" => first_name,
|
|
646
645
|
"last_name" => last_name,
|
|
646
|
+
"name" => name,
|
|
647
647
|
"email_verified" => email_verified,
|
|
648
648
|
"metadata" => metadata,
|
|
649
649
|
"external_id" => external_id
|
|
@@ -714,6 +714,7 @@ module WorkOS
|
|
|
714
714
|
# @param email [String, nil] The email address of the user.
|
|
715
715
|
# @param first_name [String, nil] The first name of the user.
|
|
716
716
|
# @param last_name [String, nil] The last name of the user.
|
|
717
|
+
# @param name [String, nil] The user's full name.
|
|
717
718
|
# @param email_verified [Boolean, nil] Whether the user's email has been verified.
|
|
718
719
|
# @param metadata [Hash{String => String}, nil] Object containing metadata key/value pairs associated with the user.
|
|
719
720
|
# @param external_id [String, nil] The external ID of the user.
|
|
@@ -726,6 +727,7 @@ module WorkOS
|
|
|
726
727
|
email: nil,
|
|
727
728
|
first_name: nil,
|
|
728
729
|
last_name: nil,
|
|
730
|
+
name: nil,
|
|
729
731
|
email_verified: nil,
|
|
730
732
|
metadata: nil,
|
|
731
733
|
external_id: nil,
|
|
@@ -737,6 +739,7 @@ module WorkOS
|
|
|
737
739
|
"email" => email,
|
|
738
740
|
"first_name" => first_name,
|
|
739
741
|
"last_name" => last_name,
|
|
742
|
+
"name" => name,
|
|
740
743
|
"email_verified" => email_verified,
|
|
741
744
|
"metadata" => metadata,
|
|
742
745
|
"external_id" => external_id,
|
|
@@ -899,7 +902,7 @@ module WorkOS
|
|
|
899
902
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
900
903
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
901
904
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
902
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
905
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
903
906
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
904
907
|
# @return [WorkOS::Types::ListStruct<WorkOS::UserSessionsListItem>]
|
|
905
908
|
def list_sessions(
|
|
@@ -945,7 +948,7 @@ module WorkOS
|
|
|
945
948
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
946
949
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
947
950
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
948
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
951
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
949
952
|
# @param organization_id [String, nil] The ID of the [organization](https://workos.com/docs/reference/organization) that the recipient will join.
|
|
950
953
|
# @param email [String, nil] The email address of the recipient.
|
|
951
954
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
@@ -1243,7 +1246,7 @@ module WorkOS
|
|
|
1243
1246
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
1244
1247
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
1245
1248
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
1246
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
1249
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
1247
1250
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1248
1251
|
# @return [WorkOS::Types::ListStruct<WorkOS::AuthorizedConnectApplicationListData>]
|
|
1249
1252
|
def list_user_authorized_applications(
|
data/lib/workos/vault.rb
CHANGED
|
@@ -169,7 +169,7 @@ module WorkOS
|
|
|
169
169
|
# Read an object by name
|
|
170
170
|
# @param name [String] Unique name of the object.
|
|
171
171
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
172
|
-
# @return [WorkOS::
|
|
172
|
+
# @return [WorkOS::VaultObject]
|
|
173
173
|
def get_name(
|
|
174
174
|
name:,
|
|
175
175
|
request_options: {}
|
|
@@ -180,7 +180,7 @@ module WorkOS
|
|
|
180
180
|
auth: true,
|
|
181
181
|
request_options: request_options
|
|
182
182
|
)
|
|
183
|
-
result = WorkOS::
|
|
183
|
+
result = WorkOS::VaultObject.new(response.body)
|
|
184
184
|
result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
|
|
185
185
|
result
|
|
186
186
|
end
|
|
@@ -188,7 +188,7 @@ module WorkOS
|
|
|
188
188
|
# Read an object by ID
|
|
189
189
|
# @param id [String] Unique identifier of the object.
|
|
190
190
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
191
|
-
# @return [WorkOS::
|
|
191
|
+
# @return [WorkOS::VaultObject]
|
|
192
192
|
def get_kv(
|
|
193
193
|
id:,
|
|
194
194
|
request_options: {}
|
|
@@ -199,7 +199,7 @@ module WorkOS
|
|
|
199
199
|
auth: true,
|
|
200
200
|
request_options: request_options
|
|
201
201
|
)
|
|
202
|
-
result = WorkOS::
|
|
202
|
+
result = WorkOS::VaultObject.new(response.body)
|
|
203
203
|
result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
|
|
204
204
|
result
|
|
205
205
|
end
|
data/lib/workos/version.rb
CHANGED
data/lib/workos/webhooks.rb
CHANGED
|
@@ -15,7 +15,7 @@ module WorkOS
|
|
|
15
15
|
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
16
16
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
17
17
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
18
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
|
+
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
19
19
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
20
20
|
# @return [WorkOS::Types::ListStruct<WorkOS::WebhookEndpoint>]
|
|
21
21
|
def list_webhook_endpoints(
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# typed: strong
|
|
6
6
|
|
|
7
7
|
module WorkOS
|
|
8
|
-
class
|
|
8
|
+
class ApiKeyUpdated
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
@@ -27,10 +27,10 @@ module WorkOS
|
|
|
27
27
|
sig { params(value: String).returns(String) }
|
|
28
28
|
def event=(value); end
|
|
29
29
|
|
|
30
|
-
sig { returns(WorkOS::
|
|
30
|
+
sig { returns(WorkOS::ApiKeyUpdatedData) }
|
|
31
31
|
def data; end
|
|
32
32
|
|
|
33
|
-
sig { params(value: WorkOS::
|
|
33
|
+
sig { params(value: WorkOS::ApiKeyUpdatedData).returns(WorkOS::ApiKeyUpdatedData) }
|
|
34
34
|
def data=(value); end
|
|
35
35
|
|
|
36
36
|
sig { returns(String) }
|