Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 33 additions & 24 deletions .generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ docs/CreateBulkInvitationsRequestInner.md
docs/CreateEmailAddressRequest.md
docs/CreateInvitationRequest.md
docs/CreateJWTTemplateRequest.md
docs/CreateM2MToken201Response.md
docs/CreateM2MTokenRequest.md
docs/CreateMachine200Response.md
docs/CreateMachineRequest.md
docs/CreateMachineScopeRequest.md
Expand Down Expand Up @@ -68,6 +70,12 @@ docs/EmailSMSTemplatesApi.md
docs/ExternalAccountWithVerification.md
docs/ExternalAccountWithVerificationVerification.md
docs/FeatureResponse.md
docs/GetM2MTokens200Response.md
docs/GetM2MTokens200ResponseM2mTokensInner.md
docs/GetM2MTokens400Response.md
docs/GetM2MTokens400ResponseErrorsInner.md
docs/GetM2MTokens403Response.md
docs/GetM2MTokens403ResponseErrorsInner.md
docs/GetMachineSecretKey200Response.md
docs/IdentificationLink.md
docs/Instance.md
Expand All @@ -89,6 +97,7 @@ docs/JWTTemplate.md
docs/JWTTemplatesApi.md
docs/ListMachines200Response.md
docs/ListWaitlistEntries200Response.md
docs/M2MTokensApi.md
docs/Machine.md
docs/MachineScope.md
docs/MachineWithoutScopedMachines.md
Expand Down Expand Up @@ -134,6 +143,7 @@ docs/RedirectUrl.md
docs/RedirectUrlsApi.md
docs/RefreshSessionRequest.md
docs/RevokeInvitation200Response.md
docs/RevokeM2MTokenRequest.md
docs/RevokeOrganizationInvitationRequest.md
docs/SAMLAccount.md
docs/SAMLAccountSamlConnection.md
Expand Down Expand Up @@ -198,11 +208,8 @@ docs/VerificationTicket.md
docs/VerificationWeb3.md
docs/VerifyClientRequest.md
docs/VerifyDomainProxyRequest.md
docs/VerifyM2MTokenRequest.md
docs/VerifyOauthAccessToken200Response.md
docs/VerifyOauthAccessToken400Response.md
docs/VerifyOauthAccessToken400ResponseErrorsInner.md
docs/VerifyOauthAccessToken404Response.md
docs/VerifyOauthAccessToken404ResponseErrorsInner.md
docs/VerifyOauthAccessTokenRequest.md
docs/VerifyPassword200Response.md
docs/VerifyPasswordRequest.md
Expand Down Expand Up @@ -230,6 +237,7 @@ lib/clerk-http-client/api/instance_settings_api.rb
lib/clerk-http-client/api/invitations_api.rb
lib/clerk-http-client/api/jwks_api.rb
lib/clerk-http-client/api/jwt_templates_api.rb
lib/clerk-http-client/api/m2_m_tokens_api.rb
lib/clerk-http-client/api/machines_api.rb
lib/clerk-http-client/api/miscellaneous_api.rb
lib/clerk-http-client/api/oauth_access_tokens_api.rb
Expand Down Expand Up @@ -275,6 +283,8 @@ lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb
lib/clerk-http-client/models/create_email_address_request.rb
lib/clerk-http-client/models/create_invitation_request.rb
lib/clerk-http-client/models/create_jwt_template_request.rb
lib/clerk-http-client/models/create_m2_m_token201_response.rb
lib/clerk-http-client/models/create_m2_m_token_request.rb
lib/clerk-http-client/models/create_machine200_response.rb
lib/clerk-http-client/models/create_machine_request.rb
lib/clerk-http-client/models/create_machine_scope_request.rb
Expand Down Expand Up @@ -305,6 +315,12 @@ lib/clerk-http-client/models/email_address_verification.rb
lib/clerk-http-client/models/external_account_with_verification.rb
lib/clerk-http-client/models/external_account_with_verification_verification.rb
lib/clerk-http-client/models/feature_response.rb
lib/clerk-http-client/models/get_m2_m_tokens200_response.rb
lib/clerk-http-client/models/get_m2_m_tokens200_response_m2m_tokens_inner.rb
lib/clerk-http-client/models/get_m2_m_tokens400_response.rb
lib/clerk-http-client/models/get_m2_m_tokens400_response_errors_inner.rb
lib/clerk-http-client/models/get_m2_m_tokens403_response.rb
lib/clerk-http-client/models/get_m2_m_tokens403_response_errors_inner.rb
lib/clerk-http-client/models/get_machine_secret_key200_response.rb
lib/clerk-http-client/models/identification_link.rb
lib/clerk-http-client/models/instance.rb
Expand Down Expand Up @@ -356,6 +372,7 @@ lib/clerk-http-client/models/proxy_check.rb
lib/clerk-http-client/models/redirect_url.rb
lib/clerk-http-client/models/refresh_session_request.rb
lib/clerk-http-client/models/revoke_invitation200_response.rb
lib/clerk-http-client/models/revoke_m2_m_token_request.rb
lib/clerk-http-client/models/revoke_organization_invitation_request.rb
lib/clerk-http-client/models/saml_account.rb
lib/clerk-http-client/models/saml_account_saml_connection.rb
Expand Down Expand Up @@ -414,11 +431,8 @@ lib/clerk-http-client/models/verification_ticket.rb
lib/clerk-http-client/models/verification_web3.rb
lib/clerk-http-client/models/verify_client_request.rb
lib/clerk-http-client/models/verify_domain_proxy_request.rb
lib/clerk-http-client/models/verify_m2_m_token_request.rb
lib/clerk-http-client/models/verify_oauth_access_token200_response.rb
lib/clerk-http-client/models/verify_oauth_access_token400_response.rb
lib/clerk-http-client/models/verify_oauth_access_token400_response_errors_inner.rb
lib/clerk-http-client/models/verify_oauth_access_token404_response.rb
lib/clerk-http-client/models/verify_oauth_access_token404_response_errors_inner.rb
lib/clerk-http-client/models/verify_oauth_access_token_request.rb
lib/clerk-http-client/models/verify_password200_response.rb
lib/clerk-http-client/models/verify_password_request.rb
Expand All @@ -428,20 +442,15 @@ lib/clerk-http-client/models/verify_totp_request.rb
lib/clerk-http-client/models/waitlist_entry.rb
lib/clerk-http-client/models/web3_wallet.rb
lib/clerk-http-client/models/web3_wallet_verification.rb
spec/api/commerce_api_spec.rb
spec/models/commerce_money_response_spec.rb
spec/models/commerce_plan_spec.rb
spec/models/feature_response_spec.rb
spec/models/paginated_commerce_plan_response_spec.rb
spec/models/passkey_verification_spec.rb
spec/models/verification_admin_spec.rb
spec/models/verification_from_oauth_error_spec.rb
spec/models/verification_from_oauth_spec.rb
spec/models/verification_google_one_tap_spec.rb
spec/models/verification_oauth_spec.rb
spec/models/verification_otp_spec.rb
spec/models/verification_passkey_spec.rb
spec/models/verification_saml_spec.rb
spec/models/verification_ticket_spec.rb
spec/models/verification_web3_spec.rb
spec/api/m2_m_tokens_api_spec.rb
spec/models/create_m2_m_token201_response_spec.rb
spec/models/create_m2_m_token_request_spec.rb
spec/models/get_m2_m_tokens200_response_m2m_tokens_inner_spec.rb
spec/models/get_m2_m_tokens200_response_spec.rb
spec/models/get_m2_m_tokens400_response_errors_inner_spec.rb
spec/models/get_m2_m_tokens400_response_spec.rb
spec/models/get_m2_m_tokens403_response_errors_inner_spec.rb
spec/models/get_m2_m_tokens403_response_spec.rb
spec/models/revoke_m2_m_token_request_spec.rb
spec/models/verify_m2_m_token_request_spec.rb
spec/spec_helper.rb
18 changes: 14 additions & 4 deletions .generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ Class | Method | HTTP request | Description
*Clerk::SDK.jwt_templates* | [**get_jwt_template**](docs/JWTTemplatesApi.md#get_jwt_template) | **GET** /jwt_templates/{template_id} | Retrieve a template
*Clerk::SDK.jwt_templates* | [**list_jwt_templates**](docs/JWTTemplatesApi.md#list_jwt_templates) | **GET** /jwt_templates | List all templates
*Clerk::SDK.jwt_templates* | [**update_jwt_template**](docs/JWTTemplatesApi.md#update_jwt_template) | **PATCH** /jwt_templates/{template_id} | Update a JWT template
*Clerk::SDK.m2m_tokens* | [**create_m2_m_token**](docs/M2MTokensApi.md#create_m2_m_token) | **POST** /m2m_tokens | Create a M2M Token
*Clerk::SDK.m2m_tokens* | [**get_m2_m_tokens**](docs/M2MTokensApi.md#get_m2_m_tokens) | **GET** /m2m_tokens | Get M2M Tokens
*Clerk::SDK.m2m_tokens* | [**revoke_m2_m_token**](docs/M2MTokensApi.md#revoke_m2_m_token) | **POST** /m2m_tokens/{m2m_token_id}/revoke | Revoke a M2M Token
*Clerk::SDK.m2m_tokens* | [**verify_m2_m_token**](docs/M2MTokensApi.md#verify_m2_m_token) | **POST** /m2m_tokens/verify | Verify a M2M Token
*Clerk::SDK.machines* | [**create_machine**](docs/MachinesApi.md#create_machine) | **POST** /machines | Create a machine
*Clerk::SDK.machines* | [**create_machine_scope**](docs/MachinesApi.md#create_machine_scope) | **POST** /machines/{machine_id}/scopes | Create a machine scope
*Clerk::SDK.machines* | [**delete_machine**](docs/MachinesApi.md#delete_machine) | **DELETE** /machines/{machine_id} | Delete a machine
Expand Down Expand Up @@ -218,6 +222,8 @@ Class | Method | HTTP request | Description
- [ClerkHttpClient::CreateEmailAddressRequest](docs/CreateEmailAddressRequest.md)
- [ClerkHttpClient::CreateInvitationRequest](docs/CreateInvitationRequest.md)
- [ClerkHttpClient::CreateJWTTemplateRequest](docs/CreateJWTTemplateRequest.md)
- [ClerkHttpClient::CreateM2MToken201Response](docs/CreateM2MToken201Response.md)
- [ClerkHttpClient::CreateM2MTokenRequest](docs/CreateM2MTokenRequest.md)
- [ClerkHttpClient::CreateMachine200Response](docs/CreateMachine200Response.md)
- [ClerkHttpClient::CreateMachineRequest](docs/CreateMachineRequest.md)
- [ClerkHttpClient::CreateMachineScopeRequest](docs/CreateMachineScopeRequest.md)
Expand Down Expand Up @@ -248,6 +254,12 @@ Class | Method | HTTP request | Description
- [ClerkHttpClient::ExternalAccountWithVerification](docs/ExternalAccountWithVerification.md)
- [ClerkHttpClient::ExternalAccountWithVerificationVerification](docs/ExternalAccountWithVerificationVerification.md)
- [ClerkHttpClient::FeatureResponse](docs/FeatureResponse.md)
- [ClerkHttpClient::GetM2MTokens200Response](docs/GetM2MTokens200Response.md)
- [ClerkHttpClient::GetM2MTokens200ResponseM2mTokensInner](docs/GetM2MTokens200ResponseM2mTokensInner.md)
- [ClerkHttpClient::GetM2MTokens400Response](docs/GetM2MTokens400Response.md)
- [ClerkHttpClient::GetM2MTokens400ResponseErrorsInner](docs/GetM2MTokens400ResponseErrorsInner.md)
- [ClerkHttpClient::GetM2MTokens403Response](docs/GetM2MTokens403Response.md)
- [ClerkHttpClient::GetM2MTokens403ResponseErrorsInner](docs/GetM2MTokens403ResponseErrorsInner.md)
- [ClerkHttpClient::GetMachineSecretKey200Response](docs/GetMachineSecretKey200Response.md)
- [ClerkHttpClient::IdentificationLink](docs/IdentificationLink.md)
- [ClerkHttpClient::Instance](docs/Instance.md)
Expand Down Expand Up @@ -299,6 +311,7 @@ Class | Method | HTTP request | Description
- [ClerkHttpClient::RedirectURL](docs/RedirectURL.md)
- [ClerkHttpClient::RefreshSessionRequest](docs/RefreshSessionRequest.md)
- [ClerkHttpClient::RevokeInvitation200Response](docs/RevokeInvitation200Response.md)
- [ClerkHttpClient::RevokeM2MTokenRequest](docs/RevokeM2MTokenRequest.md)
- [ClerkHttpClient::RevokeOrganizationInvitationRequest](docs/RevokeOrganizationInvitationRequest.md)
- [ClerkHttpClient::SAMLAccount](docs/SAMLAccount.md)
- [ClerkHttpClient::SAMLAccountSamlConnection](docs/SAMLAccountSamlConnection.md)
Expand Down Expand Up @@ -357,11 +370,8 @@ Class | Method | HTTP request | Description
- [ClerkHttpClient::VerificationWeb3](docs/VerificationWeb3.md)
- [ClerkHttpClient::VerifyClientRequest](docs/VerifyClientRequest.md)
- [ClerkHttpClient::VerifyDomainProxyRequest](docs/VerifyDomainProxyRequest.md)
- [ClerkHttpClient::VerifyM2MTokenRequest](docs/VerifyM2MTokenRequest.md)
- [ClerkHttpClient::VerifyOAuthAccessToken200Response](docs/VerifyOAuthAccessToken200Response.md)
- [ClerkHttpClient::VerifyOAuthAccessToken400Response](docs/VerifyOAuthAccessToken400Response.md)
- [ClerkHttpClient::VerifyOAuthAccessToken400ResponseErrorsInner](docs/VerifyOAuthAccessToken400ResponseErrorsInner.md)
- [ClerkHttpClient::VerifyOAuthAccessToken404Response](docs/VerifyOAuthAccessToken404Response.md)
- [ClerkHttpClient::VerifyOAuthAccessToken404ResponseErrorsInner](docs/VerifyOAuthAccessToken404ResponseErrorsInner.md)
- [ClerkHttpClient::VerifyOAuthAccessTokenRequest](docs/VerifyOAuthAccessTokenRequest.md)
- [ClerkHttpClient::VerifyPassword200Response](docs/VerifyPassword200Response.md)
- [ClerkHttpClient::VerifyPasswordRequest](docs/VerifyPasswordRequest.md)
Expand Down
4 changes: 3 additions & 1 deletion .generated/docs/CommerceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ end
opts = {
paginated: true, # Boolean | Whether to paginate the results. If true, the results will be paginated. If false, the results will not be paginated.
limit: 56, # Integer | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`.
offset: 56 # Integer | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`.
offset: 56, # Integer | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`.
payer_type: 'user' # String | Filter plans by payer type
}

begin
Expand Down Expand Up @@ -66,6 +67,7 @@ end
| **paginated** | **Boolean** | Whether to paginate the results. If true, the results will be paginated. If false, the results will not be paginated. | [optional] |
| **limit** | **Integer** | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. | [optional][default to 10] |
| **offset** | **Integer** | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. | [optional][default to 0] |
| **payer_type** | **String** | Filter plans by payer type | [optional] |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions .generated/docs/CommercePlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
| **for_payer_type** | **String** | The payer type this plan is designed for. | |
| **slug** | **String** | The URL-friendly slug for the plan. | |
| **avatar_url** | **String** | The URL of the plan's avatar image. | |
| **period** | **String** | The billing period for the plan. | |
| **interval** | **Integer** | The billing interval. | |
| **period** | **String** | The billing period for the plan. | [optional] |
| **interval** | **Integer** | The billing interval. | [optional] |
| **features** | [**Array<FeatureResponse>**](FeatureResponse.md) | The features included in this plan. | |

## Example
Expand Down
42 changes: 42 additions & 0 deletions .generated/docs/CreateM2MToken201Response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# ClerkHttpClient::CreateM2MToken201Response

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **object** | **String** | | |
| **id** | **String** | | |
| **subject** | **String** | | |
| **claims** | **Object** | | [optional] |
| **scopes** | **Array<String>** | | [optional] |
| **token** | **String** | | |
| **revoked** | **Boolean** | | |
| **revocation_reason** | **String** | | |
| **expired** | **Boolean** | | |
| **expiration** | **Float** | | |
| **last_used_at** | **Float** | | |
| **created_at** | **Float** | | |
| **updated_at** | **Float** | | |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::CreateM2MToken201Response.new(
object: null,
id: mt_f7f0ba8c3b4843ce7d85fcdd5e71853e,
subject: mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk,
claims: {"important_metadata":"Some useful data"},
scopes: ["mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk","mch_2yGkLpQ7Y3rXSwtU24CzTk9I7Em"],
token: mt_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,
revoked: false,
revocation_reason: Revoked by user,
expired: false,
expiration: 1716883200,
last_used_at: 1716883200,
created_at: 1716883200,
updated_at: 1716883200
)
```

20 changes: 20 additions & 0 deletions .generated/docs/CreateM2MTokenRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ClerkHttpClient::CreateM2MTokenRequest

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **seconds_until_expiration** | **Float** | | [optional] |
| **claims** | **Object** | | [optional] |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::CreateM2MTokenRequest.new(
seconds_until_expiration: null,
claims: null
)
```

20 changes: 20 additions & 0 deletions .generated/docs/GetM2MTokens200Response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ClerkHttpClient::GetM2MTokens200Response

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **m2m_tokens** | [**Array<GetM2MTokens200ResponseM2mTokensInner>**](GetM2MTokens200ResponseM2mTokensInner.md) | | |
| **total_count** | **Float** | | |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::GetM2MTokens200Response.new(
m2m_tokens: null,
total_count: null
)
```

40 changes: 40 additions & 0 deletions .generated/docs/GetM2MTokens200ResponseM2mTokensInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ClerkHttpClient::GetM2MTokens200ResponseM2mTokensInner

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **object** | **String** | | |
| **id** | **String** | | |
| **subject** | **String** | | |
| **claims** | **Object** | | [optional] |
| **scopes** | **Array<String>** | | [optional] |
| **revoked** | **Boolean** | | |
| **revocation_reason** | **String** | | |
| **expired** | **Boolean** | | |
| **expiration** | **Float** | | |
| **last_used_at** | **Float** | | |
| **created_at** | **Float** | | |
| **updated_at** | **Float** | | |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::GetM2MTokens200ResponseM2mTokensInner.new(
object: null,
id: mt_f7f0ba8c3b4843ce7d85fcdd5e71853e,
subject: mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk,
claims: {"important_metadata":"Some useful data"},
scopes: ["mch_2xhFjEI5X2qWRvtV13BzSj8H6Dk","mch_2yGkLpQ7Y3rXSwtU24CzTk9I7Em"],
revoked: false,
revocation_reason: Revoked by user,
expired: false,
expiration: 1716883200,
last_used_at: 1716883200,
created_at: 1716883200,
updated_at: 1716883200
)
```

18 changes: 18 additions & 0 deletions .generated/docs/GetM2MTokens400Response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ClerkHttpClient::GetM2MTokens400Response

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **errors** | [**Array<GetM2MTokens400ResponseErrorsInner>**](GetM2MTokens400ResponseErrorsInner.md) | | |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::GetM2MTokens400Response.new(
errors: null
)
```

22 changes: 22 additions & 0 deletions .generated/docs/GetM2MTokens400ResponseErrorsInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ClerkHttpClient::GetM2MTokens400ResponseErrorsInner

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **message** | **String** | | |
| **long_message** | **String** | | |
| **code** | **String** | | |

## Example

```ruby
require 'clerk-http-client'

instance = ClerkHttpClient::GetM2MTokens400ResponseErrorsInner.new(
message: Bad Request,
long_message: Invalid 'url_parameter.example': Failed regex check,
code: bad_request
)
```

Loading