workos 8.0.0 → 9.0.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 +1 -1
- data/.github/workflows/docs.yml +5 -2
- data/.github/workflows/lint.yml +1 -1
- data/.github/workflows/release-please.yml +176 -5
- data/.github/workflows/release.yml +1 -1
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +129 -34
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +66 -0
- data/Gemfile.lock +4 -4
- data/README.md +19 -0
- data/docs/V7_MIGRATION_GUIDE.md +21 -0
- data/lib/workos/actions.rb +1 -1
- data/lib/workos/api_keys/api_key.rb +3 -0
- data/lib/workos/api_keys/api_key_created.rb +5 -5
- data/lib/workos/api_keys/api_key_created_data.rb +3 -0
- data/lib/workos/api_keys/api_key_revoked.rb +5 -5
- data/lib/workos/api_keys/create_organization_api_key.rb +5 -2
- data/lib/workos/api_keys/organization_api_key.rb +3 -0
- data/lib/workos/api_keys/organization_api_key_with_value.rb +3 -0
- data/lib/workos/api_keys.rb +4 -1
- data/lib/workos/audit_logs/audit_log_action.rb +2 -7
- data/lib/workos/audit_logs/audit_log_export.rb +2 -7
- data/lib/workos/audit_logs/audit_log_schema.rb +11 -2
- data/lib/workos/audit_logs/{audit_log_schema_json_actor.rb → audit_log_schema_actor_input.rb} +1 -1
- data/lib/workos/audit_logs/audit_log_schema_input.rb +25 -0
- data/lib/workos/audit_logs/audit_log_schema_target.rb +16 -1
- data/lib/workos/{types/radar_type.rb → audit_logs/audit_log_schema_target_input.rb} +1 -3
- data/lib/workos/audit_logs.rb +16 -16
- data/lib/workos/authorization/permission_created.rb +5 -5
- data/lib/workos/authorization/permission_deleted.rb +5 -5
- data/lib/workos/authorization/permission_updated.rb +5 -5
- data/lib/workos/authorization/role_created.rb +5 -5
- data/lib/workos/authorization/role_deleted.rb +5 -5
- data/lib/workos/authorization/role_updated.rb +5 -5
- data/lib/workos/authorization.rb +28 -12
- data/lib/workos/base_client.rb +71 -5
- data/lib/workos/client.rb +6 -6
- data/lib/workos/connect/connect_application.rb +12 -0
- data/lib/workos/{audit_logs/audit_log_schema_json_target.rb → connect/connect_application_redirect_uri.rb} +7 -7
- data/lib/workos/directory_sync/dsync_activated.rb +5 -5
- data/lib/workos/directory_sync/dsync_deactivated.rb +5 -5
- data/lib/workos/directory_sync/dsync_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_created.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_updated.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_user_added.rb +5 -5
- data/lib/workos/directory_sync/dsync_group_user_removed.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_created.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_deleted.rb +5 -5
- data/lib/workos/directory_sync/dsync_user_updated.rb +5 -5
- data/lib/workos/encryptors/aes_gcm.rb +19 -5
- data/lib/workos/feature_flags/flag_created.rb +5 -5
- data/lib/workos/feature_flags/flag_deleted.rb +5 -5
- data/lib/workos/feature_flags/flag_rule_updated.rb +5 -5
- data/lib/workos/feature_flags/flag_rule_updated_context_configured_target_organization.rb +1 -16
- data/lib/workos/feature_flags/flag_rule_updated_context_previous_attribute_context_configured_target_organization.rb +1 -1
- data/lib/workos/feature_flags/flag_updated.rb +5 -5
- data/lib/workos/inflections.rb +4 -1
- data/lib/workos/organization_domains/organization_domain_created.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_deleted.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_updated.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_verification_failed.rb +5 -5
- data/lib/workos/organization_domains/organization_domain_verified.rb +5 -5
- data/lib/workos/organization_membership_service.rb +273 -0
- data/lib/workos/organizations/audit_logs_retention.rb +2 -7
- data/lib/workos/organizations/organization_created.rb +5 -5
- data/lib/workos/organizations/organization_deleted.rb +5 -5
- data/lib/workos/organizations/organization_membership_created.rb +5 -5
- data/lib/workos/organizations/organization_membership_deleted.rb +5 -5
- data/lib/workos/organizations/organization_membership_updated.rb +5 -5
- data/lib/workos/organizations/organization_role_created.rb +5 -5
- data/lib/workos/organizations/organization_role_deleted.rb +5 -5
- data/lib/workos/organizations/organization_role_updated.rb +5 -5
- data/lib/workos/organizations/organization_updated.rb +5 -5
- data/lib/workos/radar/radar_standalone_assess_request.rb +2 -8
- data/lib/workos/radar.rb +6 -12
- data/lib/workos/session.rb +28 -7
- data/lib/workos/session_manager.rb +24 -1
- data/lib/workos/shared/connect_application_m2m.rb +46 -0
- data/lib/workos/shared/connect_application_oauth.rb +58 -0
- data/lib/workos/shared/connect_application_oauth_redirect_uris.rb +22 -0
- data/lib/workos/shared/error_response.rb +18 -0
- data/lib/workos/shared/group_created.rb +5 -5
- data/lib/workos/shared/group_deleted.rb +5 -5
- data/lib/workos/shared/group_member_added.rb +5 -5
- data/lib/workos/shared/group_member_removed.rb +5 -5
- data/lib/workos/shared/group_updated.rb +5 -5
- data/lib/workos/shared/pipe_connected_account.rb +46 -0
- data/lib/workos/{audit_logs/audit_log_export_json.rb → shared/pipes_connected_account_connected.rb} +10 -10
- data/lib/workos/shared/pipes_connected_account_disconnected.rb +34 -0
- data/lib/workos/shared/pipes_connected_account_reauthorization_needed.rb +34 -0
- data/lib/workos/shared/waitlist_user_approved.rb +5 -5
- data/lib/workos/shared/waitlist_user_created.rb +5 -5
- data/lib/workos/shared/waitlist_user_denied.rb +5 -5
- data/lib/workos/sso/connection_activated.rb +5 -5
- data/lib/workos/sso/connection_deactivated.rb +5 -5
- data/lib/workos/sso/connection_deleted.rb +5 -5
- data/lib/workos/sso/connection_saml_certificate_renewal_required.rb +5 -5
- data/lib/workos/sso/connection_saml_certificate_renewed.rb +5 -5
- data/lib/workos/types/create_webhook_endpoint_events.rb +4 -1
- data/lib/workos/types/pipe_connected_account_state.rb +13 -0
- data/lib/workos/types/{radar_action.rb → radar_list_action.rb} +1 -1
- data/lib/workos/types/radar_list_type.rb +18 -0
- data/lib/workos/types/radar_standalone_assess_request_action.rb +1 -7
- data/lib/workos/types/radar_standalone_response_blocklist_type.rb +1 -10
- data/lib/workos/types/radar_standalone_response_control.rb +1 -3
- data/lib/workos/types/user_management_authentication_screen_hint.rb +1 -5
- data/{rbi/workos/types/request_options.rbi → lib/workos/types/vault_order.rb} +4 -3
- data/lib/workos/types/webhook_endpoint_status.rb +1 -5
- data/lib/workos/user_management/action_authentication_denied.rb +6 -6
- data/lib/workos/user_management/action_user_registration_denied.rb +6 -6
- data/lib/workos/user_management/authentication_email_verification_failed.rb +5 -5
- data/lib/workos/user_management/authentication_email_verification_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_magic_auth_failed.rb +5 -5
- data/lib/workos/user_management/authentication_magic_auth_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_mfa_failed.rb +5 -5
- data/lib/workos/user_management/authentication_mfa_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_oauth_failed.rb +5 -5
- data/lib/workos/user_management/authentication_oauth_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_passkey_failed.rb +5 -5
- data/lib/workos/user_management/authentication_passkey_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_password_failed.rb +5 -5
- data/lib/workos/user_management/authentication_password_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_radar_risk_detected.rb +5 -5
- data/lib/workos/user_management/authentication_sso_failed.rb +5 -5
- data/lib/workos/user_management/authentication_sso_started.rb +5 -5
- data/lib/workos/user_management/authentication_sso_succeeded.rb +5 -5
- data/lib/workos/user_management/authentication_sso_timed_out.rb +5 -5
- data/lib/workos/user_management/create_user_api_key.rb +5 -2
- data/lib/workos/user_management/email_verification_created.rb +5 -5
- data/lib/workos/user_management/invitation_accepted.rb +5 -5
- data/lib/workos/user_management/invitation_created.rb +5 -5
- data/lib/workos/user_management/invitation_resent.rb +5 -5
- data/lib/workos/user_management/invitation_revoked.rb +5 -5
- data/lib/workos/user_management/magic_auth_created.rb +5 -5
- data/lib/workos/user_management/password_reset_created.rb +5 -5
- data/lib/workos/user_management/password_reset_succeeded.rb +5 -5
- data/lib/workos/user_management/session_created.rb +5 -5
- data/lib/workos/user_management/session_revoked.rb +5 -5
- data/lib/workos/user_management/user_api_key.rb +3 -0
- data/lib/workos/user_management/user_api_key_with_value.rb +3 -0
- data/lib/workos/user_management/user_created.rb +5 -5
- data/lib/workos/user_management/user_deleted.rb +5 -5
- data/lib/workos/user_management/user_updated.rb +5 -5
- data/lib/workos/user_management.rb +11 -214
- data/lib/workos/vault/actor.rb +22 -0
- data/lib/workos/vault/create_data_key_request.rb +18 -0
- data/lib/workos/vault/create_data_key_response.rb +28 -0
- data/lib/workos/vault/create_object_request.rb +25 -0
- data/lib/workos/vault/decrypt_request.rb +18 -0
- data/lib/workos/vault/decrypt_response.rb +22 -0
- data/lib/workos/vault/delete_object_response.rb +22 -0
- data/lib/workos/vault/object.rb +28 -0
- data/lib/workos/vault/object_metadata.rb +37 -0
- data/lib/workos/{audit_logs/audit_log_action_json.rb → vault/object_summary.rb} +4 -10
- data/lib/workos/vault/object_version.rb +31 -0
- data/lib/workos/vault/object_without_value.rb +25 -0
- data/lib/workos/vault/rekey_request.rb +22 -0
- data/lib/workos/vault/update_object_request.rb +22 -0
- data/lib/workos/vault/vault_byok_key_deleted.rb +5 -5
- data/lib/workos/vault/vault_byok_key_verification_completed.rb +5 -5
- data/lib/workos/vault/vault_data_created.rb +5 -5
- data/lib/workos/vault/vault_data_deleted.rb +5 -5
- data/lib/workos/vault/vault_data_read.rb +5 -5
- data/lib/workos/vault/vault_data_updated.rb +5 -5
- data/lib/workos/vault/vault_dek_decrypted.rb +5 -5
- data/lib/workos/vault/vault_dek_read.rb +5 -5
- data/lib/workos/vault/vault_kek_created.rb +5 -5
- data/lib/workos/vault/vault_metadata_read.rb +5 -5
- data/lib/workos/vault/vault_names_listed.rb +5 -5
- data/lib/workos/vault/version_list_response.rb +22 -0
- data/lib/workos/vault.rb +273 -139
- data/lib/workos/version.rb +1 -1
- data/lib/workos/webhooks/webhook_endpoint.rb +2 -7
- data/lib/workos/webhooks.rb +8 -9
- data/lib/workos.rb +1 -0
- data/rbi/workos/action_authentication_denied.rbi +10 -10
- data/rbi/workos/action_user_registration_denied.rbi +10 -10
- data/rbi/workos/actor.rbi +30 -0
- data/rbi/workos/api_key.rbi +6 -0
- data/rbi/workos/api_key_created.rbi +6 -6
- data/rbi/workos/api_key_created_data.rbi +6 -0
- data/rbi/workos/api_key_revoked.rbi +6 -6
- data/rbi/workos/api_key_revoked_data.rbi +6 -0
- data/rbi/workos/api_keys.rbi +2 -1
- data/rbi/workos/audit_log_action.rbi +1 -0
- data/rbi/workos/audit_log_export.rbi +1 -0
- data/rbi/workos/audit_log_schema.rbi +18 -0
- data/rbi/workos/{audit_log_schema_json_actor.rbi → audit_log_schema_actor_input.rbi} +1 -1
- data/rbi/workos/audit_log_schema_input.rbi +36 -0
- data/rbi/workos/{audit_log_schema_json_target.rbi → audit_log_schema_target_input.rbi} +1 -1
- data/rbi/workos/audit_logs.rbi +9 -9
- data/rbi/workos/audit_logs_retention.rbi +1 -0
- data/rbi/workos/authentication_email_verification_failed.rbi +6 -6
- data/rbi/workos/authentication_email_verification_succeeded.rbi +6 -6
- data/rbi/workos/authentication_magic_auth_failed.rbi +6 -6
- data/rbi/workos/authentication_magic_auth_succeeded.rbi +6 -6
- data/rbi/workos/authentication_mfa_failed.rbi +6 -6
- data/rbi/workos/authentication_mfa_succeeded.rbi +6 -6
- data/rbi/workos/authentication_oauth_failed.rbi +6 -6
- data/rbi/workos/authentication_oauth_succeeded.rbi +6 -6
- data/rbi/workos/authentication_passkey_failed.rbi +6 -6
- data/rbi/workos/authentication_passkey_succeeded.rbi +6 -6
- data/rbi/workos/authentication_password_failed.rbi +6 -6
- data/rbi/workos/authentication_password_succeeded.rbi +6 -6
- data/rbi/workos/authentication_radar_risk_detected.rbi +6 -6
- data/rbi/workos/authentication_sso_failed.rbi +6 -6
- data/rbi/workos/authentication_sso_started.rbi +6 -6
- data/rbi/workos/authentication_sso_succeeded.rbi +6 -6
- data/rbi/workos/authentication_sso_timed_out.rbi +6 -6
- data/rbi/workos/authorization.rbi +9 -5
- data/rbi/workos/client.rbi +6 -3
- data/rbi/workos/connect_application.rbi +0 -12
- data/rbi/workos/{webhook_endpoint_json.rbi → connect_application_m2m.rbi} +23 -11
- data/rbi/workos/connect_application_oauth.rbi +102 -0
- data/rbi/workos/connect_application_oauth_redirect_uris.rbi +30 -0
- data/rbi/workos/connection_activated.rbi +6 -6
- data/rbi/workos/connection_deactivated.rbi +6 -6
- data/rbi/workos/connection_deleted.rbi +6 -6
- data/rbi/workos/connection_saml_certificate_renewal_required.rbi +6 -6
- data/rbi/workos/connection_saml_certificate_renewed.rbi +6 -6
- data/rbi/workos/{audit_logs_retention_json.rbi → create_data_key_request.rbi} +5 -5
- data/rbi/workos/create_data_key_response.rbi +42 -0
- data/rbi/workos/create_object_request.rbi +36 -0
- data/rbi/workos/create_organization_api_key.rbi +6 -0
- data/rbi/workos/create_user_api_key.rbi +6 -0
- data/rbi/workos/decrypt_request.rbi +24 -0
- data/rbi/workos/decrypt_response.rbi +30 -0
- data/rbi/workos/delete_object_response.rbi +30 -0
- data/rbi/workos/dsync_activated.rbi +6 -6
- data/rbi/workos/dsync_deactivated.rbi +6 -6
- data/rbi/workos/dsync_deleted.rbi +6 -6
- data/rbi/workos/dsync_group_created.rbi +6 -6
- data/rbi/workos/dsync_group_deleted.rbi +6 -6
- data/rbi/workos/dsync_group_updated.rbi +6 -6
- data/rbi/workos/dsync_group_user_added.rbi +6 -6
- data/rbi/workos/dsync_group_user_removed.rbi +6 -6
- data/rbi/workos/dsync_user_created.rbi +6 -6
- data/rbi/workos/dsync_user_deleted.rbi +6 -6
- data/rbi/workos/dsync_user_updated.rbi +6 -6
- data/rbi/workos/email_verification_created.rbi +6 -6
- data/rbi/workos/error_response.rbi +24 -0
- data/rbi/workos/flag_created.rbi +6 -6
- data/rbi/workos/flag_deleted.rbi +6 -6
- data/rbi/workos/flag_rule_updated.rbi +6 -6
- data/rbi/workos/flag_updated.rbi +6 -6
- data/rbi/workos/group_created.rbi +6 -6
- data/rbi/workos/group_deleted.rbi +6 -6
- data/rbi/workos/group_member_added.rbi +6 -6
- data/rbi/workos/group_member_removed.rbi +6 -6
- data/rbi/workos/group_updated.rbi +6 -6
- data/rbi/workos/invitation_accepted.rbi +6 -6
- data/rbi/workos/invitation_created.rbi +6 -6
- data/rbi/workos/invitation_resent.rbi +6 -6
- data/rbi/workos/invitation_revoked.rbi +6 -6
- data/rbi/workos/magic_auth_created.rbi +6 -6
- data/rbi/workos/object.rbi +42 -0
- data/rbi/workos/object_metadata.rbi +60 -0
- data/rbi/workos/object_summary.rbi +36 -0
- data/rbi/workos/{audit_log_action_json.rbi → object_version.rbi} +17 -17
- data/rbi/workos/object_without_value.rbi +36 -0
- data/rbi/workos/organization_api_key.rbi +6 -0
- data/rbi/workos/organization_api_key_with_value.rbi +6 -0
- data/rbi/workos/organization_created.rbi +6 -6
- data/rbi/workos/organization_deleted.rbi +6 -6
- data/rbi/workos/organization_domain_created.rbi +6 -6
- data/rbi/workos/organization_domain_deleted.rbi +6 -6
- data/rbi/workos/organization_domain_updated.rbi +6 -6
- data/rbi/workos/organization_domain_verification_failed.rbi +6 -6
- data/rbi/workos/organization_domain_verified.rbi +6 -6
- data/rbi/workos/organization_membership_created.rbi +6 -6
- data/rbi/workos/organization_membership_deleted.rbi +6 -6
- data/rbi/workos/organization_membership_service.rbi +114 -0
- data/rbi/workos/organization_membership_updated.rbi +6 -6
- data/rbi/workos/organization_role_created.rbi +6 -6
- data/rbi/workos/organization_role_deleted.rbi +6 -6
- data/rbi/workos/organization_role_updated.rbi +6 -6
- data/rbi/workos/organization_updated.rbi +6 -6
- data/rbi/workos/password_reset_created.rbi +6 -6
- data/rbi/workos/password_reset_succeeded.rbi +6 -6
- data/rbi/workos/permission_created.rbi +6 -6
- data/rbi/workos/permission_deleted.rbi +6 -6
- data/rbi/workos/permission_updated.rbi +6 -6
- data/rbi/workos/pipe_connected_account.rbi +78 -0
- data/rbi/workos/{audit_log_export_json.rbi → pipes_connected_account_connected.rbi} +11 -11
- data/rbi/workos/pipes_connected_account_disconnected.rbi +54 -0
- data/rbi/workos/pipes_connected_account_reauthorization_needed.rbi +54 -0
- data/rbi/workos/radar.rbi +1 -3
- data/rbi/workos/radar_standalone_assess_request.rbi +0 -12
- data/rbi/workos/rekey_request.rbi +30 -0
- data/rbi/workos/role_created.rbi +6 -6
- data/rbi/workos/role_deleted.rbi +6 -6
- data/rbi/workos/role_updated.rbi +6 -6
- data/rbi/workos/session_created.rbi +6 -6
- data/rbi/workos/session_manager.rbi +1 -1
- data/rbi/workos/session_revoked.rbi +6 -6
- data/rbi/workos/update_object_request.rbi +30 -0
- data/rbi/workos/user_api_key.rbi +6 -0
- data/rbi/workos/user_api_key_with_value.rbi +6 -0
- data/rbi/workos/user_created.rbi +6 -6
- data/rbi/workos/user_deleted.rbi +6 -6
- data/rbi/workos/user_management.rbi +2 -90
- data/rbi/workos/user_updated.rbi +6 -6
- data/rbi/workos/vault.rbi +70 -95
- data/rbi/workos/vault_byok_key_deleted.rbi +6 -6
- data/rbi/workos/vault_byok_key_verification_completed.rbi +6 -6
- data/rbi/workos/vault_data_created.rbi +6 -6
- data/rbi/workos/vault_data_deleted.rbi +6 -6
- data/rbi/workos/vault_data_read.rbi +6 -6
- data/rbi/workos/vault_data_updated.rbi +6 -6
- data/rbi/workos/vault_dek_decrypted.rbi +6 -6
- data/rbi/workos/vault_dek_read.rbi +6 -6
- data/rbi/workos/vault_kek_created.rbi +6 -6
- data/rbi/workos/vault_metadata_read.rbi +6 -6
- data/rbi/workos/vault_names_listed.rbi +6 -6
- data/rbi/workos/waitlist_user_approved.rbi +6 -6
- data/rbi/workos/waitlist_user_created.rbi +6 -6
- data/rbi/workos/waitlist_user_denied.rbi +6 -6
- data/rbi/workos/webhook_endpoint.rbi +1 -0
- data/rbi/workos/webhooks.rbi +2 -2
- data/renovate.json +1 -1
- data/test/workos/test_actions.rb +9 -0
- data/test/workos/test_base_client.rb +44 -0
- data/test/workos/test_encryptors_aes_gcm.rb +16 -1
- data/test/workos/test_model_round_trip.rb +577 -212
- data/test/workos/test_organization_membership_service.rb +107 -0
- data/test/workos/test_session.rb +43 -4
- data/test/workos/test_user_management.rb +0 -74
- data/test/workos/test_vault.rb +91 -87
- data/test/workos/test_webhook_verify.rb +11 -0
- metadata +65 -41
- data/lib/workos/audit_logs/audit_log_schema_json.rb +0 -34
- data/lib/workos/organizations/audit_logs_retention_json.rb +0 -18
- data/lib/workos/types/audit_log_export_json_state.rb +0 -14
- data/lib/workos/types/webhook_endpoint_json_status.rb +0 -9
- data/lib/workos/user_management_organization_membership_groups.rb +0 -60
- data/lib/workos/webhooks/webhook_endpoint_json.rb +0 -40
- data/rbi/workos/actions.rbi +0 -48
- data/rbi/workos/audit_log_schema_json.rbi +0 -54
- data/rbi/workos/base_client.rbi +0 -132
- data/rbi/workos/configuration.rbi +0 -68
- data/rbi/workos/encryptors/aes_gcm.rbi +0 -19
- data/rbi/workos/errors.rbi +0 -43
- data/rbi/workos/hash_provider.rbi +0 -18
- data/rbi/workos/passwordless.rbi +0 -47
- data/rbi/workos/public_client.rbi +0 -12
- data/rbi/workos/session.rbi +0 -43
- data/rbi/workos/types/api_response.rbi +0 -29
- data/rbi/workos/types/base_model.rbi +0 -22
- data/rbi/workos/types/list_struct.rbi +0 -89
- data/rbi/workos/user_management_organization_membership_groups.rbi +0 -25
- data/rbi/workos/util.rbi +0 -12
- data/test/workos/test_user_management_organization_membership_groups.rb +0 -33
- /data/lib/workos/{user_management → organization_membership}/create_user_organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/update_user_organization_membership.rb +0 -0
- /data/lib/workos/{user_management → organization_membership}/user_organization_membership.rb +0 -0
data/rbi/workos/role_created.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
data/rbi/workos/role_deleted.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
data/rbi/workos/role_updated.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -103,7 +103,7 @@ module WorkOS
|
|
|
103
103
|
sig { returns(WorkOS::Client) }
|
|
104
104
|
def client; end
|
|
105
105
|
|
|
106
|
-
sig { params(client: WorkOS::Client, encryptor: T.
|
|
106
|
+
sig { params(client: WorkOS::Client, encryptor: T.untyped).void }
|
|
107
107
|
def initialize(client, encryptor: nil); end
|
|
108
108
|
|
|
109
109
|
sig { params(seal_data: String, cookie_password: String).returns(WorkOS::Session) }
|
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -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 UpdateObjectRequest
|
|
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 value; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def value=(value); end
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
def version_check; end
|
|
20
|
+
|
|
21
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
22
|
+
def version_check=(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
|
data/rbi/workos/user_api_key.rbi
CHANGED
|
@@ -45,6 +45,12 @@ module WorkOS
|
|
|
45
45
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
46
46
|
def last_used_at=(value); end
|
|
47
47
|
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
def expires_at; end
|
|
50
|
+
|
|
51
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
52
|
+
def expires_at=(value); end
|
|
53
|
+
|
|
48
54
|
sig { returns(T::Array[String]) }
|
|
49
55
|
def permissions; end
|
|
50
56
|
|
|
@@ -45,6 +45,12 @@ module WorkOS
|
|
|
45
45
|
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
46
46
|
def last_used_at=(value); end
|
|
47
47
|
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
def expires_at; end
|
|
50
|
+
|
|
51
|
+
sig { params(value: T.nilable(String)).returns(T.nilable(String)) }
|
|
52
|
+
def expires_at=(value); end
|
|
53
|
+
|
|
48
54
|
sig { returns(T::Array[String]) }
|
|
49
55
|
def permissions; end
|
|
50
56
|
|
data/rbi/workos/user_created.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
data/rbi/workos/user_deleted.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -34,30 +34,6 @@ module WorkOS
|
|
|
34
34
|
def self.new(password_hash:, password_hash_type:); end
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
class RoleSingle
|
|
38
|
-
sig { returns(String) }
|
|
39
|
-
def role_slug; end
|
|
40
|
-
|
|
41
|
-
sig do
|
|
42
|
-
params(
|
|
43
|
-
role_slug: String
|
|
44
|
-
).returns(WorkOS::UserManagement::RoleSingle)
|
|
45
|
-
end
|
|
46
|
-
def self.new(role_slug:); end
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
class RoleMultiple
|
|
50
|
-
sig { returns(T::Array[String]) }
|
|
51
|
-
def role_slugs; end
|
|
52
|
-
|
|
53
|
-
sig do
|
|
54
|
-
params(
|
|
55
|
-
role_slugs: T::Array[String]
|
|
56
|
-
).returns(WorkOS::UserManagement::RoleMultiple)
|
|
57
|
-
end
|
|
58
|
-
def self.new(role_slugs:); end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
37
|
sig { params(client: WorkOS::BaseClient).void }
|
|
62
38
|
def initialize(client); end
|
|
63
39
|
|
|
@@ -365,71 +341,6 @@ module WorkOS
|
|
|
365
341
|
end
|
|
366
342
|
def get_magic_auth(id:, request_options:); end
|
|
367
343
|
|
|
368
|
-
sig do
|
|
369
|
-
params(
|
|
370
|
-
before: T.nilable(String),
|
|
371
|
-
after: T.nilable(String),
|
|
372
|
-
limit: T.nilable(Integer),
|
|
373
|
-
order: T.nilable(String),
|
|
374
|
-
organization_id: T.nilable(String),
|
|
375
|
-
statuses: T.nilable(T::Array[String]),
|
|
376
|
-
user_id: T.nilable(String),
|
|
377
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
378
|
-
).returns(T::Array[WorkOS::UserOrganizationMembership])
|
|
379
|
-
end
|
|
380
|
-
def list_organization_memberships(before:, after:, limit:, order:, organization_id:, statuses:, user_id:, request_options:); end
|
|
381
|
-
|
|
382
|
-
sig do
|
|
383
|
-
params(
|
|
384
|
-
user_id: String,
|
|
385
|
-
organization_id: String,
|
|
386
|
-
role: T.nilable(T.any(WorkOS::UserManagement::RoleSingle, WorkOS::UserManagement::RoleMultiple)),
|
|
387
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
388
|
-
).returns(WorkOS::OrganizationMembership)
|
|
389
|
-
end
|
|
390
|
-
def create_organization_membership(user_id:, organization_id:, role:, request_options:); end
|
|
391
|
-
|
|
392
|
-
sig do
|
|
393
|
-
params(
|
|
394
|
-
id: String,
|
|
395
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
396
|
-
).returns(WorkOS::UserOrganizationMembership)
|
|
397
|
-
end
|
|
398
|
-
def get_organization_membership(id:, request_options:); end
|
|
399
|
-
|
|
400
|
-
sig do
|
|
401
|
-
params(
|
|
402
|
-
id: String,
|
|
403
|
-
role: T.nilable(T.any(WorkOS::UserManagement::RoleSingle, WorkOS::UserManagement::RoleMultiple)),
|
|
404
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
405
|
-
).returns(WorkOS::UserOrganizationMembership)
|
|
406
|
-
end
|
|
407
|
-
def update_organization_membership(id:, role:, request_options:); end
|
|
408
|
-
|
|
409
|
-
sig do
|
|
410
|
-
params(
|
|
411
|
-
id: String,
|
|
412
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
413
|
-
).returns(NilClass)
|
|
414
|
-
end
|
|
415
|
-
def delete_organization_membership(id:, request_options:); end
|
|
416
|
-
|
|
417
|
-
sig do
|
|
418
|
-
params(
|
|
419
|
-
id: String,
|
|
420
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
421
|
-
).returns(WorkOS::OrganizationMembership)
|
|
422
|
-
end
|
|
423
|
-
def deactivate_organization_membership(id:, request_options:); end
|
|
424
|
-
|
|
425
|
-
sig do
|
|
426
|
-
params(
|
|
427
|
-
id: String,
|
|
428
|
-
request_options: T::Hash[Symbol, T.untyped]
|
|
429
|
-
).returns(WorkOS::UserOrganizationMembership)
|
|
430
|
-
end
|
|
431
|
-
def reactivate_organization_membership(id:, request_options:); end
|
|
432
|
-
|
|
433
344
|
sig do
|
|
434
345
|
params(
|
|
435
346
|
uri: String,
|
|
@@ -478,10 +389,11 @@ module WorkOS
|
|
|
478
389
|
name: String,
|
|
479
390
|
organization_id: String,
|
|
480
391
|
permissions: T.nilable(T::Array[String]),
|
|
392
|
+
expires_at: T.nilable(String),
|
|
481
393
|
request_options: T::Hash[Symbol, T.untyped]
|
|
482
394
|
).returns(WorkOS::UserApiKeyWithValue)
|
|
483
395
|
end
|
|
484
|
-
def create_user_api_key(user_id:, name:, organization_id:, permissions:, request_options:); end
|
|
396
|
+
def create_user_api_key(user_id:, name:, organization_id:, permissions:, expires_at:, request_options:); end
|
|
485
397
|
|
|
486
398
|
end
|
|
487
399
|
end
|
data/rbi/workos/user_updated.rbi
CHANGED
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
data/rbi/workos/vault.rbi
CHANGED
|
@@ -6,132 +6,107 @@
|
|
|
6
6
|
|
|
7
7
|
module WorkOS
|
|
8
8
|
class Vault
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class DataKey < T::Struct
|
|
12
|
-
const :id, T.nilable(String)
|
|
13
|
-
const :key, T.nilable(String)
|
|
14
|
-
|
|
15
|
-
sig { params(hash: T::Hash[String, T.untyped]).returns(WorkOS::Vault::DataKey) }
|
|
16
|
-
def self.from_response(hash); end
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
class DataKeyPair < T::Struct
|
|
20
|
-
const :context, T.untyped
|
|
21
|
-
const :data_key, WorkOS::Vault::DataKey
|
|
22
|
-
const :encrypted_keys, T.nilable(String)
|
|
9
|
+
sig { params(client: WorkOS::BaseClient).void }
|
|
10
|
+
def initialize(client); end
|
|
23
11
|
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
context: T::Hash[String, String],
|
|
15
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
16
|
+
).returns(WorkOS::CreateDataKeyResponse)
|
|
26
17
|
end
|
|
18
|
+
def create_data_key(context:, request_options:); end
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def self.from_hash(hash); end
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
keys: String,
|
|
23
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
24
|
+
).returns(WorkOS::DecryptResponse)
|
|
34
25
|
end
|
|
26
|
+
def create_decrypt(keys:, request_options:); end
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const :updated_by, T.nilable(WorkOS::Vault::ObjectUpdateBy)
|
|
43
|
-
const :version_id, T.nilable(String)
|
|
44
|
-
|
|
45
|
-
sig { params(hash: T::Hash[String, T.untyped]).returns(WorkOS::Vault::ObjectMetadata) }
|
|
46
|
-
def self.from_hash(hash); end
|
|
28
|
+
sig do
|
|
29
|
+
params(
|
|
30
|
+
context: T::Hash[String, String],
|
|
31
|
+
encrypted_keys: String,
|
|
32
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
33
|
+
).returns(WorkOS::CreateDataKeyResponse)
|
|
47
34
|
end
|
|
35
|
+
def create_rekey(context:, encrypted_keys:, request_options:); end
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
limit: T.nilable(Integer),
|
|
40
|
+
before: T.nilable(String),
|
|
41
|
+
after: T.nilable(String),
|
|
42
|
+
order: T.nilable(String),
|
|
43
|
+
search: T.nilable(String),
|
|
44
|
+
updated_after: T.nilable(String),
|
|
45
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
46
|
+
).returns(WorkOS::Types::ListStruct)
|
|
57
47
|
end
|
|
48
|
+
def list_kv(limit:, before:, after:, order:, search:, updated_after:, request_options:); end
|
|
58
49
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
key_context: T::Hash[String, String],
|
|
53
|
+
name: String,
|
|
54
|
+
value: String,
|
|
55
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
56
|
+
).returns(WorkOS::ObjectMetadata)
|
|
66
57
|
end
|
|
58
|
+
def create_kv(key_context:, name:, value:, request_options:); end
|
|
67
59
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
sig { params(hash: T::Hash[String, T.untyped]).returns(WorkOS::Vault::ObjectVersion) }
|
|
74
|
-
def self.from_hash(hash); end
|
|
60
|
+
sig do
|
|
61
|
+
params(
|
|
62
|
+
name: String,
|
|
63
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
64
|
+
).returns(WorkOS::ObjectModel)
|
|
75
65
|
end
|
|
76
|
-
|
|
77
|
-
sig { params(client: WorkOS::Client).void }
|
|
78
|
-
def initialize(client); end
|
|
79
|
-
|
|
80
|
-
sig { params(object_id: String, request_options: T::Hash[Symbol, T.untyped]).returns(WorkOS::Vault::VaultObject) }
|
|
81
|
-
def read_object(object_id:, request_options: {}); end
|
|
82
|
-
|
|
83
|
-
sig { params(name: String, request_options: T::Hash[Symbol, T.untyped]).returns(WorkOS::Vault::VaultObject) }
|
|
84
|
-
def read_object_by_name(name:, request_options: {}); end
|
|
85
|
-
|
|
86
|
-
sig { params(object_id: String, request_options: T::Hash[Symbol, T.untyped]).returns(WorkOS::Vault::VaultObject) }
|
|
87
|
-
def get_object_metadata(object_id:, request_options: {}); end
|
|
66
|
+
def get_name(name:, request_options:); end
|
|
88
67
|
|
|
89
68
|
sig do
|
|
90
69
|
params(
|
|
91
|
-
|
|
92
|
-
before: T.nilable(String),
|
|
93
|
-
after: T.nilable(String),
|
|
70
|
+
id: String,
|
|
94
71
|
request_options: T::Hash[Symbol, T.untyped]
|
|
95
|
-
).returns(
|
|
72
|
+
).returns(WorkOS::ObjectModel)
|
|
96
73
|
end
|
|
97
|
-
def
|
|
98
|
-
|
|
99
|
-
sig { params(object_id: String, request_options: T::Hash[Symbol, T.untyped]).returns(T::Array[WorkOS::Vault::ObjectVersion]) }
|
|
100
|
-
def list_object_versions(object_id:, request_options: {}); end
|
|
74
|
+
def get_kv(id:, request_options:); end
|
|
101
75
|
|
|
102
76
|
sig do
|
|
103
77
|
params(
|
|
104
|
-
|
|
78
|
+
id: String,
|
|
105
79
|
value: String,
|
|
106
|
-
|
|
80
|
+
version_check: T.nilable(String),
|
|
107
81
|
request_options: T::Hash[Symbol, T.untyped]
|
|
108
|
-
).returns(WorkOS::
|
|
82
|
+
).returns(WorkOS::ObjectWithoutValue)
|
|
109
83
|
end
|
|
110
|
-
def
|
|
84
|
+
def update_kv(id:, value:, version_check:, request_options:); end
|
|
111
85
|
|
|
112
86
|
sig do
|
|
113
87
|
params(
|
|
114
|
-
|
|
115
|
-
value: String,
|
|
88
|
+
id: String,
|
|
116
89
|
version_check: T.nilable(String),
|
|
117
90
|
request_options: T::Hash[Symbol, T.untyped]
|
|
118
|
-
).returns(WorkOS::
|
|
91
|
+
).returns(WorkOS::DeleteObjectResponse)
|
|
119
92
|
end
|
|
120
|
-
def
|
|
121
|
-
|
|
122
|
-
sig { params(object_id: String, request_options: T::Hash[Symbol, T.untyped]).void }
|
|
123
|
-
def delete_object(object_id:, request_options: {}); end
|
|
93
|
+
def delete_kv(id:, version_check:, request_options:); end
|
|
124
94
|
|
|
125
|
-
sig
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
95
|
+
sig do
|
|
96
|
+
params(
|
|
97
|
+
id: String,
|
|
98
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
99
|
+
).returns(WorkOS::ObjectWithoutValue)
|
|
100
|
+
end
|
|
101
|
+
def list_kv_metadata(id:, request_options:); end
|
|
130
102
|
|
|
131
|
-
sig
|
|
132
|
-
|
|
103
|
+
sig do
|
|
104
|
+
params(
|
|
105
|
+
id: String,
|
|
106
|
+
request_options: T::Hash[Symbol, T.untyped]
|
|
107
|
+
).returns(WorkOS::Types::ListStruct)
|
|
108
|
+
end
|
|
109
|
+
def list_kv_versions(id:, request_options:); end
|
|
133
110
|
|
|
134
|
-
sig { params(encrypted_data: String, associated_data: T.nilable(String)).returns(String) }
|
|
135
|
-
def decrypt(encrypted_data:, associated_data: nil); end
|
|
136
111
|
end
|
|
137
112
|
end
|
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|
|
@@ -9,6 +9,12 @@ module WorkOS
|
|
|
9
9
|
sig { params(json: T.any(String, T::Hash[Symbol, T.untyped])).void }
|
|
10
10
|
def initialize(json); end
|
|
11
11
|
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
def object; end
|
|
14
|
+
|
|
15
|
+
sig { params(value: String).returns(String) }
|
|
16
|
+
def object=(value); end
|
|
17
|
+
|
|
12
18
|
sig { returns(String) }
|
|
13
19
|
def id; end
|
|
14
20
|
|
|
@@ -39,12 +45,6 @@ module WorkOS
|
|
|
39
45
|
sig { params(value: T.nilable(WorkOS::EventContext)).returns(T.nilable(WorkOS::EventContext)) }
|
|
40
46
|
def context=(value); end
|
|
41
47
|
|
|
42
|
-
sig { returns(String) }
|
|
43
|
-
def object; end
|
|
44
|
-
|
|
45
|
-
sig { params(value: String).returns(String) }
|
|
46
|
-
def object=(value); end
|
|
47
|
-
|
|
48
48
|
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
49
49
|
def to_h; end
|
|
50
50
|
|