workos 10.2.1 → 10.4.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 +3 -3
- data/.github/workflows/lint.yml +2 -2
- data/.github/workflows/release-please.yml +3 -3
- data/.github/workflows/release.yml +2 -2
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +393 -4
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +328 -0
- data/Gemfile.lock +14 -14
- data/README.md +23 -0
- data/lib/workos/admin_portal.rb +2 -2
- data/lib/workos/agents/agent_blueprint.rb +43 -0
- data/lib/workos/agents/agent_blueprint_invocable_by.rb +7 -0
- data/lib/workos/agents/agent_blueprint_session_setting.rb +25 -0
- data/lib/workos/agents/agent_blueprints_create_request.rb +31 -0
- data/lib/workos/agents/agent_blueprints_create_request_invocable_by.rb +22 -0
- data/lib/workos/agents/agent_blueprints_create_request_session_setting.rb +7 -0
- data/lib/workos/agents/agent_blueprints_token_mint_token_request.rb +34 -0
- data/lib/workos/agents/agent_blueprints_token_validate_token_request.rb +18 -0
- data/lib/workos/agents/agent_blueprints_update_request.rb +31 -0
- data/lib/workos/agents/agent_blueprints_update_request_invocable_by.rb +7 -0
- data/lib/workos/agents/agent_blueprints_update_request_session_setting.rb +25 -0
- data/lib/workos/agents/agent_instance.rb +40 -0
- data/lib/workos/agents/agent_instance_session.rb +40 -0
- data/lib/workos/agents/agent_token.rb +40 -0
- data/lib/workos/agents/agent_token_validation.rb +40 -0
- data/lib/workos/agents.rb +399 -0
- data/lib/workos/audit_logs.rb +23 -5
- data/lib/workos/authorization.rb +3 -3
- data/lib/workos/base_client.rb +6 -2
- data/lib/workos/client.rb +4 -0
- data/lib/workos/configuration.rb +3 -2
- data/lib/workos/inflections.rb +17 -0
- data/lib/workos/multi_factor_auth.rb +1 -1
- data/lib/workos/organizations/create_it_contact.rb +18 -0
- data/lib/workos/organizations/invite_it_contact.rb +18 -0
- data/lib/workos/organizations/it_contact.rb +31 -0
- data/lib/workos/organizations/it_contact_list.rb +25 -0
- data/lib/workos/organizations/organization_input.rb +10 -1
- data/lib/workos/organizations/update_audit_logs_retention.rb +13 -1
- data/lib/workos/organizations.rb +110 -1
- data/lib/workos/pipes/connected_account.rb +9 -0
- data/lib/workos/pipes/create_data_integration.rb +3 -0
- data/lib/workos/pipes/data_integration.rb +3 -0
- data/lib/workos/pipes/data_integration_installation.rb +9 -0
- data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +3 -0
- data/lib/workos/pipes/data_integrations_get_user_token_request.rb +11 -2
- data/lib/workos/pipes/data_integrations_list_response_data.rb +18 -3
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +9 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +25 -1
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +6 -0
- data/lib/workos/pipes/data_integrations_vend_credentials_request.rb +11 -2
- data/lib/workos/pipes.rb +324 -17
- data/lib/workos/platform_teams/create_team.rb +22 -0
- data/lib/workos/platform_teams/team.rb +37 -0
- data/lib/workos/platform_teams.rb +58 -0
- data/lib/workos/session_manager.rb +11 -6
- data/lib/workos/shared/account_selection_required_error.rb +22 -0
- data/lib/workos/shared/agent_blueprint_created.rb +34 -0
- data/lib/workos/shared/agent_blueprint_created_data.rb +43 -0
- data/lib/workos/shared/agent_blueprint_created_data_invocable_by.rb +22 -0
- data/lib/workos/shared/agent_blueprint_created_data_session_setting.rb +25 -0
- data/lib/workos/shared/agent_blueprint_deleted.rb +34 -0
- data/lib/workos/shared/agent_blueprint_deleted_data.rb +31 -0
- data/lib/workos/shared/agent_blueprint_updated.rb +34 -0
- data/lib/workos/shared/agent_blueprint_updated_data.rb +7 -0
- data/lib/workos/shared/agent_blueprint_updated_data_invocable_by.rb +7 -0
- data/lib/workos/shared/agent_blueprint_updated_data_session_setting.rb +7 -0
- data/lib/workos/shared/agent_instance_created.rb +34 -0
- data/lib/workos/shared/agent_instance_created_data.rb +40 -0
- data/lib/workos/shared/agent_instance_deleted.rb +34 -0
- data/lib/workos/shared/agent_instance_deleted_data.rb +40 -0
- data/lib/workos/shared/agent_instance_session_created.rb +34 -0
- data/lib/workos/shared/agent_instance_session_created_data.rb +43 -0
- data/lib/workos/shared/agent_instance_session_revoked.rb +34 -0
- data/lib/workos/shared/agent_instance_session_revoked_data.rb +40 -0
- data/lib/workos/shared/pipe_connected_account.rb +15 -0
- data/lib/workos/shared/pipes_account_connection_add_failed.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_add_failed_data.rb +49 -0
- data/lib/workos/shared/pipes_account_connection_connected.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_connection_failed.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_connection_failed_data.rb +7 -0
- data/lib/workos/shared/pipes_account_connection_disconnected.rb +34 -0
- data/lib/workos/shared/pipes_account_connection_reauthorization_needed.rb +34 -0
- data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +1 -40
- data/lib/workos/shared/resource_export_completed.rb +34 -0
- data/lib/workos/shared/resource_export_completed_data.rb +22 -0
- data/lib/workos/shared/resource_export_created.rb +34 -0
- data/lib/workos/shared/resource_export_created_data.rb +22 -0
- data/lib/workos/shared/resource_export_downloaded.rb +34 -0
- data/lib/workos/shared/resource_export_downloaded_data.rb +22 -0
- data/lib/workos/shared/resource_export_failed.rb +34 -0
- data/lib/workos/shared/resource_export_failed_data.rb +22 -0
- data/lib/workos/shared/waitlist_user.rb +8 -5
- data/lib/workos/sso/create_connection.rb +37 -0
- data/lib/workos/sso/create_connection_attribute_maps.rb +22 -0
- data/lib/workos/sso/create_connection_key_pair.rb +22 -0
- data/lib/workos/sso/create_connection_oidc_options.rb +43 -0
- data/lib/workos/sso/create_connection_saml_options.rb +40 -0
- data/lib/workos/sso/create_connection_standard_attributes.rb +34 -0
- data/lib/workos/sso/create_saml_idp_signing_certificate.rb +18 -0
- data/lib/workos/sso/patch_connection.rb +34 -0
- data/lib/workos/sso/patch_connection_attribute_maps.rb +22 -0
- data/lib/workos/sso/patch_connection_oidc_options.rb +40 -0
- data/lib/workos/sso/patch_connection_saml_options.rb +31 -0
- data/lib/workos/sso/patch_connection_standard_attributes.rb +7 -0
- data/lib/workos/sso/saml_idp_signing_certificate.rb +34 -0
- data/lib/workos/sso/saml_idp_signing_certificate_list.rb +22 -0
- data/lib/workos/sso/saml_sp_encryption_certificate.rb +34 -0
- data/lib/workos/sso/saml_sp_encryption_certificate_list.rb +22 -0
- data/lib/workos/sso/saml_sp_signing_certificate.rb +34 -0
- data/lib/workos/sso/token_query.rb +11 -2
- data/lib/workos/sso.rb +305 -4
- data/lib/workos/types/agent_blueprints_token_mint_token_request_type.rb +15 -0
- data/lib/workos/types/agent_instance_created_data_type.rb +13 -0
- data/lib/workos/types/agent_instance_deleted_data_type.rb +9 -0
- data/lib/workos/types/agent_instance_session_status.rb +14 -0
- data/lib/workos/types/agent_instance_type.rb +9 -0
- data/lib/workos/types/authenticate_response_authentication_method.rb +1 -4
- data/lib/workos/types/connected_account_connection_role.rb +13 -0
- data/lib/workos/types/connection_activated_data_connection_type.rb +1 -4
- data/lib/workos/types/connection_type.rb +1 -4
- data/lib/workos/types/connections_connection_type.rb +1 -4
- data/lib/workos/types/create_connection_oidc_options_id_token_signature_algorithm.rb +24 -0
- data/lib/workos/types/create_connection_oidc_options_token_authentication_method.rb +14 -0
- data/lib/workos/types/create_data_integration_ownership.rb +13 -0
- data/lib/workos/types/create_webhook_endpoint_events.rb +13 -1
- data/lib/workos/types/data_integration_installation_connection_role.rb +9 -0
- data/lib/workos/types/data_integration_ownership.rb +9 -0
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connected_account_connection_role.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +9 -0
- data/lib/workos/types/invite_it_contact_intents.rb +16 -0
- data/lib/workos/types/patch_connection_oidc_options_id_token_signature_algorithm.rb +9 -0
- data/lib/workos/types/patch_connection_oidc_options_token_authentication_method.rb +9 -0
- data/lib/workos/types/pipe_connected_account_auth_method.rb +9 -0
- data/lib/workos/types/pipe_connected_account_connection_role.rb +9 -0
- data/lib/workos/types/pipes_ownership.rb +9 -0
- data/lib/workos/types/resource_export_completed_data_resource_type.rb +18 -0
- data/lib/workos/types/resource_export_created_data_resource_type.rb +9 -0
- data/lib/workos/types/resource_export_downloaded_data_resource_type.rb +9 -0
- data/lib/workos/types/resource_export_failed_data_resource_type.rb +9 -0
- data/lib/workos/types/session_created_data_status.rb +1 -6
- data/lib/workos/types/session_revoked_data_status.rb +1 -1
- data/lib/workos/types/sso_grant_type.rb +13 -0
- data/lib/workos/types/team_production_state.rb +15 -0
- data/lib/workos/types/token_query_grant_type.rb +9 -0
- data/lib/workos/types/update_audit_logs_retention_retention_period.rb +32 -0
- data/lib/workos/types/user_identities_get_item_provider.rb +1 -4
- data/lib/workos/types/user_management_waitlists_state.rb +14 -0
- data/lib/workos/types/user_sessions_status.rb +1 -1
- data/lib/workos/types/waitlist_entry_state.rb +9 -0
- data/lib/workos/types/waitlist_user_state.rb +1 -6
- data/lib/workos/user_management/authentication_oauth_failed_data.rb +5 -2
- data/lib/workos/user_management/authentication_oauth_succeeded_data.rb +5 -2
- data/lib/workos/user_management/authkit_oauth_resource.rb +34 -0
- data/lib/workos/user_management/create_authkit_oauth_resource.rb +22 -0
- data/lib/workos/user_management/create_password_reset_token.rb +1 -12
- data/lib/workos/user_management/create_waitlist_entry.rb +25 -0
- data/lib/workos/user_management/email_completion_session_authenticate_request.rb +43 -0
- data/lib/workos/user_management/waitlist.rb +28 -0
- data/lib/workos/user_management/waitlist_entry.rb +43 -0
- data/lib/workos/user_management.rb +263 -0
- data/lib/workos/version.rb +1 -1
- data/lib/workos.rb +1 -0
- data/rbi/workos/account_selection_required_error.rbi +30 -0
- data/rbi/workos/agent_blueprint.rbi +72 -0
- data/rbi/workos/agent_blueprint_created.rbi +54 -0
- data/rbi/workos/agent_blueprint_created_data.rbi +72 -0
- data/rbi/workos/agent_blueprint_created_data_invocable_by.rbi +30 -0
- data/rbi/workos/agent_blueprint_created_data_session_setting.rbi +36 -0
- data/rbi/workos/agent_blueprint_deleted.rbi +54 -0
- data/rbi/workos/agent_blueprint_deleted_data.rbi +48 -0
- data/rbi/workos/agent_blueprint_invocable_by.rbi +30 -0
- data/rbi/workos/agent_blueprint_session_setting.rbi +36 -0
- data/rbi/workos/agent_blueprint_updated.rbi +54 -0
- data/rbi/workos/agent_blueprint_updated_data.rbi +72 -0
- data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +30 -0
- data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +36 -0
- data/rbi/workos/agent_blueprints_create_request.rbi +48 -0
- data/rbi/workos/agent_blueprints_create_request_invocable_by.rbi +30 -0
- data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +36 -0
- data/rbi/workos/agent_blueprints_token_mint_token_request.rbi +54 -0
- data/rbi/workos/agent_blueprints_token_validate_token_request.rbi +24 -0
- data/rbi/workos/agent_blueprints_update_request.rbi +48 -0
- data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +30 -0
- data/rbi/workos/agent_blueprints_update_request_session_setting.rbi +36 -0
- data/rbi/workos/agent_instance.rbi +66 -0
- data/rbi/workos/agent_instance_created.rbi +54 -0
- data/rbi/workos/agent_instance_created_data.rbi +66 -0
- data/rbi/workos/agent_instance_deleted.rbi +54 -0
- data/rbi/workos/agent_instance_deleted_data.rbi +66 -0
- data/rbi/workos/agent_instance_session.rbi +66 -0
- data/rbi/workos/agent_instance_session_created.rbi +54 -0
- data/rbi/workos/agent_instance_session_created_data.rbi +72 -0
- data/rbi/workos/agent_instance_session_revoked.rbi +54 -0
- data/rbi/workos/agent_instance_session_revoked_data.rbi +66 -0
- data/rbi/workos/agent_token.rbi +66 -0
- data/rbi/workos/agent_token_validation.rbi +66 -0
- data/rbi/workos/agents.rbi +134 -0
- data/rbi/workos/audit_logs.rbi +26 -2
- data/rbi/workos/authentication_oauth_failed_data.rbi +6 -0
- data/rbi/workos/authentication_oauth_succeeded_data.rbi +6 -0
- data/rbi/workos/authkit_oauth_resource.rbi +54 -0
- data/rbi/workos/client.rbi +3 -0
- data/rbi/workos/connected_account.rbi +18 -0
- data/rbi/workos/create_authkit_oauth_resource.rbi +30 -0
- data/rbi/workos/create_connection.rbi +60 -0
- data/rbi/workos/create_connection_attribute_maps.rbi +30 -0
- data/rbi/workos/create_connection_key_pair.rbi +30 -0
- data/rbi/workos/create_connection_oidc_options.rbi +72 -0
- data/rbi/workos/create_connection_saml_options.rbi +66 -0
- data/rbi/workos/create_connection_standard_attributes.rbi +54 -0
- data/rbi/workos/create_data_integration.rbi +6 -0
- data/rbi/workos/create_it_contact.rbi +24 -0
- data/rbi/workos/create_saml_idp_signing_certificate.rbi +24 -0
- data/rbi/workos/create_team.rbi +30 -0
- data/rbi/workos/create_waitlist_entry.rbi +36 -0
- data/rbi/workos/data_integration.rbi +6 -0
- data/rbi/workos/data_integration_installation.rbi +19 -1
- data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +6 -0
- data/rbi/workos/data_integrations_get_user_token_request.rbi +18 -0
- data/rbi/workos/data_integrations_list_response_data.rbi +12 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +18 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +12 -0
- data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
- data/rbi/workos/data_integrations_vend_credentials_request.rbi +18 -0
- data/rbi/workos/email_completion_session_authenticate_request.rbi +72 -0
- data/rbi/workos/invite_it_contact.rbi +24 -0
- data/rbi/workos/it_contact.rbi +48 -0
- data/rbi/workos/organizations.rbi +45 -0
- data/rbi/workos/patch_connection.rbi +54 -0
- data/rbi/workos/patch_connection_attribute_maps.rbi +30 -0
- data/rbi/workos/patch_connection_oidc_options.rbi +66 -0
- data/rbi/workos/patch_connection_saml_options.rbi +48 -0
- data/rbi/workos/patch_connection_standard_attributes.rbi +54 -0
- data/rbi/workos/pipe_connected_account.rbi +30 -0
- data/rbi/workos/pipes.rbi +122 -11
- data/rbi/workos/pipes_account_connection_add_failed.rbi +54 -0
- data/rbi/workos/pipes_account_connection_add_failed_data.rbi +84 -0
- data/rbi/workos/pipes_account_connection_connected.rbi +54 -0
- data/rbi/workos/pipes_account_connection_connection_failed.rbi +54 -0
- data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +84 -0
- data/rbi/workos/pipes_account_connection_disconnected.rbi +54 -0
- data/rbi/workos/pipes_account_connection_reauthorization_needed.rbi +54 -0
- data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +6 -0
- data/rbi/workos/platform_teams.rbi +30 -0
- data/rbi/workos/resource_export_completed.rbi +54 -0
- data/rbi/workos/resource_export_completed_data.rbi +30 -0
- data/rbi/workos/resource_export_created.rbi +54 -0
- data/rbi/workos/resource_export_created_data.rbi +30 -0
- data/rbi/workos/resource_export_downloaded.rbi +54 -0
- data/rbi/workos/resource_export_downloaded_data.rbi +30 -0
- data/rbi/workos/resource_export_failed.rbi +54 -0
- data/rbi/workos/resource_export_failed_data.rbi +30 -0
- data/rbi/workos/saml_idp_signing_certificate.rbi +54 -0
- data/rbi/workos/saml_idp_signing_certificate_list.rbi +30 -0
- data/rbi/workos/saml_sp_encryption_certificate.rbi +54 -0
- data/rbi/workos/saml_sp_encryption_certificate_list.rbi +30 -0
- data/rbi/workos/saml_sp_signing_certificate.rbi +54 -0
- data/rbi/workos/sso.rbi +155 -2
- data/rbi/workos/team.rbi +60 -0
- data/rbi/workos/token_query.rbi +20 -2
- data/rbi/workos/update_audit_logs_retention.rbi +8 -2
- data/rbi/workos/user_management.rbi +92 -0
- data/rbi/workos/waitlist.rbi +42 -0
- data/rbi/workos/waitlist_entry.rbi +72 -0
- data/rbi/workos/waitlist_user.rbi +12 -6
- data/test/workos/test_agents.rb +105 -1
- data/test/workos/test_agents_model_round_trip.rb +245 -0
- data/test/workos/test_audit_logs.rb +11 -2
- data/test/workos/test_authorization.rb +6 -6
- data/test/workos/test_organizations.rb +41 -1
- data/test/workos/test_organizations_model_round_trip.rb +40 -1
- data/test/workos/test_pipes.rb +64 -0
- data/test/workos/test_pipes_model_round_trip.rb +35 -5
- data/test/workos/test_platform_teams.rb +41 -0
- data/test/workos/test_platform_teams_model_round_trip.rb +41 -0
- data/test/workos/test_session.rb +63 -0
- data/test/workos/test_shared_model_round_trip.rb +610 -2
- data/test/workos/test_sso.rb +108 -2
- data/test/workos/test_sso_model_round_trip.rb +262 -2
- data/test/workos/test_user_management.rb +80 -0
- data/test/workos/test_user_management_model_round_trip.rb +110 -2
- metadata +194 -1
|
@@ -68,6 +68,7 @@ module WorkOS
|
|
|
68
68
|
# @param organization_id [String, nil] The ID of the organization to scope the session to.
|
|
69
69
|
# @param pending_authentication_token [String, nil] The pending authentication token from a previous authentication attempt.
|
|
70
70
|
# @param authentication_challenge_id [String, nil] The ID of the MFA authentication challenge.
|
|
71
|
+
# @param email_completion_token [String, nil] The token from the `email_completion_required` response.
|
|
71
72
|
# @param radar_challenge_id [String, nil] The ID of the Radar email challenge being verified.
|
|
72
73
|
# @param verification_id [String, nil] The ID of the Radar SMS verification being confirmed. Required for sign-up challenges; omitted for sign-in challenges, where the verification is resolved server-side.
|
|
73
74
|
# @param phone_number [String, nil] The phone number the Radar SMS challenge was sent to. Required for sign-up challenges; omitted for sign-in challenges, where the phone number on file is resolved server-side.
|
|
@@ -92,6 +93,7 @@ module WorkOS
|
|
|
92
93
|
organization_id: nil,
|
|
93
94
|
pending_authentication_token: nil,
|
|
94
95
|
authentication_challenge_id: nil,
|
|
96
|
+
email_completion_token: nil,
|
|
95
97
|
radar_challenge_id: nil,
|
|
96
98
|
verification_id: nil,
|
|
97
99
|
phone_number: nil,
|
|
@@ -116,6 +118,7 @@ module WorkOS
|
|
|
116
118
|
"organization_id" => organization_id,
|
|
117
119
|
"pending_authentication_token" => pending_authentication_token,
|
|
118
120
|
"authentication_challenge_id" => authentication_challenge_id,
|
|
121
|
+
"email_completion_token" => email_completion_token,
|
|
119
122
|
"radar_challenge_id" => radar_challenge_id,
|
|
120
123
|
"verification_id" => verification_id,
|
|
121
124
|
"phone_number" => phone_number,
|
|
@@ -702,6 +705,93 @@ module WorkOS
|
|
|
702
705
|
nil
|
|
703
706
|
end
|
|
704
707
|
|
|
708
|
+
# List MCP resource indicators
|
|
709
|
+
# @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"`.
|
|
710
|
+
# @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"`.
|
|
711
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
712
|
+
# @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).
|
|
713
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
714
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::AuthkitOAuthResource>]
|
|
715
|
+
def list_authkit_oauth_resources(
|
|
716
|
+
before: nil,
|
|
717
|
+
after: nil,
|
|
718
|
+
limit: 10,
|
|
719
|
+
order: "desc",
|
|
720
|
+
request_options: {}
|
|
721
|
+
)
|
|
722
|
+
params = {
|
|
723
|
+
"before" => before,
|
|
724
|
+
"after" => after,
|
|
725
|
+
"limit" => limit,
|
|
726
|
+
"order" => order
|
|
727
|
+
}.compact
|
|
728
|
+
response = @client.request(
|
|
729
|
+
method: :get,
|
|
730
|
+
path: "/user_management/authkit_oauth_resources",
|
|
731
|
+
auth: true,
|
|
732
|
+
params: params,
|
|
733
|
+
request_options: request_options
|
|
734
|
+
)
|
|
735
|
+
fetch_next = ->(cursor) {
|
|
736
|
+
list_authkit_oauth_resources(
|
|
737
|
+
before: before,
|
|
738
|
+
after: cursor,
|
|
739
|
+
limit: limit,
|
|
740
|
+
order: order,
|
|
741
|
+
request_options: request_options
|
|
742
|
+
)
|
|
743
|
+
}
|
|
744
|
+
WorkOS::Types::ListStruct.from_response(
|
|
745
|
+
response,
|
|
746
|
+
model: WorkOS::AuthkitOAuthResource,
|
|
747
|
+
filters: {before: before, limit: limit, order: order},
|
|
748
|
+
fetch_next: fetch_next
|
|
749
|
+
)
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Create an MCP resource indicator
|
|
753
|
+
# @param uri [String] The resource URI. May be a wildcard pattern with a single `*`, either in the leftmost hostname label or as the final path segment, where enabled for the environment.
|
|
754
|
+
# @param default [Boolean, nil] Whether the resource being created becomes the environment default, clearing any previous default. Applies at creation only — this API has no update endpoint yet, so changing the default on an existing resource is done from the dashboard. A wildcard pattern cannot be the default.
|
|
755
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
756
|
+
# @return [WorkOS::AuthkitOAuthResource]
|
|
757
|
+
def create_authkit_oauth_resource(
|
|
758
|
+
uri:,
|
|
759
|
+
default: nil,
|
|
760
|
+
request_options: {}
|
|
761
|
+
)
|
|
762
|
+
body = {
|
|
763
|
+
"uri" => uri,
|
|
764
|
+
"default" => default
|
|
765
|
+
}.compact
|
|
766
|
+
response = @client.request(
|
|
767
|
+
method: :post,
|
|
768
|
+
path: "/user_management/authkit_oauth_resources",
|
|
769
|
+
auth: true,
|
|
770
|
+
body: body,
|
|
771
|
+
request_options: request_options
|
|
772
|
+
)
|
|
773
|
+
result = WorkOS::AuthkitOAuthResource.new(response.body)
|
|
774
|
+
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"])
|
|
775
|
+
result
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
# Delete an MCP resource indicator
|
|
779
|
+
# @param id [String] The ID of the MCP resource indicator to delete.
|
|
780
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
781
|
+
# @return [void]
|
|
782
|
+
def delete_authkit_oauth_resource(
|
|
783
|
+
id:,
|
|
784
|
+
request_options: {}
|
|
785
|
+
)
|
|
786
|
+
@client.request(
|
|
787
|
+
method: :delete,
|
|
788
|
+
path: "/user_management/authkit_oauth_resources/#{WorkOS::Util.encode_path(id)}",
|
|
789
|
+
auth: true,
|
|
790
|
+
request_options: request_options
|
|
791
|
+
)
|
|
792
|
+
nil
|
|
793
|
+
end
|
|
794
|
+
|
|
705
795
|
# List CORS origins
|
|
706
796
|
# @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"`.
|
|
707
797
|
# @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"`.
|
|
@@ -1686,6 +1776,179 @@ module WorkOS
|
|
|
1686
1776
|
nil
|
|
1687
1777
|
end
|
|
1688
1778
|
|
|
1779
|
+
# Delete a waitlist entry
|
|
1780
|
+
# @param id [String] The unique ID of the waitlist entry.
|
|
1781
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1782
|
+
# @return [void]
|
|
1783
|
+
def delete_waitlist_entry(
|
|
1784
|
+
id:,
|
|
1785
|
+
request_options: {}
|
|
1786
|
+
)
|
|
1787
|
+
@client.request(
|
|
1788
|
+
method: :delete,
|
|
1789
|
+
path: "/user_management/waitlist_entries/#{WorkOS::Util.encode_path(id)}",
|
|
1790
|
+
auth: true,
|
|
1791
|
+
request_options: request_options
|
|
1792
|
+
)
|
|
1793
|
+
nil
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
# Approve a waitlist entry
|
|
1797
|
+
# @param id [String] The unique ID of the waitlist entry.
|
|
1798
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1799
|
+
# @return [WorkOS::WaitlistEntry]
|
|
1800
|
+
def create_waitlist_entry_approve(
|
|
1801
|
+
id:,
|
|
1802
|
+
request_options: {}
|
|
1803
|
+
)
|
|
1804
|
+
response = @client.request(
|
|
1805
|
+
method: :post,
|
|
1806
|
+
path: "/user_management/waitlist_entries/#{WorkOS::Util.encode_path(id)}/approve",
|
|
1807
|
+
auth: true,
|
|
1808
|
+
request_options: request_options
|
|
1809
|
+
)
|
|
1810
|
+
result = WorkOS::WaitlistEntry.new(response.body)
|
|
1811
|
+
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"])
|
|
1812
|
+
result
|
|
1813
|
+
end
|
|
1814
|
+
|
|
1815
|
+
# Deny a waitlist entry
|
|
1816
|
+
# @param id [String] The unique ID of the waitlist entry.
|
|
1817
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1818
|
+
# @return [WorkOS::WaitlistEntry]
|
|
1819
|
+
def create_waitlist_entry_deny(
|
|
1820
|
+
id:,
|
|
1821
|
+
request_options: {}
|
|
1822
|
+
)
|
|
1823
|
+
response = @client.request(
|
|
1824
|
+
method: :post,
|
|
1825
|
+
path: "/user_management/waitlist_entries/#{WorkOS::Util.encode_path(id)}/deny",
|
|
1826
|
+
auth: true,
|
|
1827
|
+
request_options: request_options
|
|
1828
|
+
)
|
|
1829
|
+
result = WorkOS::WaitlistEntry.new(response.body)
|
|
1830
|
+
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"])
|
|
1831
|
+
result
|
|
1832
|
+
end
|
|
1833
|
+
|
|
1834
|
+
# List waitlists
|
|
1835
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1836
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::Waitlist>]
|
|
1837
|
+
def list_waitlists(request_options: {})
|
|
1838
|
+
response = @client.request(
|
|
1839
|
+
method: :get,
|
|
1840
|
+
path: "/user_management/waitlists",
|
|
1841
|
+
auth: true,
|
|
1842
|
+
request_options: request_options
|
|
1843
|
+
)
|
|
1844
|
+
WorkOS::Types::ListStruct.from_response(response, model: WorkOS::Waitlist)
|
|
1845
|
+
end
|
|
1846
|
+
|
|
1847
|
+
# Get a waitlist
|
|
1848
|
+
# @param id [String] The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. The default waitlist is created when its first entry is added, so read requests for `default` return a `404` until then.
|
|
1849
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1850
|
+
# @return [WorkOS::Waitlist]
|
|
1851
|
+
def get_waitlist(
|
|
1852
|
+
id:,
|
|
1853
|
+
request_options: {}
|
|
1854
|
+
)
|
|
1855
|
+
response = @client.request(
|
|
1856
|
+
method: :get,
|
|
1857
|
+
path: "/user_management/waitlists/#{WorkOS::Util.encode_path(id)}",
|
|
1858
|
+
auth: true,
|
|
1859
|
+
request_options: request_options
|
|
1860
|
+
)
|
|
1861
|
+
result = WorkOS::Waitlist.new(response.body)
|
|
1862
|
+
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"])
|
|
1863
|
+
result
|
|
1864
|
+
end
|
|
1865
|
+
|
|
1866
|
+
# List waitlist entries
|
|
1867
|
+
# @param id [String] The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. The default waitlist is created when its first entry is added, so read requests for `default` return a `404` until then.
|
|
1868
|
+
# @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"`.
|
|
1869
|
+
# @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"`.
|
|
1870
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
1871
|
+
# @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).
|
|
1872
|
+
# @param state [WorkOS::Types::UserManagementWaitlistsState, nil] Filter waitlist entries by their state.
|
|
1873
|
+
# @param email [String, nil] Filter waitlist entries by their exact email address.
|
|
1874
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1875
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::WaitlistEntry>]
|
|
1876
|
+
def list_waitlist_entries(
|
|
1877
|
+
id:,
|
|
1878
|
+
before: nil,
|
|
1879
|
+
after: nil,
|
|
1880
|
+
limit: 10,
|
|
1881
|
+
order: "desc",
|
|
1882
|
+
state: nil,
|
|
1883
|
+
email: nil,
|
|
1884
|
+
request_options: {}
|
|
1885
|
+
)
|
|
1886
|
+
params = {
|
|
1887
|
+
"before" => before,
|
|
1888
|
+
"after" => after,
|
|
1889
|
+
"limit" => limit,
|
|
1890
|
+
"order" => order,
|
|
1891
|
+
"state" => state,
|
|
1892
|
+
"email" => email
|
|
1893
|
+
}.compact
|
|
1894
|
+
response = @client.request(
|
|
1895
|
+
method: :get,
|
|
1896
|
+
path: "/user_management/waitlists/#{WorkOS::Util.encode_path(id)}/entries",
|
|
1897
|
+
auth: true,
|
|
1898
|
+
params: params,
|
|
1899
|
+
request_options: request_options
|
|
1900
|
+
)
|
|
1901
|
+
fetch_next = ->(cursor) {
|
|
1902
|
+
list_waitlist_entries(
|
|
1903
|
+
id: id,
|
|
1904
|
+
before: before,
|
|
1905
|
+
after: cursor,
|
|
1906
|
+
limit: limit,
|
|
1907
|
+
order: order,
|
|
1908
|
+
state: state,
|
|
1909
|
+
email: email,
|
|
1910
|
+
request_options: request_options
|
|
1911
|
+
)
|
|
1912
|
+
}
|
|
1913
|
+
WorkOS::Types::ListStruct.from_response(
|
|
1914
|
+
response,
|
|
1915
|
+
model: WorkOS::WaitlistEntry,
|
|
1916
|
+
filters: {id: id, before: before, limit: limit, order: order, state: state, email: email},
|
|
1917
|
+
fetch_next: fetch_next
|
|
1918
|
+
)
|
|
1919
|
+
end
|
|
1920
|
+
|
|
1921
|
+
# Create a waitlist entry
|
|
1922
|
+
# @param id [String] The unique ID of the waitlist, or the literal `default` for the environment's default waitlist. Use `default` when adding the first entry — the default waitlist is created automatically.
|
|
1923
|
+
# @param email [String] The email address of the user joining the waitlist.
|
|
1924
|
+
# @param additional_fields [Hash{String => String}, nil] Object containing additional key/value pairs collected with the waitlist entry. Supports up to 50 string pairs, with keys up to 40 characters and values up to 600 characters. Values are user-provided — treat them as untrusted input when rendering or exporting.
|
|
1925
|
+
# @param send_confirmation_email [Boolean, nil] Whether to send the waitlist confirmation email to the user. Defaults to `false`. No email is sent when the waitlist confirmation email is disabled in the environment, even if `send_confirmation_email` is `true`.
|
|
1926
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
1927
|
+
# @return [WorkOS::WaitlistEntry]
|
|
1928
|
+
def create_waitlist_entry(
|
|
1929
|
+
id:,
|
|
1930
|
+
email:,
|
|
1931
|
+
additional_fields: nil,
|
|
1932
|
+
send_confirmation_email: nil,
|
|
1933
|
+
request_options: {}
|
|
1934
|
+
)
|
|
1935
|
+
body = {
|
|
1936
|
+
"email" => email,
|
|
1937
|
+
"additional_fields" => additional_fields,
|
|
1938
|
+
"send_confirmation_email" => send_confirmation_email
|
|
1939
|
+
}.compact
|
|
1940
|
+
response = @client.request(
|
|
1941
|
+
method: :post,
|
|
1942
|
+
path: "/user_management/waitlists/#{WorkOS::Util.encode_path(id)}/entries",
|
|
1943
|
+
auth: true,
|
|
1944
|
+
body: body,
|
|
1945
|
+
request_options: request_options
|
|
1946
|
+
)
|
|
1947
|
+
result = WorkOS::WaitlistEntry.new(response.body)
|
|
1948
|
+
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"])
|
|
1949
|
+
result
|
|
1950
|
+
end
|
|
1951
|
+
|
|
1689
1952
|
# List API keys for a user
|
|
1690
1953
|
# @param user_id [String] Unique identifier of the user.
|
|
1691
1954
|
# @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.
|
data/lib/workos/version.rb
CHANGED
data/lib/workos.rb
CHANGED
|
@@ -37,6 +37,7 @@ loader.collapse("#{__dir__}/workos/organization_membership")
|
|
|
37
37
|
loader.collapse("#{__dir__}/workos/organizations")
|
|
38
38
|
loader.collapse("#{__dir__}/workos/pipes")
|
|
39
39
|
loader.collapse("#{__dir__}/workos/pipes_provider")
|
|
40
|
+
loader.collapse("#{__dir__}/workos/platform_teams")
|
|
40
41
|
loader.collapse("#{__dir__}/workos/radar")
|
|
41
42
|
loader.collapse("#{__dir__}/workos/shared")
|
|
42
43
|
loader.collapse("#{__dir__}/workos/sso")
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AccountSelectionRequiredError
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def code; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def code=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
def message; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: String).returns(String) }
|
|
22
|
+
def message=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
25
|
+
def to_h; end
|
|
26
|
+
|
|
27
|
+
sig { params(args: T.untyped).returns(String) }
|
|
28
|
+
def to_json(*args); end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprint
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
def id; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: String).returns(String) }
|
|
22
|
+
def id=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def name; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def name=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def description; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def description=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T::Array[String]) }
|
|
37
|
+
def permissions; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T::Array[String]).returns(T::Array[String]) }
|
|
40
|
+
def permissions=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(WorkOS::AgentBlueprintInvocableBy) }
|
|
43
|
+
def invocable_by; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: WorkOS::AgentBlueprintInvocableBy).returns(WorkOS::AgentBlueprintInvocableBy) }
|
|
46
|
+
def invocable_by=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(WorkOS::AgentBlueprintSessionSetting) }
|
|
49
|
+
def session_settings; end
|
|
50
|
+
|
|
51
|
+
sig { params(value: WorkOS::AgentBlueprintSessionSetting).returns(WorkOS::AgentBlueprintSessionSetting) }
|
|
52
|
+
def session_settings=(value); end
|
|
53
|
+
|
|
54
|
+
sig { returns(String) }
|
|
55
|
+
def created_at; end
|
|
56
|
+
|
|
57
|
+
sig { params(value: String).returns(String) }
|
|
58
|
+
def created_at=(value); end
|
|
59
|
+
|
|
60
|
+
sig { returns(String) }
|
|
61
|
+
def updated_at; end
|
|
62
|
+
|
|
63
|
+
sig { params(value: String).returns(String) }
|
|
64
|
+
def updated_at=(value); end
|
|
65
|
+
|
|
66
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
67
|
+
def to_h; end
|
|
68
|
+
|
|
69
|
+
sig { params(args: T.untyped).returns(String) }
|
|
70
|
+
def to_json(*args); end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprintCreated
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
def id; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: String).returns(String) }
|
|
22
|
+
def id=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def event; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def event=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(WorkOS::AgentBlueprintCreatedData) }
|
|
31
|
+
def data; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: WorkOS::AgentBlueprintCreatedData).returns(WorkOS::AgentBlueprintCreatedData) }
|
|
34
|
+
def data=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
def created_at; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: String).returns(String) }
|
|
40
|
+
def created_at=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(T.nilable(WorkOS::EventContext)) }
|
|
43
|
+
def context; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
46
|
+
def context=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
|
+
def to_h; end
|
|
50
|
+
|
|
51
|
+
sig { params(args: T.untyped).returns(String) }
|
|
52
|
+
def to_json(*args); end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprintCreatedData
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
def id; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: String).returns(String) }
|
|
22
|
+
def id=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def name; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def name=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
def description; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
34
|
+
def description=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(T::Array[String]) }
|
|
37
|
+
def permissions; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: T::Array[String]).returns(T::Array[String]) }
|
|
40
|
+
def permissions=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(WorkOS::AgentBlueprintCreatedDataInvocableBy) }
|
|
43
|
+
def invocable_by; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: WorkOS::AgentBlueprintCreatedDataInvocableBy).returns(WorkOS::AgentBlueprintCreatedDataInvocableBy) }
|
|
46
|
+
def invocable_by=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(WorkOS::AgentBlueprintCreatedDataSessionSetting) }
|
|
49
|
+
def session_settings; end
|
|
50
|
+
|
|
51
|
+
sig { params(value: WorkOS::AgentBlueprintCreatedDataSessionSetting).returns(WorkOS::AgentBlueprintCreatedDataSessionSetting) }
|
|
52
|
+
def session_settings=(value); end
|
|
53
|
+
|
|
54
|
+
sig { returns(String) }
|
|
55
|
+
def created_at; end
|
|
56
|
+
|
|
57
|
+
sig { params(value: String).returns(String) }
|
|
58
|
+
def created_at=(value); end
|
|
59
|
+
|
|
60
|
+
sig { returns(String) }
|
|
61
|
+
def updated_at; end
|
|
62
|
+
|
|
63
|
+
sig { params(value: String).returns(String) }
|
|
64
|
+
def updated_at=(value); end
|
|
65
|
+
|
|
66
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
67
|
+
def to_h; end
|
|
68
|
+
|
|
69
|
+
sig { params(args: T.untyped).returns(String) }
|
|
70
|
+
def to_json(*args); end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprintCreatedDataInvocableBy
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(T::Array[String]) }
|
|
13
|
+
def role_slugs; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: T::Array[String]).returns(T::Array[String]) }
|
|
16
|
+
def role_slugs=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T::Array[String]) }
|
|
19
|
+
def organization_ids; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T::Array[String]).returns(T::Array[String]) }
|
|
22
|
+
def organization_ids=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
25
|
+
def to_h; end
|
|
26
|
+
|
|
27
|
+
sig { params(args: T.untyped).returns(String) }
|
|
28
|
+
def to_json(*args); end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprintCreatedDataSessionSetting
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(Float) }
|
|
13
|
+
def max_age_seconds; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: Float).returns(Float) }
|
|
16
|
+
def max_age_seconds=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(Float) }
|
|
19
|
+
def access_token_ttl_seconds; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: Float).returns(Float) }
|
|
22
|
+
def access_token_ttl_seconds=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(Float) }
|
|
25
|
+
def refresh_token_ttl_seconds; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: Float).returns(Float) }
|
|
28
|
+
def refresh_token_ttl_seconds=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
31
|
+
def to_h; end
|
|
32
|
+
|
|
33
|
+
sig { params(args: T.untyped).returns(String) }
|
|
34
|
+
def to_json(*args); end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module WorkOS
|
|
8
|
+
class AgentBlueprintDeleted
|
|
9
|
+
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
|
+
def initialize(json); end
|
|
11
|
+
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
def id; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: String).returns(String) }
|
|
22
|
+
def id=(value); end
|
|
23
|
+
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
def event; end
|
|
26
|
+
|
|
27
|
+
sig { params(value: String).returns(String) }
|
|
28
|
+
def event=(value); end
|
|
29
|
+
|
|
30
|
+
sig { returns(WorkOS::AgentBlueprintDeletedData) }
|
|
31
|
+
def data; end
|
|
32
|
+
|
|
33
|
+
sig { params(value: WorkOS::AgentBlueprintDeletedData).returns(WorkOS::AgentBlueprintDeletedData) }
|
|
34
|
+
def data=(value); end
|
|
35
|
+
|
|
36
|
+
sig { returns(String) }
|
|
37
|
+
def created_at; end
|
|
38
|
+
|
|
39
|
+
sig { params(value: String).returns(String) }
|
|
40
|
+
def created_at=(value); end
|
|
41
|
+
|
|
42
|
+
sig { returns(T.nilable(WorkOS::EventContext)) }
|
|
43
|
+
def context; end
|
|
44
|
+
|
|
45
|
+
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
46
|
+
def context=(value); end
|
|
47
|
+
|
|
48
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
|
+
def to_h; end
|
|
50
|
+
|
|
51
|
+
sig { params(args: T.untyped).returns(String) }
|
|
52
|
+
def to_json(*args); end
|
|
53
|
+
end
|
|
54
|
+
end
|