diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 9d8e904..82dcda2 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,13 +3,13 @@ id: 8c24a12b-d2f1-466a-bdaa-6d83a049a679 management: docChecksum: 16d57a566fd293ae00cc4172463280a5 docVersion: v1 - speakeasyVersion: 1.304.0 - generationVersion: 2.340.3 - releaseVersion: 0.0.2 - configChecksum: 34256face4ed02fa3d1ffcabc892a57d + speakeasyVersion: 1.330.0 + generationVersion: 2.361.10 + releaseVersion: 0.0.3 + configChecksum: c1795060efbe64cc88a9856715854761 features: php: - core: 3.3.5 + core: 3.3.6 deprecations: 2.81.1 flattening: 2.81.1 globalSecurity: 2.81.6 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index dca2d4a..e7c8470 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.0.2 + version: 0.0.3 flattenGlobalSecurity: true imports: option: openapi diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 49bd1ba..6daaf4b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.304.0 +speakeasyVersion: 1.330.0 sources: clerk-backend-php: sourceNamespace: clerk-backend-php diff --git a/README.md b/README.md index c498227..b3c3270 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,65 @@ You can override the default server globally by passing a server index to the `s The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: + +## SDK Installation + +### Composer + +To install the SDK first add the below to your `composer.json` file: + +```json +{ + "repositories": [ + { + "type": "github", + "url": ".git" + } + ], + "require": { + "clerk/backend-php": "*" + } +} +``` + +Then run the following command: + +```bash +composer update +``` + + + +## SDK Example Usage + +### Example + +```php +build(); + +try { + $response = $sdk->miscellaneous->getPublicInterstitial('', ''); + + if ($response->statusCode === 200) { + // handle response + } +} catch (Throwable $e) { + // handle exception +} + +``` + + # Development diff --git a/composer.json b/composer.json index ab3192c..67366ed 100644 --- a/composer.json +++ b/composer.json @@ -32,9 +32,6 @@ ], "stan": [ "./vendor/bin/phpstan analyse --memory-limit=2g" - ], - "format": [ - "./vendor/bin/pint" ] }, "script-descriptions": { diff --git a/pint.json b/pint.json index 1120f08..5b64972 100644 --- a/pint.json +++ b/pint.json @@ -11,6 +11,7 @@ "no_extra_blank_lines": false, "no_blank_lines_after_class_opening": false, "single_line_after_imports": false, - "no_trailing_whitespace_in_comment": false + "no_trailing_whitespace_in_comment": false, + "single_line_empty_body": false } } \ No newline at end of file diff --git a/rector.php b/rector.php index 86b4277..606164e 100644 --- a/rector.php +++ b/rector.php @@ -10,20 +10,20 @@ use Rector\Set\ValueObject\SetList; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->paths([ - __DIR__.'/src', - ]); + $rectorConfig->paths([ + __DIR__ . '/src', + ]); - $rectorConfig->rules([ - InlineConstructorDefaultToPropertyRector::class, - ]); + $rectorConfig->rules([ + InlineConstructorDefaultToPropertyRector::class, + ]); - $rectorConfig->sets([ - LevelSetList::UP_TO_PHP_82, - SetList::CODE_QUALITY, - SetList::DEAD_CODE, - SetList::EARLY_RETURN, - SetList::TYPE_DECLARATION, - SetList::PRIVATIZATION, - ]); + $rectorConfig->sets([ + LevelSetList::UP_TO_PHP_82, + SetList::CODE_QUALITY, + SetList::DEAD_CODE, + SetList::EARLY_RETURN, + SetList::TYPE_DECLARATION, + SetList::PRIVATIZATION, + ]); }; diff --git a/src/ClerkBackendBuilder.php b/src/ClerkBackendBuilder.php index b225407..9189e1a 100644 --- a/src/ClerkBackendBuilder.php +++ b/src/ClerkBackendBuilder.php @@ -15,7 +15,8 @@ class ClerkBackendBuilder { public function __construct( private SDKConfiguration $sdkConfig = new SDKConfiguration(), - ) {} + ) { + } /** * setClient allows setting a custom Guzzle client for the SDK to make requests with. diff --git a/src/Models/Components/Actor.php b/src/Models/Components/Actor.php index 107bce4..889ce12 100644 --- a/src/Models/Components/Actor.php +++ b/src/Models/Components/Actor.php @@ -11,5 +11,7 @@ class Actor { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/ActorTokenActor.php b/src/Models/Components/ActorTokenActor.php index e29c09b..a494939 100644 --- a/src/Models/Components/ActorTokenActor.php +++ b/src/Models/Components/ActorTokenActor.php @@ -11,5 +11,7 @@ class ActorTokenActor { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/Claims.php b/src/Models/Components/Claims.php index 070e667..5475f63 100644 --- a/src/Models/Components/Claims.php +++ b/src/Models/Components/Claims.php @@ -11,5 +11,7 @@ class Claims { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/ClerkErrorsMeta.php b/src/Models/Components/ClerkErrorsMeta.php index 8088b83..1c657ff 100644 --- a/src/Models/Components/ClerkErrorsMeta.php +++ b/src/Models/Components/ClerkErrorsMeta.php @@ -11,5 +11,7 @@ class ClerkErrorsMeta { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/ExternalAccount.php b/src/Models/Components/ExternalAccount.php index 7493ac7..33dcb11 100644 --- a/src/Models/Components/ExternalAccount.php +++ b/src/Models/Components/ExternalAccount.php @@ -11,5 +11,7 @@ class ExternalAccount { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/ExternalAccounts.php b/src/Models/Components/ExternalAccounts.php index c47187d..b951a04 100644 --- a/src/Models/Components/ExternalAccounts.php +++ b/src/Models/Components/ExternalAccounts.php @@ -11,5 +11,7 @@ class ExternalAccounts { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/InvitationPublicMetadata.php b/src/Models/Components/InvitationPublicMetadata.php index 70a837a..58752f8 100644 --- a/src/Models/Components/InvitationPublicMetadata.php +++ b/src/Models/Components/InvitationPublicMetadata.php @@ -11,5 +11,7 @@ class InvitationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/InvitationRevokedPublicMetadata.php b/src/Models/Components/InvitationRevokedPublicMetadata.php index 359bdbf..4f01ca5 100644 --- a/src/Models/Components/InvitationRevokedPublicMetadata.php +++ b/src/Models/Components/InvitationRevokedPublicMetadata.php @@ -11,5 +11,7 @@ class InvitationRevokedPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/Meta.php b/src/Models/Components/Meta.php index 073b0a6..a03a73f 100644 --- a/src/Models/Components/Meta.php +++ b/src/Models/Components/Meta.php @@ -11,5 +11,7 @@ class Meta { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationInvitationPrivateMetadata.php b/src/Models/Components/OrganizationInvitationPrivateMetadata.php index ae90547..edfebdb 100644 --- a/src/Models/Components/OrganizationInvitationPrivateMetadata.php +++ b/src/Models/Components/OrganizationInvitationPrivateMetadata.php @@ -11,5 +11,7 @@ class OrganizationInvitationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationInvitationPublicMetadata.php b/src/Models/Components/OrganizationInvitationPublicMetadata.php index 9c81e48..f1c7804 100644 --- a/src/Models/Components/OrganizationInvitationPublicMetadata.php +++ b/src/Models/Components/OrganizationInvitationPublicMetadata.php @@ -11,5 +11,7 @@ class OrganizationInvitationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php b/src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php index 6e9c3e7..73dc1a3 100644 --- a/src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php +++ b/src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php @@ -11,5 +11,7 @@ class OrganizationMembershipOrganizationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php b/src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php index eaa8c93..1dfc147 100644 --- a/src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php +++ b/src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php @@ -11,5 +11,7 @@ class OrganizationMembershipOrganizationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationMembershipPrivateMetadata.php b/src/Models/Components/OrganizationMembershipPrivateMetadata.php index de448ad..e267b91 100644 --- a/src/Models/Components/OrganizationMembershipPrivateMetadata.php +++ b/src/Models/Components/OrganizationMembershipPrivateMetadata.php @@ -12,5 +12,7 @@ /** OrganizationMembershipPrivateMetadata - Metadata saved on the organization membership, accessible only from the Backend API */ class OrganizationMembershipPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationMembershipPublicMetadata.php b/src/Models/Components/OrganizationMembershipPublicMetadata.php index 022cb44..58476d6 100644 --- a/src/Models/Components/OrganizationMembershipPublicMetadata.php +++ b/src/Models/Components/OrganizationMembershipPublicMetadata.php @@ -12,5 +12,7 @@ /** OrganizationMembershipPublicMetadata - Metadata saved on the organization membership, accessible from both Frontend and Backend APIs */ class OrganizationMembershipPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationPrivateMetadata.php b/src/Models/Components/OrganizationPrivateMetadata.php index fa5029a..bc0a611 100644 --- a/src/Models/Components/OrganizationPrivateMetadata.php +++ b/src/Models/Components/OrganizationPrivateMetadata.php @@ -11,5 +11,7 @@ class OrganizationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationPublicMetadata.php b/src/Models/Components/OrganizationPublicMetadata.php index 9813d83..e47ed35 100644 --- a/src/Models/Components/OrganizationPublicMetadata.php +++ b/src/Models/Components/OrganizationPublicMetadata.php @@ -11,5 +11,7 @@ class OrganizationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationWithLogoPrivateMetadata.php b/src/Models/Components/OrganizationWithLogoPrivateMetadata.php index c6a39ab..38cb4f3 100644 --- a/src/Models/Components/OrganizationWithLogoPrivateMetadata.php +++ b/src/Models/Components/OrganizationWithLogoPrivateMetadata.php @@ -11,5 +11,7 @@ class OrganizationWithLogoPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationWithLogoPublicMetadata.php b/src/Models/Components/OrganizationWithLogoPublicMetadata.php index 42dd06f..008c245 100644 --- a/src/Models/Components/OrganizationWithLogoPublicMetadata.php +++ b/src/Models/Components/OrganizationWithLogoPublicMetadata.php @@ -11,5 +11,7 @@ class OrganizationWithLogoPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/PrivateMetadata.php b/src/Models/Components/PrivateMetadata.php index e293274..7998192 100644 --- a/src/Models/Components/PrivateMetadata.php +++ b/src/Models/Components/PrivateMetadata.php @@ -11,5 +11,7 @@ class PrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/PublicMetadata.php b/src/Models/Components/PublicMetadata.php index 68ffc9d..a095c45 100644 --- a/src/Models/Components/PublicMetadata.php +++ b/src/Models/Components/PublicMetadata.php @@ -11,5 +11,7 @@ class PublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/SAMLAccountPublicMetadata.php b/src/Models/Components/SAMLAccountPublicMetadata.php index 4988054..bb1b17a 100644 --- a/src/Models/Components/SAMLAccountPublicMetadata.php +++ b/src/Models/Components/SAMLAccountPublicMetadata.php @@ -11,5 +11,7 @@ class SAMLAccountPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/SignUpPublicMetadata.php b/src/Models/Components/SignUpPublicMetadata.php index a2ee6fb..ea2929f 100644 --- a/src/Models/Components/SignUpPublicMetadata.php +++ b/src/Models/Components/SignUpPublicMetadata.php @@ -11,5 +11,7 @@ class SignUpPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/SignUpUnsafeMetadata.php b/src/Models/Components/SignUpUnsafeMetadata.php index aa24f0a..36ac0b4 100644 --- a/src/Models/Components/SignUpUnsafeMetadata.php +++ b/src/Models/Components/SignUpUnsafeMetadata.php @@ -11,5 +11,7 @@ class SignUpUnsafeMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/UnsafeMetadata.php b/src/Models/Components/UnsafeMetadata.php index 1d831a8..82c224c 100644 --- a/src/Models/Components/UnsafeMetadata.php +++ b/src/Models/Components/UnsafeMetadata.php @@ -11,5 +11,7 @@ class UnsafeMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Components/Verifications.php b/src/Models/Components/Verifications.php index 68a6f23..c6b51b0 100644 --- a/src/Models/Components/Verifications.php +++ b/src/Models/Components/Verifications.php @@ -11,5 +11,7 @@ class Verifications { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/Actor.php b/src/Models/Operations/Actor.php index d30c330..cf42943 100644 --- a/src/Models/Operations/Actor.php +++ b/src/Models/Operations/Actor.php @@ -16,5 +16,7 @@ */ class Actor { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/Claims.php b/src/Models/Operations/Claims.php index 756feb5..d201c58 100644 --- a/src/Models/Operations/Claims.php +++ b/src/Models/Operations/Claims.php @@ -12,5 +12,7 @@ /** Claims - JWT template claims in JSON format */ class Claims { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateInvitationPublicMetadata.php b/src/Models/Operations/CreateInvitationPublicMetadata.php index 88a0e1b..854f5cc 100644 --- a/src/Models/Operations/CreateInvitationPublicMetadata.php +++ b/src/Models/Operations/CreateInvitationPublicMetadata.php @@ -17,5 +17,7 @@ */ class CreateInvitationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php b/src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php index 1b2918f..d4dd59e 100644 --- a/src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php +++ b/src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationInvitationBulkPrivateMetadata - Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. */ class CreateOrganizationInvitationBulkPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php b/src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php index 1238998..9bb9862 100644 --- a/src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php +++ b/src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationInvitationBulkPublicMetadata - Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. */ class CreateOrganizationInvitationBulkPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php b/src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php index 44685cf..208ed8b 100644 --- a/src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php +++ b/src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationInvitationPrivateMetadata - Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. */ class CreateOrganizationInvitationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php b/src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php index 2f0a072..6c7ea31 100644 --- a/src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php +++ b/src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationInvitationPublicMetadata - Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. */ class CreateOrganizationInvitationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationPrivateMetadata.php b/src/Models/Operations/CreateOrganizationPrivateMetadata.php index d5d6469..adb8623 100644 --- a/src/Models/Operations/CreateOrganizationPrivateMetadata.php +++ b/src/Models/Operations/CreateOrganizationPrivateMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationPrivateMetadata - Metadata saved on the organization, accessible only from the Backend API */ class CreateOrganizationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/CreateOrganizationPublicMetadata.php b/src/Models/Operations/CreateOrganizationPublicMetadata.php index 5e3a0ef..2dcc17d 100644 --- a/src/Models/Operations/CreateOrganizationPublicMetadata.php +++ b/src/Models/Operations/CreateOrganizationPublicMetadata.php @@ -12,5 +12,7 @@ /** CreateOrganizationPublicMetadata - Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API */ class CreateOrganizationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php b/src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php index f5e8085..dc4e482 100644 --- a/src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php +++ b/src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php @@ -11,5 +11,7 @@ class GetOAuthAccessTokenPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php b/src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php index 118769a..47df48e 100644 --- a/src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php +++ b/src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php @@ -16,5 +16,7 @@ */ class MergeOrganizationMetadataPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php b/src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php index c7555da..b4b0fad 100644 --- a/src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php +++ b/src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php @@ -16,5 +16,7 @@ */ class MergeOrganizationMetadataPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/PreviewTemplateResponseBody.php b/src/Models/Operations/PreviewTemplateResponseBody.php index bab01f4..c14a45e 100644 --- a/src/Models/Operations/PreviewTemplateResponseBody.php +++ b/src/Models/Operations/PreviewTemplateResponseBody.php @@ -12,5 +12,7 @@ /** PreviewTemplateResponseBody - OK */ class PreviewTemplateResponseBody { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/PrivateMetadata.php b/src/Models/Operations/PrivateMetadata.php index 396410f..c626f4e 100644 --- a/src/Models/Operations/PrivateMetadata.php +++ b/src/Models/Operations/PrivateMetadata.php @@ -12,5 +12,7 @@ /** PrivateMetadata - Metadata saved on the user, that is only visible to your Backend API */ class PrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/PublicMetadata.php b/src/Models/Operations/PublicMetadata.php index e970f36..2367acb 100644 --- a/src/Models/Operations/PublicMetadata.php +++ b/src/Models/Operations/PublicMetadata.php @@ -12,5 +12,7 @@ /** PublicMetadata - Metadata saved on the user, that is visible to both your Frontend and Backend APIs */ class PublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UnsafeMetadata.php b/src/Models/Operations/UnsafeMetadata.php index 75de7ea..b8ff583 100644 --- a/src/Models/Operations/UnsafeMetadata.php +++ b/src/Models/Operations/UnsafeMetadata.php @@ -16,5 +16,7 @@ */ class UnsafeMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateJWTTemplateClaims.php b/src/Models/Operations/UpdateJWTTemplateClaims.php index 39ad7b4..c6a8f7e 100644 --- a/src/Models/Operations/UpdateJWTTemplateClaims.php +++ b/src/Models/Operations/UpdateJWTTemplateClaims.php @@ -12,5 +12,7 @@ /** UpdateJWTTemplateClaims - JWT template claims in JSON format */ class UpdateJWTTemplateClaims { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php b/src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php index 08c6fa9..7be0da6 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php +++ b/src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php @@ -16,5 +16,7 @@ */ class UpdateOrganizationMembershipMetadataPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php b/src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php index 93f6084..1560197 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php +++ b/src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php @@ -16,5 +16,7 @@ */ class UpdateOrganizationMembershipMetadataPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateOrganizationPrivateMetadata.php b/src/Models/Operations/UpdateOrganizationPrivateMetadata.php index 7f97c7d..acfdd7f 100644 --- a/src/Models/Operations/UpdateOrganizationPrivateMetadata.php +++ b/src/Models/Operations/UpdateOrganizationPrivateMetadata.php @@ -12,5 +12,7 @@ /** UpdateOrganizationPrivateMetadata - Metadata saved on the organization that is only visible to your backend. */ class UpdateOrganizationPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateOrganizationPublicMetadata.php b/src/Models/Operations/UpdateOrganizationPublicMetadata.php index bcdf256..448e441 100644 --- a/src/Models/Operations/UpdateOrganizationPublicMetadata.php +++ b/src/Models/Operations/UpdateOrganizationPublicMetadata.php @@ -12,5 +12,7 @@ /** UpdateOrganizationPublicMetadata - Metadata saved on the organization, that is visible to both your frontend and backend. */ class UpdateOrganizationPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateUserPrivateMetadata.php b/src/Models/Operations/UpdateUserPrivateMetadata.php index 2602652..ca8d71d 100644 --- a/src/Models/Operations/UpdateUserPrivateMetadata.php +++ b/src/Models/Operations/UpdateUserPrivateMetadata.php @@ -12,5 +12,7 @@ /** UpdateUserPrivateMetadata - Metadata saved on the user, that is only visible to your Backend API */ class UpdateUserPrivateMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateUserPublicMetadata.php b/src/Models/Operations/UpdateUserPublicMetadata.php index 8ac391b..5b082eb 100644 --- a/src/Models/Operations/UpdateUserPublicMetadata.php +++ b/src/Models/Operations/UpdateUserPublicMetadata.php @@ -12,5 +12,7 @@ /** UpdateUserPublicMetadata - Metadata saved on the user, that is visible to both your Frontend and Backend APIs */ class UpdateUserPublicMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateUserUnsafeMetadata.php b/src/Models/Operations/UpdateUserUnsafeMetadata.php index 87cc632..31fc31c 100644 --- a/src/Models/Operations/UpdateUserUnsafeMetadata.php +++ b/src/Models/Operations/UpdateUserUnsafeMetadata.php @@ -16,5 +16,7 @@ */ class UpdateUserUnsafeMetadata { - public function __construct() {} + public function __construct() + { + } } \ No newline at end of file diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 3f74f36..1165412 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -26,11 +26,11 @@ class SDKConfiguration public string $openapiDocVersion = 'v1'; - public string $sdkVersion = '0.0.2'; + public string $sdkVersion = '0.0.3'; - public string $genVersion = '2.340.3'; + public string $genVersion = '2.361.10'; - public string $userAgent = 'speakeasy-sdk/php 0.0.2 2.340.3 v1 clerk/backend-php'; + public string $userAgent = 'speakeasy-sdk/php 0.0.3 2.361.10 v1 clerk/backend-php'; public function getServerUrl(): string { diff --git a/src/Utils/FormMetadata.php b/src/Utils/FormMetadata.php index 19490a9..ebb4af8 100644 --- a/src/Utils/FormMetadata.php +++ b/src/Utils/FormMetadata.php @@ -16,7 +16,8 @@ private function __construct( public string $style, public bool $explode, public string $dateTimeFormat, - ) {} + ) { + } public static function parse(string $metadata): ?FormMetadata { diff --git a/src/Utils/MultipartMetadata.php b/src/Utils/MultipartMetadata.php index c5fac4d..7083ac1 100644 --- a/src/Utils/MultipartMetadata.php +++ b/src/Utils/MultipartMetadata.php @@ -16,7 +16,8 @@ private function __construct( public bool $content, public bool $json, public string $dateTimeFormat, - ) {} + ) { + } public static function parse(string $metadata): ?MultipartMetadata { diff --git a/src/Utils/ParamsMetadata.php b/src/Utils/ParamsMetadata.php index c837bee..ee26d68 100644 --- a/src/Utils/ParamsMetadata.php +++ b/src/Utils/ParamsMetadata.php @@ -17,7 +17,8 @@ private function __construct( public string $name, public string $serialization, public string $dateTimeFormat, - ) {} + ) { + } public static function parse(string $metadata): ?ParamsMetadata { diff --git a/src/Utils/RequestMetadata.php b/src/Utils/RequestMetadata.php index 04a3b76..c602df1 100644 --- a/src/Utils/RequestMetadata.php +++ b/src/Utils/RequestMetadata.php @@ -12,7 +12,8 @@ class RequestMetadata { private function __construct( public string $mediaType, - ) {} + ) { + } public static function parse(string $metadata): ?RequestMetadata { diff --git a/src/Utils/SecurityClient.php b/src/Utils/SecurityClient.php index eb8423e..4a4da8a 100644 --- a/src/Utils/SecurityClient.php +++ b/src/Utils/SecurityClient.php @@ -23,7 +23,8 @@ class SecurityClient implements ClientInterface public function __construct( private readonly ClientInterface $client, private readonly array $clientOptions, - ) {} + ) { + } /** * @param RequestInterface $request diff --git a/src/Utils/SecurityMetadata.php b/src/Utils/SecurityMetadata.php index 50eb8a4..261dde0 100644 --- a/src/Utils/SecurityMetadata.php +++ b/src/Utils/SecurityMetadata.php @@ -16,7 +16,8 @@ private function __construct( public string $name, public string $type, public string $subtype, - ) {} + ) { + } public static function parse(string $metadata): ?SecurityMetadata { diff --git a/src/Utils/SpeakeasyMetadata.php b/src/Utils/SpeakeasyMetadata.php index ebcb8dd..e2d959d 100644 --- a/src/Utils/SpeakeasyMetadata.php +++ b/src/Utils/SpeakeasyMetadata.php @@ -16,7 +16,8 @@ class SpeakeasyMetadata { public function __construct( public string $value, - ) {} + ) { + } /** * @param array> $attributes