diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4241f1a..d0e6322 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,20 +1,19 @@ lockVersion: 2.0.0 id: 248c4615-4118-44e3-9280-c0978ea11cf6 management: - docChecksum: 9e89f4e0df39546add90b40ae6eac529 + docChecksum: 96d01c463ef5736f5e1d95cb45d8c6b4 docVersion: v1 - speakeasyVersion: 1.473.0 - generationVersion: 2.495.0 - releaseVersion: 0.3.0 - configChecksum: c14f8f63ea342007562335282736245c + speakeasyVersion: 1.484.1 + generationVersion: 2.503.2 + releaseVersion: 0.4.0 + configChecksum: 088f428551420871da909fa9eaaf40db repoURL: https://github.com/clerk/clerk-sdk-csharp.git published: true features: csharp: additionalDependencies: 0.1.0 - additionalProperties: 0.0.1 constsAndDefaults: 0.0.1 - core: 3.10.11 + core: 3.10.13 deprecations: 2.81.2 examples: 2.81.5 flattening: 2.81.3 @@ -175,8 +174,6 @@ generatedFiles: - docs/Models/Components/TicketVerificationStrategy.md - docs/Models/Components/TotalCount.md - docs/Models/Components/TotalCountObject.md - - docs/Models/Components/Totp.md - - docs/Models/Components/Type.md - docs/Models/Components/User.md - docs/Models/Components/UserObject.md - docs/Models/Components/Verification.md @@ -264,8 +261,6 @@ generatedFiles: - docs/Models/Operations/CreateTestingTokenResponse.md - docs/Models/Operations/CreateUserRequestBody.md - docs/Models/Operations/CreateUserResponse.md - - docs/Models/Operations/CreateUserTOTPRequest.md - - docs/Models/Operations/CreateUserTOTPResponse.md - docs/Models/Operations/CreateWaitlistEntryRequestBody.md - docs/Models/Operations/CreateWaitlistEntryResponse.md - docs/Models/Operations/DeleteAllowlistIdentifierRequest.md @@ -706,8 +701,6 @@ generatedFiles: - src/Clerk/BackendAPI/Models/Components/TicketVerificationStrategy.cs - src/Clerk/BackendAPI/Models/Components/TotalCount.cs - src/Clerk/BackendAPI/Models/Components/TotalCountObject.cs - - src/Clerk/BackendAPI/Models/Components/Totp.cs - - src/Clerk/BackendAPI/Models/Components/Type.cs - src/Clerk/BackendAPI/Models/Components/User.cs - src/Clerk/BackendAPI/Models/Components/UserObject.cs - src/Clerk/BackendAPI/Models/Components/Verification.cs @@ -796,8 +789,6 @@ generatedFiles: - src/Clerk/BackendAPI/Models/Operations/CreateTestingTokenResponse.cs - src/Clerk/BackendAPI/Models/Operations/CreateUserRequestBody.cs - src/Clerk/BackendAPI/Models/Operations/CreateUserResponse.cs - - src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPRequest.cs - - src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPResponse.cs - src/Clerk/BackendAPI/Models/Operations/CreateWaitlistEntryRequestBody.cs - src/Clerk/BackendAPI/Models/Operations/CreateWaitlistEntryResponse.cs - src/Clerk/BackendAPI/Models/Operations/DeleteAllowlistIdentifierRequest.cs @@ -1368,7 +1359,7 @@ examples: order_by: "-created_at" responses: "200": - application/json: [{"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "admin", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}, {"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "email_link", "attempts": 1, "expire_at": 1615462399}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "phone_code", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}, {"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "admin", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}] + application/json: [{"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "admin", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}, {"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "email_link", "expire_at": 1615462399, "attempts": 1}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "phone_code", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}, {"id": "user_id_123", "object": "user", "external_id": "external_user_id_123", "primary_email_address_id": "email_id_123", "primary_phone_number_id": "phone_id_123", "primary_web3_wallet_id": "wallet_id_123", "username": "john_doe", "first_name": "John", "last_name": "Doe", "image_url": "https://example.com/new-profile.jpg", "has_image": true, "public_metadata": {"role": "admin"}, "private_metadata": {"ssn": "123-45-6789"}, "unsafe_metadata": {"theme": "dark"}, "email_addresses": [{"id": "email_id_123", "object": "email_address", "email_address": "john.doe@example.com", "reserved": false, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "oauth_google", "id": "link_12345"}], "created_at": 1609459200, "updated_at": 1609459200}], "phone_numbers": [{"id": "phone_id_123", "object": "phone_number", "phone_number": "+12345678901", "reserved": false, "verification": {"status": "verified", "strategy": "admin", "attempts": 2, "expire_at": 1622852400}, "linked_to": [{"type": "oauth_google", "id": "link_id_123"}], "created_at": 1609459200, "updated_at": 1609459200}], "web3_wallets": [{"id": "wallet_id_123", "object": "web3_wallet", "web3_wallet": "0x123456789abcdef", "verification": {"status": "verified", "strategy": "web3_metamask_signature"}, "created_at": 1609459200, "updated_at": 1609459200}], "passkeys": [{"id": "passkey_id_123", "object": "passkey", "name": "My Passkey", "last_used_at": 1615852800, "verification": {"status": "verified", "strategy": "passkey"}}], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": true, "backup_code_enabled": true, "mfa_enabled_at": 1615852800, "mfa_disabled_at": null, "external_accounts": [{}], "saml_accounts": [{"id": "saml_account_id_123", "object": "saml_account", "provider": "SAML Provider", "active": true, "email_address": "user@example.com", "public_metadata": {"department": "IT"}, "verification": {"status": "verified", "strategy": "saml"}}], "last_sign_in_at": 1622852400, "banned": false, "locked": false, "lockout_expires_in_seconds": null, "verification_attempts_remaining": 5, "updated_at": 1622852400, "created_at": 1609459200, "delete_self_enabled": true, "create_organization_enabled": true, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000}] "400": application/json: {"errors": [{"message": "Invalid input", "long_message": "The input provided does not meet the requirements.", "code": "400_bad_request", "clerk_trace_id": "trace_123456789abcd"}], "meta": {}} CreateUser: @@ -2293,7 +2284,7 @@ examples: offset: 10 responses: "200": - application/json: {"data": [{"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://neglected-plastic.biz", "token_introspection_url": "https://crooked-overload.name/", "created_at": 1609459200, "updated_at": 1612137600}], "total_count": 1} + application/json: {"data": [{"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "redirect_uris": ["", "", ""], "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://remorseful-concentration.biz", "token_introspection_url": "https://primary-paintwork.com/", "created_at": 1609459200, "updated_at": 1612137600}], "total_count": 1} "400": application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} CreateOAuthApplication: @@ -2302,7 +2293,7 @@ examples: application/json: {"name": "Example App", "callback_url": "https://example.com/oauth/callback", "scopes": "profile email public_metadata", "public": true} responses: "200": - application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://probable-heating.com/", "token_introspection_url": "https://standard-utilization.com/", "created_at": 1609459200, "updated_at": 1612137600, "client_secret": "secretXYZ123"} + application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "redirect_uris": [""], "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://probable-heating.com/", "token_introspection_url": "https://standard-utilization.com/", "created_at": 1609459200, "updated_at": 1612137600, "client_secret": "secretXYZ123"} "400": application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} GetOAuthApplication: @@ -2312,7 +2303,7 @@ examples: oauth_application_id: "oauth_app_12345" responses: "200": - application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://normal-making.name", "token_introspection_url": "https://lavish-ice-cream.biz", "created_at": 1609459200, "updated_at": 1612137600} + application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "redirect_uris": ["", ""], "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://normal-making.name", "token_introspection_url": "https://lavish-ice-cream.biz", "created_at": 1609459200, "updated_at": 1612137600} "403": application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} UpdateOAuthApplication: @@ -2324,9 +2315,11 @@ examples: application/json: {"name": "Updated OAuth App Name", "callback_url": "https://example.com/oauth/callback", "scopes": "profile email public_metadata private_metadata"} responses: "200": - application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://passionate-flu.org", "token_introspection_url": "https://lumbering-wheel.com", "created_at": 1609459200, "updated_at": 1612137600} + application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "redirect_uris": ["", "", ""], "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://passionate-flu.org", "token_introspection_url": "https://lumbering-wheel.com", "created_at": 1609459200, "updated_at": 1612137600} "403": application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} + "400": + application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} DeleteOAuthApplication: speakeasy-default-delete-O-auth-application: parameters: @@ -2344,7 +2337,7 @@ examples: oauth_application_id: "oauth_application_12345" responses: "200": - application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://enchanting-language.org", "token_introspection_url": "https://tempting-popularity.net/", "created_at": 1609459200, "updated_at": 1612137600, "client_secret": "secretXYZ123"} + application/json: {"object": "oauth_application", "id": "oauth_app_1234", "instance_id": "instance_5678", "name": "Example OAuth App", "client_id": "client_12345", "public": false, "scopes": "profile email", "redirect_uris": ["", "", ""], "callback_url": "https://example.com/oauth/callback", "authorize_url": "https://example.com/authorize", "token_fetch_url": "https://example.com/oauth/token", "user_info_url": "https://example.com/userinfo", "discovery_url": "https://enchanting-language.org", "token_introspection_url": "https://tempting-popularity.net/", "created_at": 1609459200, "updated_at": 1612137600, "client_secret": "secretXYZ123"} "403": application/json: {"errors": [{"message": "Error message", "long_message": "Longer error message with more details", "code": "error_code", "clerk_trace_id": "trace_id"}], "meta": {}} ListSAMLConnections: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 70338b0..e3204bc 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true csharp: - version: 0.3.0 + version: 0.4.0 additionalDependencies: - package: System.IdentityModel.Tokens.Jwt version: 8.2.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 249d873..5d12e4c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.473.0 +speakeasyVersion: 1.484.1 sources: clerk-backend-api-OAS: sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:53525efdf49a8b28bf3c77fd74febf52f0f4e563cea7337d3f64ee7690ccf405 - sourceBlobDigest: sha256:3508bdedcc9af2c8f425007085f5fe060d7c0b32d0aa9502a44ca5bc6a9b6303 + sourceRevisionDigest: sha256:86227857141fd8a7f32fc802e9b7516cebd4c0517ee97f5e33977d18aaa4364f + sourceBlobDigest: sha256:d34a8dbbaafab0c2eb262f25a4f8dddff8b28a7d7e1681a502bdc617425f946f tags: - latest - - speakeasy-sdk-regen-1737669739 + - speakeasy-sdk-regen-1738022735 - v1 targets: clerk-backend-api: source: clerk-backend-api-OAS sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:53525efdf49a8b28bf3c77fd74febf52f0f4e563cea7337d3f64ee7690ccf405 - sourceBlobDigest: sha256:3508bdedcc9af2c8f425007085f5fe060d7c0b32d0aa9502a44ca5bc6a9b6303 + sourceRevisionDigest: sha256:86227857141fd8a7f32fc802e9b7516cebd4c0517ee97f5e33977d18aaa4364f + sourceBlobDigest: sha256:d34a8dbbaafab0c2eb262f25a4f8dddff8b28a7d7e1681a502bdc617425f946f codeSamplesNamespace: clerk-backend-api-oas-csharp-code-samples - codeSamplesRevisionDigest: sha256:1d74df474d1eb925efaae16c859fb2f289753caf9eef03ae34f75882f1c8249e + codeSamplesRevisionDigest: sha256:d894a75fd298a45e5ccec302910c8bb8bb3ecca1d4a8b1af642959b26b58a243 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 0354737..8f78859 100644 --- a/README.md +++ b/README.md @@ -354,7 +354,6 @@ If the request is correctly authenticated, the token's claims are made available * [DisableMfa](docs/sdks/users/README.md#disablemfa) - Disable a user's MFA methods * [DeleteBackupCode](docs/sdks/users/README.md#deletebackupcode) - Disable all user's Backup codes * [DeletePasskey](docs/sdks/users/README.md#deletepasskey) - Delete a user passkey -* [CreateTotp](docs/sdks/users/README.md#createtotp) - Create a TOTP for a user * [DeleteTOTP](docs/sdks/users/README.md#deletetotp) - Delete all the user's TOTPs * [DeleteExternalAccount](docs/sdks/users/README.md#deleteexternalaccount) - Delete External Account diff --git a/RELEASES.md b/RELEASES.md index fe591da..aba22b4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -38,4 +38,14 @@ Based on: ### Generated - [csharp v0.3.0] . ### Releases -- [NuGet v0.3.0] https://www.nuget.org/packages/Clerk.BackendAPI/0.3.0 - . \ No newline at end of file +- [NuGet v0.3.0] https://www.nuget.org/packages/Clerk.BackendAPI/0.3.0 - . + +## 2025-02-05 00:05:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.4.0] . +### Releases +- [NuGet v0.4.0] https://www.nuget.org/packages/Clerk.BackendAPI/0.4.0 - . \ No newline at end of file diff --git a/docs/Models/Components/IdentificationLink.md b/docs/Models/Components/IdentificationLink.md index 4374be2..d8cfd17 100644 --- a/docs/Models/Components/IdentificationLink.md +++ b/docs/Models/Components/IdentificationLink.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `Type` | [Models.Components.Type](../../Models/Components/Type.md) | :heavy_check_mark: | N/A | oauth_google | -| `Id` | *string* | :heavy_check_mark: | N/A | link_12345 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Type` | *string* | :heavy_check_mark: | N/A | oauth_google | +| `Id` | *string* | :heavy_check_mark: | N/A | link_12345 | \ No newline at end of file diff --git a/docs/Models/Components/OAuthApplication.md b/docs/Models/Components/OAuthApplication.md index 2a7288e..0fdbb54 100644 --- a/docs/Models/Components/OAuthApplication.md +++ b/docs/Models/Components/OAuthApplication.md @@ -3,20 +3,21 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `Object` | [OAuthApplicationObject](../../Models/Components/OAuthApplicationObject.md) | :heavy_check_mark: | N/A | oauth_application | -| `Id` | *string* | :heavy_check_mark: | N/A | oauth_app_1234 | -| `InstanceId` | *string* | :heavy_check_mark: | N/A | instance_5678 | -| `Name` | *string* | :heavy_check_mark: | N/A | Example OAuth App | -| `ClientId` | *string* | :heavy_check_mark: | N/A | client_12345 | -| `Public` | *bool* | :heavy_check_mark: | N/A | false | -| `Scopes` | *string* | :heavy_check_mark: | N/A | profile email | -| `CallbackUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/callback | -| `AuthorizeUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/authorize | -| `TokenFetchUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/token | -| `UserInfoUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/userinfo | -| `DiscoveryUrl` | *string* | :heavy_check_mark: | N/A | | -| `TokenIntrospectionUrl` | *string* | :heavy_check_mark: | N/A | | -| `CreatedAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| 1609459200 | -| `UpdatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| 1612137600 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `Object` | [OAuthApplicationObject](../../Models/Components/OAuthApplicationObject.md) | :heavy_check_mark: | N/A | oauth_application | +| `Id` | *string* | :heavy_check_mark: | N/A | oauth_app_1234 | +| `InstanceId` | *string* | :heavy_check_mark: | N/A | instance_5678 | +| `Name` | *string* | :heavy_check_mark: | N/A | Example OAuth App | +| `ClientId` | *string* | :heavy_check_mark: | N/A | client_12345 | +| `Public` | *bool* | :heavy_check_mark: | N/A | false | +| `Scopes` | *string* | :heavy_check_mark: | N/A | profile email | +| `RedirectUris` | List<*string*> | :heavy_check_mark: | N/A | | +| ~~`CallbackUrl`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | https://example.com/oauth/callback | +| `AuthorizeUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/authorize | +| `TokenFetchUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/token | +| `UserInfoUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/userinfo | +| `DiscoveryUrl` | *string* | :heavy_check_mark: | N/A | | +| `TokenIntrospectionUrl` | *string* | :heavy_check_mark: | N/A | | +| `CreatedAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| 1609459200 | +| `UpdatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| 1612137600 | \ No newline at end of file diff --git a/docs/Models/Components/OAuthApplicationWithSecret.md b/docs/Models/Components/OAuthApplicationWithSecret.md index 6910655..91059ed 100644 --- a/docs/Models/Components/OAuthApplicationWithSecret.md +++ b/docs/Models/Components/OAuthApplicationWithSecret.md @@ -3,21 +3,22 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `Object` | [OAuthApplicationWithSecretObject](../../Models/Components/OAuthApplicationWithSecretObject.md) | :heavy_check_mark: | N/A | oauth_application | -| `Id` | *string* | :heavy_check_mark: | N/A | oauth_app_1234 | -| `InstanceId` | *string* | :heavy_check_mark: | N/A | instance_5678 | -| `Name` | *string* | :heavy_check_mark: | N/A | Example OAuth App | -| `ClientId` | *string* | :heavy_check_mark: | N/A | client_12345 | -| `Public` | *bool* | :heavy_check_mark: | N/A | false | -| `Scopes` | *string* | :heavy_check_mark: | N/A | profile email | -| `CallbackUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/callback | -| `AuthorizeUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/authorize | -| `TokenFetchUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/token | -| `UserInfoUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/userinfo | -| `DiscoveryUrl` | *string* | :heavy_check_mark: | N/A | | -| `TokenIntrospectionUrl` | *string* | :heavy_check_mark: | N/A | | -| `CreatedAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| 1609459200 | -| `UpdatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| 1612137600 | -| `ClientSecret` | *string* | :heavy_minus_sign: | Empty if public client.
| secretXYZ123 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `Object` | [OAuthApplicationWithSecretObject](../../Models/Components/OAuthApplicationWithSecretObject.md) | :heavy_check_mark: | N/A | oauth_application | +| `Id` | *string* | :heavy_check_mark: | N/A | oauth_app_1234 | +| `InstanceId` | *string* | :heavy_check_mark: | N/A | instance_5678 | +| `Name` | *string* | :heavy_check_mark: | N/A | Example OAuth App | +| `ClientId` | *string* | :heavy_check_mark: | N/A | client_12345 | +| `Public` | *bool* | :heavy_check_mark: | N/A | false | +| `Scopes` | *string* | :heavy_check_mark: | N/A | profile email | +| `RedirectUris` | List<*string*> | :heavy_check_mark: | N/A | | +| ~~`CallbackUrl`~~ | *string* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | https://example.com/oauth/callback | +| `AuthorizeUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/authorize | +| `TokenFetchUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/oauth/token | +| `UserInfoUrl` | *string* | :heavy_check_mark: | N/A | https://example.com/userinfo | +| `DiscoveryUrl` | *string* | :heavy_check_mark: | N/A | | +| `TokenIntrospectionUrl` | *string* | :heavy_check_mark: | N/A | | +| `CreatedAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| 1609459200 | +| `UpdatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| 1612137600 | +| `ClientSecret` | *string* | :heavy_minus_sign: | Empty if public client.
| secretXYZ123 | \ No newline at end of file diff --git a/docs/Models/Components/Totp.md b/docs/Models/Components/Totp.md deleted file mode 100644 index 34dead1..0000000 --- a/docs/Models/Components/Totp.md +++ /dev/null @@ -1,16 +0,0 @@ -# Totp - -A TOTP (Time-based One-Time Password) - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | -| `Object` | *string* | :heavy_check_mark: | N/A | -| `Id` | *string* | :heavy_check_mark: | N/A | -| `Secret` | *string* | :heavy_check_mark: | N/A | -| `Uri` | *string* | :heavy_check_mark: | N/A | -| `Verified` | *bool* | :heavy_check_mark: | N/A | -| `BackupCodes` | List<*string*> | :heavy_minus_sign: | N/A | -| `AdditionalProperties` | Dictionary | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/Type.md b/docs/Models/Components/Type.md deleted file mode 100644 index d0762fe..0000000 --- a/docs/Models/Components/Type.md +++ /dev/null @@ -1,14 +0,0 @@ -# Type - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `OauthGoogle` | oauth_google | -| `OauthMock` | oauth_mock | -| `Saml` | saml | -| `OauthApple` | oauth_apple | -| `OauthDiscord` | oauth_discord | -| `OauthMicrosoft` | oauth_microsoft | -| `OauthGithub` | oauth_github | \ No newline at end of file diff --git a/docs/Models/Operations/CreateOAuthApplicationRequestBody.md b/docs/Models/Operations/CreateOAuthApplicationRequestBody.md index e8bcdf3..b6c4f5d 100644 --- a/docs/Models/Operations/CreateOAuthApplicationRequestBody.md +++ b/docs/Models/Operations/CreateOAuthApplicationRequestBody.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | *string* | :heavy_check_mark: | The name of the new OAuth application | Example App | -| `CallbackUrl` | *string* | :heavy_minus_sign: | The callback URL of the new OAuth application | https://example.com/oauth/callback | +| `RedirectUris` | List<*string*> | :heavy_minus_sign: | An array of redirect URIs of the new OAuth application | | +| ~~`CallbackUrl`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The callback URL of the new OAuth application | https://example.com/oauth/callback | | `Scopes` | *string* | :heavy_minus_sign: | Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. | profile email public_metadata | -| `Public` | *bool* | :heavy_minus_sign: | If true, this client is public and cannot securely store a client secret.
Only the authorization code flow with proof key for code exchange (PKCE) may be used.
Public clients cannot be updated to be confidential clients, and vice versa. | true | \ No newline at end of file +| `Public` | *bool* | :heavy_minus_sign: | If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow. | true | \ No newline at end of file diff --git a/docs/Models/Operations/CreateUserTOTPRequest.md b/docs/Models/Operations/CreateUserTOTPRequest.md deleted file mode 100644 index 004311b..0000000 --- a/docs/Models/Operations/CreateUserTOTPRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# CreateUserTOTPRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `UserId` | *string* | :heavy_check_mark: | The ID of the user for whom the TOTP is being created. | \ No newline at end of file diff --git a/docs/Models/Operations/CreateUserTOTPResponse.md b/docs/Models/Operations/CreateUserTOTPResponse.md deleted file mode 100644 index f5b8749..0000000 --- a/docs/Models/Operations/CreateUserTOTPResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreateUserTOTPResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `HttpMeta` | [HTTPMetadata](../../Models/Components/HTTPMetadata.md) | :heavy_check_mark: | N/A | -| `Totp` | [Totp](../../Models/Components/Totp.md) | :heavy_minus_sign: | A TOTP (Time-based One-Time Password) | \ No newline at end of file diff --git a/docs/Models/Operations/GetUserListRequest.md b/docs/Models/Operations/GetUserListRequest.md index d28c665..e2e2609 100644 --- a/docs/Models/Operations/GetUserListRequest.md +++ b/docs/Models/Operations/GetUserListRequest.md @@ -17,6 +17,7 @@ | `PhoneNumberQuery` | *string* | :heavy_minus_sign: | Returns users with phone numbers that match the given query, via case-insensitive partial match.
For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`. | | | `UsernameQuery` | *string* | :heavy_minus_sign: | Returns users with usernames that match the given query, via case-insensitive partial match.
For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`. | | | `NameQuery` | *string* | :heavy_minus_sign: | Returns users with names that match the given query, via case-insensitive partial match. | | +| `Banned` | *bool* | :heavy_minus_sign: | Returns users which are either banned (`banned=true`) or not banned (`banned=false`). | | | `LastActiveAtBefore` | *long* | :heavy_minus_sign: | Returns users whose last session activity was before the given date (with millisecond precision).
Example: use 1700690400000 to retrieve users whose last session activity was before 2023-11-23. | 1700690400000 | | `LastActiveAtAfter` | *long* | :heavy_minus_sign: | Returns users whose last session activity was after the given date (with millisecond precision).
Example: use 1700690400000 to retrieve users whose last session activity was after 2023-11-23. | 1700690400000 | | ~~`LastActiveAtSince`~~ | *long* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Returns users that had session activity since the given date.
Example: use 1700690400000 to retrieve users that had session activity from 2023-11-23 until the current day.
Deprecated in favor of `last_active_at_after`. | 1700690400000 | diff --git a/docs/Models/Operations/GetUsersCountRequest.md b/docs/Models/Operations/GetUsersCountRequest.md index 37cdc93..b1ba38a 100644 --- a/docs/Models/Operations/GetUsersCountRequest.md +++ b/docs/Models/Operations/GetUsersCountRequest.md @@ -14,4 +14,5 @@ | `Query` | *string* | :heavy_minus_sign: | Counts users that match the given query.
For possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user ids, first and last names.
The query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well. | John Doe | | `EmailAddressQuery` | *string* | :heavy_minus_sign: | Counts users with emails that match the given query, via case-insensitive partial match.
For example, `email_address_query=ello` will match a user with the email `HELLO@example.com`,
and will be included in the resulting count. | | | `PhoneNumberQuery` | *string* | :heavy_minus_sign: | Counts users with phone numbers that match the given query, via case-insensitive partial match.
For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`,
and will be included in the resulting count. | | -| `UsernameQuery` | *string* | :heavy_minus_sign: | Counts users with usernames that match the given query, via case-insensitive partial match.
For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`,
and will be included in the resulting count. | | \ No newline at end of file +| `UsernameQuery` | *string* | :heavy_minus_sign: | Counts users with usernames that match the given query, via case-insensitive partial match.
For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`,
and will be included in the resulting count. | | +| `Banned` | *bool* | :heavy_minus_sign: | Counts users which are either banned (`banned=true`) or not banned (`banned=false`). | | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateOAuthApplicationRequestBody.md b/docs/Models/Operations/UpdateOAuthApplicationRequestBody.md index 73409f0..3e4b83a 100644 --- a/docs/Models/Operations/UpdateOAuthApplicationRequestBody.md +++ b/docs/Models/Operations/UpdateOAuthApplicationRequestBody.md @@ -6,5 +6,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Name` | *string* | :heavy_minus_sign: | The new name of the OAuth application | Updated OAuth App Name | -| `CallbackUrl` | *string* | :heavy_minus_sign: | The new callback URL of the OAuth application | https://example.com/oauth/callback | -| `Scopes` | *string* | :heavy_minus_sign: | Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. | profile email public_metadata private_metadata | \ No newline at end of file +| `RedirectUris` | List<*string*> | :heavy_minus_sign: | An array of redirect URIs of the new OAuth application | | +| ~~`CallbackUrl`~~ | *string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The new callback URL of the OAuth application | https://example.com/oauth/callback | +| `Scopes` | *string* | :heavy_minus_sign: | Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. | profile email public_metadata private_metadata | +| `Public` | *bool* | :heavy_minus_sign: | If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow. | | \ No newline at end of file diff --git a/docs/sdks/actortokens/README.md b/docs/sdks/actortokens/README.md index b016127..a3e9194 100644 --- a/docs/sdks/actortokens/README.md +++ b/docs/sdks/actortokens/README.md @@ -25,8 +25,6 @@ var sdk = new ClerkBackendApi(bearerAuth: ""); CreateActorTokenRequestBody req = new CreateActorTokenRequestBody() { UserId = "user_1a2b3c", Actor = new Models.Operations.Actor() {}, - ExpiresInSeconds = 3600, - SessionMaxDurationInSeconds = 1800, }; var res = await sdk.ActorTokens.CreateAsync(req); diff --git a/docs/sdks/allowlistidentifiers/README.md b/docs/sdks/allowlistidentifiers/README.md index c0d422a..4f29ff4 100644 --- a/docs/sdks/allowlistidentifiers/README.md +++ b/docs/sdks/allowlistidentifiers/README.md @@ -52,7 +52,6 @@ var sdk = new ClerkBackendApi(bearerAuth: ""); CreateAllowlistIdentifierRequestBody req = new CreateAllowlistIdentifierRequestBody() { Identifier = "user@example.com", - Notify = true, }; var res = await sdk.AllowlistIdentifiers.CreateAsync(req); diff --git a/docs/sdks/betafeatures/README.md b/docs/sdks/betafeatures/README.md index 9b92894..cee0836 100644 --- a/docs/sdks/betafeatures/README.md +++ b/docs/sdks/betafeatures/README.md @@ -23,7 +23,6 @@ using Clerk.BackendAPI.Models.Operations; var sdk = new ClerkBackendApi(bearerAuth: ""); UpdateInstanceAuthConfigRequestBody req = new UpdateInstanceAuthConfigRequestBody() { - RestrictedToAllowlist = false, FromEmailAddress = "noreply", ProgressiveSignUp = true, SessionTokenTemplate = "defaultSessionToken", diff --git a/docs/sdks/invitations/README.md b/docs/sdks/invitations/README.md index 7c93702..1bca273 100644 --- a/docs/sdks/invitations/README.md +++ b/docs/sdks/invitations/README.md @@ -35,8 +35,6 @@ CreateInvitationRequestBody req = new CreateInvitationRequestBody() { }, RedirectUrl = "https://example.com/welcome", - Notify = true, - IgnoreExisting = true, }; var res = await sdk.Invitations.CreateAsync(req); diff --git a/docs/sdks/oauthapplications/README.md b/docs/sdks/oauthapplications/README.md index 386907c..932c572 100644 --- a/docs/sdks/oauthapplications/README.md +++ b/docs/sdks/oauthapplications/README.md @@ -70,8 +70,6 @@ var sdk = new ClerkBackendApi(bearerAuth: ""); CreateOAuthApplicationRequestBody req = new CreateOAuthApplicationRequestBody() { Name = "Example App", - CallbackUrl = "https://example.com/oauth/callback", - Scopes = "profile email public_metadata", Public = true, }; @@ -148,8 +146,6 @@ var res = await sdk.OauthApplications.UpdateAsync( oauthApplicationId: "oauth_app_67890", requestBody: new UpdateOAuthApplicationRequestBody() { Name = "Updated OAuth App Name", - CallbackUrl = "https://example.com/oauth/callback", - Scopes = "profile email public_metadata private_metadata", } ); @@ -171,7 +167,7 @@ var res = await sdk.OauthApplications.UpdateAsync( | Error Type | Status Code | Content Type | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| Clerk.BackendAPI.Models.Errors.ClerkErrors | 403, 404, 422 | application/json | +| Clerk.BackendAPI.Models.Errors.ClerkErrors | 400, 403, 404, 422 | application/json | | Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | \*/\* | ## Delete diff --git a/docs/sdks/organizationdomains/README.md b/docs/sdks/organizationdomains/README.md index 67343e9..630e3a5 100644 --- a/docs/sdks/organizationdomains/README.md +++ b/docs/sdks/organizationdomains/README.md @@ -63,8 +63,6 @@ var sdk = new ClerkBackendApi(bearerAuth: ""); ListOrganizationDomainsRequest req = new ListOrganizationDomainsRequest() { OrganizationId = "", - Limit = 20, - Offset = 10, }; var res = await sdk.OrganizationDomains.ListAsync(req); diff --git a/docs/sdks/organizationinvitations/README.md b/docs/sdks/organizationinvitations/README.md index 866b960..fd16af4 100644 --- a/docs/sdks/organizationinvitations/README.md +++ b/docs/sdks/organizationinvitations/README.md @@ -31,10 +31,7 @@ using Clerk.BackendAPI.Models.Operations; var sdk = new ClerkBackendApi(bearerAuth: ""); -ListInstanceOrganizationInvitationsRequest req = new ListInstanceOrganizationInvitationsRequest() { - Limit = 20, - Offset = 10, -}; +ListInstanceOrganizationInvitationsRequest req = new ListInstanceOrganizationInvitationsRequest() {}; var res = await sdk.OrganizationInvitations.ListForInstanceAsync(req); diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index aef624f..f475d5a 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -34,11 +34,8 @@ using Clerk.BackendAPI.Models.Operations; var sdk = new ClerkBackendApi(bearerAuth: ""); ListOrganizationsRequest req = new ListOrganizationsRequest() { - Limit = 20, - Offset = 10, IncludeMembersCount = false, Query = "clerk", - OrderBy = "-name", }; var res = await sdk.Organizations.ListAsync(req); diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index d8785c6..67eed77 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -38,8 +38,6 @@ GetSessionListRequest req = new GetSessionListRequest() { ClientId = "client_123", UserId = "user_456", Status = Status.Active, - Limit = 20, - Offset = 10, }; var res = await sdk.Sessions.ListAsync(req); diff --git a/docs/sdks/signintokens/README.md b/docs/sdks/signintokens/README.md index b074eda..091d098 100644 --- a/docs/sdks/signintokens/README.md +++ b/docs/sdks/signintokens/README.md @@ -25,7 +25,6 @@ var sdk = new ClerkBackendApi(bearerAuth: ""); CreateSignInTokenRequestBody req = new CreateSignInTokenRequestBody() { UserId = "user_12345", - ExpiresInSeconds = 2592000, }; var res = await sdk.SignInTokens.CreateAsync(req); diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 8ee4840..66e8306 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -29,7 +29,6 @@ The user object represents a user that has successfully signed up to your applic * [DisableMfa](#disablemfa) - Disable a user's MFA methods * [DeleteBackupCode](#deletebackupcode) - Disable all user's Backup codes * [DeletePasskey](#deletepasskey) - Delete a user passkey -* [CreateTotp](#createtotp) - Create a TOTP for a user * [DeleteTOTP](#deletetotp) - Delete all the user's TOTPs * [DeleteExternalAccount](#deleteexternalaccount) - Delete External Account @@ -75,8 +74,6 @@ GetUserListRequest req = new GetUserListRequest() { LastActiveAtAfter = 1700690400000, CreatedAtBefore = 1730160000000, CreatedAtAfter = 1730160000000, - Limit = 20, - Offset = 10, }; var res = await sdk.Users.ListAsync(req); @@ -304,7 +301,6 @@ var res = await sdk.Users.UpdateAsync( FirstName = "Jane", LastName = "Doe", PrimaryEmailAddressId = "eml_12345", - NotifyPrimaryEmailAddressChanged = true, PrimaryPhoneNumberId = "phn_67890", PrimaryWeb3WalletId = "wlt_123", Username = "janedoe", @@ -961,42 +957,6 @@ var res = await sdk.Users.DeletePasskeyAsync( | Clerk.BackendAPI.Models.Errors.ClerkErrors | 500 | application/json | | Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | \*/\* | -## CreateTotp - -Creates a TOTP (Time-based One-Time Password) for a given user, returning both the TOTP secret and the URI. - - -### Example Usage - -```csharp -using Clerk.BackendAPI; -using Clerk.BackendAPI.Models.Components; - -var sdk = new ClerkBackendApi(bearerAuth: ""); - -var res = await sdk.Users.CreateTotpAsync(userId: ""); - -// handle response -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `UserId` | *string* | :heavy_check_mark: | The ID of the user for whom the TOTP is being created. | - -### Response - -**[CreateUserTOTPResponse](../../Models/Operations/CreateUserTOTPResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| Clerk.BackendAPI.Models.Errors.ClerkErrors | 403, 404 | application/json | -| Clerk.BackendAPI.Models.Errors.ClerkErrors | 500 | application/json | -| Clerk.BackendAPI.Models.Errors.SDKError | 4XX, 5XX | \*/\* | - ## DeleteTOTP Deletes all of the user's TOTPs. diff --git a/docs/sdks/waitlistentries/README.md b/docs/sdks/waitlistentries/README.md index e93b18e..d896bbd 100644 --- a/docs/sdks/waitlistentries/README.md +++ b/docs/sdks/waitlistentries/README.md @@ -23,10 +23,7 @@ using Clerk.BackendAPI.Models.Operations; var sdk = new ClerkBackendApi(bearerAuth: ""); -ListWaitlistEntriesRequest req = new ListWaitlistEntriesRequest() { - Limit = 20, - Offset = 10, -}; +ListWaitlistEntriesRequest req = new ListWaitlistEntriesRequest() {}; var res = await sdk.WaitlistEntries.ListWaitlistEntriesAsync(req); diff --git a/src/Clerk/BackendAPI/ActorTokens.cs b/src/Clerk/BackendAPI/ActorTokens.cs index 5029359..1a316ba 100644 --- a/src/Clerk/BackendAPI/ActorTokens.cs +++ b/src/Clerk/BackendAPI/ActorTokens.cs @@ -49,10 +49,10 @@ public class ActorTokens: IActorTokens { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/AllowBlockList.cs b/src/Clerk/BackendAPI/AllowBlockList.cs index 79e918d..45bce39 100644 --- a/src/Clerk/BackendAPI/AllowBlockList.cs +++ b/src/Clerk/BackendAPI/AllowBlockList.cs @@ -39,10 +39,10 @@ public class AllowBlockList: IAllowBlockList { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/AllowListBlockList.cs b/src/Clerk/BackendAPI/AllowListBlockList.cs index f1d5c6e..d086ff6 100644 --- a/src/Clerk/BackendAPI/AllowListBlockList.cs +++ b/src/Clerk/BackendAPI/AllowListBlockList.cs @@ -38,10 +38,10 @@ public class AllowListBlockList: IAllowListBlockList { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/AllowlistIdentifiers.cs b/src/Clerk/BackendAPI/AllowlistIdentifiers.cs index bae162e..3ceaa93 100644 --- a/src/Clerk/BackendAPI/AllowlistIdentifiers.cs +++ b/src/Clerk/BackendAPI/AllowlistIdentifiers.cs @@ -57,10 +57,10 @@ public class AllowlistIdentifiers: IAllowlistIdentifiers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/BetaFeatures.cs b/src/Clerk/BackendAPI/BetaFeatures.cs index f1e068a..6104938 100644 --- a/src/Clerk/BackendAPI/BetaFeatures.cs +++ b/src/Clerk/BackendAPI/BetaFeatures.cs @@ -65,10 +65,10 @@ public class BetaFeatures: IBetaFeatures { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/BlocklistIdentifiers.cs b/src/Clerk/BackendAPI/BlocklistIdentifiers.cs index dd52ef8..176460a 100644 --- a/src/Clerk/BackendAPI/BlocklistIdentifiers.cs +++ b/src/Clerk/BackendAPI/BlocklistIdentifiers.cs @@ -39,10 +39,10 @@ public class BlocklistIdentifiers: IBlocklistIdentifiers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Clerk.BackendAPI.csproj b/src/Clerk/BackendAPI/Clerk.BackendAPI.csproj index cf82590..2c4677e 100644 --- a/src/Clerk/BackendAPI/Clerk.BackendAPI.csproj +++ b/src/Clerk/BackendAPI/Clerk.BackendAPI.csproj @@ -3,7 +3,7 @@ true Clerk.BackendAPI - 0.3.0 + 0.4.0 net8.0 Clerk Copyright (c) Clerk 2025 diff --git a/src/Clerk/BackendAPI/ClerkBackendApi.cs b/src/Clerk/BackendAPI/ClerkBackendApi.cs index f224e66..165efd2 100644 --- a/src/Clerk/BackendAPI/ClerkBackendApi.cs +++ b/src/Clerk/BackendAPI/ClerkBackendApi.cs @@ -181,10 +181,10 @@ public class ClerkBackendApi: IClerkBackendApi public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; diff --git a/src/Clerk/BackendAPI/Clients.cs b/src/Clerk/BackendAPI/Clients.cs index 650f291..e6c1221 100644 --- a/src/Clerk/BackendAPI/Clients.cs +++ b/src/Clerk/BackendAPI/Clients.cs @@ -69,10 +69,10 @@ public class Clients: IClients { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Domains.cs b/src/Clerk/BackendAPI/Domains.cs index 4dc2d9d..7c07e6d 100644 --- a/src/Clerk/BackendAPI/Domains.cs +++ b/src/Clerk/BackendAPI/Domains.cs @@ -85,10 +85,10 @@ public class Domains: IDomains { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/EmailAddresses.cs b/src/Clerk/BackendAPI/EmailAddresses.cs index c26a3e0..811b434 100644 --- a/src/Clerk/BackendAPI/EmailAddresses.cs +++ b/src/Clerk/BackendAPI/EmailAddresses.cs @@ -66,10 +66,10 @@ public class EmailAddresses: IEmailAddresses { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/EmailAndSmsTemplates.cs b/src/Clerk/BackendAPI/EmailAndSmsTemplates.cs index b607bb5..ef29211 100644 --- a/src/Clerk/BackendAPI/EmailAndSmsTemplates.cs +++ b/src/Clerk/BackendAPI/EmailAndSmsTemplates.cs @@ -57,10 +57,10 @@ public class EmailAndSmsTemplates: IEmailAndSmsTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/EmailSmsTemplates.cs b/src/Clerk/BackendAPI/EmailSmsTemplates.cs index 2554137..45b66d7 100644 --- a/src/Clerk/BackendAPI/EmailSmsTemplates.cs +++ b/src/Clerk/BackendAPI/EmailSmsTemplates.cs @@ -60,10 +60,10 @@ public class EmailSmsTemplates: IEmailSmsTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/InstanceSettings.cs b/src/Clerk/BackendAPI/InstanceSettings.cs index 13b8adb..930e8d1 100644 --- a/src/Clerk/BackendAPI/InstanceSettings.cs +++ b/src/Clerk/BackendAPI/InstanceSettings.cs @@ -66,10 +66,10 @@ public class InstanceSettings: IInstanceSettings { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Invitations.cs b/src/Clerk/BackendAPI/Invitations.cs index 2e3788f..e5f7029 100644 --- a/src/Clerk/BackendAPI/Invitations.cs +++ b/src/Clerk/BackendAPI/Invitations.cs @@ -84,10 +84,10 @@ public class Invitations: IInvitations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Jwks.cs b/src/Clerk/BackendAPI/Jwks.cs index 322ad76..f1404df 100644 --- a/src/Clerk/BackendAPI/Jwks.cs +++ b/src/Clerk/BackendAPI/Jwks.cs @@ -38,10 +38,10 @@ public class Jwks: IJwks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/JwtTemplates.cs b/src/Clerk/BackendAPI/JwtTemplates.cs index eab4f91..3e54693 100644 --- a/src/Clerk/BackendAPI/JwtTemplates.cs +++ b/src/Clerk/BackendAPI/JwtTemplates.cs @@ -67,10 +67,10 @@ public class JwtTemplates: IJwtTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Miscellaneous.cs b/src/Clerk/BackendAPI/Miscellaneous.cs index 51e0996..f3a76fa 100644 --- a/src/Clerk/BackendAPI/Miscellaneous.cs +++ b/src/Clerk/BackendAPI/Miscellaneous.cs @@ -45,10 +45,10 @@ public class Miscellaneous: IMiscellaneous { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Models/Components/IdentificationLink.cs b/src/Clerk/BackendAPI/Models/Components/IdentificationLink.cs index 893aea7..4da1e10 100644 --- a/src/Clerk/BackendAPI/Models/Components/IdentificationLink.cs +++ b/src/Clerk/BackendAPI/Models/Components/IdentificationLink.cs @@ -9,7 +9,6 @@ #nullable enable namespace Clerk.BackendAPI.Models.Components { - using Clerk.BackendAPI.Models.Components; using Clerk.BackendAPI.Utils; using Newtonsoft.Json; @@ -17,7 +16,7 @@ public class IdentificationLink { [JsonProperty("type")] - public Models.Components.Type Type { get; set; } = default!; + public string Type { get; set; } = default!; [JsonProperty("id")] public string Id { get; set; } = default!; diff --git a/src/Clerk/BackendAPI/Models/Components/OAuthApplication.cs b/src/Clerk/BackendAPI/Models/Components/OAuthApplication.cs index fa200cb..e6d25b7 100644 --- a/src/Clerk/BackendAPI/Models/Components/OAuthApplication.cs +++ b/src/Clerk/BackendAPI/Models/Components/OAuthApplication.cs @@ -12,6 +12,8 @@ namespace Clerk.BackendAPI.Models.Components using Clerk.BackendAPI.Models.Components; using Clerk.BackendAPI.Utils; using Newtonsoft.Json; + using System; + using System.Collections.Generic; public class OAuthApplication { @@ -37,6 +39,10 @@ public class OAuthApplication [JsonProperty("scopes")] public string Scopes { get; set; } = default!; + [JsonProperty("redirect_uris")] + public List RedirectUris { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [JsonProperty("callback_url")] public string CallbackUrl { get; set; } = default!; diff --git a/src/Clerk/BackendAPI/Models/Components/OAuthApplicationWithSecret.cs b/src/Clerk/BackendAPI/Models/Components/OAuthApplicationWithSecret.cs index c4c2d09..20c0845 100644 --- a/src/Clerk/BackendAPI/Models/Components/OAuthApplicationWithSecret.cs +++ b/src/Clerk/BackendAPI/Models/Components/OAuthApplicationWithSecret.cs @@ -12,6 +12,8 @@ namespace Clerk.BackendAPI.Models.Components using Clerk.BackendAPI.Models.Components; using Clerk.BackendAPI.Utils; using Newtonsoft.Json; + using System; + using System.Collections.Generic; public class OAuthApplicationWithSecret { @@ -37,6 +39,10 @@ public class OAuthApplicationWithSecret [JsonProperty("scopes")] public string Scopes { get; set; } = default!; + [JsonProperty("redirect_uris")] + public List RedirectUris { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [JsonProperty("callback_url")] public string CallbackUrl { get; set; } = default!; diff --git a/src/Clerk/BackendAPI/Models/Components/Totp.cs b/src/Clerk/BackendAPI/Models/Components/Totp.cs deleted file mode 100644 index d13b730..0000000 --- a/src/Clerk/BackendAPI/Models/Components/Totp.cs +++ /dev/null @@ -1,43 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Clerk.BackendAPI.Models.Components -{ - using Clerk.BackendAPI.Utils; - using Newtonsoft.Json; - using System.Collections.Generic; - - /// - /// A TOTP (Time-based One-Time Password) - /// - public class Totp - { - - [JsonProperty("object")] - public string Object { get; set; } = default!; - - [JsonProperty("id")] - public string Id { get; set; } = default!; - - [JsonProperty("secret", NullValueHandling = NullValueHandling.Include)] - public string? Secret { get; set; } - - [JsonProperty("uri", NullValueHandling = NullValueHandling.Include)] - public string? Uri { get; set; } - - [JsonProperty("verified")] - public bool Verified { get; set; } = default!; - - [JsonProperty("backup_codes")] - public List? BackupCodes { get; set; } = null; - - [JsonProperty("additionalProperties")] - public Dictionary? AdditionalProperties { get; set; } - } -} \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Components/Type.cs b/src/Clerk/BackendAPI/Models/Components/Type.cs deleted file mode 100644 index 6644469..0000000 --- a/src/Clerk/BackendAPI/Models/Components/Type.cs +++ /dev/null @@ -1,67 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Clerk.BackendAPI.Models.Components -{ - using Clerk.BackendAPI.Utils; - using Newtonsoft.Json; - using System; - - public enum Type - { - [JsonProperty("oauth_google")] - OauthGoogle, - [JsonProperty("oauth_mock")] - OauthMock, - [JsonProperty("saml")] - Saml, - [JsonProperty("oauth_apple")] - OauthApple, - [JsonProperty("oauth_discord")] - OauthDiscord, - [JsonProperty("oauth_microsoft")] - OauthMicrosoft, - [JsonProperty("oauth_github")] - OauthGithub, - } - - public static class TypeExtension - { - public static string Value(this Type value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static Type ToEnum(this string value) - { - foreach(var field in typeof(Type).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - var enumVal = field.GetValue(null); - - if (enumVal is Type) - { - return (Type)enumVal; - } - } - } - - throw new Exception($"Unknown value {value} for enum Type"); - } - } - -} \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Operations/CreateOAuthApplicationRequestBody.cs b/src/Clerk/BackendAPI/Models/Operations/CreateOAuthApplicationRequestBody.cs index 4f5f078..86210eb 100644 --- a/src/Clerk/BackendAPI/Models/Operations/CreateOAuthApplicationRequestBody.cs +++ b/src/Clerk/BackendAPI/Models/Operations/CreateOAuthApplicationRequestBody.cs @@ -11,6 +11,8 @@ namespace Clerk.BackendAPI.Models.Operations { using Clerk.BackendAPI.Utils; using Newtonsoft.Json; + using System; + using System.Collections.Generic; public class CreateOAuthApplicationRequestBody { @@ -21,11 +23,18 @@ public class CreateOAuthApplicationRequestBody [JsonProperty("name")] public string Name { get; set; } = default!; + /// + /// An array of redirect URIs of the new OAuth application + /// + [JsonProperty("redirect_uris")] + public List? RedirectUris { get; set; } = null; + /// /// The callback URL of the new OAuth application /// + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [JsonProperty("callback_url")] - public string? CallbackUrl { get; set; } + public string? CallbackUrl { get; set; } = null; /// /// Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. @@ -34,14 +43,9 @@ public class CreateOAuthApplicationRequestBody public string? Scopes { get; set; } = "profile email"; /// - /// If true, this client is public and cannot securely store a client secret.
- /// - /// - /// Only the authorization code flow with proof key for code exchange (PKCE) may be used.
- /// Public clients cannot be updated to be confidential clients, and vice versa. - ///
+ /// If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow. ///
[JsonProperty("public")] - public bool? Public { get; set; } + public bool? Public { get; set; } = null; } } \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPRequest.cs b/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPRequest.cs deleted file mode 100644 index ad19ea3..0000000 --- a/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPRequest.cs +++ /dev/null @@ -1,23 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Clerk.BackendAPI.Models.Operations -{ - using Clerk.BackendAPI.Utils; - - public class CreateUserTOTPRequest - { - - /// - /// The ID of the user for whom the TOTP is being created. - /// - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=user_id")] - public string UserId { get; set; } = default!; - } -} \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPResponse.cs b/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPResponse.cs deleted file mode 100644 index ac82685..0000000 --- a/src/Clerk/BackendAPI/Models/Operations/CreateUserTOTPResponse.cs +++ /dev/null @@ -1,27 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Clerk.BackendAPI.Models.Operations -{ - using Clerk.BackendAPI.Models.Components; - using Clerk.BackendAPI.Utils; - using Newtonsoft.Json; - - public class CreateUserTOTPResponse - { - - [JsonProperty("-")] - public HTTPMetadata HttpMeta { get; set; } = default!; - - /// - /// A TOTP (Time-based One-Time Password) - /// - public Totp? Totp { get; set; } - } -} \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Operations/GetUserListRequest.cs b/src/Clerk/BackendAPI/Models/Operations/GetUserListRequest.cs index 50edd46..c8f337e 100644 --- a/src/Clerk/BackendAPI/Models/Operations/GetUserListRequest.cs +++ b/src/Clerk/BackendAPI/Models/Operations/GetUserListRequest.cs @@ -152,6 +152,12 @@ public class GetUserListRequest [SpeakeasyMetadata("queryParam:style=form,explode=true,name=name_query")] public string? NameQuery { get; set; } + /// + /// Returns users which are either banned (`banned=true`) or not banned (`banned=false`). + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=banned")] + public bool? Banned { get; set; } + /// /// Returns users whose last session activity was before the given date (with millisecond precision).
/// diff --git a/src/Clerk/BackendAPI/Models/Operations/GetUsersCountRequest.cs b/src/Clerk/BackendAPI/Models/Operations/GetUsersCountRequest.cs index 28fe411..ccc14f0 100644 --- a/src/Clerk/BackendAPI/Models/Operations/GetUsersCountRequest.cs +++ b/src/Clerk/BackendAPI/Models/Operations/GetUsersCountRequest.cs @@ -124,5 +124,11 @@ public class GetUsersCountRequest ///
[SpeakeasyMetadata("queryParam:style=form,explode=true,name=username_query")] public string? UsernameQuery { get; set; } + + /// + /// Counts users which are either banned (`banned=true`) or not banned (`banned=false`). + /// + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=banned")] + public bool? Banned { get; set; } } } \ No newline at end of file diff --git a/src/Clerk/BackendAPI/Models/Operations/UpdateOAuthApplicationRequestBody.cs b/src/Clerk/BackendAPI/Models/Operations/UpdateOAuthApplicationRequestBody.cs index f1e0062..cd9af34 100644 --- a/src/Clerk/BackendAPI/Models/Operations/UpdateOAuthApplicationRequestBody.cs +++ b/src/Clerk/BackendAPI/Models/Operations/UpdateOAuthApplicationRequestBody.cs @@ -11,6 +11,8 @@ namespace Clerk.BackendAPI.Models.Operations { using Clerk.BackendAPI.Utils; using Newtonsoft.Json; + using System; + using System.Collections.Generic; public class UpdateOAuthApplicationRequestBody { @@ -19,18 +21,31 @@ public class UpdateOAuthApplicationRequestBody /// The new name of the OAuth application ///
[JsonProperty("name")] - public string? Name { get; set; } + public string? Name { get; set; } = null; + + /// + /// An array of redirect URIs of the new OAuth application + /// + [JsonProperty("redirect_uris")] + public List? RedirectUris { get; set; } = null; /// /// The new callback URL of the OAuth application /// + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [JsonProperty("callback_url")] - public string? CallbackUrl { get; set; } + public string? CallbackUrl { get; set; } = null; /// /// Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. /// [JsonProperty("scopes")] public string? Scopes { get; set; } = "profile email"; + + /// + /// If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow. + /// + [JsonProperty("public")] + public bool? Public { get; set; } } } \ No newline at end of file diff --git a/src/Clerk/BackendAPI/OauthApplications.cs b/src/Clerk/BackendAPI/OauthApplications.cs index 26c02b7..87000d1 100644 --- a/src/Clerk/BackendAPI/OauthApplications.cs +++ b/src/Clerk/BackendAPI/OauthApplications.cs @@ -91,10 +91,10 @@ public class OauthApplications: IOauthApplications { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -427,7 +427,7 @@ public async Task UpdateAsync(string oauthApplic httpResponse = await _client.SendAsync(httpRequest); int _statusCode = (int)httpResponse.StatusCode; - if (_statusCode == 403 || _statusCode == 404 || _statusCode == 422 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) + if (_statusCode == 400 || _statusCode == 403 || _statusCode == 404 || _statusCode == 422 || _statusCode >= 400 && _statusCode < 500 || _statusCode >= 500 && _statusCode < 600) { var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); if (_httpResponse != null) @@ -472,7 +472,7 @@ public async Task UpdateAsync(string oauthApplic throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); } - else if(new List{403, 404, 422}.Contains(responseStatusCode)) + else if(new List{400, 403, 404, 422}.Contains(responseStatusCode)) { if(Utilities.IsContentTypeMatch("application/json", contentType)) { diff --git a/src/Clerk/BackendAPI/OrganizationDomain.cs b/src/Clerk/BackendAPI/OrganizationDomain.cs index 62d5483..2f2ea63 100644 --- a/src/Clerk/BackendAPI/OrganizationDomain.cs +++ b/src/Clerk/BackendAPI/OrganizationDomain.cs @@ -39,10 +39,10 @@ public class OrganizationDomain: IOrganizationDomain { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/OrganizationDomains.cs b/src/Clerk/BackendAPI/OrganizationDomains.cs index 77ffec7..188df30 100644 --- a/src/Clerk/BackendAPI/OrganizationDomains.cs +++ b/src/Clerk/BackendAPI/OrganizationDomains.cs @@ -57,10 +57,10 @@ public class OrganizationDomains: IOrganizationDomains { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/OrganizationInvitations.cs b/src/Clerk/BackendAPI/OrganizationInvitations.cs index 844d0e5..c9d0460 100644 --- a/src/Clerk/BackendAPI/OrganizationInvitations.cs +++ b/src/Clerk/BackendAPI/OrganizationInvitations.cs @@ -139,10 +139,10 @@ public class OrganizationInvitations: IOrganizationInvitations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/OrganizationMemberships.cs b/src/Clerk/BackendAPI/OrganizationMemberships.cs index b8a49e0..5188bef 100644 --- a/src/Clerk/BackendAPI/OrganizationMemberships.cs +++ b/src/Clerk/BackendAPI/OrganizationMemberships.cs @@ -86,10 +86,10 @@ public class OrganizationMemberships: IOrganizationMemberships { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Organizations.cs b/src/Clerk/BackendAPI/Organizations.cs index 1fd9c96..01db83c 100644 --- a/src/Clerk/BackendAPI/Organizations.cs +++ b/src/Clerk/BackendAPI/Organizations.cs @@ -128,10 +128,10 @@ public class Organizations: IOrganizations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/PhoneNumbers.cs b/src/Clerk/BackendAPI/PhoneNumbers.cs index 2f0b2eb..5eb43e1 100644 --- a/src/Clerk/BackendAPI/PhoneNumbers.cs +++ b/src/Clerk/BackendAPI/PhoneNumbers.cs @@ -66,10 +66,10 @@ public class PhoneNumbers: IPhoneNumbers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/ProxyChecks.cs b/src/Clerk/BackendAPI/ProxyChecks.cs index c067399..13da29b 100644 --- a/src/Clerk/BackendAPI/ProxyChecks.cs +++ b/src/Clerk/BackendAPI/ProxyChecks.cs @@ -46,10 +46,10 @@ public class ProxyChecks: IProxyChecks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/RedirectUrls.cs b/src/Clerk/BackendAPI/RedirectUrls.cs index 2484f37..85bbeaa 100644 --- a/src/Clerk/BackendAPI/RedirectUrls.cs +++ b/src/Clerk/BackendAPI/RedirectUrls.cs @@ -66,10 +66,10 @@ public class RedirectUrls: IRedirectUrls { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/SamlConnections.cs b/src/Clerk/BackendAPI/SamlConnections.cs index bea3221..0876154 100644 --- a/src/Clerk/BackendAPI/SamlConnections.cs +++ b/src/Clerk/BackendAPI/SamlConnections.cs @@ -77,10 +77,10 @@ public class SamlConnections: ISamlConnections { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Sessions.cs b/src/Clerk/BackendAPI/Sessions.cs index 5b5ea46..0e3ffb9 100644 --- a/src/Clerk/BackendAPI/Sessions.cs +++ b/src/Clerk/BackendAPI/Sessions.cs @@ -122,10 +122,10 @@ public class Sessions: ISessions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/SignInTokens.cs b/src/Clerk/BackendAPI/SignInTokens.cs index 1c2cb85..fc239fd 100644 --- a/src/Clerk/BackendAPI/SignInTokens.cs +++ b/src/Clerk/BackendAPI/SignInTokens.cs @@ -50,10 +50,10 @@ public class SignInTokens: ISignInTokens { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/SignUps.cs b/src/Clerk/BackendAPI/SignUps.cs index 040307c..9c4864e 100644 --- a/src/Clerk/BackendAPI/SignUps.cs +++ b/src/Clerk/BackendAPI/SignUps.cs @@ -39,10 +39,10 @@ public class SignUps: ISignUps { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/TestingTokens.cs b/src/Clerk/BackendAPI/TestingTokens.cs index ffae124..17c4e55 100644 --- a/src/Clerk/BackendAPI/TestingTokens.cs +++ b/src/Clerk/BackendAPI/TestingTokens.cs @@ -38,10 +38,10 @@ public class TestingTokens: ITestingTokens { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/UserWeb3Wallets.cs b/src/Clerk/BackendAPI/UserWeb3Wallets.cs index 881e85c..d936e65 100644 --- a/src/Clerk/BackendAPI/UserWeb3Wallets.cs +++ b/src/Clerk/BackendAPI/UserWeb3Wallets.cs @@ -39,10 +39,10 @@ public class UserWeb3Wallets: IUserWeb3Wallets { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Users.cs b/src/Clerk/BackendAPI/Users.cs index d4bcbf9..0f1eac4 100644 --- a/src/Clerk/BackendAPI/Users.cs +++ b/src/Clerk/BackendAPI/Users.cs @@ -250,16 +250,6 @@ public interface IUsers /// Task DeletePasskeyAsync(string userId, string passkeyIdentificationId); - /// - /// Create a TOTP for a user - /// - /// - /// Creates a TOTP (Time-based One-Time Password) for a given user, returning both the TOTP secret and the URI.
- /// - ///
- ///
- Task CreateTotpAsync(string userId); - /// /// Delete all the user's TOTPs /// @@ -288,10 +278,10 @@ public class Users: IUsers { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -1909,10 +1899,6 @@ public async Task VerifyPasswordAsync(string userId, Ver throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode == 404 || responseStatusCode == 422 || responseStatusCode >= 400 && responseStatusCode < 500) - { - throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); - } else if(responseStatusCode == 500) { if(Utilities.IsContentTypeMatch("application/json", contentType)) @@ -1923,6 +1909,10 @@ public async Task VerifyPasswordAsync(string userId, Ver throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); } + else if(responseStatusCode == 400 || responseStatusCode == 404 || responseStatusCode == 422 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); + } else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); @@ -2010,10 +2000,6 @@ public async Task VerifyTotpAsync(string userId, VerifyTOTPR throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode == 404 || responseStatusCode == 422 || responseStatusCode >= 400 && responseStatusCode < 500) - { - throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); - } else if(responseStatusCode == 500) { if(Utilities.IsContentTypeMatch("application/json", contentType)) @@ -2024,6 +2010,10 @@ public async Task VerifyTotpAsync(string userId, VerifyTOTPR throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); } + else if(responseStatusCode == 400 || responseStatusCode == 404 || responseStatusCode == 422 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); + } else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); @@ -2345,110 +2335,6 @@ public async Task DeletePasskeyAsync(string userId, s throw new Models.Errors.SDKError("Unknown status code received", httpRequest, httpResponse); } - public async Task CreateTotpAsync(string userId) - { - var request = new CreateUserTOTPRequest() - { - UserId = userId, - }; - string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl(); - var urlString = URLBuilder.Build(baseUrl, "/users/{user_id}/totp", request); - - var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString); - httpRequest.Headers.Add("user-agent", _userAgent); - - if (_securitySource != null) - { - httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest); - } - - var hookCtx = new HookContext("CreateUserTOTP", null, _securitySource); - - httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest); - - HttpResponseMessage httpResponse; - try - { - httpResponse = await _client.SendAsync(httpRequest); - int _statusCode = (int)httpResponse.StatusCode; - - if (_statusCode == 403 || _statusCode == 404 || _statusCode >= 400 && _statusCode < 500 || _statusCode == 500 || _statusCode >= 500 && _statusCode < 600) - { - var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null); - if (_httpResponse != null) - { - httpResponse = _httpResponse; - } - } - } - catch (Exception error) - { - var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error); - if (_httpResponse != null) - { - httpResponse = _httpResponse; - } - else - { - throw; - } - } - - httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse); - - var contentType = httpResponse.Content.Headers.ContentType?.MediaType; - int responseStatusCode = (int)httpResponse.StatusCode; - if(responseStatusCode == 200) - { - if(Utilities.IsContentTypeMatch("application/json", contentType)) - { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - var response = new CreateUserTOTPResponse() - { - HttpMeta = new Models.Components.HTTPMetadata() - { - Response = httpResponse, - Request = httpRequest - } - }; - response.Totp = obj; - return response; - } - - throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); - } - else if(new List{403, 404}.Contains(responseStatusCode)) - { - if(Utilities.IsContentTypeMatch("application/json", contentType)) - { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - throw obj!; - } - - throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); - } - else if(responseStatusCode == 500) - { - if(Utilities.IsContentTypeMatch("application/json", contentType)) - { - var obj = ResponseBodyDeserializer.Deserialize(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore); - throw obj!; - } - - throw new Models.Errors.SDKError("Unknown content type received", httpRequest, httpResponse); - } - else if(responseStatusCode >= 400 && responseStatusCode < 500) - { - throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); - } - else if(responseStatusCode >= 500 && responseStatusCode < 600) - { - throw new Models.Errors.SDKError("API error occurred", httpRequest, httpResponse); - } - - throw new Models.Errors.SDKError("Unknown status code received", httpRequest, httpResponse); - } - public async Task DeleteTOTPAsync(string userId) { var request = new DeleteTOTPRequest() diff --git a/src/Clerk/BackendAPI/WaitlistEntries.cs b/src/Clerk/BackendAPI/WaitlistEntries.cs index aca04ee..a2ae036 100644 --- a/src/Clerk/BackendAPI/WaitlistEntries.cs +++ b/src/Clerk/BackendAPI/WaitlistEntries.cs @@ -51,10 +51,10 @@ public class WaitlistEntries: IWaitlistEntries { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/src/Clerk/BackendAPI/Webhooks.cs b/src/Clerk/BackendAPI/Webhooks.cs index 0e41497..90fa3a2 100644 --- a/src/Clerk/BackendAPI/Webhooks.cs +++ b/src/Clerk/BackendAPI/Webhooks.cs @@ -66,10 +66,10 @@ public class Webhooks: IWebhooks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.3.0"; - private const string _sdkGenVersion = "2.495.0"; + private const string _sdkVersion = "0.4.0"; + private const string _sdkGenVersion = "2.503.2"; private const string _openapiDocVersion = "v1"; - private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.495.0 v1 Clerk.BackendAPI"; + private const string _userAgent = "speakeasy-sdk/csharp 0.4.0 2.503.2 v1 Clerk.BackendAPI"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource;