diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f3313d0..3a5c49d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,983 +3,2195 @@ id: 8c24a12b-d2f1-466a-bdaa-6d83a049a679 management: docChecksum: 16d57a566fd293ae00cc4172463280a5 docVersion: v1 - speakeasyVersion: 1.390.8 - generationVersion: 2.409.8 - releaseVersion: 0.1.2 - configChecksum: 6ef26352455842a474948de32b325ccb + speakeasyVersion: 1.424.0 + generationVersion: 2.445.1 + releaseVersion: 0.2.0 + configChecksum: b3d0fedd9ec7d2aaa9d42747a05d5999 + published: true features: php: - core: 3.4.0 + constsAndDefaults: 0.2.0 + core: 3.7.0 deprecations: 2.81.1 flattening: 2.81.1 globalSecurity: 2.81.7 - globalSecurityFlattening: 0.1.0 + globalSecurityFlattening: 0.1.1 globalServerURLs: 2.82.1 + methodArguments: 0.1.0 + nullables: 1.0.0 responseFormat: 0.1.0 - unions: 0.1.1 + unions: 0.1.3 generatedFiles: - - src/SDKConfiguration.php - - src/Miscellaneous.php - - src/Jwks.php - - src/Clients.php - - src/EmailAddresses.php - - src/PhoneNumbers.php - - src/Sessions.php - - src/EmailAndSMSTemplates.php - - src/Users.php - - src/Invitations.php - - src/AllowListBlockList.php - - src/BetaFeatures.php - - src/ActorTokens.php - - src/Domains.php - - src/InstanceSettings.php - - src/Webhooks.php - - src/JWTTemplates.php - - src/Organizations.php - - src/OrganizationInvitations.php - - src/OrganizationMemberships.php - - src/ProxyChecks.php - - src/RedirectURLs.php - - src/SignInTokens.php - - src/SignUps.php - - src/OAuthApplications.php - - src/SAMLConnections.php - - src/TestingTokens.php - - src/ClerkBackend.php - - src/ClerkBackendBuilder.php + - .gitattributes + - CONTRIBUTING.md + - USAGE.md - composer.json - - phpstan.neon - - phpunit.xml - - pint.json - - rector.php - - src/Utils/DateHandler.php - - src/Utils/DateTimeHandler.php - - src/Utils/DefaultResponse.php - - src/Utils/DefaultStream.php - - src/Utils/EnumHandler.php - - src/Utils/FormMetadata.php - - src/Utils/Headers.php - - src/Utils/JSON.php - - src/Utils/MixedJSONHandler.php - - src/Utils/MultipartMetadata.php - - src/Utils/ParamsMetadata.php - - src/Utils/PathParameters.php - - src/Utils/PhpDocTypeParser.php - - src/Utils/QueryParameters.php - - src/Utils/RequestBodies.php - - src/Utils/RequestMetadata.php - - src/Utils/Security.php - - src/Utils/SecurityClient.php - - src/Utils/SecurityMetadata.php - - src/Utils/SpeakeasyMetadata.php - - src/Utils/UnionHandler.php - - src/Utils/Utils.php - - src/Models/Errors/SDKException.php - - src/Models/Operations/GetPublicInterstitialRequest.php - - src/Models/Operations/GetPublicInterstitialResponse.php - - src/Models/Operations/GetJWKSResponse.php - - src/Models/Operations/GetClientListRequest.php - - src/Models/Operations/GetClientListResponse.php - - src/Models/Operations/VerifyClientRequestBody.php - - src/Models/Operations/VerifyClientResponse.php - - src/Models/Operations/GetClientRequest.php - - src/Models/Operations/GetClientResponse.php - - src/Models/Operations/CreateEmailAddressRequestBody.php - - src/Models/Operations/CreateEmailAddressResponse.php - - src/Models/Operations/GetEmailAddressRequest.php - - src/Models/Operations/GetEmailAddressResponse.php - - src/Models/Operations/DeleteEmailAddressRequest.php - - src/Models/Operations/DeleteEmailAddressResponse.php - - src/Models/Operations/UpdateEmailAddressRequestBody.php - - src/Models/Operations/UpdateEmailAddressRequest.php - - src/Models/Operations/UpdateEmailAddressResponse.php - - src/Models/Operations/CreatePhoneNumberRequestBody.php - - src/Models/Operations/CreatePhoneNumberResponse.php - - src/Models/Operations/GetPhoneNumberRequest.php - - src/Models/Operations/GetPhoneNumberResponse.php - - src/Models/Operations/DeletePhoneNumberRequest.php - - src/Models/Operations/DeletePhoneNumberResponse.php - - src/Models/Operations/UpdatePhoneNumberRequestBody.php - - src/Models/Operations/UpdatePhoneNumberRequest.php - - src/Models/Operations/UpdatePhoneNumberResponse.php - - src/Models/Operations/Status.php - - src/Models/Operations/GetSessionListRequest.php - - src/Models/Operations/GetSessionListResponse.php - - src/Models/Operations/GetSessionRequest.php - - src/Models/Operations/GetSessionResponse.php - - src/Models/Operations/RevokeSessionRequest.php - - src/Models/Operations/RevokeSessionResponse.php - - src/Models/Operations/VerifySessionRequestBody.php - - src/Models/Operations/VerifySessionRequest.php - - src/Models/Operations/VerifySessionResponse.php - - src/Models/Operations/CreateSessionTokenFromTemplateRequest.php - - src/Models/Operations/ObjectT.php - - src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php - - src/Models/Operations/CreateSessionTokenFromTemplateResponse.php - - src/Models/Operations/TemplateType.php - - src/Models/Operations/GetTemplateListRequest.php - - src/Models/Operations/GetTemplateListResponse.php - - src/Models/Operations/PathParamTemplateType.php - - src/Models/Operations/GetTemplateRequest.php - - src/Models/Operations/GetTemplateResponse.php - - src/Models/Operations/UpsertTemplatePathParamTemplateType.php - - src/Models/Operations/UpsertTemplateRequestBody.php - - src/Models/Operations/UpsertTemplateRequest.php - - src/Models/Operations/UpsertTemplateResponse.php - - src/Models/Operations/RevertTemplatePathParamTemplateType.php - - src/Models/Operations/RevertTemplateRequest.php - - src/Models/Operations/RevertTemplateResponse.php - - src/Models/Operations/PreviewTemplateRequestBody.php - - src/Models/Operations/PreviewTemplateRequest.php - - src/Models/Operations/PreviewTemplateResponseBody.php - - src/Models/Operations/PreviewTemplateResponse.php - - src/Models/Operations/ToggleTemplateDeliveryPathParamTemplateType.php - - src/Models/Operations/ToggleTemplateDeliveryRequestBody.php - - src/Models/Operations/ToggleTemplateDeliveryRequest.php - - src/Models/Operations/ToggleTemplateDeliveryResponse.php - - src/Models/Operations/GetUserListRequest.php - - src/Models/Operations/GetUserListResponse.php - - src/Models/Operations/PasswordHasher.php - - src/Models/Operations/PublicMetadata.php - - src/Models/Operations/PrivateMetadata.php - - src/Models/Operations/UnsafeMetadata.php - - src/Models/Operations/CreateUserRequestBody.php - - src/Models/Operations/CreateUserResponse.php - - src/Models/Operations/GetUsersCountRequest.php - - src/Models/Operations/GetUsersCountResponse.php - - src/Models/Operations/GetUserRequest.php - - src/Models/Operations/GetUserResponse.php - - src/Models/Operations/UpdateUserPasswordHasher.php - - src/Models/Operations/UpdateUserPublicMetadata.php - - src/Models/Operations/UpdateUserPrivateMetadata.php - - src/Models/Operations/UpdateUserUnsafeMetadata.php - - src/Models/Operations/UpdateUserRequestBody.php - - src/Models/Operations/UpdateUserRequest.php - - src/Models/Operations/UpdateUserResponse.php - - src/Models/Operations/DeleteUserRequest.php - - src/Models/Operations/DeleteUserResponse.php - - src/Models/Operations/BanUserRequest.php - - src/Models/Operations/BanUserResponse.php - - src/Models/Operations/UnbanUserRequest.php - - src/Models/Operations/UnbanUserResponse.php - - src/Models/Operations/LockUserRequest.php - - src/Models/Operations/LockUserResponse.php - - src/Models/Operations/UnlockUserRequest.php - - src/Models/Operations/UnlockUserResponse.php - - src/Models/Operations/File.php - - src/Models/Operations/SetUserProfileImageRequestBody.php - - src/Models/Operations/SetUserProfileImageRequest.php - - src/Models/Operations/SetUserProfileImageResponse.php - - src/Models/Operations/DeleteUserProfileImageRequest.php - - src/Models/Operations/DeleteUserProfileImageResponse.php - - src/Models/Operations/UpdateUserMetadataRequestBody.php - - src/Models/Operations/UpdateUserMetadataRequest.php - - src/Models/Operations/UpdateUserMetadataResponse.php - - src/Models/Operations/GetOAuthAccessTokenRequest.php - - src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php - - src/Models/Operations/ResponseBody.php - - src/Models/Operations/GetOAuthAccessTokenResponse.php - - src/Models/Operations/UsersGetOrganizationMembershipsRequest.php - - src/Models/Operations/UsersGetOrganizationMembershipsResponse.php - - src/Models/Operations/VerifyPasswordRequestBody.php - - src/Models/Operations/VerifyPasswordRequest.php - - src/Models/Operations/VerifyPasswordResponseBody.php - - src/Models/Operations/VerifyPasswordResponse.php - - src/Models/Operations/VerifyTOTPRequestBody.php - - src/Models/Operations/VerifyTOTPRequest.php - - src/Models/Operations/CodeType.php - - src/Models/Operations/VerifyTOTPResponseBody.php - - src/Models/Operations/VerifyTOTPResponse.php - - src/Models/Operations/DisableMFARequest.php - - src/Models/Operations/DisableMFAResponseBody.php - - src/Models/Operations/DisableMFAResponse.php - - src/Models/Operations/CreateInvitationPublicMetadata.php - - src/Models/Operations/CreateInvitationRequestBody.php - - src/Models/Operations/CreateInvitationResponse.php - - src/Models/Operations/QueryParamStatus.php - - src/Models/Operations/ListInvitationsRequest.php - - src/Models/Operations/ListInvitationsResponse.php - - src/Models/Operations/RevokeInvitationRequest.php - - src/Models/Operations/RevokeInvitationResponse.php - - src/Models/Operations/ListAllowlistIdentifiersResponse.php - - src/Models/Operations/CreateAllowlistIdentifierRequestBody.php - - src/Models/Operations/CreateAllowlistIdentifierResponse.php - - src/Models/Operations/DeleteAllowlistIdentifierRequest.php - - src/Models/Operations/DeleteAllowlistIdentifierResponse.php - - src/Models/Operations/ListBlocklistIdentifiersResponse.php - - src/Models/Operations/CreateBlocklistIdentifierRequestBody.php - - src/Models/Operations/CreateBlocklistIdentifierResponse.php - - src/Models/Operations/DeleteBlocklistIdentifierRequest.php - - src/Models/Operations/DeleteBlocklistIdentifierResponse.php - - src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php - - src/Models/Operations/UpdateInstanceAuthConfigResponse.php - - src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php - - src/Models/Operations/UpdateProductionInstanceDomainResponse.php - - src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php - - src/Models/Operations/ChangeProductionInstanceDomainResponse.php - - src/Models/Operations/Actor.php - - src/Models/Operations/CreateActorTokenRequestBody.php - - src/Models/Operations/CreateActorTokenResponse.php - - src/Models/Operations/RevokeActorTokenRequest.php - - src/Models/Operations/RevokeActorTokenResponse.php - - src/Models/Operations/ListDomainsResponse.php - - src/Models/Operations/AddDomainRequestBody.php - - src/Models/Operations/AddDomainResponse.php - - src/Models/Operations/DeleteDomainRequest.php - - src/Models/Operations/DeleteDomainResponse.php - - src/Models/Operations/UpdateDomainRequestBody.php - - src/Models/Operations/UpdateDomainRequest.php - - src/Models/Operations/UpdateDomainResponse.php - - src/Models/Operations/UpdateInstanceRequestBody.php - - src/Models/Operations/UpdateInstanceResponse.php - - src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php - - src/Models/Operations/UpdateInstanceRestrictionsResponse.php - - src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php - - src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php - - src/Models/Operations/CreateSvixAppResponse.php - - src/Models/Operations/DeleteSvixAppResponse.php - - src/Models/Operations/GenerateSvixAuthURLResponse.php - - src/Models/Operations/ListJWTTemplatesResponse.php - - src/Models/Operations/Claims.php - - src/Models/Operations/CreateJWTTemplateRequestBody.php - - src/Models/Operations/CreateJWTTemplateResponse.php - - src/Models/Operations/GetJWTTemplateRequest.php - - src/Models/Operations/GetJWTTemplateResponse.php - - src/Models/Operations/UpdateJWTTemplateClaims.php - - src/Models/Operations/UpdateJWTTemplateRequestBody.php - - src/Models/Operations/UpdateJWTTemplateRequest.php - - src/Models/Operations/UpdateJWTTemplateResponse.php - - src/Models/Operations/DeleteJWTTemplateRequest.php - - src/Models/Operations/DeleteJWTTemplateResponse.php - - src/Models/Operations/ListOrganizationsRequest.php - - src/Models/Operations/ListOrganizationsResponse.php - - src/Models/Operations/CreateOrganizationPrivateMetadata.php - - src/Models/Operations/CreateOrganizationPublicMetadata.php - - src/Models/Operations/CreateOrganizationRequestBody.php - - src/Models/Operations/CreateOrganizationResponse.php - - src/Models/Operations/GetOrganizationRequest.php - - src/Models/Operations/GetOrganizationResponse.php - - src/Models/Operations/UpdateOrganizationPublicMetadata.php - - src/Models/Operations/UpdateOrganizationPrivateMetadata.php - - src/Models/Operations/UpdateOrganizationRequestBody.php - - src/Models/Operations/UpdateOrganizationRequest.php - - src/Models/Operations/UpdateOrganizationResponse.php - - src/Models/Operations/DeleteOrganizationRequest.php - - src/Models/Operations/DeleteOrganizationResponse.php - - src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php - - src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php - - src/Models/Operations/MergeOrganizationMetadataRequestBody.php - - src/Models/Operations/MergeOrganizationMetadataRequest.php - - src/Models/Operations/MergeOrganizationMetadataResponse.php - - src/Models/Operations/UploadOrganizationLogoFile.php - - src/Models/Operations/UploadOrganizationLogoRequestBody.php - - src/Models/Operations/UploadOrganizationLogoRequest.php - - src/Models/Operations/UploadOrganizationLogoResponse.php - - src/Models/Operations/DeleteOrganizationLogoRequest.php - - src/Models/Operations/DeleteOrganizationLogoResponse.php - - src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php - - src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php - - src/Models/Operations/CreateOrganizationInvitationRequestBody.php - - src/Models/Operations/CreateOrganizationInvitationRequest.php - - src/Models/Operations/CreateOrganizationInvitationResponse.php - - src/Models/Operations/ListOrganizationInvitationsQueryParamStatus.php - - src/Models/Operations/ListOrganizationInvitationsRequest.php - - src/Models/Operations/ListOrganizationInvitationsResponse.php - - src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php - - src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php - - src/Models/Operations/RequestBody.php - - src/Models/Operations/CreateOrganizationInvitationBulkRequest.php - - src/Models/Operations/CreateOrganizationInvitationBulkResponse.php - - src/Models/Operations/ListPendingOrganizationInvitationsRequest.php - - src/Models/Operations/ListPendingOrganizationInvitationsResponse.php - - src/Models/Operations/GetOrganizationInvitationRequest.php - - src/Models/Operations/GetOrganizationInvitationResponse.php - - src/Models/Operations/RevokeOrganizationInvitationRequestBody.php - - src/Models/Operations/RevokeOrganizationInvitationRequest.php - - src/Models/Operations/RevokeOrganizationInvitationResponse.php - - src/Models/Operations/CreateOrganizationMembershipRequestBody.php - - src/Models/Operations/CreateOrganizationMembershipRequest.php - - src/Models/Operations/CreateOrganizationMembershipResponse.php - - src/Models/Operations/ListOrganizationMembershipsRequest.php - - src/Models/Operations/ListOrganizationMembershipsResponse.php - - src/Models/Operations/UpdateOrganizationMembershipRequestBody.php - - src/Models/Operations/UpdateOrganizationMembershipRequest.php - - src/Models/Operations/UpdateOrganizationMembershipResponse.php - - src/Models/Operations/DeleteOrganizationMembershipRequest.php - - src/Models/Operations/DeleteOrganizationMembershipResponse.php - - src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php - - src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php - - src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php - - src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php - - src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php - - src/Models/Operations/VerifyDomainProxyRequestBody.php - - src/Models/Operations/VerifyDomainProxyResponse.php - - src/Models/Operations/ListRedirectURLsResponse.php - - src/Models/Operations/CreateRedirectURLRequestBody.php - - src/Models/Operations/CreateRedirectURLResponse.php - - src/Models/Operations/GetRedirectURLRequest.php - - src/Models/Operations/GetRedirectURLResponse.php - - src/Models/Operations/DeleteRedirectURLRequest.php - - src/Models/Operations/DeleteRedirectURLResponse.php - - src/Models/Operations/CreateSignInTokenRequestBody.php - - src/Models/Operations/CreateSignInTokenResponse.php - - src/Models/Operations/RevokeSignInTokenRequest.php - - src/Models/Operations/RevokeSignInTokenResponse.php - - src/Models/Operations/UpdateSignUpRequestBody.php - - src/Models/Operations/UpdateSignUpRequest.php - - src/Models/Operations/UpdateSignUpResponse.php - - src/Models/Operations/ListOAuthApplicationsRequest.php - - src/Models/Operations/ListOAuthApplicationsResponse.php - - src/Models/Operations/CreateOAuthApplicationRequestBody.php - - src/Models/Operations/CreateOAuthApplicationResponse.php - - src/Models/Operations/GetOAuthApplicationRequest.php - - src/Models/Operations/GetOAuthApplicationResponse.php - - src/Models/Operations/UpdateOAuthApplicationRequestBody.php - - src/Models/Operations/UpdateOAuthApplicationRequest.php - - src/Models/Operations/UpdateOAuthApplicationResponse.php - - src/Models/Operations/DeleteOAuthApplicationRequest.php - - src/Models/Operations/DeleteOAuthApplicationResponse.php - - src/Models/Operations/RotateOAuthApplicationSecretRequest.php - - src/Models/Operations/RotateOAuthApplicationSecretResponse.php - - src/Models/Operations/ListSAMLConnectionsRequest.php - - src/Models/Operations/ListSAMLConnectionsResponse.php - - src/Models/Operations/Provider.php - - src/Models/Operations/AttributeMapping.php - - src/Models/Operations/CreateSAMLConnectionRequestBody.php - - src/Models/Operations/CreateSAMLConnectionResponse.php - - src/Models/Operations/GetSAMLConnectionRequest.php - - src/Models/Operations/GetSAMLConnectionResponse.php - - src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php - - src/Models/Operations/UpdateSAMLConnectionRequestBody.php - - src/Models/Operations/UpdateSAMLConnectionRequest.php - - src/Models/Operations/UpdateSAMLConnectionResponse.php - - src/Models/Operations/DeleteSAMLConnectionRequest.php - - src/Models/Operations/DeleteSAMLConnectionResponse.php - - src/Models/Operations/CreateTestingTokenResponse.php - - src/Models/Components/ObjectT.php - - src/Models/Components/Client.php - - src/Models/Components/SessionObject.php - - src/Models/Components/Actor.php - - src/Models/Components/Status.php - - src/Models/Components/Session.php - - src/Models/Components/Meta.php - - src/Models/Components/ClerkError.php - - src/Models/Components/EmailAddressObject.php - - src/Models/Components/OauthVerificationStatus.php - - src/Models/Components/OauthVerificationStrategy.php - - src/Models/Components/ErrorMeta.php - - src/Models/Components/ErrorClerkError.php - - src/Models/Components/Oauth.php - - src/Models/Components/AdminVerificationStatus.php - - src/Models/Components/VerificationStrategy.php - - src/Models/Components/Admin.php - - src/Models/Components/VerificationStatus.php - - src/Models/Components/Strategy.php - - src/Models/Components/Otp.php - - src/Models/Components/EmailAddress.php - - src/Models/Components/Type.php - - src/Models/Components/IdentificationLink.php - - src/Models/Components/DeletedObject.php - - src/Models/Components/PhoneNumberObject.php - - src/Models/Components/AdminVerificationPhoneNumberStatus.php - - src/Models/Components/AdminVerificationStrategy.php - - src/Models/Components/VerificationAdmin.php - - src/Models/Components/OTPVerificationStatus.php - - src/Models/Components/OTPVerificationStrategy.php - - src/Models/Components/VerificationOTP.php - - src/Models/Components/PhoneNumber.php - - src/Models/Components/TemplateObject.php - - src/Models/Components/Template.php - - src/Models/Components/UserObject.php - - src/Models/Components/PublicMetadata.php - - src/Models/Components/PrivateMetadata.php - - src/Models/Components/UnsafeMetadata.php - - src/Models/Components/ExternalAccounts.php - - src/Models/Components/User.php - - src/Models/Components/SAMLAccountObject.php - - src/Models/Components/SAMLAccountPublicMetadata.php - - src/Models/Components/TicketVerificationStatus.php - - src/Models/Components/TicketVerificationStrategy.php - - src/Models/Components/Ticket.php - - src/Models/Components/SAMLVerificationStatus.php - - src/Models/Components/SAMLVerificationStrategy.php - - src/Models/Components/ClerkErrorErrorMeta.php - - src/Models/Components/SAMLErrorClerkError.php - - src/Models/Components/Saml.php - - src/Models/Components/SAMLAccount.php - - src/Models/Components/SchemasPasskeyObject.php - - src/Models/Components/PasskeyVerificationStatus.php - - src/Models/Components/PasskeyVerificationStrategy.php - - src/Models/Components/VerificationNonce.php - - src/Models/Components/Passkey.php - - src/Models/Components/SchemasPasskey.php - - src/Models/Components/Web3WalletObject.php - - src/Models/Components/AdminVerificationWeb3WalletStatus.php - - src/Models/Components/AdminVerificationWeb3WalletStrategy.php - - src/Models/Components/Web3WalletVerificationAdmin.php - - src/Models/Components/Web3SignatureVerificationStatus.php - - src/Models/Components/Web3SignatureVerificationStrategy.php - - src/Models/Components/Nonce.php - - src/Models/Components/Web3Signature.php - - src/Models/Components/Web3Wallet.php - - src/Models/Components/TotalCountObject.php - - src/Models/Components/TotalCount.php - - src/Models/Components/OrganizationMemberships.php - - src/Models/Components/OrganizationMembershipObject.php - - src/Models/Components/OrganizationMembershipPublicMetadata.php - - src/Models/Components/OrganizationMembershipPrivateMetadata.php - - src/Models/Components/OrganizationMembershipOrganizationObject.php - - src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php - - src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php - - src/Models/Components/OrganizationMembershipOrganization.php - - src/Models/Components/PublicUserData.php - - src/Models/Components/OrganizationMembership.php - - src/Models/Components/InvitationObject.php - - src/Models/Components/InvitationPublicMetadata.php - - src/Models/Components/InvitationStatus.php - - src/Models/Components/Invitation.php - - src/Models/Components/InvitationRevokedObject.php - - src/Models/Components/InvitationRevokedPublicMetadata.php - - src/Models/Components/InvitationRevokedStatus.php - - src/Models/Components/InvitationRevoked.php - - src/Models/Components/AllowlistIdentifierObject.php - - src/Models/Components/IdentifierType.php - - src/Models/Components/AllowlistIdentifier.php - - src/Models/Components/BlocklistIdentifiers.php - - src/Models/Components/BlocklistIdentifierObject.php - - src/Models/Components/BlocklistIdentifierIdentifierType.php - - src/Models/Components/BlocklistIdentifier.php - - src/Models/Components/InstanceSettingsObject.php - - src/Models/Components/InstanceSettings.php - - src/Models/Components/ActorTokenObject.php - - src/Models/Components/ActorTokenStatus.php - - src/Models/Components/ActorTokenActor.php - - src/Models/Components/ActorToken.php - - src/Models/Components/Domains.php - - src/Models/Components/DomainObject.php - - src/Models/Components/Domain.php - - src/Models/Components/CNameTarget.php - - src/Models/Components/InstanceRestrictionsObject.php - - src/Models/Components/InstanceRestrictions.php - - src/Models/Components/OrganizationSettingsObject.php - - src/Models/Components/DomainsEnrollmentModes.php - - src/Models/Components/OrganizationSettings.php - - src/Models/Components/SvixURL.php - - src/Models/Components/JWTTemplateObject.php - - src/Models/Components/Claims.php - - src/Models/Components/JWTTemplate.php - - src/Models/Components/Organizations.php - - src/Models/Components/OrganizationObject.php - - src/Models/Components/OrganizationPublicMetadata.php - - src/Models/Components/OrganizationPrivateMetadata.php - - src/Models/Components/Organization.php - - src/Models/Components/OrganizationWithLogoObject.php - - src/Models/Components/OrganizationWithLogoPublicMetadata.php - - src/Models/Components/OrganizationWithLogoPrivateMetadata.php - - src/Models/Components/OrganizationWithLogo.php - - src/Models/Components/OrganizationInvitationObject.php - - src/Models/Components/OrganizationInvitationPublicMetadata.php - - src/Models/Components/OrganizationInvitationPrivateMetadata.php - - src/Models/Components/OrganizationInvitation.php - - src/Models/Components/OrganizationInvitations.php - - src/Models/Components/ProxyCheckObject.php - - src/Models/Components/ProxyCheck.php - - src/Models/Components/RedirectURLObject.php - - src/Models/Components/RedirectURL.php - - src/Models/Components/SignInTokenObject.php - - src/Models/Components/SignInTokenStatus.php - - src/Models/Components/SignInToken.php - - src/Models/Components/SignUpObject.php - - src/Models/Components/SignUpStatus.php - - src/Models/Components/Verifications.php - - src/Models/Components/SignUpUnsafeMetadata.php - - src/Models/Components/SignUpPublicMetadata.php - - src/Models/Components/ExternalAccount.php - - src/Models/Components/SignUp.php - - src/Models/Components/OAuthApplications.php - - src/Models/Components/OAuthApplicationObject.php - - src/Models/Components/OAuthApplication.php - - src/Models/Components/OAuthApplicationWithSecretObject.php - - src/Models/Components/OAuthApplicationWithSecret.php - - src/Models/Components/SAMLConnections.php - - src/Models/Components/SAMLConnectionObject.php - - src/Models/Components/AttributeMapping.php - - src/Models/Components/SAMLConnection.php - - src/Models/Components/TestingTokenObject.php - - src/Models/Components/TestingToken.php - - src/Models/Components/Security.php - - src/Models/Errors/Meta.php - - src/Models/Errors/ClerkErrorsThrowable.php - - src/Models/Errors/ClerkErrors.php - - docs/Models/Operations/GetPublicInterstitialRequest.md - - docs/Models/Operations/GetPublicInterstitialResponse.md - - docs/Models/Operations/GetJWKSResponse.md - - docs/Models/Operations/GetClientListRequest.md - - docs/Models/Operations/GetClientListResponse.md - - docs/Models/Operations/VerifyClientRequestBody.md - - docs/Models/Operations/VerifyClientResponse.md - - docs/Models/Operations/GetClientRequest.md - - docs/Models/Operations/GetClientResponse.md - - docs/Models/Operations/CreateEmailAddressRequestBody.md - - docs/Models/Operations/CreateEmailAddressResponse.md - - docs/Models/Operations/GetEmailAddressRequest.md - - docs/Models/Operations/GetEmailAddressResponse.md - - docs/Models/Operations/DeleteEmailAddressRequest.md - - docs/Models/Operations/DeleteEmailAddressResponse.md - - docs/Models/Operations/UpdateEmailAddressRequestBody.md - - docs/Models/Operations/UpdateEmailAddressRequest.md - - docs/Models/Operations/UpdateEmailAddressResponse.md - - docs/Models/Operations/CreatePhoneNumberRequestBody.md - - docs/Models/Operations/CreatePhoneNumberResponse.md - - docs/Models/Operations/GetPhoneNumberRequest.md - - docs/Models/Operations/GetPhoneNumberResponse.md - - docs/Models/Operations/DeletePhoneNumberRequest.md - - docs/Models/Operations/DeletePhoneNumberResponse.md - - docs/Models/Operations/UpdatePhoneNumberRequestBody.md - - docs/Models/Operations/UpdatePhoneNumberRequest.md - - docs/Models/Operations/UpdatePhoneNumberResponse.md - - docs/Models/Operations/Status.md - - docs/Models/Operations/GetSessionListRequest.md - - docs/Models/Operations/GetSessionListResponse.md - - docs/Models/Operations/GetSessionRequest.md - - docs/Models/Operations/GetSessionResponse.md - - docs/Models/Operations/RevokeSessionRequest.md - - docs/Models/Operations/RevokeSessionResponse.md - - docs/Models/Operations/VerifySessionRequestBody.md - - docs/Models/Operations/VerifySessionRequest.md - - docs/Models/Operations/VerifySessionResponse.md - - docs/Models/Operations/CreateSessionTokenFromTemplateRequest.md - - docs/Models/Operations/ObjectT.md - - docs/Models/Operations/CreateSessionTokenFromTemplateResponseBody.md - - docs/Models/Operations/CreateSessionTokenFromTemplateResponse.md - - docs/Models/Operations/TemplateType.md - - docs/Models/Operations/GetTemplateListRequest.md - - docs/Models/Operations/GetTemplateListResponse.md - - docs/Models/Operations/PathParamTemplateType.md - - docs/Models/Operations/GetTemplateRequest.md - - docs/Models/Operations/GetTemplateResponse.md - - docs/Models/Operations/UpsertTemplatePathParamTemplateType.md - - docs/Models/Operations/UpsertTemplateRequestBody.md - - docs/Models/Operations/UpsertTemplateRequest.md - - docs/Models/Operations/UpsertTemplateResponse.md - - docs/Models/Operations/RevertTemplatePathParamTemplateType.md - - docs/Models/Operations/RevertTemplateRequest.md - - docs/Models/Operations/RevertTemplateResponse.md - - docs/Models/Operations/PreviewTemplateRequestBody.md - - docs/Models/Operations/PreviewTemplateRequest.md - - docs/Models/Operations/PreviewTemplateResponseBody.md - - docs/Models/Operations/PreviewTemplateResponse.md - - docs/Models/Operations/ToggleTemplateDeliveryPathParamTemplateType.md - - docs/Models/Operations/ToggleTemplateDeliveryRequestBody.md - - docs/Models/Operations/ToggleTemplateDeliveryRequest.md - - docs/Models/Operations/ToggleTemplateDeliveryResponse.md - - docs/Models/Operations/GetUserListRequest.md - - docs/Models/Operations/GetUserListResponse.md - - docs/Models/Operations/PasswordHasher.md - - docs/Models/Operations/PublicMetadata.md - - docs/Models/Operations/PrivateMetadata.md - - docs/Models/Operations/UnsafeMetadata.md - - docs/Models/Operations/CreateUserRequestBody.md - - docs/Models/Operations/CreateUserResponse.md - - docs/Models/Operations/GetUsersCountRequest.md - - docs/Models/Operations/GetUsersCountResponse.md - - docs/Models/Operations/GetUserRequest.md - - docs/Models/Operations/GetUserResponse.md - - docs/Models/Operations/UpdateUserPasswordHasher.md - - docs/Models/Operations/UpdateUserPublicMetadata.md - - docs/Models/Operations/UpdateUserPrivateMetadata.md - - docs/Models/Operations/UpdateUserUnsafeMetadata.md - - docs/Models/Operations/UpdateUserRequestBody.md - - docs/Models/Operations/UpdateUserRequest.md - - docs/Models/Operations/UpdateUserResponse.md - - docs/Models/Operations/DeleteUserRequest.md - - docs/Models/Operations/DeleteUserResponse.md + - docs/Models/Components/Actor.md + - docs/Models/Components/ActorToken.md + - docs/Models/Components/ActorTokenActor.md + - docs/Models/Components/ActorTokenObject.md + - docs/Models/Components/ActorTokenStatus.md + - docs/Models/Components/Admin.md + - docs/Models/Components/AdminVerificationPhoneNumberStatus.md + - docs/Models/Components/AdminVerificationStatus.md + - docs/Models/Components/AdminVerificationStrategy.md + - docs/Models/Components/AdminVerificationWeb3WalletStatus.md + - docs/Models/Components/AdminVerificationWeb3WalletStrategy.md + - docs/Models/Components/AllowlistIdentifier.md + - docs/Models/Components/AllowlistIdentifierObject.md + - docs/Models/Components/AttributeMapping.md + - docs/Models/Components/BlocklistIdentifier.md + - docs/Models/Components/BlocklistIdentifierIdentifierType.md + - docs/Models/Components/BlocklistIdentifierObject.md + - docs/Models/Components/BlocklistIdentifiers.md + - docs/Models/Components/CNameTarget.md + - docs/Models/Components/Claims.md + - docs/Models/Components/ClerkError.md + - docs/Models/Components/ClerkErrorErrorMeta.md + - docs/Models/Components/Client.md + - docs/Models/Components/DeletedObject.md + - docs/Models/Components/Domain.md + - docs/Models/Components/DomainObject.md + - docs/Models/Components/Domains.md + - docs/Models/Components/DomainsEnrollmentModes.md + - docs/Models/Components/EmailAddress.md + - docs/Models/Components/EmailAddressObject.md + - docs/Models/Components/Error.md + - docs/Models/Components/ErrorClerkError.md + - docs/Models/Components/ErrorMeta.md + - docs/Models/Components/ExternalAccount.md + - docs/Models/Components/ExternalAccounts.md + - docs/Models/Components/IdentificationLink.md + - docs/Models/Components/IdentifierType.md + - docs/Models/Components/InstanceRestrictions.md + - docs/Models/Components/InstanceRestrictionsObject.md + - docs/Models/Components/InstanceSettings.md + - docs/Models/Components/InstanceSettingsObject.md + - docs/Models/Components/Invitation.md + - docs/Models/Components/InvitationObject.md + - docs/Models/Components/InvitationPublicMetadata.md + - docs/Models/Components/InvitationRevoked.md + - docs/Models/Components/InvitationRevokedObject.md + - docs/Models/Components/InvitationRevokedPublicMetadata.md + - docs/Models/Components/InvitationRevokedStatus.md + - docs/Models/Components/InvitationStatus.md + - docs/Models/Components/JWTTemplate.md + - docs/Models/Components/JWTTemplateObject.md + - docs/Models/Components/Meta.md + - docs/Models/Components/Nonce.md + - docs/Models/Components/OAuthApplication.md + - docs/Models/Components/OAuthApplicationObject.md + - docs/Models/Components/OAuthApplicationWithSecret.md + - docs/Models/Components/OAuthApplicationWithSecretObject.md + - docs/Models/Components/OAuthApplications.md + - docs/Models/Components/OTPVerificationStatus.md + - docs/Models/Components/OTPVerificationStrategy.md + - docs/Models/Components/Oauth.md + - docs/Models/Components/OauthVerificationStatus.md + - docs/Models/Components/OauthVerificationStrategy.md + - docs/Models/Components/ObjectT.md + - docs/Models/Components/Organization.md + - docs/Models/Components/OrganizationInvitation.md + - docs/Models/Components/OrganizationInvitationObject.md + - docs/Models/Components/OrganizationInvitationPrivateMetadata.md + - docs/Models/Components/OrganizationInvitationPublicMetadata.md + - docs/Models/Components/OrganizationInvitations.md + - docs/Models/Components/OrganizationMembership.md + - docs/Models/Components/OrganizationMembershipObject.md + - docs/Models/Components/OrganizationMembershipOrganization.md + - docs/Models/Components/OrganizationMembershipOrganizationObject.md + - docs/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.md + - docs/Models/Components/OrganizationMembershipOrganizationPublicMetadata.md + - docs/Models/Components/OrganizationMembershipPrivateMetadata.md + - docs/Models/Components/OrganizationMembershipPublicMetadata.md + - docs/Models/Components/OrganizationMemberships.md + - docs/Models/Components/OrganizationObject.md + - docs/Models/Components/OrganizationPrivateMetadata.md + - docs/Models/Components/OrganizationPublicMetadata.md + - docs/Models/Components/OrganizationSettings.md + - docs/Models/Components/OrganizationSettingsObject.md + - docs/Models/Components/OrganizationWithLogo.md + - docs/Models/Components/OrganizationWithLogoObject.md + - docs/Models/Components/OrganizationWithLogoPrivateMetadata.md + - docs/Models/Components/OrganizationWithLogoPublicMetadata.md + - docs/Models/Components/Organizations.md + - docs/Models/Components/Otp.md + - docs/Models/Components/Passkey.md + - docs/Models/Components/PasskeyVerificationStatus.md + - docs/Models/Components/PasskeyVerificationStrategy.md + - docs/Models/Components/PhoneNumber.md + - docs/Models/Components/PhoneNumberObject.md + - docs/Models/Components/PhoneNumberVerification.md + - docs/Models/Components/PrivateMetadata.md + - docs/Models/Components/ProxyCheck.md + - docs/Models/Components/ProxyCheckObject.md + - docs/Models/Components/PublicMetadata.md + - docs/Models/Components/PublicUserData.md + - docs/Models/Components/RedirectURL.md + - docs/Models/Components/RedirectURLObject.md + - docs/Models/Components/SAMLAccount.md + - docs/Models/Components/SAMLAccountObject.md + - docs/Models/Components/SAMLAccountPublicMetadata.md + - docs/Models/Components/SAMLAccountVerification.md + - docs/Models/Components/SAMLConnection.md + - docs/Models/Components/SAMLConnectionObject.md + - docs/Models/Components/SAMLConnections.md + - docs/Models/Components/SAMLErrorClerkError.md + - docs/Models/Components/SAMLVerificationStatus.md + - docs/Models/Components/SAMLVerificationStrategy.md + - docs/Models/Components/Saml.md + - docs/Models/Components/SchemasPasskey.md + - docs/Models/Components/SchemasPasskeyObject.md + - docs/Models/Components/SchemasPasskeyVerification.md + - docs/Models/Components/Security.md + - docs/Models/Components/Session.md + - docs/Models/Components/SessionObject.md + - docs/Models/Components/SignInToken.md + - docs/Models/Components/SignInTokenObject.md + - docs/Models/Components/SignInTokenStatus.md + - docs/Models/Components/SignUp.md + - docs/Models/Components/SignUpObject.md + - docs/Models/Components/SignUpPublicMetadata.md + - docs/Models/Components/SignUpStatus.md + - docs/Models/Components/SignUpUnsafeMetadata.md + - docs/Models/Components/Status.md + - docs/Models/Components/Strategy.md + - docs/Models/Components/SvixURL.md + - docs/Models/Components/Template.md + - docs/Models/Components/TemplateObject.md + - docs/Models/Components/TestingToken.md + - docs/Models/Components/TestingTokenObject.md + - docs/Models/Components/Ticket.md + - docs/Models/Components/TicketVerificationStatus.md + - docs/Models/Components/TicketVerificationStrategy.md + - docs/Models/Components/TotalCount.md + - docs/Models/Components/TotalCountObject.md + - docs/Models/Components/Type.md + - docs/Models/Components/UnsafeMetadata.md + - docs/Models/Components/User.md + - docs/Models/Components/UserObject.md + - docs/Models/Components/Verification.md + - docs/Models/Components/VerificationAdmin.md + - docs/Models/Components/VerificationError.md + - docs/Models/Components/VerificationNonce.md + - docs/Models/Components/VerificationOTP.md + - docs/Models/Components/VerificationStatus.md + - docs/Models/Components/VerificationStrategy.md + - docs/Models/Components/Verifications.md + - docs/Models/Components/Web3Signature.md + - docs/Models/Components/Web3SignatureVerificationStatus.md + - docs/Models/Components/Web3SignatureVerificationStrategy.md + - docs/Models/Components/Web3Wallet.md + - docs/Models/Components/Web3WalletObject.md + - docs/Models/Components/Web3WalletVerification.md + - docs/Models/Components/Web3WalletVerificationAdmin.md + - docs/Models/Errors/ClerkErrors.md + - docs/Models/Errors/ClerkErrors1.md + - docs/Models/Errors/ClerkErrors10.md + - docs/Models/Errors/ClerkErrors11.md + - docs/Models/Errors/ClerkErrors12.md + - docs/Models/Errors/ClerkErrors13.md + - docs/Models/Errors/ClerkErrors14.md + - docs/Models/Errors/ClerkErrors15.md + - docs/Models/Errors/ClerkErrors16.md + - docs/Models/Errors/ClerkErrors17.md + - docs/Models/Errors/ClerkErrors18.md + - docs/Models/Errors/ClerkErrors19.md + - docs/Models/Errors/ClerkErrors2.md + - docs/Models/Errors/ClerkErrors20.md + - docs/Models/Errors/ClerkErrors21.md + - docs/Models/Errors/ClerkErrors22.md + - docs/Models/Errors/ClerkErrors23.md + - docs/Models/Errors/ClerkErrors24.md + - docs/Models/Errors/ClerkErrors25.md + - docs/Models/Errors/ClerkErrors26.md + - docs/Models/Errors/ClerkErrors27.md + - docs/Models/Errors/ClerkErrors28.md + - docs/Models/Errors/ClerkErrors29.md + - docs/Models/Errors/ClerkErrors3.md + - docs/Models/Errors/ClerkErrors30.md + - docs/Models/Errors/ClerkErrors31.md + - docs/Models/Errors/ClerkErrors32.md + - docs/Models/Errors/ClerkErrors33.md + - docs/Models/Errors/ClerkErrors34.md + - docs/Models/Errors/ClerkErrors35.md + - docs/Models/Errors/ClerkErrors36.md + - docs/Models/Errors/ClerkErrors37.md + - docs/Models/Errors/ClerkErrors38.md + - docs/Models/Errors/ClerkErrors39.md + - docs/Models/Errors/ClerkErrors4.md + - docs/Models/Errors/ClerkErrors40.md + - docs/Models/Errors/ClerkErrors41.md + - docs/Models/Errors/ClerkErrors42.md + - docs/Models/Errors/ClerkErrors43.md + - docs/Models/Errors/ClerkErrors44.md + - docs/Models/Errors/ClerkErrors45.md + - docs/Models/Errors/ClerkErrors46.md + - docs/Models/Errors/ClerkErrors47.md + - docs/Models/Errors/ClerkErrors48.md + - docs/Models/Errors/ClerkErrors49.md + - docs/Models/Errors/ClerkErrors5.md + - docs/Models/Errors/ClerkErrors50.md + - docs/Models/Errors/ClerkErrors51.md + - docs/Models/Errors/ClerkErrors52.md + - docs/Models/Errors/ClerkErrors53.md + - docs/Models/Errors/ClerkErrors54.md + - docs/Models/Errors/ClerkErrors55.md + - docs/Models/Errors/ClerkErrors56.md + - docs/Models/Errors/ClerkErrors57.md + - docs/Models/Errors/ClerkErrors58.md + - docs/Models/Errors/ClerkErrors59.md + - docs/Models/Errors/ClerkErrors6.md + - docs/Models/Errors/ClerkErrors60.md + - docs/Models/Errors/ClerkErrors61.md + - docs/Models/Errors/ClerkErrors62.md + - docs/Models/Errors/ClerkErrors63.md + - docs/Models/Errors/ClerkErrors64.md + - docs/Models/Errors/ClerkErrors65.md + - docs/Models/Errors/ClerkErrors66.md + - docs/Models/Errors/ClerkErrors67.md + - docs/Models/Errors/ClerkErrors68.md + - docs/Models/Errors/ClerkErrors69.md + - docs/Models/Errors/ClerkErrors7.md + - docs/Models/Errors/ClerkErrors70.md + - docs/Models/Errors/ClerkErrors71.md + - docs/Models/Errors/ClerkErrors72.md + - docs/Models/Errors/ClerkErrors73.md + - docs/Models/Errors/ClerkErrors74.md + - docs/Models/Errors/ClerkErrors75.md + - docs/Models/Errors/ClerkErrors76.md + - docs/Models/Errors/ClerkErrors77.md + - docs/Models/Errors/ClerkErrors78.md + - docs/Models/Errors/ClerkErrors79.md + - docs/Models/Errors/ClerkErrors8.md + - docs/Models/Errors/ClerkErrors80.md + - docs/Models/Errors/ClerkErrors81.md + - docs/Models/Errors/ClerkErrors82.md + - docs/Models/Errors/ClerkErrors83.md + - docs/Models/Errors/ClerkErrors84.md + - docs/Models/Errors/ClerkErrors85.md + - docs/Models/Errors/ClerkErrors86.md + - docs/Models/Errors/ClerkErrors87.md + - docs/Models/Errors/ClerkErrors88.md + - docs/Models/Errors/ClerkErrors89.md + - docs/Models/Errors/ClerkErrors9.md + - docs/Models/Errors/Meta.md + - docs/Models/Operations/Actor.md + - docs/Models/Operations/AddDomainRequestBody.md + - docs/Models/Operations/AddDomainResponse.md + - docs/Models/Operations/AttributeMapping.md - docs/Models/Operations/BanUserRequest.md - docs/Models/Operations/BanUserResponse.md - - docs/Models/Operations/UnbanUserRequest.md - - docs/Models/Operations/UnbanUserResponse.md - - docs/Models/Operations/LockUserRequest.md - - docs/Models/Operations/LockUserResponse.md - - docs/Models/Operations/UnlockUserRequest.md - - docs/Models/Operations/UnlockUserResponse.md - - docs/Models/Operations/File.md - - docs/Models/Operations/SetUserProfileImageRequestBody.md - - docs/Models/Operations/SetUserProfileImageRequest.md - - docs/Models/Operations/SetUserProfileImageResponse.md - - docs/Models/Operations/DeleteUserProfileImageRequest.md - - docs/Models/Operations/DeleteUserProfileImageResponse.md - - docs/Models/Operations/UpdateUserMetadataRequestBody.md - - docs/Models/Operations/UpdateUserMetadataRequest.md - - docs/Models/Operations/UpdateUserMetadataResponse.md - - docs/Models/Operations/GetOAuthAccessTokenRequest.md - - docs/Models/Operations/GetOAuthAccessTokenPublicMetadata.md - - docs/Models/Operations/ResponseBody.md - - docs/Models/Operations/GetOAuthAccessTokenResponse.md - - docs/Models/Operations/UsersGetOrganizationMembershipsRequest.md - - docs/Models/Operations/UsersGetOrganizationMembershipsResponse.md - - docs/Models/Operations/VerifyPasswordRequestBody.md - - docs/Models/Operations/VerifyPasswordRequest.md - - docs/Models/Operations/VerifyPasswordResponseBody.md - - docs/Models/Operations/VerifyPasswordResponse.md - - docs/Models/Operations/VerifyTOTPRequestBody.md - - docs/Models/Operations/VerifyTOTPRequest.md + - docs/Models/Operations/ChangeProductionInstanceDomainRequestBody.md + - docs/Models/Operations/ChangeProductionInstanceDomainResponse.md + - docs/Models/Operations/Claims.md - docs/Models/Operations/CodeType.md - - docs/Models/Operations/VerifyTOTPResponseBody.md - - docs/Models/Operations/VerifyTOTPResponse.md - - docs/Models/Operations/DisableMFARequest.md - - docs/Models/Operations/DisableMFAResponseBody.md - - docs/Models/Operations/DisableMFAResponse.md + - docs/Models/Operations/CreateActorTokenRequestBody.md + - docs/Models/Operations/CreateActorTokenResponse.md + - docs/Models/Operations/CreateAllowlistIdentifierRequestBody.md + - docs/Models/Operations/CreateAllowlistIdentifierResponse.md + - docs/Models/Operations/CreateBlocklistIdentifierRequestBody.md + - docs/Models/Operations/CreateBlocklistIdentifierResponse.md + - docs/Models/Operations/CreateEmailAddressRequestBody.md + - docs/Models/Operations/CreateEmailAddressResponse.md - docs/Models/Operations/CreateInvitationPublicMetadata.md - docs/Models/Operations/CreateInvitationRequestBody.md - docs/Models/Operations/CreateInvitationResponse.md - - docs/Models/Operations/QueryParamStatus.md - - docs/Models/Operations/ListInvitationsRequest.md - - docs/Models/Operations/ListInvitationsResponse.md - - docs/Models/Operations/RevokeInvitationRequest.md - - docs/Models/Operations/RevokeInvitationResponse.md - - docs/Models/Operations/ListAllowlistIdentifiersResponse.md - - docs/Models/Operations/CreateAllowlistIdentifierRequestBody.md - - docs/Models/Operations/CreateAllowlistIdentifierResponse.md + - docs/Models/Operations/CreateJWTTemplateRequestBody.md + - docs/Models/Operations/CreateJWTTemplateResponse.md + - docs/Models/Operations/CreateOAuthApplicationRequestBody.md + - docs/Models/Operations/CreateOAuthApplicationResponse.md + - docs/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.md + - docs/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.md + - docs/Models/Operations/CreateOrganizationInvitationBulkRequest.md + - docs/Models/Operations/CreateOrganizationInvitationBulkResponse.md + - docs/Models/Operations/CreateOrganizationInvitationPrivateMetadata.md + - docs/Models/Operations/CreateOrganizationInvitationPublicMetadata.md + - docs/Models/Operations/CreateOrganizationInvitationRequest.md + - docs/Models/Operations/CreateOrganizationInvitationRequestBody.md + - docs/Models/Operations/CreateOrganizationInvitationResponse.md + - docs/Models/Operations/CreateOrganizationMembershipRequest.md + - docs/Models/Operations/CreateOrganizationMembershipRequestBody.md + - docs/Models/Operations/CreateOrganizationMembershipResponse.md + - docs/Models/Operations/CreateOrganizationPrivateMetadata.md + - docs/Models/Operations/CreateOrganizationPublicMetadata.md + - docs/Models/Operations/CreateOrganizationRequestBody.md + - docs/Models/Operations/CreateOrganizationResponse.md + - docs/Models/Operations/CreatePhoneNumberRequestBody.md + - docs/Models/Operations/CreatePhoneNumberResponse.md + - docs/Models/Operations/CreateRedirectURLRequestBody.md + - docs/Models/Operations/CreateRedirectURLResponse.md + - docs/Models/Operations/CreateSAMLConnectionRequestBody.md + - docs/Models/Operations/CreateSAMLConnectionResponse.md + - docs/Models/Operations/CreateSessionTokenFromTemplateRequest.md + - docs/Models/Operations/CreateSessionTokenFromTemplateResponse.md + - docs/Models/Operations/CreateSessionTokenFromTemplateResponseBody.md + - docs/Models/Operations/CreateSignInTokenRequestBody.md + - docs/Models/Operations/CreateSignInTokenResponse.md + - docs/Models/Operations/CreateSvixAppResponse.md + - docs/Models/Operations/CreateTestingTokenResponse.md + - docs/Models/Operations/CreateUserRequestBody.md + - docs/Models/Operations/CreateUserResponse.md - docs/Models/Operations/DeleteAllowlistIdentifierRequest.md - docs/Models/Operations/DeleteAllowlistIdentifierResponse.md - - docs/Models/Operations/ListBlocklistIdentifiersResponse.md - - docs/Models/Operations/CreateBlocklistIdentifierRequestBody.md - - docs/Models/Operations/CreateBlocklistIdentifierResponse.md - docs/Models/Operations/DeleteBlocklistIdentifierRequest.md - docs/Models/Operations/DeleteBlocklistIdentifierResponse.md - - docs/Models/Operations/UpdateInstanceAuthConfigRequestBody.md - - docs/Models/Operations/UpdateInstanceAuthConfigResponse.md - - docs/Models/Operations/UpdateProductionInstanceDomainRequestBody.md - - docs/Models/Operations/UpdateProductionInstanceDomainResponse.md - - docs/Models/Operations/ChangeProductionInstanceDomainRequestBody.md - - docs/Models/Operations/ChangeProductionInstanceDomainResponse.md - - docs/Models/Operations/Actor.md - - docs/Models/Operations/CreateActorTokenRequestBody.md - - docs/Models/Operations/CreateActorTokenResponse.md - - docs/Models/Operations/RevokeActorTokenRequest.md - - docs/Models/Operations/RevokeActorTokenResponse.md - - docs/Models/Operations/ListDomainsResponse.md - - docs/Models/Operations/AddDomainRequestBody.md - - docs/Models/Operations/AddDomainResponse.md - docs/Models/Operations/DeleteDomainRequest.md - docs/Models/Operations/DeleteDomainResponse.md - - docs/Models/Operations/UpdateDomainRequestBody.md - - docs/Models/Operations/UpdateDomainRequest.md - - docs/Models/Operations/UpdateDomainResponse.md - - docs/Models/Operations/UpdateInstanceRequestBody.md - - docs/Models/Operations/UpdateInstanceResponse.md - - docs/Models/Operations/UpdateInstanceRestrictionsRequestBody.md - - docs/Models/Operations/UpdateInstanceRestrictionsResponse.md - - docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md - - docs/Models/Operations/UpdateInstanceOrganizationSettingsResponse.md - - docs/Models/Operations/CreateSvixAppResponse.md + - docs/Models/Operations/DeleteEmailAddressRequest.md + - docs/Models/Operations/DeleteEmailAddressResponse.md + - docs/Models/Operations/DeleteJWTTemplateRequest.md + - docs/Models/Operations/DeleteJWTTemplateResponse.md + - docs/Models/Operations/DeleteOAuthApplicationRequest.md + - docs/Models/Operations/DeleteOAuthApplicationResponse.md + - docs/Models/Operations/DeleteOrganizationLogoRequest.md + - docs/Models/Operations/DeleteOrganizationLogoResponse.md + - docs/Models/Operations/DeleteOrganizationMembershipRequest.md + - docs/Models/Operations/DeleteOrganizationMembershipResponse.md + - docs/Models/Operations/DeleteOrganizationRequest.md + - docs/Models/Operations/DeleteOrganizationResponse.md + - docs/Models/Operations/DeletePhoneNumberRequest.md + - docs/Models/Operations/DeletePhoneNumberResponse.md + - docs/Models/Operations/DeleteRedirectURLRequest.md + - docs/Models/Operations/DeleteRedirectURLResponse.md + - docs/Models/Operations/DeleteSAMLConnectionRequest.md + - docs/Models/Operations/DeleteSAMLConnectionResponse.md - docs/Models/Operations/DeleteSvixAppResponse.md + - docs/Models/Operations/DeleteUserProfileImageRequest.md + - docs/Models/Operations/DeleteUserProfileImageResponse.md + - docs/Models/Operations/DeleteUserRequest.md + - docs/Models/Operations/DeleteUserResponse.md + - docs/Models/Operations/DisableMFARequest.md + - docs/Models/Operations/DisableMFAResponse.md + - docs/Models/Operations/DisableMFAResponseBody.md + - docs/Models/Operations/File.md - docs/Models/Operations/GenerateSvixAuthURLResponse.md - - docs/Models/Operations/ListJWTTemplatesResponse.md - - docs/Models/Operations/Claims.md - - docs/Models/Operations/CreateJWTTemplateRequestBody.md - - docs/Models/Operations/CreateJWTTemplateResponse.md + - docs/Models/Operations/GetClientListRequest.md + - docs/Models/Operations/GetClientListResponse.md + - docs/Models/Operations/GetClientRequest.md + - docs/Models/Operations/GetClientResponse.md + - docs/Models/Operations/GetEmailAddressRequest.md + - docs/Models/Operations/GetEmailAddressResponse.md + - docs/Models/Operations/GetJWKSResponse.md - docs/Models/Operations/GetJWTTemplateRequest.md - docs/Models/Operations/GetJWTTemplateResponse.md - - docs/Models/Operations/UpdateJWTTemplateClaims.md - - docs/Models/Operations/UpdateJWTTemplateRequestBody.md - - docs/Models/Operations/UpdateJWTTemplateRequest.md - - docs/Models/Operations/UpdateJWTTemplateResponse.md - - docs/Models/Operations/DeleteJWTTemplateRequest.md - - docs/Models/Operations/DeleteJWTTemplateResponse.md - - docs/Models/Operations/ListOrganizationsRequest.md - - docs/Models/Operations/ListOrganizationsResponse.md - - docs/Models/Operations/CreateOrganizationPrivateMetadata.md - - docs/Models/Operations/CreateOrganizationPublicMetadata.md - - docs/Models/Operations/CreateOrganizationRequestBody.md - - docs/Models/Operations/CreateOrganizationResponse.md + - docs/Models/Operations/GetOAuthAccessTokenPublicMetadata.md + - docs/Models/Operations/GetOAuthAccessTokenRequest.md + - docs/Models/Operations/GetOAuthAccessTokenResponse.md + - docs/Models/Operations/GetOAuthApplicationRequest.md + - docs/Models/Operations/GetOAuthApplicationResponse.md + - docs/Models/Operations/GetOrganizationInvitationRequest.md + - docs/Models/Operations/GetOrganizationInvitationResponse.md - docs/Models/Operations/GetOrganizationRequest.md - docs/Models/Operations/GetOrganizationResponse.md - - docs/Models/Operations/UpdateOrganizationPublicMetadata.md - - docs/Models/Operations/UpdateOrganizationPrivateMetadata.md - - docs/Models/Operations/UpdateOrganizationRequestBody.md - - docs/Models/Operations/UpdateOrganizationRequest.md - - docs/Models/Operations/UpdateOrganizationResponse.md - - docs/Models/Operations/DeleteOrganizationRequest.md - - docs/Models/Operations/DeleteOrganizationResponse.md - - docs/Models/Operations/MergeOrganizationMetadataPublicMetadata.md - - docs/Models/Operations/MergeOrganizationMetadataPrivateMetadata.md - - docs/Models/Operations/MergeOrganizationMetadataRequestBody.md - - docs/Models/Operations/MergeOrganizationMetadataRequest.md - - docs/Models/Operations/MergeOrganizationMetadataResponse.md - - docs/Models/Operations/UploadOrganizationLogoFile.md - - docs/Models/Operations/UploadOrganizationLogoRequestBody.md - - docs/Models/Operations/UploadOrganizationLogoRequest.md - - docs/Models/Operations/UploadOrganizationLogoResponse.md - - docs/Models/Operations/DeleteOrganizationLogoRequest.md - - docs/Models/Operations/DeleteOrganizationLogoResponse.md - - docs/Models/Operations/CreateOrganizationInvitationPublicMetadata.md - - docs/Models/Operations/CreateOrganizationInvitationPrivateMetadata.md - - docs/Models/Operations/CreateOrganizationInvitationRequestBody.md - - docs/Models/Operations/CreateOrganizationInvitationRequest.md - - docs/Models/Operations/CreateOrganizationInvitationResponse.md + - docs/Models/Operations/GetPhoneNumberRequest.md + - docs/Models/Operations/GetPhoneNumberResponse.md + - docs/Models/Operations/GetPublicInterstitialRequest.md + - docs/Models/Operations/GetPublicInterstitialResponse.md + - docs/Models/Operations/GetRedirectURLRequest.md + - docs/Models/Operations/GetRedirectURLResponse.md + - docs/Models/Operations/GetSAMLConnectionRequest.md + - docs/Models/Operations/GetSAMLConnectionResponse.md + - docs/Models/Operations/GetSessionListRequest.md + - docs/Models/Operations/GetSessionListResponse.md + - docs/Models/Operations/GetSessionRequest.md + - docs/Models/Operations/GetSessionResponse.md + - docs/Models/Operations/GetTemplateListRequest.md + - docs/Models/Operations/GetTemplateListResponse.md + - docs/Models/Operations/GetTemplateRequest.md + - docs/Models/Operations/GetTemplateResponse.md + - docs/Models/Operations/GetUserListRequest.md + - docs/Models/Operations/GetUserListResponse.md + - docs/Models/Operations/GetUserRequest.md + - docs/Models/Operations/GetUserResponse.md + - docs/Models/Operations/GetUsersCountRequest.md + - docs/Models/Operations/GetUsersCountResponse.md + - docs/Models/Operations/ListAllowlistIdentifiersResponse.md + - docs/Models/Operations/ListBlocklistIdentifiersResponse.md + - docs/Models/Operations/ListDomainsResponse.md + - docs/Models/Operations/ListInvitationsRequest.md + - docs/Models/Operations/ListInvitationsResponse.md + - docs/Models/Operations/ListJWTTemplatesResponse.md + - docs/Models/Operations/ListOAuthApplicationsRequest.md + - docs/Models/Operations/ListOAuthApplicationsResponse.md - docs/Models/Operations/ListOrganizationInvitationsQueryParamStatus.md - docs/Models/Operations/ListOrganizationInvitationsRequest.md - docs/Models/Operations/ListOrganizationInvitationsResponse.md - - docs/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.md - - docs/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.md - - docs/Models/Operations/RequestBody.md - - docs/Models/Operations/CreateOrganizationInvitationBulkRequest.md - - docs/Models/Operations/CreateOrganizationInvitationBulkResponse.md + - docs/Models/Operations/ListOrganizationMembershipsRequest.md + - docs/Models/Operations/ListOrganizationMembershipsResponse.md + - docs/Models/Operations/ListOrganizationsRequest.md + - docs/Models/Operations/ListOrganizationsResponse.md - docs/Models/Operations/ListPendingOrganizationInvitationsRequest.md - docs/Models/Operations/ListPendingOrganizationInvitationsResponse.md - - docs/Models/Operations/GetOrganizationInvitationRequest.md - - docs/Models/Operations/GetOrganizationInvitationResponse.md - - docs/Models/Operations/RevokeOrganizationInvitationRequestBody.md + - docs/Models/Operations/ListRedirectURLsResponse.md + - docs/Models/Operations/ListSAMLConnectionsRequest.md + - docs/Models/Operations/ListSAMLConnectionsResponse.md + - docs/Models/Operations/LockUserRequest.md + - docs/Models/Operations/LockUserResponse.md + - docs/Models/Operations/MergeOrganizationMetadataPrivateMetadata.md + - docs/Models/Operations/MergeOrganizationMetadataPublicMetadata.md + - docs/Models/Operations/MergeOrganizationMetadataRequest.md + - docs/Models/Operations/MergeOrganizationMetadataRequestBody.md + - docs/Models/Operations/MergeOrganizationMetadataResponse.md + - docs/Models/Operations/ObjectT.md + - docs/Models/Operations/PasswordHasher.md + - docs/Models/Operations/PathParamTemplateType.md + - docs/Models/Operations/PreviewTemplateRequest.md + - docs/Models/Operations/PreviewTemplateRequestBody.md + - docs/Models/Operations/PreviewTemplateResponse.md + - docs/Models/Operations/PreviewTemplateResponseBody.md + - docs/Models/Operations/PrivateMetadata.md + - docs/Models/Operations/Provider.md + - docs/Models/Operations/PublicMetadata.md + - docs/Models/Operations/QueryParamStatus.md + - docs/Models/Operations/RequestBody.md + - docs/Models/Operations/ResponseBody.md + - docs/Models/Operations/RevertTemplatePathParamTemplateType.md + - docs/Models/Operations/RevertTemplateRequest.md + - docs/Models/Operations/RevertTemplateResponse.md + - docs/Models/Operations/RevokeActorTokenRequest.md + - docs/Models/Operations/RevokeActorTokenResponse.md + - docs/Models/Operations/RevokeInvitationRequest.md + - docs/Models/Operations/RevokeInvitationResponse.md - docs/Models/Operations/RevokeOrganizationInvitationRequest.md + - docs/Models/Operations/RevokeOrganizationInvitationRequestBody.md - docs/Models/Operations/RevokeOrganizationInvitationResponse.md - - docs/Models/Operations/CreateOrganizationMembershipRequestBody.md - - docs/Models/Operations/CreateOrganizationMembershipRequest.md - - docs/Models/Operations/CreateOrganizationMembershipResponse.md - - docs/Models/Operations/ListOrganizationMembershipsRequest.md - - docs/Models/Operations/ListOrganizationMembershipsResponse.md - - docs/Models/Operations/UpdateOrganizationMembershipRequestBody.md - - docs/Models/Operations/UpdateOrganizationMembershipRequest.md - - docs/Models/Operations/UpdateOrganizationMembershipResponse.md - - docs/Models/Operations/DeleteOrganizationMembershipRequest.md - - docs/Models/Operations/DeleteOrganizationMembershipResponse.md - - docs/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.md - - docs/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.md - - docs/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.md - - docs/Models/Operations/UpdateOrganizationMembershipMetadataRequest.md - - docs/Models/Operations/UpdateOrganizationMembershipMetadataResponse.md - - docs/Models/Operations/VerifyDomainProxyRequestBody.md - - docs/Models/Operations/VerifyDomainProxyResponse.md - - docs/Models/Operations/ListRedirectURLsResponse.md - - docs/Models/Operations/CreateRedirectURLRequestBody.md - - docs/Models/Operations/CreateRedirectURLResponse.md - - docs/Models/Operations/GetRedirectURLRequest.md - - docs/Models/Operations/GetRedirectURLResponse.md - - docs/Models/Operations/DeleteRedirectURLRequest.md - - docs/Models/Operations/DeleteRedirectURLResponse.md - - docs/Models/Operations/CreateSignInTokenRequestBody.md - - docs/Models/Operations/CreateSignInTokenResponse.md + - docs/Models/Operations/RevokeSessionRequest.md + - docs/Models/Operations/RevokeSessionResponse.md - docs/Models/Operations/RevokeSignInTokenRequest.md - docs/Models/Operations/RevokeSignInTokenResponse.md - - docs/Models/Operations/UpdateSignUpRequestBody.md - - docs/Models/Operations/UpdateSignUpRequest.md - - docs/Models/Operations/UpdateSignUpResponse.md - - docs/Models/Operations/ListOAuthApplicationsRequest.md - - docs/Models/Operations/ListOAuthApplicationsResponse.md - - docs/Models/Operations/CreateOAuthApplicationRequestBody.md - - docs/Models/Operations/CreateOAuthApplicationResponse.md - - docs/Models/Operations/GetOAuthApplicationRequest.md - - docs/Models/Operations/GetOAuthApplicationResponse.md - - docs/Models/Operations/UpdateOAuthApplicationRequestBody.md + - docs/Models/Operations/RotateOAuthApplicationSecretRequest.md + - docs/Models/Operations/RotateOAuthApplicationSecretResponse.md + - docs/Models/Operations/SetUserProfileImageRequest.md + - docs/Models/Operations/SetUserProfileImageRequestBody.md + - docs/Models/Operations/SetUserProfileImageResponse.md + - docs/Models/Operations/Status.md + - docs/Models/Operations/TemplateType.md + - docs/Models/Operations/ToggleTemplateDeliveryPathParamTemplateType.md + - docs/Models/Operations/ToggleTemplateDeliveryRequest.md + - docs/Models/Operations/ToggleTemplateDeliveryRequestBody.md + - docs/Models/Operations/ToggleTemplateDeliveryResponse.md + - docs/Models/Operations/UnbanUserRequest.md + - docs/Models/Operations/UnbanUserResponse.md + - docs/Models/Operations/UnlockUserRequest.md + - docs/Models/Operations/UnlockUserResponse.md + - docs/Models/Operations/UnsafeMetadata.md + - docs/Models/Operations/UpdateDomainRequest.md + - docs/Models/Operations/UpdateDomainRequestBody.md + - docs/Models/Operations/UpdateDomainResponse.md + - docs/Models/Operations/UpdateEmailAddressRequest.md + - docs/Models/Operations/UpdateEmailAddressRequestBody.md + - docs/Models/Operations/UpdateEmailAddressResponse.md + - docs/Models/Operations/UpdateInstanceAuthConfigRequestBody.md + - docs/Models/Operations/UpdateInstanceAuthConfigResponse.md + - docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md + - docs/Models/Operations/UpdateInstanceOrganizationSettingsResponse.md + - docs/Models/Operations/UpdateInstanceRequestBody.md + - docs/Models/Operations/UpdateInstanceResponse.md + - docs/Models/Operations/UpdateInstanceRestrictionsRequestBody.md + - docs/Models/Operations/UpdateInstanceRestrictionsResponse.md + - docs/Models/Operations/UpdateJWTTemplateClaims.md + - docs/Models/Operations/UpdateJWTTemplateRequest.md + - docs/Models/Operations/UpdateJWTTemplateRequestBody.md + - docs/Models/Operations/UpdateJWTTemplateResponse.md - docs/Models/Operations/UpdateOAuthApplicationRequest.md + - docs/Models/Operations/UpdateOAuthApplicationRequestBody.md - docs/Models/Operations/UpdateOAuthApplicationResponse.md - - docs/Models/Operations/DeleteOAuthApplicationRequest.md - - docs/Models/Operations/DeleteOAuthApplicationResponse.md - - docs/Models/Operations/RotateOAuthApplicationSecretRequest.md - - docs/Models/Operations/RotateOAuthApplicationSecretResponse.md - - docs/Models/Operations/ListSAMLConnectionsRequest.md - - docs/Models/Operations/ListSAMLConnectionsResponse.md - - docs/Models/Operations/Provider.md - - docs/Models/Operations/AttributeMapping.md - - docs/Models/Operations/CreateSAMLConnectionRequestBody.md - - docs/Models/Operations/CreateSAMLConnectionResponse.md - - docs/Models/Operations/GetSAMLConnectionRequest.md - - docs/Models/Operations/GetSAMLConnectionResponse.md + - docs/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.md + - docs/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.md + - docs/Models/Operations/UpdateOrganizationMembershipMetadataRequest.md + - docs/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.md + - docs/Models/Operations/UpdateOrganizationMembershipMetadataResponse.md + - docs/Models/Operations/UpdateOrganizationMembershipRequest.md + - docs/Models/Operations/UpdateOrganizationMembershipRequestBody.md + - docs/Models/Operations/UpdateOrganizationMembershipResponse.md + - docs/Models/Operations/UpdateOrganizationPrivateMetadata.md + - docs/Models/Operations/UpdateOrganizationPublicMetadata.md + - docs/Models/Operations/UpdateOrganizationRequest.md + - docs/Models/Operations/UpdateOrganizationRequestBody.md + - docs/Models/Operations/UpdateOrganizationResponse.md + - docs/Models/Operations/UpdatePhoneNumberRequest.md + - docs/Models/Operations/UpdatePhoneNumberRequestBody.md + - docs/Models/Operations/UpdatePhoneNumberResponse.md + - docs/Models/Operations/UpdateProductionInstanceDomainRequestBody.md + - docs/Models/Operations/UpdateProductionInstanceDomainResponse.md - docs/Models/Operations/UpdateSAMLConnectionAttributeMapping.md - - docs/Models/Operations/UpdateSAMLConnectionRequestBody.md - docs/Models/Operations/UpdateSAMLConnectionRequest.md + - docs/Models/Operations/UpdateSAMLConnectionRequestBody.md - docs/Models/Operations/UpdateSAMLConnectionResponse.md - - docs/Models/Operations/DeleteSAMLConnectionRequest.md - - docs/Models/Operations/DeleteSAMLConnectionResponse.md - - docs/Models/Operations/CreateTestingTokenResponse.md - - docs/Models/Components/ObjectT.md - - docs/Models/Components/Client.md - - docs/Models/Components/SessionObject.md - - docs/Models/Components/Actor.md - - docs/Models/Components/Status.md - - docs/Models/Components/Session.md - - docs/Models/Components/Meta.md - - docs/Models/Components/ClerkError.md - - docs/Models/Components/EmailAddressObject.md - - docs/Models/Components/OauthVerificationStatus.md - - docs/Models/Components/OauthVerificationStrategy.md - - docs/Models/Components/ErrorMeta.md - - docs/Models/Components/ErrorClerkError.md - - docs/Models/Components/Error.md - - docs/Models/Components/Oauth.md - - docs/Models/Components/AdminVerificationStatus.md - - docs/Models/Components/VerificationStrategy.md - - docs/Models/Components/Admin.md - - docs/Models/Components/VerificationStatus.md - - docs/Models/Components/Strategy.md - - docs/Models/Components/Otp.md - - docs/Models/Components/Verification.md - - docs/Models/Components/EmailAddress.md - - docs/Models/Components/Type.md - - docs/Models/Components/IdentificationLink.md - - docs/Models/Components/DeletedObject.md - - docs/Models/Components/PhoneNumberObject.md - - docs/Models/Components/AdminVerificationPhoneNumberStatus.md - - docs/Models/Components/AdminVerificationStrategy.md - - docs/Models/Components/VerificationAdmin.md - - docs/Models/Components/OTPVerificationStatus.md - - docs/Models/Components/OTPVerificationStrategy.md - - docs/Models/Components/VerificationOTP.md - - docs/Models/Components/PhoneNumberVerification.md - - docs/Models/Components/PhoneNumber.md - - docs/Models/Components/TemplateObject.md - - docs/Models/Components/Template.md - - docs/Models/Components/UserObject.md - - docs/Models/Components/PublicMetadata.md - - docs/Models/Components/PrivateMetadata.md - - docs/Models/Components/UnsafeMetadata.md - - docs/Models/Components/ExternalAccounts.md - - docs/Models/Components/User.md - - docs/Models/Components/SAMLAccountObject.md - - docs/Models/Components/SAMLAccountPublicMetadata.md - - docs/Models/Components/TicketVerificationStatus.md - - docs/Models/Components/TicketVerificationStrategy.md - - docs/Models/Components/Ticket.md - - docs/Models/Components/SAMLVerificationStatus.md - - docs/Models/Components/SAMLVerificationStrategy.md - - docs/Models/Components/ClerkErrorErrorMeta.md - - docs/Models/Components/SAMLErrorClerkError.md - - docs/Models/Components/VerificationError.md - - docs/Models/Components/Saml.md - - docs/Models/Components/SAMLAccountVerification.md - - docs/Models/Components/SAMLAccount.md - - docs/Models/Components/SchemasPasskeyObject.md - - docs/Models/Components/PasskeyVerificationStatus.md - - docs/Models/Components/PasskeyVerificationStrategy.md - - docs/Models/Components/VerificationNonce.md - - docs/Models/Components/Passkey.md - - docs/Models/Components/SchemasPasskeyVerification.md - - docs/Models/Components/SchemasPasskey.md - - docs/Models/Components/Web3WalletObject.md - - docs/Models/Components/AdminVerificationWeb3WalletStatus.md - - docs/Models/Components/AdminVerificationWeb3WalletStrategy.md - - docs/Models/Components/Web3WalletVerificationAdmin.md - - docs/Models/Components/Web3SignatureVerificationStatus.md - - docs/Models/Components/Web3SignatureVerificationStrategy.md - - docs/Models/Components/Nonce.md - - docs/Models/Components/Web3Signature.md - - docs/Models/Components/Web3WalletVerification.md - - docs/Models/Components/Web3Wallet.md - - docs/Models/Components/TotalCountObject.md - - docs/Models/Components/TotalCount.md - - docs/Models/Components/OrganizationMemberships.md - - docs/Models/Components/OrganizationMembershipObject.md - - docs/Models/Components/OrganizationMembershipPublicMetadata.md - - docs/Models/Components/OrganizationMembershipPrivateMetadata.md - - docs/Models/Components/OrganizationMembershipOrganizationObject.md - - docs/Models/Components/OrganizationMembershipOrganizationPublicMetadata.md - - docs/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.md - - docs/Models/Components/OrganizationMembershipOrganization.md - - docs/Models/Components/PublicUserData.md - - docs/Models/Components/OrganizationMembership.md - - docs/Models/Components/InvitationObject.md - - docs/Models/Components/InvitationPublicMetadata.md - - docs/Models/Components/InvitationStatus.md - - docs/Models/Components/Invitation.md - - docs/Models/Components/InvitationRevokedObject.md - - docs/Models/Components/InvitationRevokedPublicMetadata.md - - docs/Models/Components/InvitationRevokedStatus.md - - docs/Models/Components/InvitationRevoked.md - - docs/Models/Components/AllowlistIdentifierObject.md - - docs/Models/Components/IdentifierType.md - - docs/Models/Components/AllowlistIdentifier.md - - docs/Models/Components/BlocklistIdentifiers.md - - docs/Models/Components/BlocklistIdentifierObject.md - - docs/Models/Components/BlocklistIdentifierIdentifierType.md - - docs/Models/Components/BlocklistIdentifier.md - - docs/Models/Components/InstanceSettingsObject.md - - docs/Models/Components/InstanceSettings.md - - docs/Models/Components/ActorTokenObject.md - - docs/Models/Components/ActorTokenStatus.md - - docs/Models/Components/ActorTokenActor.md - - docs/Models/Components/ActorToken.md - - docs/Models/Components/Domains.md - - docs/Models/Components/DomainObject.md - - docs/Models/Components/Domain.md - - docs/Models/Components/CNameTarget.md - - docs/Models/Components/InstanceRestrictionsObject.md - - docs/Models/Components/InstanceRestrictions.md - - docs/Models/Components/OrganizationSettingsObject.md - - docs/Models/Components/DomainsEnrollmentModes.md - - docs/Models/Components/OrganizationSettings.md - - docs/Models/Components/SvixURL.md - - docs/Models/Components/JWTTemplateObject.md - - docs/Models/Components/Claims.md - - docs/Models/Components/JWTTemplate.md - - docs/Models/Components/Organizations.md - - docs/Models/Components/OrganizationObject.md - - docs/Models/Components/OrganizationPublicMetadata.md - - docs/Models/Components/OrganizationPrivateMetadata.md - - docs/Models/Components/Organization.md - - docs/Models/Components/OrganizationWithLogoObject.md - - docs/Models/Components/OrganizationWithLogoPublicMetadata.md - - docs/Models/Components/OrganizationWithLogoPrivateMetadata.md - - docs/Models/Components/OrganizationWithLogo.md - - docs/Models/Components/OrganizationInvitationObject.md - - docs/Models/Components/OrganizationInvitationPublicMetadata.md - - docs/Models/Components/OrganizationInvitationPrivateMetadata.md - - docs/Models/Components/OrganizationInvitation.md - - docs/Models/Components/OrganizationInvitations.md - - docs/Models/Components/ProxyCheckObject.md - - docs/Models/Components/ProxyCheck.md - - docs/Models/Components/RedirectURLObject.md - - docs/Models/Components/RedirectURL.md - - docs/Models/Components/SignInTokenObject.md - - docs/Models/Components/SignInTokenStatus.md - - docs/Models/Components/SignInToken.md - - docs/Models/Components/SignUpObject.md - - docs/Models/Components/SignUpStatus.md - - docs/Models/Components/Verifications.md - - docs/Models/Components/SignUpUnsafeMetadata.md - - docs/Models/Components/SignUpPublicMetadata.md - - docs/Models/Components/ExternalAccount.md - - docs/Models/Components/SignUp.md - - docs/Models/Components/OAuthApplications.md - - docs/Models/Components/OAuthApplicationObject.md - - docs/Models/Components/OAuthApplication.md - - docs/Models/Components/OAuthApplicationWithSecretObject.md - - docs/Models/Components/OAuthApplicationWithSecret.md - - docs/Models/Components/SAMLConnections.md - - docs/Models/Components/SAMLConnectionObject.md - - docs/Models/Components/AttributeMapping.md - - docs/Models/Components/SAMLConnection.md - - docs/Models/Components/TestingTokenObject.md - - docs/Models/Components/TestingToken.md - - docs/Models/Components/Security.md - - docs/Models/Errors/Meta.md - - docs/Models/Errors/ClerkErrors.md - - docs/sdks/clerkbackend/README.md - - docs/sdks/miscellaneous/README.md - - docs/sdks/jwks/README.md - - docs/sdks/clients/README.md - - docs/sdks/emailaddresses/README.md - - docs/sdks/phonenumbers/README.md - - docs/sdks/sessions/README.md - - docs/sdks/emailandsmstemplates/README.md - - docs/sdks/users/README.md - - docs/sdks/invitations/README.md + - docs/Models/Operations/UpdateSignUpRequest.md + - docs/Models/Operations/UpdateSignUpRequestBody.md + - docs/Models/Operations/UpdateSignUpResponse.md + - docs/Models/Operations/UpdateUserMetadataRequest.md + - docs/Models/Operations/UpdateUserMetadataRequestBody.md + - docs/Models/Operations/UpdateUserMetadataResponse.md + - docs/Models/Operations/UpdateUserPasswordHasher.md + - docs/Models/Operations/UpdateUserPrivateMetadata.md + - docs/Models/Operations/UpdateUserPublicMetadata.md + - docs/Models/Operations/UpdateUserRequest.md + - docs/Models/Operations/UpdateUserRequestBody.md + - docs/Models/Operations/UpdateUserResponse.md + - docs/Models/Operations/UpdateUserUnsafeMetadata.md + - docs/Models/Operations/UploadOrganizationLogoFile.md + - docs/Models/Operations/UploadOrganizationLogoRequest.md + - docs/Models/Operations/UploadOrganizationLogoRequestBody.md + - docs/Models/Operations/UploadOrganizationLogoResponse.md + - docs/Models/Operations/UpsertTemplatePathParamTemplateType.md + - docs/Models/Operations/UpsertTemplateRequest.md + - docs/Models/Operations/UpsertTemplateRequestBody.md + - docs/Models/Operations/UpsertTemplateResponse.md + - docs/Models/Operations/UsersGetOrganizationMembershipsRequest.md + - docs/Models/Operations/UsersGetOrganizationMembershipsResponse.md + - docs/Models/Operations/VerifyClientRequestBody.md + - docs/Models/Operations/VerifyClientResponse.md + - docs/Models/Operations/VerifyDomainProxyRequestBody.md + - docs/Models/Operations/VerifyDomainProxyResponse.md + - docs/Models/Operations/VerifyPasswordRequest.md + - docs/Models/Operations/VerifyPasswordRequestBody.md + - docs/Models/Operations/VerifyPasswordResponse.md + - docs/Models/Operations/VerifyPasswordResponseBody.md + - docs/Models/Operations/VerifySessionRequest.md + - docs/Models/Operations/VerifySessionRequestBody.md + - docs/Models/Operations/VerifySessionResponse.md + - docs/Models/Operations/VerifyTOTPRequest.md + - docs/Models/Operations/VerifyTOTPRequestBody.md + - docs/Models/Operations/VerifyTOTPResponse.md + - docs/Models/Operations/VerifyTOTPResponseBody.md + - docs/sdks/actortokens/README.md - docs/sdks/allowlistblocklist/README.md - docs/sdks/betafeatures/README.md - - docs/sdks/actortokens/README.md + - docs/sdks/clerkbackend/README.md + - docs/sdks/clients/README.md - docs/sdks/domains/README.md + - docs/sdks/emailaddresses/README.md + - docs/sdks/emailandsmstemplates/README.md - docs/sdks/instancesettings/README.md - - docs/sdks/webhooks/README.md + - docs/sdks/invitations/README.md + - docs/sdks/jwks/README.md - docs/sdks/jwttemplates/README.md - - docs/sdks/organizations/README.md + - docs/sdks/miscellaneous/README.md + - docs/sdks/oauthapplications/README.md - docs/sdks/organizationinvitations/README.md - docs/sdks/organizationmemberships/README.md + - docs/sdks/organizations/README.md + - docs/sdks/phonenumbers/README.md - docs/sdks/proxychecks/README.md - docs/sdks/redirecturls/README.md + - docs/sdks/samlconnections/README.md + - docs/sdks/sessions/README.md - docs/sdks/signintokens/README.md - docs/sdks/signups/README.md - - docs/sdks/oauthapplications/README.md - - docs/sdks/samlconnections/README.md - docs/sdks/testingtokens/README.md - - USAGE.md - - .gitattributes - - CONTRIBUTING.md + - docs/sdks/users/README.md + - docs/sdks/webhooks/README.md + - phpstan.neon + - phpunit.xml + - pint.json + - rector.php + - src/ActorTokens.php + - src/AllowListBlockList.php + - src/BetaFeatures.php + - src/ClerkBackend.php + - src/ClerkBackendBuilder.php + - src/Clients.php + - src/Domains.php + - src/EmailAddresses.php + - src/EmailAndSMSTemplates.php + - src/InstanceSettings.php + - src/Invitations.php + - src/JWTTemplates.php + - src/Jwks.php + - src/Miscellaneous.php + - src/Models/Components/Actor.php + - src/Models/Components/ActorToken.php + - src/Models/Components/ActorTokenActor.php + - src/Models/Components/ActorTokenObject.php + - src/Models/Components/ActorTokenStatus.php + - src/Models/Components/Admin.php + - src/Models/Components/AdminVerificationPhoneNumberStatus.php + - src/Models/Components/AdminVerificationStatus.php + - src/Models/Components/AdminVerificationStrategy.php + - src/Models/Components/AdminVerificationWeb3WalletStatus.php + - src/Models/Components/AdminVerificationWeb3WalletStrategy.php + - src/Models/Components/AllowlistIdentifier.php + - src/Models/Components/AllowlistIdentifierObject.php + - src/Models/Components/AttributeMapping.php + - src/Models/Components/BlocklistIdentifier.php + - src/Models/Components/BlocklistIdentifierIdentifierType.php + - src/Models/Components/BlocklistIdentifierObject.php + - src/Models/Components/BlocklistIdentifiers.php + - src/Models/Components/CNameTarget.php + - src/Models/Components/Claims.php + - src/Models/Components/ClerkError.php + - src/Models/Components/ClerkErrorErrorMeta.php + - src/Models/Components/Client.php + - src/Models/Components/DeletedObject.php + - src/Models/Components/Domain.php + - src/Models/Components/DomainObject.php + - src/Models/Components/Domains.php + - src/Models/Components/DomainsEnrollmentModes.php + - src/Models/Components/EmailAddress.php + - src/Models/Components/EmailAddressObject.php + - src/Models/Components/ErrorClerkError.php + - src/Models/Components/ErrorMeta.php + - src/Models/Components/ExternalAccount.php + - src/Models/Components/ExternalAccounts.php + - src/Models/Components/IdentificationLink.php + - src/Models/Components/IdentifierType.php + - src/Models/Components/InstanceRestrictions.php + - src/Models/Components/InstanceRestrictionsObject.php + - src/Models/Components/InstanceSettings.php + - src/Models/Components/InstanceSettingsObject.php + - src/Models/Components/Invitation.php + - src/Models/Components/InvitationObject.php + - src/Models/Components/InvitationPublicMetadata.php + - src/Models/Components/InvitationRevoked.php + - src/Models/Components/InvitationRevokedObject.php + - src/Models/Components/InvitationRevokedPublicMetadata.php + - src/Models/Components/InvitationRevokedStatus.php + - src/Models/Components/InvitationStatus.php + - src/Models/Components/JWTTemplate.php + - src/Models/Components/JWTTemplateObject.php + - src/Models/Components/Meta.php + - src/Models/Components/Nonce.php + - src/Models/Components/OAuthApplication.php + - src/Models/Components/OAuthApplicationObject.php + - src/Models/Components/OAuthApplicationWithSecret.php + - src/Models/Components/OAuthApplicationWithSecretObject.php + - src/Models/Components/OAuthApplications.php + - src/Models/Components/OTPVerificationStatus.php + - src/Models/Components/OTPVerificationStrategy.php + - src/Models/Components/Oauth.php + - src/Models/Components/OauthVerificationStatus.php + - src/Models/Components/OauthVerificationStrategy.php + - src/Models/Components/ObjectT.php + - src/Models/Components/Organization.php + - src/Models/Components/OrganizationInvitation.php + - src/Models/Components/OrganizationInvitationObject.php + - src/Models/Components/OrganizationInvitationPrivateMetadata.php + - src/Models/Components/OrganizationInvitationPublicMetadata.php + - src/Models/Components/OrganizationInvitations.php + - src/Models/Components/OrganizationMembership.php + - src/Models/Components/OrganizationMembershipObject.php + - src/Models/Components/OrganizationMembershipOrganization.php + - src/Models/Components/OrganizationMembershipOrganizationObject.php + - src/Models/Components/OrganizationMembershipOrganizationPrivateMetadata.php + - src/Models/Components/OrganizationMembershipOrganizationPublicMetadata.php + - src/Models/Components/OrganizationMembershipPrivateMetadata.php + - src/Models/Components/OrganizationMembershipPublicMetadata.php + - src/Models/Components/OrganizationMemberships.php + - src/Models/Components/OrganizationObject.php + - src/Models/Components/OrganizationPrivateMetadata.php + - src/Models/Components/OrganizationPublicMetadata.php + - src/Models/Components/OrganizationSettings.php + - src/Models/Components/OrganizationSettingsObject.php + - src/Models/Components/OrganizationWithLogo.php + - src/Models/Components/OrganizationWithLogoObject.php + - src/Models/Components/OrganizationWithLogoPrivateMetadata.php + - src/Models/Components/OrganizationWithLogoPublicMetadata.php + - src/Models/Components/Organizations.php + - src/Models/Components/Otp.php + - src/Models/Components/Passkey.php + - src/Models/Components/PasskeyVerificationStatus.php + - src/Models/Components/PasskeyVerificationStrategy.php + - src/Models/Components/PhoneNumber.php + - src/Models/Components/PhoneNumberObject.php + - src/Models/Components/PrivateMetadata.php + - src/Models/Components/ProxyCheck.php + - src/Models/Components/ProxyCheckObject.php + - src/Models/Components/PublicMetadata.php + - src/Models/Components/PublicUserData.php + - src/Models/Components/RedirectURL.php + - src/Models/Components/RedirectURLObject.php + - src/Models/Components/SAMLAccount.php + - src/Models/Components/SAMLAccountObject.php + - src/Models/Components/SAMLAccountPublicMetadata.php + - src/Models/Components/SAMLConnection.php + - src/Models/Components/SAMLConnectionObject.php + - src/Models/Components/SAMLConnections.php + - src/Models/Components/SAMLErrorClerkError.php + - src/Models/Components/SAMLVerificationStatus.php + - src/Models/Components/SAMLVerificationStrategy.php + - src/Models/Components/Saml.php + - src/Models/Components/SchemasPasskey.php + - src/Models/Components/SchemasPasskeyObject.php + - src/Models/Components/Security.php + - src/Models/Components/Session.php + - src/Models/Components/SessionObject.php + - src/Models/Components/SignInToken.php + - src/Models/Components/SignInTokenObject.php + - src/Models/Components/SignInTokenStatus.php + - src/Models/Components/SignUp.php + - src/Models/Components/SignUpObject.php + - src/Models/Components/SignUpPublicMetadata.php + - src/Models/Components/SignUpStatus.php + - src/Models/Components/SignUpUnsafeMetadata.php + - src/Models/Components/Status.php + - src/Models/Components/Strategy.php + - src/Models/Components/SvixURL.php + - src/Models/Components/Template.php + - src/Models/Components/TemplateObject.php + - src/Models/Components/TestingToken.php + - src/Models/Components/TestingTokenObject.php + - src/Models/Components/Ticket.php + - src/Models/Components/TicketVerificationStatus.php + - src/Models/Components/TicketVerificationStrategy.php + - src/Models/Components/TotalCount.php + - src/Models/Components/TotalCountObject.php + - src/Models/Components/Type.php + - src/Models/Components/UnsafeMetadata.php + - src/Models/Components/User.php + - src/Models/Components/UserObject.php + - src/Models/Components/VerificationAdmin.php + - src/Models/Components/VerificationNonce.php + - src/Models/Components/VerificationOTP.php + - src/Models/Components/VerificationStatus.php + - src/Models/Components/VerificationStrategy.php + - src/Models/Components/Verifications.php + - src/Models/Components/Web3Signature.php + - src/Models/Components/Web3SignatureVerificationStatus.php + - src/Models/Components/Web3SignatureVerificationStrategy.php + - src/Models/Components/Web3Wallet.php + - src/Models/Components/Web3WalletObject.php + - src/Models/Components/Web3WalletVerificationAdmin.php + - src/Models/Errors/ClerkErrors.php + - src/Models/Errors/ClerkErrors1.php + - src/Models/Errors/ClerkErrors10.php + - src/Models/Errors/ClerkErrors10Throwable.php + - src/Models/Errors/ClerkErrors11.php + - src/Models/Errors/ClerkErrors11Throwable.php + - src/Models/Errors/ClerkErrors12.php + - src/Models/Errors/ClerkErrors12Throwable.php + - src/Models/Errors/ClerkErrors13.php + - src/Models/Errors/ClerkErrors13Throwable.php + - src/Models/Errors/ClerkErrors14.php + - src/Models/Errors/ClerkErrors14Throwable.php + - src/Models/Errors/ClerkErrors15.php + - src/Models/Errors/ClerkErrors15Throwable.php + - src/Models/Errors/ClerkErrors16.php + - src/Models/Errors/ClerkErrors16Throwable.php + - src/Models/Errors/ClerkErrors17.php + - src/Models/Errors/ClerkErrors17Throwable.php + - src/Models/Errors/ClerkErrors18.php + - src/Models/Errors/ClerkErrors18Throwable.php + - src/Models/Errors/ClerkErrors19.php + - src/Models/Errors/ClerkErrors19Throwable.php + - src/Models/Errors/ClerkErrors1Throwable.php + - src/Models/Errors/ClerkErrors2.php + - src/Models/Errors/ClerkErrors20.php + - src/Models/Errors/ClerkErrors20Throwable.php + - src/Models/Errors/ClerkErrors21.php + - src/Models/Errors/ClerkErrors21Throwable.php + - src/Models/Errors/ClerkErrors22.php + - src/Models/Errors/ClerkErrors22Throwable.php + - src/Models/Errors/ClerkErrors23.php + - src/Models/Errors/ClerkErrors23Throwable.php + - src/Models/Errors/ClerkErrors24.php + - src/Models/Errors/ClerkErrors24Throwable.php + - src/Models/Errors/ClerkErrors25.php + - src/Models/Errors/ClerkErrors25Throwable.php + - src/Models/Errors/ClerkErrors26.php + - src/Models/Errors/ClerkErrors26Throwable.php + - src/Models/Errors/ClerkErrors27.php + - src/Models/Errors/ClerkErrors27Throwable.php + - src/Models/Errors/ClerkErrors28.php + - src/Models/Errors/ClerkErrors28Throwable.php + - src/Models/Errors/ClerkErrors29.php + - src/Models/Errors/ClerkErrors29Throwable.php + - src/Models/Errors/ClerkErrors2Throwable.php + - src/Models/Errors/ClerkErrors3.php + - src/Models/Errors/ClerkErrors30.php + - src/Models/Errors/ClerkErrors30Throwable.php + - src/Models/Errors/ClerkErrors31.php + - src/Models/Errors/ClerkErrors31Throwable.php + - src/Models/Errors/ClerkErrors32.php + - src/Models/Errors/ClerkErrors32Throwable.php + - src/Models/Errors/ClerkErrors33.php + - src/Models/Errors/ClerkErrors33Throwable.php + - src/Models/Errors/ClerkErrors34.php + - src/Models/Errors/ClerkErrors34Throwable.php + - src/Models/Errors/ClerkErrors35.php + - src/Models/Errors/ClerkErrors35Throwable.php + - src/Models/Errors/ClerkErrors36.php + - src/Models/Errors/ClerkErrors36Throwable.php + - src/Models/Errors/ClerkErrors37.php + - src/Models/Errors/ClerkErrors37Throwable.php + - src/Models/Errors/ClerkErrors38.php + - src/Models/Errors/ClerkErrors38Throwable.php + - src/Models/Errors/ClerkErrors39.php + - src/Models/Errors/ClerkErrors39Throwable.php + - src/Models/Errors/ClerkErrors3Throwable.php + - src/Models/Errors/ClerkErrors4.php + - src/Models/Errors/ClerkErrors40.php + - src/Models/Errors/ClerkErrors40Throwable.php + - src/Models/Errors/ClerkErrors41.php + - src/Models/Errors/ClerkErrors41Throwable.php + - src/Models/Errors/ClerkErrors42.php + - src/Models/Errors/ClerkErrors42Throwable.php + - src/Models/Errors/ClerkErrors43.php + - src/Models/Errors/ClerkErrors43Throwable.php + - src/Models/Errors/ClerkErrors44.php + - src/Models/Errors/ClerkErrors44Throwable.php + - src/Models/Errors/ClerkErrors45.php + - src/Models/Errors/ClerkErrors45Throwable.php + - src/Models/Errors/ClerkErrors46.php + - src/Models/Errors/ClerkErrors46Throwable.php + - src/Models/Errors/ClerkErrors47.php + - src/Models/Errors/ClerkErrors47Throwable.php + - src/Models/Errors/ClerkErrors48.php + - src/Models/Errors/ClerkErrors48Throwable.php + - src/Models/Errors/ClerkErrors49.php + - src/Models/Errors/ClerkErrors49Throwable.php + - src/Models/Errors/ClerkErrors4Throwable.php + - src/Models/Errors/ClerkErrors5.php + - src/Models/Errors/ClerkErrors50.php + - src/Models/Errors/ClerkErrors50Throwable.php + - src/Models/Errors/ClerkErrors51.php + - src/Models/Errors/ClerkErrors51Throwable.php + - src/Models/Errors/ClerkErrors52.php + - src/Models/Errors/ClerkErrors52Throwable.php + - src/Models/Errors/ClerkErrors53.php + - src/Models/Errors/ClerkErrors53Throwable.php + - src/Models/Errors/ClerkErrors54.php + - src/Models/Errors/ClerkErrors54Throwable.php + - src/Models/Errors/ClerkErrors55.php + - src/Models/Errors/ClerkErrors55Throwable.php + - src/Models/Errors/ClerkErrors56.php + - src/Models/Errors/ClerkErrors56Throwable.php + - src/Models/Errors/ClerkErrors57.php + - src/Models/Errors/ClerkErrors57Throwable.php + - src/Models/Errors/ClerkErrors58.php + - src/Models/Errors/ClerkErrors58Throwable.php + - src/Models/Errors/ClerkErrors59.php + - src/Models/Errors/ClerkErrors59Throwable.php + - src/Models/Errors/ClerkErrors5Throwable.php + - src/Models/Errors/ClerkErrors6.php + - src/Models/Errors/ClerkErrors60.php + - src/Models/Errors/ClerkErrors60Throwable.php + - src/Models/Errors/ClerkErrors61.php + - src/Models/Errors/ClerkErrors61Throwable.php + - src/Models/Errors/ClerkErrors62.php + - src/Models/Errors/ClerkErrors62Throwable.php + - src/Models/Errors/ClerkErrors63.php + - src/Models/Errors/ClerkErrors63Throwable.php + - src/Models/Errors/ClerkErrors64.php + - src/Models/Errors/ClerkErrors64Throwable.php + - src/Models/Errors/ClerkErrors65.php + - src/Models/Errors/ClerkErrors65Throwable.php + - src/Models/Errors/ClerkErrors66.php + - src/Models/Errors/ClerkErrors66Throwable.php + - src/Models/Errors/ClerkErrors67.php + - src/Models/Errors/ClerkErrors67Throwable.php + - src/Models/Errors/ClerkErrors68.php + - src/Models/Errors/ClerkErrors68Throwable.php + - src/Models/Errors/ClerkErrors69.php + - src/Models/Errors/ClerkErrors69Throwable.php + - src/Models/Errors/ClerkErrors6Throwable.php + - src/Models/Errors/ClerkErrors7.php + - src/Models/Errors/ClerkErrors70.php + - src/Models/Errors/ClerkErrors70Throwable.php + - src/Models/Errors/ClerkErrors71.php + - src/Models/Errors/ClerkErrors71Throwable.php + - src/Models/Errors/ClerkErrors72.php + - src/Models/Errors/ClerkErrors72Throwable.php + - src/Models/Errors/ClerkErrors73.php + - src/Models/Errors/ClerkErrors73Throwable.php + - src/Models/Errors/ClerkErrors74.php + - src/Models/Errors/ClerkErrors74Throwable.php + - src/Models/Errors/ClerkErrors75.php + - src/Models/Errors/ClerkErrors75Throwable.php + - src/Models/Errors/ClerkErrors76.php + - src/Models/Errors/ClerkErrors76Throwable.php + - src/Models/Errors/ClerkErrors77.php + - src/Models/Errors/ClerkErrors77Throwable.php + - src/Models/Errors/ClerkErrors78.php + - src/Models/Errors/ClerkErrors78Throwable.php + - src/Models/Errors/ClerkErrors79.php + - src/Models/Errors/ClerkErrors79Throwable.php + - src/Models/Errors/ClerkErrors7Throwable.php + - src/Models/Errors/ClerkErrors8.php + - src/Models/Errors/ClerkErrors80.php + - src/Models/Errors/ClerkErrors80Throwable.php + - src/Models/Errors/ClerkErrors81.php + - src/Models/Errors/ClerkErrors81Throwable.php + - src/Models/Errors/ClerkErrors82.php + - src/Models/Errors/ClerkErrors82Throwable.php + - src/Models/Errors/ClerkErrors83.php + - src/Models/Errors/ClerkErrors83Throwable.php + - src/Models/Errors/ClerkErrors84.php + - src/Models/Errors/ClerkErrors84Throwable.php + - src/Models/Errors/ClerkErrors85.php + - src/Models/Errors/ClerkErrors85Throwable.php + - src/Models/Errors/ClerkErrors86.php + - src/Models/Errors/ClerkErrors86Throwable.php + - src/Models/Errors/ClerkErrors87.php + - src/Models/Errors/ClerkErrors87Throwable.php + - src/Models/Errors/ClerkErrors88.php + - src/Models/Errors/ClerkErrors88Throwable.php + - src/Models/Errors/ClerkErrors89.php + - src/Models/Errors/ClerkErrors89Throwable.php + - src/Models/Errors/ClerkErrors8Throwable.php + - src/Models/Errors/ClerkErrors9.php + - src/Models/Errors/ClerkErrors9Throwable.php + - src/Models/Errors/ClerkErrorsThrowable.php + - src/Models/Errors/Meta.php + - src/Models/Errors/SDKException.php + - src/Models/Operations/Actor.php + - src/Models/Operations/AddDomainRequestBody.php + - src/Models/Operations/AddDomainResponse.php + - src/Models/Operations/AttributeMapping.php + - src/Models/Operations/BanUserRequest.php + - src/Models/Operations/BanUserResponse.php + - src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php + - src/Models/Operations/ChangeProductionInstanceDomainResponse.php + - src/Models/Operations/Claims.php + - src/Models/Operations/CodeType.php + - src/Models/Operations/CreateActorTokenRequestBody.php + - src/Models/Operations/CreateActorTokenResponse.php + - src/Models/Operations/CreateAllowlistIdentifierRequestBody.php + - src/Models/Operations/CreateAllowlistIdentifierResponse.php + - src/Models/Operations/CreateBlocklistIdentifierRequestBody.php + - src/Models/Operations/CreateBlocklistIdentifierResponse.php + - src/Models/Operations/CreateEmailAddressRequestBody.php + - src/Models/Operations/CreateEmailAddressResponse.php + - src/Models/Operations/CreateInvitationPublicMetadata.php + - src/Models/Operations/CreateInvitationRequestBody.php + - src/Models/Operations/CreateInvitationResponse.php + - src/Models/Operations/CreateJWTTemplateRequestBody.php + - src/Models/Operations/CreateJWTTemplateResponse.php + - src/Models/Operations/CreateOAuthApplicationRequestBody.php + - src/Models/Operations/CreateOAuthApplicationResponse.php + - src/Models/Operations/CreateOrganizationInvitationBulkPrivateMetadata.php + - src/Models/Operations/CreateOrganizationInvitationBulkPublicMetadata.php + - src/Models/Operations/CreateOrganizationInvitationBulkRequest.php + - src/Models/Operations/CreateOrganizationInvitationBulkResponse.php + - src/Models/Operations/CreateOrganizationInvitationPrivateMetadata.php + - src/Models/Operations/CreateOrganizationInvitationPublicMetadata.php + - src/Models/Operations/CreateOrganizationInvitationRequest.php + - src/Models/Operations/CreateOrganizationInvitationRequestBody.php + - src/Models/Operations/CreateOrganizationInvitationResponse.php + - src/Models/Operations/CreateOrganizationMembershipRequest.php + - src/Models/Operations/CreateOrganizationMembershipRequestBody.php + - src/Models/Operations/CreateOrganizationMembershipResponse.php + - src/Models/Operations/CreateOrganizationPrivateMetadata.php + - src/Models/Operations/CreateOrganizationPublicMetadata.php + - src/Models/Operations/CreateOrganizationRequestBody.php + - src/Models/Operations/CreateOrganizationResponse.php + - src/Models/Operations/CreatePhoneNumberRequestBody.php + - src/Models/Operations/CreatePhoneNumberResponse.php + - src/Models/Operations/CreateRedirectURLRequestBody.php + - src/Models/Operations/CreateRedirectURLResponse.php + - src/Models/Operations/CreateSAMLConnectionRequestBody.php + - src/Models/Operations/CreateSAMLConnectionResponse.php + - src/Models/Operations/CreateSessionTokenFromTemplateRequest.php + - src/Models/Operations/CreateSessionTokenFromTemplateResponse.php + - src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php + - src/Models/Operations/CreateSignInTokenRequestBody.php + - src/Models/Operations/CreateSignInTokenResponse.php + - src/Models/Operations/CreateSvixAppResponse.php + - src/Models/Operations/CreateTestingTokenResponse.php + - src/Models/Operations/CreateUserRequestBody.php + - src/Models/Operations/CreateUserResponse.php + - src/Models/Operations/DeleteAllowlistIdentifierRequest.php + - src/Models/Operations/DeleteAllowlistIdentifierResponse.php + - src/Models/Operations/DeleteBlocklistIdentifierRequest.php + - src/Models/Operations/DeleteBlocklistIdentifierResponse.php + - src/Models/Operations/DeleteDomainRequest.php + - src/Models/Operations/DeleteDomainResponse.php + - src/Models/Operations/DeleteEmailAddressRequest.php + - src/Models/Operations/DeleteEmailAddressResponse.php + - src/Models/Operations/DeleteJWTTemplateRequest.php + - src/Models/Operations/DeleteJWTTemplateResponse.php + - src/Models/Operations/DeleteOAuthApplicationRequest.php + - src/Models/Operations/DeleteOAuthApplicationResponse.php + - src/Models/Operations/DeleteOrganizationLogoRequest.php + - src/Models/Operations/DeleteOrganizationLogoResponse.php + - src/Models/Operations/DeleteOrganizationMembershipRequest.php + - src/Models/Operations/DeleteOrganizationMembershipResponse.php + - src/Models/Operations/DeleteOrganizationRequest.php + - src/Models/Operations/DeleteOrganizationResponse.php + - src/Models/Operations/DeletePhoneNumberRequest.php + - src/Models/Operations/DeletePhoneNumberResponse.php + - src/Models/Operations/DeleteRedirectURLRequest.php + - src/Models/Operations/DeleteRedirectURLResponse.php + - src/Models/Operations/DeleteSAMLConnectionRequest.php + - src/Models/Operations/DeleteSAMLConnectionResponse.php + - src/Models/Operations/DeleteSvixAppResponse.php + - src/Models/Operations/DeleteUserProfileImageRequest.php + - src/Models/Operations/DeleteUserProfileImageResponse.php + - src/Models/Operations/DeleteUserRequest.php + - src/Models/Operations/DeleteUserResponse.php + - src/Models/Operations/DisableMFARequest.php + - src/Models/Operations/DisableMFAResponse.php + - src/Models/Operations/DisableMFAResponseBody.php + - src/Models/Operations/File.php + - src/Models/Operations/GenerateSvixAuthURLResponse.php + - src/Models/Operations/GetClientListRequest.php + - src/Models/Operations/GetClientListResponse.php + - src/Models/Operations/GetClientRequest.php + - src/Models/Operations/GetClientResponse.php + - src/Models/Operations/GetEmailAddressRequest.php + - src/Models/Operations/GetEmailAddressResponse.php + - src/Models/Operations/GetJWKSResponse.php + - src/Models/Operations/GetJWTTemplateRequest.php + - src/Models/Operations/GetJWTTemplateResponse.php + - src/Models/Operations/GetOAuthAccessTokenPublicMetadata.php + - src/Models/Operations/GetOAuthAccessTokenRequest.php + - src/Models/Operations/GetOAuthAccessTokenResponse.php + - src/Models/Operations/GetOAuthApplicationRequest.php + - src/Models/Operations/GetOAuthApplicationResponse.php + - src/Models/Operations/GetOrganizationInvitationRequest.php + - src/Models/Operations/GetOrganizationInvitationResponse.php + - src/Models/Operations/GetOrganizationRequest.php + - src/Models/Operations/GetOrganizationResponse.php + - src/Models/Operations/GetPhoneNumberRequest.php + - src/Models/Operations/GetPhoneNumberResponse.php + - src/Models/Operations/GetPublicInterstitialRequest.php + - src/Models/Operations/GetPublicInterstitialResponse.php + - src/Models/Operations/GetRedirectURLRequest.php + - src/Models/Operations/GetRedirectURLResponse.php + - src/Models/Operations/GetSAMLConnectionRequest.php + - src/Models/Operations/GetSAMLConnectionResponse.php + - src/Models/Operations/GetSessionListRequest.php + - src/Models/Operations/GetSessionListResponse.php + - src/Models/Operations/GetSessionRequest.php + - src/Models/Operations/GetSessionResponse.php + - src/Models/Operations/GetTemplateListRequest.php + - src/Models/Operations/GetTemplateListResponse.php + - src/Models/Operations/GetTemplateRequest.php + - src/Models/Operations/GetTemplateResponse.php + - src/Models/Operations/GetUserListRequest.php + - src/Models/Operations/GetUserListResponse.php + - src/Models/Operations/GetUserRequest.php + - src/Models/Operations/GetUserResponse.php + - src/Models/Operations/GetUsersCountRequest.php + - src/Models/Operations/GetUsersCountResponse.php + - src/Models/Operations/ListAllowlistIdentifiersResponse.php + - src/Models/Operations/ListBlocklistIdentifiersResponse.php + - src/Models/Operations/ListDomainsResponse.php + - src/Models/Operations/ListInvitationsRequest.php + - src/Models/Operations/ListInvitationsResponse.php + - src/Models/Operations/ListJWTTemplatesResponse.php + - src/Models/Operations/ListOAuthApplicationsRequest.php + - src/Models/Operations/ListOAuthApplicationsResponse.php + - src/Models/Operations/ListOrganizationInvitationsQueryParamStatus.php + - src/Models/Operations/ListOrganizationInvitationsRequest.php + - src/Models/Operations/ListOrganizationInvitationsResponse.php + - src/Models/Operations/ListOrganizationMembershipsRequest.php + - src/Models/Operations/ListOrganizationMembershipsResponse.php + - src/Models/Operations/ListOrganizationsRequest.php + - src/Models/Operations/ListOrganizationsResponse.php + - src/Models/Operations/ListPendingOrganizationInvitationsRequest.php + - src/Models/Operations/ListPendingOrganizationInvitationsResponse.php + - src/Models/Operations/ListRedirectURLsResponse.php + - src/Models/Operations/ListSAMLConnectionsRequest.php + - src/Models/Operations/ListSAMLConnectionsResponse.php + - src/Models/Operations/LockUserRequest.php + - src/Models/Operations/LockUserResponse.php + - src/Models/Operations/MergeOrganizationMetadataPrivateMetadata.php + - src/Models/Operations/MergeOrganizationMetadataPublicMetadata.php + - src/Models/Operations/MergeOrganizationMetadataRequest.php + - src/Models/Operations/MergeOrganizationMetadataRequestBody.php + - src/Models/Operations/MergeOrganizationMetadataResponse.php + - src/Models/Operations/ObjectT.php + - src/Models/Operations/PasswordHasher.php + - src/Models/Operations/PathParamTemplateType.php + - src/Models/Operations/PreviewTemplateRequest.php + - src/Models/Operations/PreviewTemplateRequestBody.php + - src/Models/Operations/PreviewTemplateResponse.php + - src/Models/Operations/PreviewTemplateResponseBody.php + - src/Models/Operations/PrivateMetadata.php + - src/Models/Operations/Provider.php + - src/Models/Operations/PublicMetadata.php + - src/Models/Operations/QueryParamStatus.php + - src/Models/Operations/RequestBody.php + - src/Models/Operations/ResponseBody.php + - src/Models/Operations/RevertTemplatePathParamTemplateType.php + - src/Models/Operations/RevertTemplateRequest.php + - src/Models/Operations/RevertTemplateResponse.php + - src/Models/Operations/RevokeActorTokenRequest.php + - src/Models/Operations/RevokeActorTokenResponse.php + - src/Models/Operations/RevokeInvitationRequest.php + - src/Models/Operations/RevokeInvitationResponse.php + - src/Models/Operations/RevokeOrganizationInvitationRequest.php + - src/Models/Operations/RevokeOrganizationInvitationRequestBody.php + - src/Models/Operations/RevokeOrganizationInvitationResponse.php + - src/Models/Operations/RevokeSessionRequest.php + - src/Models/Operations/RevokeSessionResponse.php + - src/Models/Operations/RevokeSignInTokenRequest.php + - src/Models/Operations/RevokeSignInTokenResponse.php + - src/Models/Operations/RotateOAuthApplicationSecretRequest.php + - src/Models/Operations/RotateOAuthApplicationSecretResponse.php + - src/Models/Operations/SetUserProfileImageRequest.php + - src/Models/Operations/SetUserProfileImageRequestBody.php + - src/Models/Operations/SetUserProfileImageResponse.php + - src/Models/Operations/Status.php + - src/Models/Operations/TemplateType.php + - src/Models/Operations/ToggleTemplateDeliveryPathParamTemplateType.php + - src/Models/Operations/ToggleTemplateDeliveryRequest.php + - src/Models/Operations/ToggleTemplateDeliveryRequestBody.php + - src/Models/Operations/ToggleTemplateDeliveryResponse.php + - src/Models/Operations/UnbanUserRequest.php + - src/Models/Operations/UnbanUserResponse.php + - src/Models/Operations/UnlockUserRequest.php + - src/Models/Operations/UnlockUserResponse.php + - src/Models/Operations/UnsafeMetadata.php + - src/Models/Operations/UpdateDomainRequest.php + - src/Models/Operations/UpdateDomainRequestBody.php + - src/Models/Operations/UpdateDomainResponse.php + - src/Models/Operations/UpdateEmailAddressRequest.php + - src/Models/Operations/UpdateEmailAddressRequestBody.php + - src/Models/Operations/UpdateEmailAddressResponse.php + - src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php + - src/Models/Operations/UpdateInstanceAuthConfigResponse.php + - src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php + - src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php + - src/Models/Operations/UpdateInstanceRequestBody.php + - src/Models/Operations/UpdateInstanceResponse.php + - src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php + - src/Models/Operations/UpdateInstanceRestrictionsResponse.php + - src/Models/Operations/UpdateJWTTemplateClaims.php + - src/Models/Operations/UpdateJWTTemplateRequest.php + - src/Models/Operations/UpdateJWTTemplateRequestBody.php + - src/Models/Operations/UpdateJWTTemplateResponse.php + - src/Models/Operations/UpdateOAuthApplicationRequest.php + - src/Models/Operations/UpdateOAuthApplicationRequestBody.php + - src/Models/Operations/UpdateOAuthApplicationResponse.php + - src/Models/Operations/UpdateOrganizationMembershipMetadataPrivateMetadata.php + - src/Models/Operations/UpdateOrganizationMembershipMetadataPublicMetadata.php + - src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php + - src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php + - src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php + - src/Models/Operations/UpdateOrganizationMembershipRequest.php + - src/Models/Operations/UpdateOrganizationMembershipRequestBody.php + - src/Models/Operations/UpdateOrganizationMembershipResponse.php + - src/Models/Operations/UpdateOrganizationPrivateMetadata.php + - src/Models/Operations/UpdateOrganizationPublicMetadata.php + - src/Models/Operations/UpdateOrganizationRequest.php + - src/Models/Operations/UpdateOrganizationRequestBody.php + - src/Models/Operations/UpdateOrganizationResponse.php + - src/Models/Operations/UpdatePhoneNumberRequest.php + - src/Models/Operations/UpdatePhoneNumberRequestBody.php + - src/Models/Operations/UpdatePhoneNumberResponse.php + - src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php + - src/Models/Operations/UpdateProductionInstanceDomainResponse.php + - src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php + - src/Models/Operations/UpdateSAMLConnectionRequest.php + - src/Models/Operations/UpdateSAMLConnectionRequestBody.php + - src/Models/Operations/UpdateSAMLConnectionResponse.php + - src/Models/Operations/UpdateSignUpRequest.php + - src/Models/Operations/UpdateSignUpRequestBody.php + - src/Models/Operations/UpdateSignUpResponse.php + - src/Models/Operations/UpdateUserMetadataRequest.php + - src/Models/Operations/UpdateUserMetadataRequestBody.php + - src/Models/Operations/UpdateUserMetadataResponse.php + - src/Models/Operations/UpdateUserPasswordHasher.php + - src/Models/Operations/UpdateUserPrivateMetadata.php + - src/Models/Operations/UpdateUserPublicMetadata.php + - src/Models/Operations/UpdateUserRequest.php + - src/Models/Operations/UpdateUserRequestBody.php + - src/Models/Operations/UpdateUserResponse.php + - src/Models/Operations/UpdateUserUnsafeMetadata.php + - src/Models/Operations/UploadOrganizationLogoFile.php + - src/Models/Operations/UploadOrganizationLogoRequest.php + - src/Models/Operations/UploadOrganizationLogoRequestBody.php + - src/Models/Operations/UploadOrganizationLogoResponse.php + - src/Models/Operations/UpsertTemplatePathParamTemplateType.php + - src/Models/Operations/UpsertTemplateRequest.php + - src/Models/Operations/UpsertTemplateRequestBody.php + - src/Models/Operations/UpsertTemplateResponse.php + - src/Models/Operations/UsersGetOrganizationMembershipsRequest.php + - src/Models/Operations/UsersGetOrganizationMembershipsResponse.php + - src/Models/Operations/VerifyClientRequestBody.php + - src/Models/Operations/VerifyClientResponse.php + - src/Models/Operations/VerifyDomainProxyRequestBody.php + - src/Models/Operations/VerifyDomainProxyResponse.php + - src/Models/Operations/VerifyPasswordRequest.php + - src/Models/Operations/VerifyPasswordRequestBody.php + - src/Models/Operations/VerifyPasswordResponse.php + - src/Models/Operations/VerifyPasswordResponseBody.php + - src/Models/Operations/VerifySessionRequest.php + - src/Models/Operations/VerifySessionRequestBody.php + - src/Models/Operations/VerifySessionResponse.php + - src/Models/Operations/VerifyTOTPRequest.php + - src/Models/Operations/VerifyTOTPRequestBody.php + - src/Models/Operations/VerifyTOTPResponse.php + - src/Models/Operations/VerifyTOTPResponseBody.php + - src/OAuthApplications.php + - src/OrganizationInvitations.php + - src/OrganizationMemberships.php + - src/Organizations.php + - src/PhoneNumbers.php + - src/ProxyChecks.php + - src/RedirectURLs.php + - src/SAMLConnections.php + - src/SDKConfiguration.php + - src/Sessions.php + - src/SignInTokens.php + - src/SignUps.php + - src/TestingTokens.php + - src/Users.php + - src/Utils/BigDecimalHandler.php + - src/Utils/BigIntHandler.php + - src/Utils/DateHandler.php + - src/Utils/DateTimeHandler.php + - src/Utils/DefaultRequest.php + - src/Utils/DefaultResponse.php + - src/Utils/DefaultStream.php + - src/Utils/DefaultUri.php + - src/Utils/EnumHandler.php + - src/Utils/FormMetadata.php + - src/Utils/Headers.php + - src/Utils/JSON.php + - src/Utils/MixedJSONHandler.php + - src/Utils/MultipartMetadata.php + - src/Utils/ParamsMetadata.php + - src/Utils/PathParameters.php + - src/Utils/PhpDocTypeParser.php + - src/Utils/QueryParameters.php + - src/Utils/RequestBodies.php + - src/Utils/RequestMetadata.php + - src/Utils/Security.php + - src/Utils/SecurityClient.php + - src/Utils/SecurityMetadata.php + - src/Utils/SpeakeasyMetadata.php + - src/Utils/UnionHandler.php + - src/Utils/Utils.php + - src/Webhooks.php +examples: + GetPublicInterstitial: {} + GetJWKS: {} + GetClientList: + speakeasy-default-get-client-list: + responses: + "200": + application/json: [{"object": "client", "id": "", "session_ids": ["", ""], "sessions": [{"object": "session", "id": "", "user_id": "", "client_id": "", "status": "revoked", "last_active_at": 369689, "expire_at": 605632, "abandon_at": 547026, "updated_at": 806011, "created_at": 224015}, {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "revoked", "last_active_at": 918329, "expire_at": 780842, "abandon_at": 846708, "updated_at": 112136, "created_at": 125739}, {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "revoked", "last_active_at": 919605, "expire_at": 428479, "abandon_at": 441584, "updated_at": 841363, "created_at": 680972}], "sign_in_id": "", "sign_up_id": "", "last_active_session_id": "", "updated_at": 498482, "created_at": 363277}] + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + VerifyClient: + speakeasy-default-verify-client: + responses: + "200": + application/json: {"object": "client", "id": "", "session_ids": [""], "sessions": [{"object": "session", "id": "", "user_id": "", "client_id": "", "status": "abandoned", "last_active_at": 511587, "expire_at": 353892, "abandon_at": 801727, "updated_at": 290122, "created_at": 399279}], "sign_in_id": "", "sign_up_id": "", "last_active_session_id": "", "updated_at": 976190, "created_at": 532477} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetClient: + speakeasy-default-get-client: + parameters: + path: + client_id: "" + responses: + "200": + application/json: {"object": "client", "id": "", "session_ids": ["", ""], "sessions": [{"object": "session", "id": "", "user_id": "", "client_id": "", "status": "active", "last_active_at": 292602, "expire_at": 137177, "abandon_at": 725328, "updated_at": 332373, "created_at": 479925}, {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "ended", "last_active_at": 124999, "expire_at": 27972, "abandon_at": 733533, "updated_at": 813550, "created_at": 246886}, {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "removed", "last_active_at": 548406, "expire_at": 656470, "abandon_at": 633323, "updated_at": 440170, "created_at": 140103}], "sign_in_id": "", "sign_up_id": "", "last_active_session_id": "", "updated_at": 551906, "created_at": 194180} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateEmailAddress: + speakeasy-default-create-email-address: + responses: + "200": + application/json: {"object": "email_address", "email_address": "Kailyn.Goldner69@hotmail.com", "reserved": true, "verification": {"status": "expired", "strategy": "reset_password_email_code", "attempts": 31600, "expire_at": 659787}, "linked_to": [{"type": "oauth_google", "id": ""}, {"type": "saml", "id": ""}, {"type": "oauth_mock", "id": ""}], "created_at": 931634, "updated_at": 748439} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetEmailAddress: + speakeasy-default-get-email-address: + parameters: + path: + email_address_id: "" + responses: + "200": + application/json: {"object": "email_address", "email_address": "May_Hyatt60@hotmail.com", "reserved": true, "verification": {"status": "expired", "strategy": "oauth_google", "expire_at": 69052}, "linked_to": [{"type": "oauth_mock", "id": ""}, {"type": "oauth_mock", "id": ""}], "created_at": 252787, "updated_at": 529707} + "400": + application/json: {"errors": []} + DeleteEmailAddress: + speakeasy-default-delete-email-address: + parameters: + path: + email_address_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateEmailAddress: + speakeasy-default-update-email-address: + parameters: + path: + email_address_id: "" + responses: + "200": + application/json: {"object": "email_address", "email_address": "Dangelo70@yahoo.com", "reserved": true, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "oauth_mock", "id": ""}], "created_at": 401219, "updated_at": 904537} + "400": + application/json: {"errors": []} + CreatePhoneNumber: + speakeasy-default-create-phone-number: + responses: + "200": + application/json: {"object": "phone_number", "phone_number": "449.414.8771 x1919", "reserved": false, "verification": {"status": "failed", "strategy": "phone_code", "attempts": 874746, "expire_at": 904277}, "linked_to": [{"type": "oauth_google", "id": ""}, {"type": "oauth_mock", "id": ""}, {"type": "oauth_google", "id": ""}], "created_at": 231321, "updated_at": 922733} + "400": + application/json: {"errors": []} + GetPhoneNumber: + speakeasy-default-get-phone-number: + parameters: + path: + phone_number_id: "" + responses: + "200": + application/json: {"object": "phone_number", "phone_number": "1-925-515-7637 x08884", "reserved": false, "verification": {"status": "expired", "strategy": "reset_password_email_code", "attempts": 262295, "expire_at": 785257}, "linked_to": [{"type": "saml", "id": ""}, {"type": "oauth_mock", "id": ""}], "created_at": 56664, "updated_at": 572237} + "400": + application/json: {"errors": []} + DeletePhoneNumber: + speakeasy-default-delete-phone-number: + parameters: + path: + phone_number_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + UpdatePhoneNumber: + speakeasy-default-update-phone-number: + parameters: + path: + phone_number_id: "" + responses: + "200": + application/json: {"object": "phone_number", "phone_number": "1-528-907-8707 x40619", "reserved": true, "verification": {"status": "verified", "strategy": "admin"}, "linked_to": [{"type": "saml", "id": ""}], "created_at": 435172, "updated_at": 139647} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetSessionList: + speakeasy-default-get-session-list: + responses: + "200": + application/json: [{"object": "session", "id": "", "user_id": "", "client_id": "", "status": "revoked", "last_active_at": 579292, "expire_at": 723393, "abandon_at": 861281, "updated_at": 820280, "created_at": 772828}, {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "ended", "last_active_at": 733747, "expire_at": 867562, "abandon_at": 495330, "updated_at": 919256, "created_at": 573911}] + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetSession: + speakeasy-default-get-session: + parameters: + path: + session_id: "" + responses: + "200": + application/json: {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "replaced", "last_active_at": 818503, "expire_at": 720226, "abandon_at": 954599, "updated_at": 943025, "created_at": 690915} + "400": + application/json: {"errors": []} + RevokeSession: + speakeasy-default-revoke-session: + parameters: + path: + session_id: "" + responses: + "200": + application/json: {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "active", "last_active_at": 923791, "expire_at": 446837, "abandon_at": 136893, "updated_at": 983684, "created_at": 922872} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + VerifySession: + speakeasy-default-verify-session: + parameters: + path: + session_id: "" + responses: + "200": + application/json: {"object": "session", "id": "", "user_id": "", "client_id": "", "status": "expired", "last_active_at": 758399, "expire_at": 951650, "abandon_at": 106106, "updated_at": 707871, "created_at": 836837} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateSessionTokenFromTemplate: + speakeasy-default-create-session-token-from-template: + parameters: + path: + session_id: "" + template_name: "" + responses: + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetTemplateList: + speakeasy-default-get-template-list: + parameters: + path: + template_type: "sms" + responses: + "400": + application/json: {"errors": []} + GetTemplate: + speakeasy-default-get-template: + parameters: + path: + template_type: "email" + slug: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + UpsertTemplate: + speakeasy-default-upsert-template: + parameters: + path: + template_type: "email" + slug: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + RevertTemplate: + speakeasy-default-revert-template: + parameters: + path: + template_type: "sms" + slug: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + PreviewTemplate: + speakeasy-default-preview-template: + parameters: + path: + template_type: "" + slug: "" + responses: + "400": + application/json: {"errors": []} + ToggleTemplateDelivery: + speakeasy-default-toggle-template-delivery: + parameters: + path: + template_type: "sms" + slug: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetUserList: + "": + parameters: + query: + last_active_at_since: 1700690400000 + responses: + "200": + application/json: [{"last_active_at": 1700690400000}] + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateUser: + speakeasy-default-create-user: + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + GetUsersCount: + speakeasy-default-get-users-count: + responses: + "200": + application/json: {"object": "total_count", "total_count": 869435} + "422": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetUser: + speakeasy-default-get-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "400": + application/json: {"errors": []} + UpdateUser: + speakeasy-default-update-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteUser: + speakeasy-default-delete-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + BanUser: + speakeasy-default-ban-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "402": + application/json: {"errors": []} + UnbanUser: + speakeasy-default-unban-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "402": + application/json: {"errors": []} + LockUser: + speakeasy-default-lock-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UnlockUser: + speakeasy-default-unlock-user: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "403": + application/json: {"errors": []} + SetUserProfileImage: + speakeasy-default-set-user-profile-image: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteUserProfileImage: + speakeasy-default-delete-user-profile-image: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateUserMetadata: + speakeasy-default-update-user-metadata: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"last_active_at": 1700690400000} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetOAuthAccessToken: + speakeasy-default-get-O-auth-access-token: + parameters: + path: + user_id: "" + provider: "" + responses: + "400": + application/json: {"errors": []} + UsersGetOrganizationMemberships: + speakeasy-default-users-get-organization-memberships: + parameters: + path: + user_id: "" + query: {} + responses: + "200": + application/json: {"total_count": 492159} + "403": + application/json: {"errors": []} + VerifyPassword: + speakeasy-default-verify-password: + parameters: + path: + user_id: "" + responses: + "500": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + VerifyTOTP: + speakeasy-default-verify-TOTP: + parameters: + path: + user_id: "" + responses: + "500": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DisableMFA: + speakeasy-default-disable-MFA: + parameters: + path: + user_id: "" + responses: + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateInvitation: + speakeasy-default-create-invitation: + responses: + "200": + application/json: {"object": "invitation", "id": "", "email_address": "Al.Grady1@hotmail.com", "revoked": false, "status": "pending", "created_at": 176200, "updated_at": 39817} + "400": + application/json: {"errors": []} + ListInvitations: + speakeasy-default-list-invitations: + responses: + "200": + application/json: [{"object": "invitation", "id": "", "email_address": "Keyon_Krajcik@yahoo.com", "revoked": false, "status": "pending", "created_at": 270930, "updated_at": 663562}, {"object": "invitation", "id": "", "email_address": "Mark59@gmail.com", "revoked": false, "status": "pending", "created_at": 744866, "updated_at": 961713}] + RevokeInvitation: + speakeasy-default-revoke-invitation: + parameters: + path: + invitation_id: "" + responses: + "200": + application/json: {"object": "invitation", "id": "", "email_address": "Jaren_Langworth98@yahoo.com", "revoked": true, "status": "revoked", "created_at": 513767, "updated_at": 316334} + "400": + application/json: {"errors": []} + ListAllowlistIdentifiers: + speakeasy-default-list-allowlist-identifiers: + responses: + "401": + application/json: {"errors": []} + CreateAllowlistIdentifier: + speakeasy-default-create-allowlist-identifier: + responses: + "400": + application/json: {"errors": []} + DeleteAllowlistIdentifier: + speakeasy-default-delete-allowlist-identifier: + parameters: + path: + identifier_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListBlocklistIdentifiers: + speakeasy-default-list-blocklist-identifiers: + responses: + "200": + application/json: {"total_count": 935502} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateBlocklistIdentifier: + speakeasy-default-create-blocklist-identifier: + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteBlocklistIdentifier: + speakeasy-default-delete-blocklist-identifier: + parameters: + path: + identifier_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "402": + application/json: {"errors": []} + UpdateInstanceAuthConfig: + speakeasy-default-update-instance-auth-config: + responses: + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateProductionInstanceDomain: + speakeasy-default-update-production-instance-domain: + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ChangeProductionInstanceDomain: + speakeasy-default-change-production-instance-domain: + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateActorToken: + speakeasy-default-create-actor-token: + requestBody: + application/json: {"user_id": ""} + responses: + "200": + application/json: {"object": "actor_token", "id": "", "status": "pending", "user_id": "", "created_at": 664688, "updated_at": 62962} + "400": + application/json: {"errors": []} + RevokeActorToken: + speakeasy-default-revoke-actor-token: + parameters: + path: + actor_token_id: "" + responses: + "200": + application/json: {"object": "actor_token", "id": "", "status": "pending", "user_id": "", "created_at": 114905, "updated_at": 8992} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListDomains: + speakeasy-default-list-domains: + responses: + "200": + application/json: {"data": [{"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://glorious-gastropod.org/", "development_origin": ""}, {"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://lost-steeple.info", "development_origin": ""}, {"object": "domain", "id": "", "name": "", "is_satellite": true, "frontend_api_url": "https://scientific-teriyaki.biz/", "development_origin": ""}], "total_count": 897222} + AddDomain: + speakeasy-default-add-domain: + responses: + "200": + application/json: {"object": "domain", "id": "", "name": "", "is_satellite": true, "frontend_api_url": "https://necessary-charm.biz/", "development_origin": ""} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + DeleteDomain: + speakeasy-default-delete-domain: + parameters: + path: + domain_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + UpdateDomain: + speakeasy-default-update-domain: + parameters: + path: + domain_id: "" + responses: + "200": + application/json: {"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://nifty-joy.net/", "development_origin": ""} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateInstance: + speakeasy-default-update-instance: + responses: + "422": + application/json: {"errors": []} + UpdateInstanceRestrictions: + speakeasy-default-update-instance-restrictions: + responses: + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateInstanceOrganizationSettings: + speakeasy-default-update-instance-organization-settings: + responses: + "200": + application/json: {"object": "organization_settings", "enabled": true, "max_allowed_memberships": 549115, "creator_role": "", "admin_delete_enabled": true, "domains_enabled": true, "domains_enrollment_modes": ["automatic_suggestion", "automatic_suggestion", "automatic_invitation"], "domains_default_role": ""} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateSvixApp: + speakeasy-default-create-svix-app: + responses: + "200": + application/json: {"svix_url": "https://fussy-fit.info/"} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + DeleteSvixApp: + speakeasy-default-delete-svix-app: + responses: + "400": + application/json: {"errors": []} + GenerateSvixAuthURL: + speakeasy-default-generate-svix-auth-URL: + responses: + "200": + application/json: {"svix_url": "https://late-gymnast.org"} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListJWTTemplates: + speakeasy-default-list-JWT-templates: + responses: + "200": + application/json: [{"object": "jwt_template", "id": "", "name": "", "lifetime": 333725, "allowed_clock_skew": 732880, "created_at": 409143, "updated_at": 212242}, {"object": "jwt_template", "id": "", "name": "", "lifetime": 490314, "allowed_clock_skew": 125836, "created_at": 67512, "updated_at": 999787}, {"object": "jwt_template", "id": "", "name": "", "lifetime": 499997, "allowed_clock_skew": 230615, "created_at": 312845, "updated_at": 535888}] + CreateJWTTemplate: + speakeasy-default-create-JWT-template: + responses: + "200": + application/json: {"object": "jwt_template", "id": "", "name": "", "lifetime": 636196, "allowed_clock_skew": 687004, "created_at": 273048, "updated_at": 891395} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetJWTTemplate: + speakeasy-default-get-JWT-template: + parameters: + path: + template_id: "" + responses: + "200": + application/json: {"object": "jwt_template", "id": "", "name": "", "lifetime": 962772, "allowed_clock_skew": 674175, "created_at": 21361, "updated_at": 274270} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateJWTTemplate: + speakeasy-default-update-JWT-template: + parameters: + path: + template_id: "" + responses: + "200": + application/json: {"object": "jwt_template", "id": "", "name": "", "lifetime": 570419, "allowed_clock_skew": 725258, "created_at": 759751, "updated_at": 883134} + "400": + application/json: {"errors": []} + DeleteJWTTemplate: + speakeasy-default-delete-JWT-template: + parameters: + path: + template_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListOrganizations: + speakeasy-default-list-organizations: + responses: + "200": + application/json: {"data": [{"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 783175, "created_at": 821525, "updated_at": 670307}, {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 50684, "created_at": 111065, "updated_at": 133947}], "total_count": 288738} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateOrganization: + speakeasy-default-create-organization: + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 57077, "created_at": 323854, "updated_at": 798540} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetOrganization: + speakeasy-default-get-organization: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 754735, "created_at": 750923, "updated_at": 871877} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateOrganization: + speakeasy-default-update-organization: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 524231, "created_at": 565012, "updated_at": 59099} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + DeleteOrganization: + speakeasy-default-delete-organization: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + MergeOrganizationMetadata: + speakeasy-default-merge-organization-metadata: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 253408, "created_at": 598734, "updated_at": 850278} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UploadOrganizationLogo: + speakeasy-default-upload-organization-logo: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 602729, "created_at": 452162, "updated_at": 416390, "image_url": "https://remarkable-replacement.name"} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteOrganizationLogo: + speakeasy-default-delete-organization-logo: + parameters: + path: + organization_id: "" + responses: + "200": + application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 514604, "created_at": 703303, "updated_at": 542013} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateOrganizationInvitation: + speakeasy-default-create-organization-invitation: + parameters: + path: + organization_id: "" + requestBody: + application/json: {"email_address": "Jensen_Ankunding@hotmail.com", "inviter_user_id": "", "role": ""} + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListOrganizationInvitations: + speakeasy-default-list-organization-invitations: + parameters: + path: + organization_id: "" + query: {} + responses: + "200": + application/json: {"total_count": 146396} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateOrganizationInvitationBulk: + speakeasy-default-create-organization-invitation-bulk: + parameters: + path: + organization_id: "" + requestBody: + application/json: [] + responses: + "200": + application/json: {"total_count": 637338} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListPendingOrganizationInvitations: + speakeasy-default-list-pending-organization-invitations: + parameters: + path: + organization_id: "" + query: {} + responses: + "200": + application/json: {"total_count": 910782} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + GetOrganizationInvitation: + speakeasy-default-get-organization-invitation: + parameters: + path: + organization_id: "" + invitation_id: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + RevokeOrganizationInvitation: + speakeasy-default-revoke-organization-invitation: + parameters: + path: + organization_id: "" + invitation_id: "" + requestBody: + application/json: {"requesting_user_id": ""} + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateOrganizationMembership: + speakeasy-default-create-organization-membership: + parameters: + path: + organization_id: "" + requestBody: + application/json: {"user_id": "", "role": ""} + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListOrganizationMemberships: + speakeasy-default-list-organization-memberships: + parameters: + path: + organization_id: "" + query: {} + responses: + "200": + application/json: {"total_count": 506931} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateOrganizationMembership: + speakeasy-default-update-organization-membership: + parameters: + path: + organization_id: "" + user_id: "" + requestBody: + application/json: {"role": ""} + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteOrganizationMembership: + speakeasy-default-delete-organization-membership: + parameters: + path: + organization_id: "" + user_id: "" + responses: + "400": + application/json: {"errors": []} + UpdateOrganizationMembershipMetadata: + speakeasy-default-update-organization-membership-metadata: + parameters: + path: + organization_id: "" + user_id: "" + responses: + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + VerifyDomainProxy: + speakeasy-default-verify-domain-proxy: + responses: + "200": + application/json: {"object": "proxy_check", "id": "", "domain_id": "", "last_run_at": 36600, "proxy_url": "https://sardonic-masterpiece.net", "successful": false, "created_at": 38838, "updated_at": 767005} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListRedirectURLs: + speakeasy-default-list-redirect-UR-ls: + responses: + "200": + application/json: [{"object": "redirect_url", "id": "", "url": "https://political-jungle.net/", "created_at": 319733, "updated_at": 755781}, {"object": "redirect_url", "id": "", "url": "https://noxious-bidet.biz/", "created_at": 643098, "updated_at": 595843}, {"object": "redirect_url", "id": "", "url": "https://nippy-slide.com/", "created_at": 432371, "updated_at": 913204}] + CreateRedirectURL: + speakeasy-default-create-redirect-URL: + responses: + "200": + application/json: {"object": "redirect_url", "id": "", "url": "https://aggressive-bench.name", "created_at": 286417, "updated_at": 827124} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetRedirectURL: + speakeasy-default-get-redirect-URL: + parameters: + path: + id: "" + responses: + "200": + application/json: {"object": "redirect_url", "id": "", "url": "https://affectionate-corporation.net/", "created_at": 890911, "updated_at": 351603} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + DeleteRedirectURL: + speakeasy-default-delete-redirect-URL: + parameters: + path: + id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "404": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateSignInToken: + speakeasy-default-create-sign-in-token: + responses: + "200": + application/json: {"object": "sign_in_token", "id": "", "status": "accepted", "user_id": "", "created_at": 713289, "updated_at": 77941} + "404": + application/json: {"errors": []} + RevokeSignInToken: + speakeasy-default-revoke-sign-in-token: + parameters: + path: + sign_in_token_id: "" + responses: + "200": + application/json: {"object": "sign_in_token", "id": "", "status": "revoked", "user_id": "", "created_at": 634519, "updated_at": 69667} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateSignUp: + speakeasy-default-update-sign-up: + parameters: + path: + id: "" + responses: + "200": + application/json: {"object": "sign_up_attempt", "id": "", "status": "abandoned", "password_enabled": false, "custom_action": false, "abandon_at": 694671} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListOAuthApplications: + speakeasy-default-list-O-auth-applications: + responses: + "200": + application/json: {"data": [{"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": true, "scopes": "", "callback_url": "https://wide-valley.info", "authorize_url": "https://ripe-battle.com", "token_fetch_url": "https://sleepy-litter.biz/", "user_info_url": "https://square-schedule.org/", "created_at": 253611, "updated_at": 110984}, {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": true, "scopes": "", "callback_url": "https://acidic-bar.info/", "authorize_url": "https://uncommon-tectonics.com/", "token_fetch_url": "https://acclaimed-tenement.name", "user_info_url": "https://teeming-characterization.net", "created_at": 803812, "updated_at": 994366}, {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": false, "scopes": "", "callback_url": "https://puny-lifestyle.name/", "authorize_url": "https://lovable-underneath.org/", "token_fetch_url": "https://rapid-spear.info/", "user_info_url": "https://unhappy-monster.net", "created_at": 718909, "updated_at": 772406}], "total_count": 13767} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateOAuthApplication: + speakeasy-default-create-O-auth-application: + requestBody: + application/json: {"name": "", "callback_url": "https://silent-hyena.name", "scopes": "profile email public_metadata"} + responses: + "200": + application/json: {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": false, "scopes": "", "callback_url": "https://ironclad-brush.org/", "authorize_url": "https://thorny-gray.info/", "token_fetch_url": "https://pricey-manner.net", "user_info_url": "https://whirlwind-poppy.name", "created_at": 218311, "updated_at": 746543} + "400": + application/json: {"errors": []} + GetOAuthApplication: + speakeasy-default-get-O-auth-application: + parameters: + path: + oauth_application_id: "" + responses: + "200": + application/json: {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": true, "scopes": "", "callback_url": "https://utter-ravioli.net/", "authorize_url": "https://productive-poppy.org/", "token_fetch_url": "https://trustworthy-innovation.net", "user_info_url": "https://creamy-minister.com/", "created_at": 126484, "updated_at": 253761} + "403": + application/json: {"errors": []} + UpdateOAuthApplication: + speakeasy-default-update-O-auth-application: + parameters: + path: + oauth_application_id: "" + requestBody: + application/json: {"scopes": "profile email public_metadata private_metadata"} + responses: + "200": + application/json: {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": true, "scopes": "", "callback_url": "https://bare-hose.biz/", "authorize_url": "https://cultivated-sonar.com", "token_fetch_url": "https://tattered-piglet.net", "user_info_url": "https://fatal-parade.biz/", "created_at": 773881, "updated_at": 695151} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + DeleteOAuthApplication: + speakeasy-default-delete-O-auth-application: + parameters: + path: + oauth_application_id: "" + responses: + "200": + application/json: {"object": "", "deleted": false} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + RotateOAuthApplicationSecret: + speakeasy-default-rotate-O-auth-application-secret: + parameters: + path: + oauth_application_id: "" + responses: + "200": + application/json: {"object": "oauth_application", "id": "", "instance_id": "", "name": "", "client_id": "", "public": true, "scopes": "", "callback_url": "https://everlasting-attraction.name", "authorize_url": "https://illiterate-step-mother.com", "token_fetch_url": "https://decent-teriyaki.net", "user_info_url": "https://evil-celsius.org/", "created_at": 132670, "updated_at": 883895} + "403": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + ListSAMLConnections: + speakeasy-default-list-SAML-connections: + responses: + "200": + application/json: {"data": [{"object": "saml_connection", "id": "", "name": "", "domain": "soft-integer.com", "idp_entity_id": "", "idp_sso_url": "https://baggy-conservative.biz/", "idp_certificate": "", "acs_url": "https://impartial-epic.com/", "sp_entity_id": "", "sp_metadata_url": "https://lavish-order.biz/", "active": false, "provider": "", "user_count": 160633, "sync_user_attributes": false, "created_at": 521364, "updated_at": 469208}, {"object": "saml_connection", "id": "", "name": "", "domain": "rusty-summary.name", "idp_entity_id": "", "idp_sso_url": "https://winding-heating.com", "idp_certificate": "", "acs_url": "https://enlightened-space.net/", "sp_entity_id": "", "sp_metadata_url": "https://favorable-heartbeat.net/", "active": false, "provider": "", "user_count": 15207, "sync_user_attributes": true, "created_at": 532002, "updated_at": 785391}], "total_count": 921814} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateSAMLConnection: + speakeasy-default-create-SAML-connection: + responses: + "200": + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "stingy-necklace.name", "idp_entity_id": "", "idp_sso_url": "https://descriptive-skyscraper.net", "idp_certificate": "", "acs_url": "https://junior-meatloaf.org", "sp_entity_id": "", "sp_metadata_url": "https://glorious-discourse.name/", "active": false, "provider": "", "user_count": 373144, "sync_user_attributes": false, "created_at": 67442, "updated_at": 70153} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + GetSAMLConnection: + speakeasy-default-get-SAML-connection: + parameters: + path: + saml_connection_id: "" + responses: + "200": + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "whopping-offset.org", "idp_entity_id": "", "idp_sso_url": "https://hospitable-eyeliner.net/", "idp_certificate": "", "acs_url": "https://focused-marimba.org/", "sp_entity_id": "", "sp_metadata_url": "https://athletic-wriggler.name", "active": false, "provider": "", "user_count": 660557, "sync_user_attributes": false, "created_at": 503710, "updated_at": 338454} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + UpdateSAMLConnection: + speakeasy-default-update-SAML-connection: + parameters: + path: + saml_connection_id: "" + responses: + "200": + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "bitter-cheetah.biz", "idp_entity_id": "", "idp_sso_url": "https://dual-pomelo.org", "idp_certificate": "", "acs_url": "https://paltry-middle.net", "sp_entity_id": "", "sp_metadata_url": "https://immediate-tune-up.info/", "active": true, "provider": "", "user_count": 910631, "sync_user_attributes": true, "created_at": 347299, "updated_at": 414806} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteSAMLConnection: + speakeasy-default-delete-SAML-connection: + parameters: + path: + saml_connection_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "402": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} + CreateTestingToken: + speakeasy-default-create-testing-token: + responses: + "200": + application/json: {"object": "testing_token", "token": "1713877200-c_2J2MvPu9PnXcuhbPZNao0LOXqK9A7YrnBn0HmIWxy", "expires_at": 1713880800} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 77df6af..e497ec6 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.1.2 + version: 0.2.0 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: @@ -24,7 +24,11 @@ php: shared: Models/Components webhooks: Models/Webhooks inputModelSuffix: input + laravelServiceProvider: + enabled: false + svcName: openapi maxMethodParams: 4 + methodArguments: infer-optional-args namespace: Clerk\Backend outputModelSuffix: output packageName: clerk/backend-php diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f396dc0..b504eb1 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,24 +1,24 @@ -speakeasyVersion: 1.390.8 +speakeasyVersion: 1.424.0 sources: clerk-backend-php: sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:6353205af3f19bb156736f0b9e892105994cdb88a27501203bc48fa966be9cd2 - sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa + sourceRevisionDigest: sha256:1b286b5fed33a83bc8f8565131d2a072b75dbac14f4d2d47e67033f3ae2af2c8 + sourceBlobDigest: sha256:a1fe6e2b6b88ebb94a1ed12cf3aa9acf83572460a5f825e8af217a692289a9f2 tags: - latest targets: clerk-php: source: clerk-backend-php sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:6353205af3f19bb156736f0b9e892105994cdb88a27501203bc48fa966be9cd2 - sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa - outLocation: /Users/octoper/clerk/php/clerk-php + sourceRevisionDigest: sha256:1b286b5fed33a83bc8f8565131d2a072b75dbac14f4d2d47e67033f3ae2af2c8 + sourceBlobDigest: sha256:a1fe6e2b6b88ebb94a1ed12cf3aa9acf83572460a5f825e8af217a692289a9f2 + codeSamplesNamespace: clerk-openapi-code-samples + codeSamplesRevisionDigest: sha256:220becc6b1b15b3ebe33c2a76a7f712f38f7c889d1522460eba85847cb041c9b my-first-target: source: clerk-backend-php sourceNamespace: clerk-openapi sourceRevisionDigest: sha256:c169e1d91c0cf96f1b0efcd65d90aa47ab9f42cfcde30514813f38ee86c14a75 sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa - outLocation: /Users/octoper/clerk/php/clerk-php workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -32,3 +32,11 @@ workflow: clerk-php: target: php source: clerk-backend-php + publish: + packagist: + username: clerkinc + token: $packagist_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-code-samples + blocking: false diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 9667bcd..ecde255 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -14,3 +14,7 @@ targets: packagist: username: clerkinc token: $packagist_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-code-samples + blocking: false diff --git a/README.md b/README.md index 879f063..0198aae 100644 --- a/README.md +++ b/README.md @@ -51,43 +51,51 @@ CLERK_SECRET_KEY=sk_****** ## Available Resources and Operations -### [Miscellaneous](docs/sdks/miscellaneous/README.md) +
+Available methods -* [getPublicInterstitial](docs/sdks/miscellaneous/README.md#getpublicinterstitial) - Returns the markup for the interstitial page +### [actorTokens](docs/sdks/actortokens/README.md) -### [Jwks](docs/sdks/jwks/README.md) +* [createActorToken](docs/sdks/actortokens/README.md#createactortoken) - Create actor token +* [revokeActorToken](docs/sdks/actortokens/README.md#revokeactortoken) - Revoke actor token + +### [allowListBlockList](docs/sdks/allowlistblocklist/README.md) + +* [listAllowlistIdentifiers](docs/sdks/allowlistblocklist/README.md#listallowlistidentifiers) - List all identifiers on the allow-list +* [createAllowlistIdentifier](docs/sdks/allowlistblocklist/README.md#createallowlistidentifier) - Add identifier to the allow-list +* [deleteAllowlistIdentifier](docs/sdks/allowlistblocklist/README.md#deleteallowlistidentifier) - Delete identifier from allow-list +* [listBlocklistIdentifiers](docs/sdks/allowlistblocklist/README.md#listblocklistidentifiers) - List all identifiers on the block-list +* [createBlocklistIdentifier](docs/sdks/allowlistblocklist/README.md#createblocklistidentifier) - Add identifier to the block-list +* [deleteBlocklistIdentifier](docs/sdks/allowlistblocklist/README.md#deleteblocklistidentifier) - Delete identifier from block-list + +### [betaFeatures](docs/sdks/betafeatures/README.md) + +* [updateInstanceAuthConfig](docs/sdks/betafeatures/README.md#updateinstanceauthconfig) - Update instance settings +* [~~updateProductionInstanceDomain~~](docs/sdks/betafeatures/README.md#updateproductioninstancedomain) - Update production instance domain :warning: **Deprecated** +* [changeProductionInstanceDomain](docs/sdks/betafeatures/README.md#changeproductioninstancedomain) - Update production instance domain -* [getJWKS](docs/sdks/jwks/README.md#getjwks) - Retrieve the JSON Web Key Set of the instance -### [Clients](docs/sdks/clients/README.md) +### [clients](docs/sdks/clients/README.md) * [~~getClientList~~](docs/sdks/clients/README.md#getclientlist) - List all clients :warning: **Deprecated** * [verifyClient](docs/sdks/clients/README.md#verifyclient) - Verify a client * [getClient](docs/sdks/clients/README.md#getclient) - Get a client -### [EmailAddresses](docs/sdks/emailaddresses/README.md) +### [domains](docs/sdks/domains/README.md) + +* [listDomains](docs/sdks/domains/README.md#listdomains) - List all instance domains +* [addDomain](docs/sdks/domains/README.md#adddomain) - Add a domain +* [deleteDomain](docs/sdks/domains/README.md#deletedomain) - Delete a satellite domain +* [updateDomain](docs/sdks/domains/README.md#updatedomain) - Update a domain + +### [emailAddresses](docs/sdks/emailaddresses/README.md) * [createEmailAddress](docs/sdks/emailaddresses/README.md#createemailaddress) - Create an email address * [getEmailAddress](docs/sdks/emailaddresses/README.md#getemailaddress) - Retrieve an email address * [deleteEmailAddress](docs/sdks/emailaddresses/README.md#deleteemailaddress) - Delete an email address * [updateEmailAddress](docs/sdks/emailaddresses/README.md#updateemailaddress) - Update an email address -### [PhoneNumbers](docs/sdks/phonenumbers/README.md) - -* [createPhoneNumber](docs/sdks/phonenumbers/README.md#createphonenumber) - Create a phone number -* [getPhoneNumber](docs/sdks/phonenumbers/README.md#getphonenumber) - Retrieve a phone number -* [deletePhoneNumber](docs/sdks/phonenumbers/README.md#deletephonenumber) - Delete a phone number -* [updatePhoneNumber](docs/sdks/phonenumbers/README.md#updatephonenumber) - Update a phone number - -### [Sessions](docs/sdks/sessions/README.md) - -* [getSessionList](docs/sdks/sessions/README.md#getsessionlist) - List all sessions -* [getSession](docs/sdks/sessions/README.md#getsession) - Retrieve a session -* [revokeSession](docs/sdks/sessions/README.md#revokesession) - Revoke a session -* [~~verifySession~~](docs/sdks/sessions/README.md#verifysession) - Verify a session :warning: **Deprecated** -* [createSessionTokenFromTemplate](docs/sdks/sessions/README.md#createsessiontokenfromtemplate) - Create a session token from a jwt template - -### [EmailAndSMSTemplates](docs/sdks/emailandsmstemplates/README.md) +### [~~emailAndSMSTemplates~~](docs/sdks/emailandsmstemplates/README.md) * [~~getTemplateList~~](docs/sdks/emailandsmstemplates/README.md#gettemplatelist) - List all templates :warning: **Deprecated** * [~~getTemplate~~](docs/sdks/emailandsmstemplates/README.md#gettemplate) - Retrieve a template :warning: **Deprecated** @@ -96,73 +104,23 @@ CLERK_SECRET_KEY=sk_****** * [~~previewTemplate~~](docs/sdks/emailandsmstemplates/README.md#previewtemplate) - Preview changes to a template :warning: **Deprecated** * [~~toggleTemplateDelivery~~](docs/sdks/emailandsmstemplates/README.md#toggletemplatedelivery) - Toggle the delivery by Clerk for a template of a given type and slug :warning: **Deprecated** -### [Users](docs/sdks/users/README.md) +### [instanceSettings](docs/sdks/instancesettings/README.md) -* [getUserList](docs/sdks/users/README.md#getuserlist) - List all users -* [createUser](docs/sdks/users/README.md#createuser) - Create a new user -* [getUsersCount](docs/sdks/users/README.md#getuserscount) - Count users -* [getUser](docs/sdks/users/README.md#getuser) - Retrieve a user -* [updateUser](docs/sdks/users/README.md#updateuser) - Update a user -* [deleteUser](docs/sdks/users/README.md#deleteuser) - Delete a user -* [banUser](docs/sdks/users/README.md#banuser) - Ban a user -* [unbanUser](docs/sdks/users/README.md#unbanuser) - Unban a user -* [lockUser](docs/sdks/users/README.md#lockuser) - Lock a user -* [unlockUser](docs/sdks/users/README.md#unlockuser) - Unlock a user -* [setUserProfileImage](docs/sdks/users/README.md#setuserprofileimage) - Set user profile image -* [deleteUserProfileImage](docs/sdks/users/README.md#deleteuserprofileimage) - Delete user profile image -* [updateUserMetadata](docs/sdks/users/README.md#updateusermetadata) - Merge and update a user's metadata -* [getOAuthAccessToken](docs/sdks/users/README.md#getoauthaccesstoken) - Retrieve the OAuth access token of a user -* [usersGetOrganizationMemberships](docs/sdks/users/README.md#usersgetorganizationmemberships) - Retrieve all memberships for a user -* [verifyPassword](docs/sdks/users/README.md#verifypassword) - Verify the password of a user -* [verifyTOTP](docs/sdks/users/README.md#verifytotp) - Verify a TOTP or backup code for a user -* [disableMFA](docs/sdks/users/README.md#disablemfa) - Disable a user's MFA methods +* [updateInstance](docs/sdks/instancesettings/README.md#updateinstance) - Update instance settings +* [updateInstanceRestrictions](docs/sdks/instancesettings/README.md#updateinstancerestrictions) - Update instance restrictions +* [updateInstanceOrganizationSettings](docs/sdks/instancesettings/README.md#updateinstanceorganizationsettings) - Update instance organization settings -### [Invitations](docs/sdks/invitations/README.md) +### [invitations](docs/sdks/invitations/README.md) * [createInvitation](docs/sdks/invitations/README.md#createinvitation) - Create an invitation * [listInvitations](docs/sdks/invitations/README.md#listinvitations) - List all invitations * [revokeInvitation](docs/sdks/invitations/README.md#revokeinvitation) - Revokes an invitation -### [AllowListBlockList](docs/sdks/allowlistblocklist/README.md) - -* [listAllowlistIdentifiers](docs/sdks/allowlistblocklist/README.md#listallowlistidentifiers) - List all identifiers on the allow-list -* [createAllowlistIdentifier](docs/sdks/allowlistblocklist/README.md#createallowlistidentifier) - Add identifier to the allow-list -* [deleteAllowlistIdentifier](docs/sdks/allowlistblocklist/README.md#deleteallowlistidentifier) - Delete identifier from allow-list -* [listBlocklistIdentifiers](docs/sdks/allowlistblocklist/README.md#listblocklistidentifiers) - List all identifiers on the block-list -* [createBlocklistIdentifier](docs/sdks/allowlistblocklist/README.md#createblocklistidentifier) - Add identifier to the block-list -* [deleteBlocklistIdentifier](docs/sdks/allowlistblocklist/README.md#deleteblocklistidentifier) - Delete identifier from block-list - -### [BetaFeatures](docs/sdks/betafeatures/README.md) +### [jwks](docs/sdks/jwks/README.md) -* [updateInstanceAuthConfig](docs/sdks/betafeatures/README.md#updateinstanceauthconfig) - Update instance settings -* [~~updateProductionInstanceDomain~~](docs/sdks/betafeatures/README.md#updateproductioninstancedomain) - Update production instance domain :warning: **Deprecated** -* [changeProductionInstanceDomain](docs/sdks/betafeatures/README.md#changeproductioninstancedomain) - Update production instance domain - -### [ActorTokens](docs/sdks/actortokens/README.md) - -* [createActorToken](docs/sdks/actortokens/README.md#createactortoken) - Create actor token -* [revokeActorToken](docs/sdks/actortokens/README.md#revokeactortoken) - Revoke actor token - -### [Domains](docs/sdks/domains/README.md) - -* [listDomains](docs/sdks/domains/README.md#listdomains) - List all instance domains -* [addDomain](docs/sdks/domains/README.md#adddomain) - Add a domain -* [deleteDomain](docs/sdks/domains/README.md#deletedomain) - Delete a satellite domain -* [updateDomain](docs/sdks/domains/README.md#updatedomain) - Update a domain - -### [InstanceSettings](docs/sdks/instancesettings/README.md) - -* [updateInstance](docs/sdks/instancesettings/README.md#updateinstance) - Update instance settings -* [updateInstanceRestrictions](docs/sdks/instancesettings/README.md#updateinstancerestrictions) - Update instance restrictions -* [updateInstanceOrganizationSettings](docs/sdks/instancesettings/README.md#updateinstanceorganizationsettings) - Update instance organization settings - -### [Webhooks](docs/sdks/webhooks/README.md) - -* [createSvixApp](docs/sdks/webhooks/README.md#createsvixapp) - Create a Svix app -* [deleteSvixApp](docs/sdks/webhooks/README.md#deletesvixapp) - Delete a Svix app -* [generateSvixAuthURL](docs/sdks/webhooks/README.md#generatesvixauthurl) - Create a Svix Dashboard URL +* [getJWKS](docs/sdks/jwks/README.md#getjwks) - Retrieve the JSON Web Key Set of the instance -### [JWTTemplates](docs/sdks/jwttemplates/README.md) +### [jwtTemplates](docs/sdks/jwttemplates/README.md) * [listJWTTemplates](docs/sdks/jwttemplates/README.md#listjwttemplates) - List all templates * [createJWTTemplate](docs/sdks/jwttemplates/README.md#createjwttemplate) - Create a JWT template @@ -170,18 +128,20 @@ CLERK_SECRET_KEY=sk_****** * [updateJWTTemplate](docs/sdks/jwttemplates/README.md#updatejwttemplate) - Update a JWT template * [deleteJWTTemplate](docs/sdks/jwttemplates/README.md#deletejwttemplate) - Delete a Template -### [Organizations](docs/sdks/organizations/README.md) +### [miscellaneous](docs/sdks/miscellaneous/README.md) -* [listOrganizations](docs/sdks/organizations/README.md#listorganizations) - Get a list of organizations for an instance -* [createOrganization](docs/sdks/organizations/README.md#createorganization) - Create an organization -* [getOrganization](docs/sdks/organizations/README.md#getorganization) - Retrieve an organization by ID or slug -* [updateOrganization](docs/sdks/organizations/README.md#updateorganization) - Update an organization -* [deleteOrganization](docs/sdks/organizations/README.md#deleteorganization) - Delete an organization -* [mergeOrganizationMetadata](docs/sdks/organizations/README.md#mergeorganizationmetadata) - Merge and update metadata for an organization -* [uploadOrganizationLogo](docs/sdks/organizations/README.md#uploadorganizationlogo) - Upload a logo for the organization -* [deleteOrganizationLogo](docs/sdks/organizations/README.md#deleteorganizationlogo) - Delete the organization's logo. +* [getPublicInterstitial](docs/sdks/miscellaneous/README.md#getpublicinterstitial) - Returns the markup for the interstitial page + +### [oAuthApplications](docs/sdks/oauthapplications/README.md) + +* [listOAuthApplications](docs/sdks/oauthapplications/README.md#listoauthapplications) - Get a list of OAuth applications for an instance +* [createOAuthApplication](docs/sdks/oauthapplications/README.md#createoauthapplication) - Create an OAuth application +* [getOAuthApplication](docs/sdks/oauthapplications/README.md#getoauthapplication) - Retrieve an OAuth application by ID +* [updateOAuthApplication](docs/sdks/oauthapplications/README.md#updateoauthapplication) - Update an OAuth application +* [deleteOAuthApplication](docs/sdks/oauthapplications/README.md#deleteoauthapplication) - Delete an OAuth application +* [rotateOAuthApplicationSecret](docs/sdks/oauthapplications/README.md#rotateoauthapplicationsecret) - Rotate the client secret of the given OAuth application -### [OrganizationInvitations](docs/sdks/organizationinvitations/README.md) +### [organizationInvitations](docs/sdks/organizationinvitations/README.md) * [createOrganizationInvitation](docs/sdks/organizationinvitations/README.md#createorganizationinvitation) - Create and send an organization invitation * [listOrganizationInvitations](docs/sdks/organizationinvitations/README.md#listorganizationinvitations) - Get a list of organization invitations @@ -190,7 +150,7 @@ CLERK_SECRET_KEY=sk_****** * [getOrganizationInvitation](docs/sdks/organizationinvitations/README.md#getorganizationinvitation) - Retrieve an organization invitation by ID * [revokeOrganizationInvitation](docs/sdks/organizationinvitations/README.md#revokeorganizationinvitation) - Revoke a pending organization invitation -### [OrganizationMemberships](docs/sdks/organizationmemberships/README.md) +### [organizationMemberships](docs/sdks/organizationmemberships/README.md) * [createOrganizationMembership](docs/sdks/organizationmemberships/README.md#createorganizationmembership) - Create a new organization membership * [listOrganizationMemberships](docs/sdks/organizationmemberships/README.md#listorganizationmemberships) - Get a list of all members of an organization @@ -198,48 +158,149 @@ CLERK_SECRET_KEY=sk_****** * [deleteOrganizationMembership](docs/sdks/organizationmemberships/README.md#deleteorganizationmembership) - Remove a member from an organization * [updateOrganizationMembershipMetadata](docs/sdks/organizationmemberships/README.md#updateorganizationmembershipmetadata) - Merge and update organization membership metadata -### [ProxyChecks](docs/sdks/proxychecks/README.md) +### [organizations](docs/sdks/organizations/README.md) + +* [listOrganizations](docs/sdks/organizations/README.md#listorganizations) - Get a list of organizations for an instance +* [createOrganization](docs/sdks/organizations/README.md#createorganization) - Create an organization +* [getOrganization](docs/sdks/organizations/README.md#getorganization) - Retrieve an organization by ID or slug +* [updateOrganization](docs/sdks/organizations/README.md#updateorganization) - Update an organization +* [deleteOrganization](docs/sdks/organizations/README.md#deleteorganization) - Delete an organization +* [mergeOrganizationMetadata](docs/sdks/organizations/README.md#mergeorganizationmetadata) - Merge and update metadata for an organization +* [uploadOrganizationLogo](docs/sdks/organizations/README.md#uploadorganizationlogo) - Upload a logo for the organization +* [deleteOrganizationLogo](docs/sdks/organizations/README.md#deleteorganizationlogo) - Delete the organization's logo. + +### [phoneNumbers](docs/sdks/phonenumbers/README.md) + +* [createPhoneNumber](docs/sdks/phonenumbers/README.md#createphonenumber) - Create a phone number +* [getPhoneNumber](docs/sdks/phonenumbers/README.md#getphonenumber) - Retrieve a phone number +* [deletePhoneNumber](docs/sdks/phonenumbers/README.md#deletephonenumber) - Delete a phone number +* [updatePhoneNumber](docs/sdks/phonenumbers/README.md#updatephonenumber) - Update a phone number + +### [proxyChecks](docs/sdks/proxychecks/README.md) * [verifyDomainProxy](docs/sdks/proxychecks/README.md#verifydomainproxy) - Verify the proxy configuration for your domain -### [RedirectURLs](docs/sdks/redirecturls/README.md) +### [redirectURLs](docs/sdks/redirecturls/README.md) * [listRedirectURLs](docs/sdks/redirecturls/README.md#listredirecturls) - List all redirect URLs * [createRedirectURL](docs/sdks/redirecturls/README.md#createredirecturl) - Create a redirect URL * [getRedirectURL](docs/sdks/redirecturls/README.md#getredirecturl) - Retrieve a redirect URL * [deleteRedirectURL](docs/sdks/redirecturls/README.md#deleteredirecturl) - Delete a redirect URL -### [SignInTokens](docs/sdks/signintokens/README.md) +### [samlConnections](docs/sdks/samlconnections/README.md) + +* [listSAMLConnections](docs/sdks/samlconnections/README.md#listsamlconnections) - Get a list of SAML Connections for an instance +* [createSAMLConnection](docs/sdks/samlconnections/README.md#createsamlconnection) - Create a SAML Connection +* [getSAMLConnection](docs/sdks/samlconnections/README.md#getsamlconnection) - Retrieve a SAML Connection by ID +* [updateSAMLConnection](docs/sdks/samlconnections/README.md#updatesamlconnection) - Update a SAML Connection +* [deleteSAMLConnection](docs/sdks/samlconnections/README.md#deletesamlconnection) - Delete a SAML Connection + +### [sessions](docs/sdks/sessions/README.md) + +* [getSessionList](docs/sdks/sessions/README.md#getsessionlist) - List all sessions +* [getSession](docs/sdks/sessions/README.md#getsession) - Retrieve a session +* [revokeSession](docs/sdks/sessions/README.md#revokesession) - Revoke a session +* [~~verifySession~~](docs/sdks/sessions/README.md#verifysession) - Verify a session :warning: **Deprecated** +* [createSessionTokenFromTemplate](docs/sdks/sessions/README.md#createsessiontokenfromtemplate) - Create a session token from a jwt template + +### [signInTokens](docs/sdks/signintokens/README.md) * [createSignInToken](docs/sdks/signintokens/README.md#createsignintoken) - Create sign-in token * [revokeSignInToken](docs/sdks/signintokens/README.md#revokesignintoken) - Revoke the given sign-in token -### [SignUps](docs/sdks/signups/README.md) +### [signUps](docs/sdks/signups/README.md) * [updateSignUp](docs/sdks/signups/README.md#updatesignup) - Update a sign-up -### [OAuthApplications](docs/sdks/oauthapplications/README.md) +### [testingTokens](docs/sdks/testingtokens/README.md) -* [listOAuthApplications](docs/sdks/oauthapplications/README.md#listoauthapplications) - Get a list of OAuth applications for an instance -* [createOAuthApplication](docs/sdks/oauthapplications/README.md#createoauthapplication) - Create an OAuth application -* [getOAuthApplication](docs/sdks/oauthapplications/README.md#getoauthapplication) - Retrieve an OAuth application by ID -* [updateOAuthApplication](docs/sdks/oauthapplications/README.md#updateoauthapplication) - Update an OAuth application -* [deleteOAuthApplication](docs/sdks/oauthapplications/README.md#deleteoauthapplication) - Delete an OAuth application -* [rotateOAuthApplicationSecret](docs/sdks/oauthapplications/README.md#rotateoauthapplicationsecret) - Rotate the client secret of the given OAuth application +* [createTestingToken](docs/sdks/testingtokens/README.md#createtestingtoken) - Retrieve a new testing token -### [SAMLConnections](docs/sdks/samlconnections/README.md) +### [users](docs/sdks/users/README.md) -* [listSAMLConnections](docs/sdks/samlconnections/README.md#listsamlconnections) - Get a list of SAML Connections for an instance -* [createSAMLConnection](docs/sdks/samlconnections/README.md#createsamlconnection) - Create a SAML Connection -* [getSAMLConnection](docs/sdks/samlconnections/README.md#getsamlconnection) - Retrieve a SAML Connection by ID -* [updateSAMLConnection](docs/sdks/samlconnections/README.md#updatesamlconnection) - Update a SAML Connection -* [deleteSAMLConnection](docs/sdks/samlconnections/README.md#deletesamlconnection) - Delete a SAML Connection +* [getUserList](docs/sdks/users/README.md#getuserlist) - List all users +* [createUser](docs/sdks/users/README.md#createuser) - Create a new user +* [getUsersCount](docs/sdks/users/README.md#getuserscount) - Count users +* [getUser](docs/sdks/users/README.md#getuser) - Retrieve a user +* [updateUser](docs/sdks/users/README.md#updateuser) - Update a user +* [deleteUser](docs/sdks/users/README.md#deleteuser) - Delete a user +* [banUser](docs/sdks/users/README.md#banuser) - Ban a user +* [unbanUser](docs/sdks/users/README.md#unbanuser) - Unban a user +* [lockUser](docs/sdks/users/README.md#lockuser) - Lock a user +* [unlockUser](docs/sdks/users/README.md#unlockuser) - Unlock a user +* [setUserProfileImage](docs/sdks/users/README.md#setuserprofileimage) - Set user profile image +* [deleteUserProfileImage](docs/sdks/users/README.md#deleteuserprofileimage) - Delete user profile image +* [updateUserMetadata](docs/sdks/users/README.md#updateusermetadata) - Merge and update a user's metadata +* [getOAuthAccessToken](docs/sdks/users/README.md#getoauthaccesstoken) - Retrieve the OAuth access token of a user +* [usersGetOrganizationMemberships](docs/sdks/users/README.md#usersgetorganizationmemberships) - Retrieve all memberships for a user +* [verifyPassword](docs/sdks/users/README.md#verifypassword) - Verify the password of a user +* [verifyTOTP](docs/sdks/users/README.md#verifytotp) - Verify a TOTP or backup code for a user +* [disableMFA](docs/sdks/users/README.md#disablemfa) - Disable a user's MFA methods -### [TestingTokens](docs/sdks/testingtokens/README.md) +### [webhooks](docs/sdks/webhooks/README.md) -* [createTestingToken](docs/sdks/testingtokens/README.md#createtestingtoken) - Retrieve a new testing token +* [createSvixApp](docs/sdks/webhooks/README.md#createsvixapp) - Create a Svix app +* [deleteSvixApp](docs/sdks/webhooks/README.md#deletesvixapp) - Delete a Svix app +* [generateSvixAuthURL](docs/sdks/webhooks/README.md#generatesvixauthurl) - Create a Svix Dashboard URL + +
+ +## Error Handling + +Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception. + +By default an API error will raise a `Errors\SDKException` exception, which has the following properties: + +| Property | Type | Description | +|----------------|-----------------------------------------|-----------------------| +| `$message` | *string* | The error message | +| `$statusCode` | *int* | The HTTP status code | +| `$rawResponse` | *?\Psr\Http\Message\ResponseInterface* | The raw HTTP response | +| `$body` | *string* | The response content | + +When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `verifyClient` method throws the following exceptions: + +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors1 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | + +### Example + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use Clerk\Backend; +use Clerk\Backend\Models\Operations; + +$security = ''; + +$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); + +try { + $request = new Operations\VerifyClientRequestBody(); + + $response = $sdk->clients->verifyClient( + request: $request + ); + + if ($response->client !== null) { + // handle response + } +} catch (Errors\ClerkErrors1Throwable $e) { + // handle $e->$container data + throw $e; +} catch (Errors\SDKException $e) { + // handle default exception + throw $e; +} +``` + + ## Server Selection @@ -284,6 +345,7 @@ More information about the API can be found at https://clerk.com/docs * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) +* [Error Handling](#error-handling) * [Server Selection](#server-selection) @@ -292,26 +354,9 @@ More information about the API can be found at https://clerk.com/docs The SDK relies on [Composer](https://getcomposer.org/) to manage its dependencies. -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: - +To install the SDK and add it as a dependency to an existing `composer.json` file: ```bash -composer update +composer require "clerk/backend-php" ``` @@ -329,15 +374,16 @@ use Clerk\Backend; $sdk = Backend\ClerkBackend::builder()->build(); -try { - $response = $sdk->miscellaneous->getPublicInterstitial('', ''); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->miscellaneous->getPublicInterstitial( + frontendApi: '', + publishableKey: '' + +); + +if ($response->statusCode === 200) { + // handle response } ``` diff --git a/USAGE.md b/USAGE.md index c9ff4a8..41e8597 100644 --- a/USAGE.md +++ b/USAGE.md @@ -8,15 +8,16 @@ use Clerk\Backend; $sdk = Backend\ClerkBackend::builder()->build(); -try { - $response = $sdk->miscellaneous->getPublicInterstitial('', ''); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->miscellaneous->getPublicInterstitial( + frontendApi: '', + publishableKey: '' + +); + +if ($response->statusCode === 200) { + // handle response } ``` \ No newline at end of file diff --git a/composer.json b/composer.json index f8a37fa..e5da26b 100644 --- a/composer.json +++ b/composer.json @@ -8,17 +8,18 @@ }, "license": "MIT", "require": { - "php": "^8.1", + "php": "^8.2", "guzzlehttp/guzzle": "^7.0", - "speakeasy/serializer": "^3.40.0", + "speakeasy/serializer": "^4.0.0", "brick/date-time": "^0.7.0", - "phpdocumentor/type-resolver": "^1.8" + "phpdocumentor/type-resolver": "^1.8", + "brick/math": "^0.12.1" }, "require-dev": { - "laravel/pint": "^1.15", - "phpstan/phpstan": "^1.9", + "laravel/pint": "^1.18.1", + "phpstan/phpstan": "^1.12", "phpunit/phpunit": "^10", - "rector/rector": "^0.18.13", + "rector/rector": "^0.19", "roave/security-advisories": "dev-latest" }, "minimum-stability": "stable", diff --git a/docs/Models/Components/ActorToken.md b/docs/Models/Components/ActorToken.md index 221e4d3..e464424 100644 --- a/docs/Models/Components/ActorToken.md +++ b/docs/Models/Components/ActorToken.md @@ -1,5 +1,7 @@ # ActorToken +Success + ## Fields diff --git a/docs/Models/Components/AllowlistIdentifier.md b/docs/Models/Components/AllowlistIdentifier.md index c43b128..6af754c 100644 --- a/docs/Models/Components/AllowlistIdentifier.md +++ b/docs/Models/Components/AllowlistIdentifier.md @@ -1,5 +1,7 @@ # AllowlistIdentifier +Success + ## Fields diff --git a/docs/Models/Components/BlocklistIdentifiers.md b/docs/Models/Components/BlocklistIdentifiers.md index 6fd5b16..c64ed62 100644 --- a/docs/Models/Components/BlocklistIdentifiers.md +++ b/docs/Models/Components/BlocklistIdentifiers.md @@ -1,5 +1,7 @@ # BlocklistIdentifiers +Success + ## Fields diff --git a/docs/Models/Components/Client.md b/docs/Models/Components/Client.md index 50b6c5e..38c4088 100644 --- a/docs/Models/Components/Client.md +++ b/docs/Models/Components/Client.md @@ -1,5 +1,7 @@ # Client +Success + ## Fields @@ -9,8 +11,8 @@ | `id` | *string* | :heavy_check_mark: | String representing the identifier of the session.
| | `sessionIds` | array<*string*> | :heavy_check_mark: | N/A | | `sessions` | array<[Components\Session](../../Models/Components/Session.md)> | :heavy_check_mark: | N/A | +| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| +| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| | `signInId` | *string* | :heavy_check_mark: | N/A | | `signUpId` | *string* | :heavy_check_mark: | N/A | -| `lastActiveSessionId` | *string* | :heavy_check_mark: | Last active session_id.
| -| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| -| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| \ No newline at end of file +| `lastActiveSessionId` | *string* | :heavy_check_mark: | Last active session_id.
| \ No newline at end of file diff --git a/docs/Models/Components/DeletedObject.md b/docs/Models/Components/DeletedObject.md index 47cc4e7..01fe2e9 100644 --- a/docs/Models/Components/DeletedObject.md +++ b/docs/Models/Components/DeletedObject.md @@ -1,5 +1,7 @@ # DeletedObject +Deleted Object + ## Fields diff --git a/docs/Models/Components/Domains.md b/docs/Models/Components/Domains.md index 748a7cb..49ac57c 100644 --- a/docs/Models/Components/Domains.md +++ b/docs/Models/Components/Domains.md @@ -1,5 +1,7 @@ # Domains +A list of domains + ## Fields diff --git a/docs/Models/Components/EmailAddress.md b/docs/Models/Components/EmailAddress.md index 5bc08ea..fa0a146 100644 --- a/docs/Models/Components/EmailAddress.md +++ b/docs/Models/Components/EmailAddress.md @@ -1,5 +1,7 @@ # EmailAddress +Success + ## Fields @@ -8,8 +10,8 @@ | `object` | [Components\EmailAddressObject](../../Models/Components/EmailAddressObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.
| | `emailAddress` | *string* | :heavy_check_mark: | N/A | | `reserved` | *bool* | :heavy_check_mark: | N/A | -| `verification` | [Components\Otp\|Components\Admin\|Components\Oauth](../../Models/Components/Verification.md) | :heavy_check_mark: | N/A | | `linkedTo` | array<[Components\IdentificationLink](../../Models/Components/IdentificationLink.md)> | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| -| `id` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `id` | *?string* | :heavy_minus_sign: | N/A | +| `verification` | [Components\Otp\|Components\Admin\|Components\Oauth](../../Models/Components/Verification.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/InstanceRestrictions.md b/docs/Models/Components/InstanceRestrictions.md index 336fdc6..77d5367 100644 --- a/docs/Models/Components/InstanceRestrictions.md +++ b/docs/Models/Components/InstanceRestrictions.md @@ -1,5 +1,7 @@ # InstanceRestrictions +Success + ## Fields diff --git a/docs/Models/Components/InstanceSettings.md b/docs/Models/Components/InstanceSettings.md index ee5b738..5cc56bd 100644 --- a/docs/Models/Components/InstanceSettings.md +++ b/docs/Models/Components/InstanceSettings.md @@ -1,5 +1,7 @@ # InstanceSettings +InstanceSettings Server API + ## Fields diff --git a/docs/Models/Components/Invitation.md b/docs/Models/Components/Invitation.md index bbae026..f81ebca 100644 --- a/docs/Models/Components/Invitation.md +++ b/docs/Models/Components/Invitation.md @@ -1,5 +1,7 @@ # Invitation +Success + ## Fields diff --git a/docs/Models/Components/InvitationRevoked.md b/docs/Models/Components/InvitationRevoked.md index 6dac22d..0756684 100644 --- a/docs/Models/Components/InvitationRevoked.md +++ b/docs/Models/Components/InvitationRevoked.md @@ -1,5 +1,7 @@ # InvitationRevoked +Success + ## Fields diff --git a/docs/Models/Components/JWTTemplate.md b/docs/Models/Components/JWTTemplate.md index e42d1dc..da72fb5 100644 --- a/docs/Models/Components/JWTTemplate.md +++ b/docs/Models/Components/JWTTemplate.md @@ -1,5 +1,7 @@ # JWTTemplate +List of JWT templates + ## Fields diff --git a/docs/Models/Components/OAuthApplications.md b/docs/Models/Components/OAuthApplications.md index 3b11162..d2bc3df 100644 --- a/docs/Models/Components/OAuthApplications.md +++ b/docs/Models/Components/OAuthApplications.md @@ -1,5 +1,7 @@ # OAuthApplications +A list of OAuth applications + ## Fields diff --git a/docs/Models/Components/Organization.md b/docs/Models/Components/Organization.md index 8cc0cb9..d871987 100644 --- a/docs/Models/Components/Organization.md +++ b/docs/Models/Components/Organization.md @@ -14,6 +14,6 @@ | `privateMetadata` | [Components\OrganizationPrivateMetadata](../../Models/Components/OrganizationPrivateMetadata.md) | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| -| `membersCount` | *?int* | :heavy_minus_sign: | N/A | | `adminDeleteEnabled` | *?bool* | :heavy_minus_sign: | N/A | -| `createdBy` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `createdBy` | *?string* | :heavy_minus_sign: | N/A | +| `membersCount` | *?int* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/OrganizationInvitations.md b/docs/Models/Components/OrganizationInvitations.md index 604c9b0..6d89d0b 100644 --- a/docs/Models/Components/OrganizationInvitations.md +++ b/docs/Models/Components/OrganizationInvitations.md @@ -1,5 +1,7 @@ # OrganizationInvitations +A list of organization invitations + ## Fields diff --git a/docs/Models/Components/OrganizationMembershipOrganization.md b/docs/Models/Components/OrganizationMembershipOrganization.md index 68ae697..f1717a9 100644 --- a/docs/Models/Components/OrganizationMembershipOrganization.md +++ b/docs/Models/Components/OrganizationMembershipOrganization.md @@ -14,6 +14,6 @@ | `privateMetadata` | [Components\OrganizationMembershipOrganizationPrivateMetadata](../../Models/Components/OrganizationMembershipOrganizationPrivateMetadata.md) | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| -| `membersCount` | *?int* | :heavy_minus_sign: | N/A | | `adminDeleteEnabled` | *?bool* | :heavy_minus_sign: | N/A | -| `createdBy` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `createdBy` | *?string* | :heavy_minus_sign: | N/A | +| `membersCount` | *?int* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/OrganizationMemberships.md b/docs/Models/Components/OrganizationMemberships.md index cbea14b..4da8bfb 100644 --- a/docs/Models/Components/OrganizationMemberships.md +++ b/docs/Models/Components/OrganizationMemberships.md @@ -1,5 +1,7 @@ # OrganizationMemberships +A list of organization memberships + ## Fields diff --git a/docs/Models/Components/OrganizationSettings.md b/docs/Models/Components/OrganizationSettings.md index 2d18304..b4993df 100644 --- a/docs/Models/Components/OrganizationSettings.md +++ b/docs/Models/Components/OrganizationSettings.md @@ -1,5 +1,7 @@ # OrganizationSettings +Success + ## Fields diff --git a/docs/Models/Components/OrganizationWithLogo.md b/docs/Models/Components/OrganizationWithLogo.md index 5c3a223..6e3d3c7 100644 --- a/docs/Models/Components/OrganizationWithLogo.md +++ b/docs/Models/Components/OrganizationWithLogo.md @@ -15,8 +15,8 @@ | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| | `imageUrl` | *string* | :heavy_check_mark: | N/A | -| `membersCount` | *?int* | :heavy_minus_sign: | N/A | | `adminDeleteEnabled` | *?bool* | :heavy_minus_sign: | N/A | | `createdBy` | *?string* | :heavy_minus_sign: | N/A | | ~~`logoUrl`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `hasImage` | *?bool* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `hasImage` | *?bool* | :heavy_minus_sign: | N/A | +| `membersCount` | *?int* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/Organizations.md b/docs/Models/Components/Organizations.md index b7242a7..97184fe 100644 --- a/docs/Models/Components/Organizations.md +++ b/docs/Models/Components/Organizations.md @@ -1,5 +1,7 @@ # Organizations +A list of organizations + ## Fields diff --git a/docs/Models/Components/PhoneNumber.md b/docs/Models/Components/PhoneNumber.md index ce9f5fe..a3cc771 100644 --- a/docs/Models/Components/PhoneNumber.md +++ b/docs/Models/Components/PhoneNumber.md @@ -1,5 +1,7 @@ # PhoneNumber +Success + ## Fields @@ -8,11 +10,11 @@ | `object` | [Components\PhoneNumberObject](../../Models/Components/PhoneNumberObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.
| | `phoneNumber` | *string* | :heavy_check_mark: | N/A | | `reserved` | *bool* | :heavy_check_mark: | N/A | -| `verification` | [Components\VerificationOTP\|Components\VerificationAdmin](../../Models/Components/PhoneNumberVerification.md) | :heavy_check_mark: | N/A | | `linkedTo` | array<[Components\IdentificationLink](../../Models/Components/IdentificationLink.md)> | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| | `id` | *?string* | :heavy_minus_sign: | N/A | | `reservedForSecondFactor` | *?bool* | :heavy_minus_sign: | N/A | | `defaultSecondFactor` | *?bool* | :heavy_minus_sign: | N/A | +| `verification` | [Components\VerificationOTP\|Components\VerificationAdmin](../../Models/Components/PhoneNumberVerification.md) | :heavy_check_mark: | N/A | | `backupCodes` | array<*string*> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/ProxyCheck.md b/docs/Models/Components/ProxyCheck.md index 2c2f3ef..b2d674f 100644 --- a/docs/Models/Components/ProxyCheck.md +++ b/docs/Models/Components/ProxyCheck.md @@ -1,5 +1,7 @@ # ProxyCheck +Health check information about a domain's proxy configuration validation attempt. + ## Fields diff --git a/docs/Models/Components/PublicUserData.md b/docs/Models/Components/PublicUserData.md index 9198f8e..6af3d34 100644 --- a/docs/Models/Components/PublicUserData.md +++ b/docs/Models/Components/PublicUserData.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `userId` | *?string* | :heavy_minus_sign: | N/A | +| `imageUrl` | *?string* | :heavy_minus_sign: | N/A | +| `hasImage` | *?bool* | :heavy_minus_sign: | N/A | | `firstName` | *?string* | :heavy_minus_sign: | N/A | | `lastName` | *?string* | :heavy_minus_sign: | N/A | | ~~`profileImageUrl`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `imageUrl` | *?string* | :heavy_minus_sign: | N/A | -| `hasImage` | *?bool* | :heavy_minus_sign: | N/A | | `identifier` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/RedirectURL.md b/docs/Models/Components/RedirectURL.md index e5c4294..547b267 100644 --- a/docs/Models/Components/RedirectURL.md +++ b/docs/Models/Components/RedirectURL.md @@ -1,5 +1,7 @@ # RedirectURL +List of Redirect URLs + ## Fields diff --git a/docs/Models/Components/SAMLAccount.md b/docs/Models/Components/SAMLAccount.md index 03d7509..49b4d3c 100644 --- a/docs/Models/Components/SAMLAccount.md +++ b/docs/Models/Components/SAMLAccount.md @@ -10,8 +10,8 @@ | `provider` | *string* | :heavy_check_mark: | N/A | | `active` | *bool* | :heavy_check_mark: | N/A | | `emailAddress` | *string* | :heavy_check_mark: | N/A | +| `publicMetadata` | [?Components\SAMLAccountPublicMetadata](../../Models/Components/SAMLAccountPublicMetadata.md) | :heavy_minus_sign: | N/A | | `verification` | [Components\Saml\|Components\Ticket](../../Models/Components/SAMLAccountVerification.md) | :heavy_check_mark: | N/A | | `firstName` | *?string* | :heavy_minus_sign: | N/A | | `lastName` | *?string* | :heavy_minus_sign: | N/A | -| `providerUserId` | *?string* | :heavy_minus_sign: | N/A | -| `publicMetadata` | [?Components\SAMLAccountPublicMetadata](../../Models/Components/SAMLAccountPublicMetadata.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `providerUserId` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/SAMLConnection.md b/docs/Models/Components/SAMLConnection.md index 09f8f02..709a8bc 100644 --- a/docs/Models/Components/SAMLConnection.md +++ b/docs/Models/Components/SAMLConnection.md @@ -9,9 +9,6 @@ | `id` | *string* | :heavy_check_mark: | N/A | | `name` | *string* | :heavy_check_mark: | N/A | | `domain` | *string* | :heavy_check_mark: | N/A | -| `idpEntityId` | *string* | :heavy_check_mark: | N/A | -| `idpSsoUrl` | *string* | :heavy_check_mark: | N/A | -| `idpCertificate` | *string* | :heavy_check_mark: | N/A | | `acsUrl` | *string* | :heavy_check_mark: | N/A | | `spEntityId` | *string* | :heavy_check_mark: | N/A | | `spMetadataUrl` | *string* | :heavy_check_mark: | N/A | @@ -21,8 +18,11 @@ | `syncUserAttributes` | *bool* | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.
| -| `idpMetadataUrl` | *?string* | :heavy_minus_sign: | N/A | -| `idpMetadata` | *?string* | :heavy_minus_sign: | N/A | +| `idpEntityId` | *string* | :heavy_check_mark: | N/A | +| `idpSsoUrl` | *string* | :heavy_check_mark: | N/A | +| `idpCertificate` | *string* | :heavy_check_mark: | N/A | | `attributeMapping` | [?Components\AttributeMapping](../../Models/Components/AttributeMapping.md) | :heavy_minus_sign: | N/A | | `allowSubdomains` | *?bool* | :heavy_minus_sign: | N/A | -| `allowIdpInitiated` | *?bool* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `allowIdpInitiated` | *?bool* | :heavy_minus_sign: | N/A | +| `idpMetadataUrl` | *?string* | :heavy_minus_sign: | N/A | +| `idpMetadata` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/SAMLConnections.md b/docs/Models/Components/SAMLConnections.md index b90e930..17eecbf 100644 --- a/docs/Models/Components/SAMLConnections.md +++ b/docs/Models/Components/SAMLConnections.md @@ -1,5 +1,7 @@ # SAMLConnections +A list of SAML Connections + ## Fields diff --git a/docs/Models/Components/Saml.md b/docs/Models/Components/Saml.md index ff33f1d..7357bd4 100644 --- a/docs/Models/Components/Saml.md +++ b/docs/Models/Components/Saml.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `status` | [Components\SAMLVerificationStatus](../../Models/Components/SAMLVerificationStatus.md) | :heavy_check_mark: | N/A | | `strategy` | [Components\SAMLVerificationStrategy](../../Models/Components/SAMLVerificationStrategy.md) | :heavy_check_mark: | N/A | -| `externalVerificationRedirectUrl` | *string* | :heavy_check_mark: | N/A | | `expireAt` | *int* | :heavy_check_mark: | N/A | +| `externalVerificationRedirectUrl` | *string* | :heavy_check_mark: | N/A | | `error` | [?Components\SAMLErrorClerkError](../../Models/Components/VerificationError.md) | :heavy_minus_sign: | N/A | | `attempts` | *?int* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/SchemasPasskey.md b/docs/Models/Components/SchemasPasskey.md index 7df16c8..ee12afc 100644 --- a/docs/Models/Components/SchemasPasskey.md +++ b/docs/Models/Components/SchemasPasskey.md @@ -8,5 +8,5 @@ | `object` | [Components\SchemasPasskeyObject](../../Models/Components/SchemasPasskeyObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.
| | `name` | *string* | :heavy_check_mark: | N/A | | `lastUsedAt` | *int* | :heavy_check_mark: | Unix timestamp of when the passkey was last used.
| -| `verification` | [Components\Passkey](../../Models/Components/SchemasPasskeyVerification.md) | :heavy_check_mark: | N/A | -| `id` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `id` | *?string* | :heavy_minus_sign: | N/A | +| `verification` | [Components\Passkey](../../Models/Components/SchemasPasskeyVerification.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/SignInToken.md b/docs/Models/Components/SignInToken.md index c3ad30c..3e2e982 100644 --- a/docs/Models/Components/SignInToken.md +++ b/docs/Models/Components/SignInToken.md @@ -1,5 +1,7 @@ # SignInToken +Success + ## Fields diff --git a/docs/Models/Components/SignUp.md b/docs/Models/Components/SignUp.md index 9ff3f19..8f6b4b1 100644 --- a/docs/Models/Components/SignUp.md +++ b/docs/Models/Components/SignUp.md @@ -1,5 +1,7 @@ # SignUp +Success + ## Fields @@ -16,15 +18,15 @@ | `missingFields` | array<*string*> | :heavy_minus_sign: | N/A | | `unverifiedFields` | array<*string*> | :heavy_minus_sign: | N/A | | `verifications` | [?Components\Verifications](../../Models/Components/Verifications.md) | :heavy_minus_sign: | N/A | +| `unsafeMetadata` | [?Components\SignUpUnsafeMetadata](../../Models/Components/SignUpUnsafeMetadata.md) | :heavy_minus_sign: | N/A | +| `publicMetadata` | [?Components\SignUpPublicMetadata](../../Models/Components/SignUpPublicMetadata.md) | :heavy_minus_sign: | N/A | +| `externalAccount` | [?Components\ExternalAccount](../../Models/Components/ExternalAccount.md) | :heavy_minus_sign: | N/A | | `username` | *?string* | :heavy_minus_sign: | N/A | | `emailAddress` | *?string* | :heavy_minus_sign: | N/A | | `phoneNumber` | *?string* | :heavy_minus_sign: | N/A | | `web3Wallet` | *?string* | :heavy_minus_sign: | N/A | | `firstName` | *?string* | :heavy_minus_sign: | N/A | | `lastName` | *?string* | :heavy_minus_sign: | N/A | -| `unsafeMetadata` | [?Components\SignUpUnsafeMetadata](../../Models/Components/SignUpUnsafeMetadata.md) | :heavy_minus_sign: | N/A | -| `publicMetadata` | [?Components\SignUpPublicMetadata](../../Models/Components/SignUpPublicMetadata.md) | :heavy_minus_sign: | N/A | | `externalId` | *?string* | :heavy_minus_sign: | N/A | | `createdSessionId` | *?string* | :heavy_minus_sign: | N/A | -| `createdUserId` | *?string* | :heavy_minus_sign: | N/A | -| `externalAccount` | [?Components\ExternalAccount](../../Models/Components/ExternalAccount.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `createdUserId` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/SvixURL.md b/docs/Models/Components/SvixURL.md index 17e1ec2..8375483 100644 --- a/docs/Models/Components/SvixURL.md +++ b/docs/Models/Components/SvixURL.md @@ -1,5 +1,7 @@ # SvixURL +Response that contains a temporary Svix URL to access management dashboard + ## Fields diff --git a/docs/Models/Components/Template.md b/docs/Models/Components/Template.md index 3b9ab61..02cb6a0 100644 --- a/docs/Models/Components/Template.md +++ b/docs/Models/Components/Template.md @@ -1,5 +1,7 @@ # Template +Success + ## Fields @@ -7,7 +9,6 @@ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `id` | *?string* | :heavy_minus_sign: | N/A | | `object` | [?Components\TemplateObject](../../Models/Components/TemplateObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value.
| -| `instanceId` | *?string* | :heavy_minus_sign: | the id of the instance the template belongs to | | `resourceType` | *?string* | :heavy_minus_sign: | whether this is a system (default) or user overridden) template | | `templateType` | *?string* | :heavy_minus_sign: | whether this is an email or SMS template | | `name` | *?string* | :heavy_minus_sign: | user-friendly name of the template | @@ -16,7 +17,6 @@ | `canRevert` | *?bool* | :heavy_minus_sign: | whether this template can be reverted to the corresponding system default | | `canDelete` | *?bool* | :heavy_minus_sign: | whether this template can be deleted | | `canToggle` | *?bool* | :heavy_minus_sign: | whether this template can be enabled or disabled, true only for notification SMS templates | -| `subject` | *?string* | :heavy_minus_sign: | email subject | | `markup` | *?string* | :heavy_minus_sign: | the editor markup used to generate the body of the template | | `body` | *?string* | :heavy_minus_sign: | the template body before variable interpolation | | `availableVariables` | array<*string*> | :heavy_minus_sign: | list of variables that are available for use in the template body | @@ -26,4 +26,6 @@ | `deliveredByClerk` | *?bool* | :heavy_minus_sign: | N/A | | `enabled` | *?bool* | :heavy_minus_sign: | N/A | | `updatedAt` | *?int* | :heavy_minus_sign: | Unix timestamp of last update.
| -| `createdAt` | *?int* | :heavy_minus_sign: | Unix timestamp of creation.
| \ No newline at end of file +| `createdAt` | *?int* | :heavy_minus_sign: | Unix timestamp of creation.
| +| `instanceId` | *?string* | :heavy_minus_sign: | the id of the instance the template belongs to | +| `subject` | *?string* | :heavy_minus_sign: | email subject | \ No newline at end of file diff --git a/docs/Models/Components/TestingToken.md b/docs/Models/Components/TestingToken.md index 323007e..6ae3f47 100644 --- a/docs/Models/Components/TestingToken.md +++ b/docs/Models/Components/TestingToken.md @@ -1,5 +1,7 @@ # TestingToken +A Testing Token + ## Fields diff --git a/docs/Models/Components/TotalCount.md b/docs/Models/Components/TotalCount.md index 8a65e19..e43ba72 100644 --- a/docs/Models/Components/TotalCount.md +++ b/docs/Models/Components/TotalCount.md @@ -1,5 +1,7 @@ # TotalCount +Success + ## Fields diff --git a/docs/Models/Components/User.md b/docs/Models/Components/User.md index 82091d5..c9c3691 100644 --- a/docs/Models/Components/User.md +++ b/docs/Models/Components/User.md @@ -1,5 +1,7 @@ # User +Success + ## Fields @@ -7,18 +9,10 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *?string* | :heavy_minus_sign: | N/A | | | `object` | [?Components\UserObject](../../Models/Components/UserObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value.
| | -| `externalId` | *?string* | :heavy_minus_sign: | N/A | | -| `primaryEmailAddressId` | *?string* | :heavy_minus_sign: | N/A | | -| `primaryPhoneNumberId` | *?string* | :heavy_minus_sign: | N/A | | -| `primaryWeb3WalletId` | *?string* | :heavy_minus_sign: | N/A | | -| `username` | *?string* | :heavy_minus_sign: | N/A | | -| `firstName` | *?string* | :heavy_minus_sign: | N/A | | -| `lastName` | *?string* | :heavy_minus_sign: | N/A | | | ~~`profileImageUrl`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | | `imageUrl` | *?string* | :heavy_minus_sign: | N/A | | | `hasImage` | *?bool* | :heavy_minus_sign: | N/A | | | `publicMetadata` | [?Components\PublicMetadata](../../Models/Components/PublicMetadata.md) | :heavy_minus_sign: | N/A | | -| `privateMetadata` | [?Components\PrivateMetadata](../../Models/Components/PrivateMetadata.md) | :heavy_minus_sign: | N/A | | | `unsafeMetadata` | [?Components\UnsafeMetadata](../../Models/Components/UnsafeMetadata.md) | :heavy_minus_sign: | N/A | | | `emailAddresses` | array<[Components\EmailAddress](../../Models/Components/EmailAddress.md)> | :heavy_minus_sign: | N/A | | | `phoneNumbers` | array<[Components\PhoneNumber](../../Models/Components/PhoneNumber.md)> | :heavy_minus_sign: | N/A | | @@ -28,17 +22,25 @@ | `twoFactorEnabled` | *?bool* | :heavy_minus_sign: | N/A | | | `totpEnabled` | *?bool* | :heavy_minus_sign: | N/A | | | `backupCodeEnabled` | *?bool* | :heavy_minus_sign: | N/A | | -| `mfaEnabledAt` | *?int* | :heavy_minus_sign: | Unix timestamp of when MFA was last enabled for this user. It should be noted that this field is not nullified if MFA is disabled.
| | -| `mfaDisabledAt` | *?int* | :heavy_minus_sign: | Unix timestamp of when MFA was last disabled for this user. It should be noted that this field is not nullified if MFA is enabled again.
| | | `externalAccounts` | array<[Components\ExternalAccounts](../../Models/Components/ExternalAccounts.md)> | :heavy_minus_sign: | N/A | | | `samlAccounts` | array<[Components\SAMLAccount](../../Models/Components/SAMLAccount.md)> | :heavy_minus_sign: | N/A | | -| `lastSignInAt` | *?int* | :heavy_minus_sign: | Unix timestamp of last sign-in.
| | | `banned` | *?bool* | :heavy_minus_sign: | Flag to denote whether user is banned or not.
| | | `locked` | *?bool* | :heavy_minus_sign: | Flag to denote whether user is currently locked, i.e. restricted from signing in or not.
| | -| `lockoutExpiresInSeconds` | *?int* | :heavy_minus_sign: | The number of seconds remaining until the lockout period expires for a locked user. A null value for a locked user indicates that lockout never expires.
| | -| `verificationAttemptsRemaining` | *?int* | :heavy_minus_sign: | The number of verification attempts remaining until the user is locked. Null if account lockout is not enabled. Note: if a user is locked explicitly via the Backend API, they may still have verification attempts remaining.
| | | `updatedAt` | *?int* | :heavy_minus_sign: | Unix timestamp of last update.
| | | `createdAt` | *?int* | :heavy_minus_sign: | Unix timestamp of creation.
| | | `deleteSelfEnabled` | *?bool* | :heavy_minus_sign: | If enabled, user can delete themselves via FAPI.
| | | `createOrganizationEnabled` | *?bool* | :heavy_minus_sign: | If enabled, user can create organizations via FAPI.
| | +| `externalId` | *?string* | :heavy_minus_sign: | N/A | | +| `primaryEmailAddressId` | *?string* | :heavy_minus_sign: | N/A | | +| `primaryPhoneNumberId` | *?string* | :heavy_minus_sign: | N/A | | +| `primaryWeb3WalletId` | *?string* | :heavy_minus_sign: | N/A | | +| `username` | *?string* | :heavy_minus_sign: | N/A | | +| `firstName` | *?string* | :heavy_minus_sign: | N/A | | +| `lastName` | *?string* | :heavy_minus_sign: | N/A | | +| `privateMetadata` | [?Components\PrivateMetadata](../../Models/Components/PrivateMetadata.md) | :heavy_minus_sign: | N/A | | +| `mfaEnabledAt` | *?int* | :heavy_minus_sign: | Unix timestamp of when MFA was last enabled for this user. It should be noted that this field is not nullified if MFA is disabled.
| | +| `mfaDisabledAt` | *?int* | :heavy_minus_sign: | Unix timestamp of when MFA was last disabled for this user. It should be noted that this field is not nullified if MFA is enabled again.
| | +| `lastSignInAt` | *?int* | :heavy_minus_sign: | Unix timestamp of last sign-in.
| | +| `lockoutExpiresInSeconds` | *?int* | :heavy_minus_sign: | The number of seconds remaining until the lockout period expires for a locked user. A null value for a locked user indicates that lockout never expires.
| | +| `verificationAttemptsRemaining` | *?int* | :heavy_minus_sign: | The number of verification attempts remaining until the user is locked. Null if account lockout is not enabled. Note: if a user is locked explicitly via the Backend API, they may still have verification attempts remaining.
| | | `lastActiveAt` | *?int* | :heavy_minus_sign: | Unix timestamp of the latest session activity, with day precision.
| 1700690400000 | \ No newline at end of file diff --git a/docs/Models/Components/Web3Wallet.md b/docs/Models/Components/Web3Wallet.md index f2c1a2d..728b1a0 100644 --- a/docs/Models/Components/Web3Wallet.md +++ b/docs/Models/Components/Web3Wallet.md @@ -7,7 +7,7 @@ | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `object` | [Components\Web3WalletObject](../../Models/Components/Web3WalletObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.
| | `web3Wallet` | *string* | :heavy_check_mark: | N/A | -| `verification` | [Components\Web3Signature\|Components\Web3WalletVerificationAdmin](../../Models/Components/Web3WalletVerification.md) | :heavy_check_mark: | N/A | | `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| | `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of creation
| -| `id` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `id` | *?string* | :heavy_minus_sign: | N/A | +| `verification` | [Components\Web3Signature\|Components\Web3WalletVerificationAdmin](../../Models/Components/Web3WalletVerification.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors1.md b/docs/Models/Errors/ClerkErrors1.md new file mode 100644 index 0000000..f7d6bf5 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors1.md @@ -0,0 +1,11 @@ +# ClerkErrors1 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors10.md b/docs/Models/Errors/ClerkErrors10.md new file mode 100644 index 0000000..1aca8a8 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors10.md @@ -0,0 +1,11 @@ +# ClerkErrors10 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors11.md b/docs/Models/Errors/ClerkErrors11.md new file mode 100644 index 0000000..100ff5e --- /dev/null +++ b/docs/Models/Errors/ClerkErrors11.md @@ -0,0 +1,11 @@ +# ClerkErrors11 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors12.md b/docs/Models/Errors/ClerkErrors12.md new file mode 100644 index 0000000..591e562 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors12.md @@ -0,0 +1,11 @@ +# ClerkErrors12 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors13.md b/docs/Models/Errors/ClerkErrors13.md new file mode 100644 index 0000000..99c4e60 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors13.md @@ -0,0 +1,11 @@ +# ClerkErrors13 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors14.md b/docs/Models/Errors/ClerkErrors14.md new file mode 100644 index 0000000..960c49a --- /dev/null +++ b/docs/Models/Errors/ClerkErrors14.md @@ -0,0 +1,11 @@ +# ClerkErrors14 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors15.md b/docs/Models/Errors/ClerkErrors15.md new file mode 100644 index 0000000..a1137a1 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors15.md @@ -0,0 +1,11 @@ +# ClerkErrors15 + +Authentication invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors16.md b/docs/Models/Errors/ClerkErrors16.md new file mode 100644 index 0000000..cd30786 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors16.md @@ -0,0 +1,11 @@ +# ClerkErrors16 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors17.md b/docs/Models/Errors/ClerkErrors17.md new file mode 100644 index 0000000..05eb619 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors17.md @@ -0,0 +1,11 @@ +# ClerkErrors17 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors18.md b/docs/Models/Errors/ClerkErrors18.md new file mode 100644 index 0000000..44df911 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors18.md @@ -0,0 +1,11 @@ +# ClerkErrors18 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors19.md b/docs/Models/Errors/ClerkErrors19.md new file mode 100644 index 0000000..acc5c40 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors19.md @@ -0,0 +1,11 @@ +# ClerkErrors19 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors2.md b/docs/Models/Errors/ClerkErrors2.md new file mode 100644 index 0000000..c2ab131 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors2.md @@ -0,0 +1,11 @@ +# ClerkErrors2 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors20.md b/docs/Models/Errors/ClerkErrors20.md new file mode 100644 index 0000000..819cd0f --- /dev/null +++ b/docs/Models/Errors/ClerkErrors20.md @@ -0,0 +1,11 @@ +# ClerkErrors20 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors21.md b/docs/Models/Errors/ClerkErrors21.md new file mode 100644 index 0000000..7052901 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors21.md @@ -0,0 +1,11 @@ +# ClerkErrors21 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors22.md b/docs/Models/Errors/ClerkErrors22.md new file mode 100644 index 0000000..053808f --- /dev/null +++ b/docs/Models/Errors/ClerkErrors22.md @@ -0,0 +1,11 @@ +# ClerkErrors22 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors23.md b/docs/Models/Errors/ClerkErrors23.md new file mode 100644 index 0000000..d7815ab --- /dev/null +++ b/docs/Models/Errors/ClerkErrors23.md @@ -0,0 +1,11 @@ +# ClerkErrors23 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors24.md b/docs/Models/Errors/ClerkErrors24.md new file mode 100644 index 0000000..263b8d6 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors24.md @@ -0,0 +1,11 @@ +# ClerkErrors24 + +Invalid request parameters + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors25.md b/docs/Models/Errors/ClerkErrors25.md new file mode 100644 index 0000000..5e72535 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors25.md @@ -0,0 +1,11 @@ +# ClerkErrors25 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors26.md b/docs/Models/Errors/ClerkErrors26.md new file mode 100644 index 0000000..8aa67b2 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors26.md @@ -0,0 +1,11 @@ +# ClerkErrors26 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors27.md b/docs/Models/Errors/ClerkErrors27.md new file mode 100644 index 0000000..4a65c1c --- /dev/null +++ b/docs/Models/Errors/ClerkErrors27.md @@ -0,0 +1,11 @@ +# ClerkErrors27 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors28.md b/docs/Models/Errors/ClerkErrors28.md new file mode 100644 index 0000000..60f7cdc --- /dev/null +++ b/docs/Models/Errors/ClerkErrors28.md @@ -0,0 +1,11 @@ +# ClerkErrors28 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors29.md b/docs/Models/Errors/ClerkErrors29.md new file mode 100644 index 0000000..1f6141e --- /dev/null +++ b/docs/Models/Errors/ClerkErrors29.md @@ -0,0 +1,11 @@ +# ClerkErrors29 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors3.md b/docs/Models/Errors/ClerkErrors3.md new file mode 100644 index 0000000..2bf13b3 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors3.md @@ -0,0 +1,11 @@ +# ClerkErrors3 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors30.md b/docs/Models/Errors/ClerkErrors30.md new file mode 100644 index 0000000..6ab3b9e --- /dev/null +++ b/docs/Models/Errors/ClerkErrors30.md @@ -0,0 +1,11 @@ +# ClerkErrors30 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors31.md b/docs/Models/Errors/ClerkErrors31.md new file mode 100644 index 0000000..8cb03d2 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors31.md @@ -0,0 +1,11 @@ +# ClerkErrors31 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors32.md b/docs/Models/Errors/ClerkErrors32.md new file mode 100644 index 0000000..6a8ae2d --- /dev/null +++ b/docs/Models/Errors/ClerkErrors32.md @@ -0,0 +1,11 @@ +# ClerkErrors32 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors33.md b/docs/Models/Errors/ClerkErrors33.md new file mode 100644 index 0000000..c92bbcb --- /dev/null +++ b/docs/Models/Errors/ClerkErrors33.md @@ -0,0 +1,11 @@ +# ClerkErrors33 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors34.md b/docs/Models/Errors/ClerkErrors34.md new file mode 100644 index 0000000..ddb7167 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors34.md @@ -0,0 +1,11 @@ +# ClerkErrors34 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors35.md b/docs/Models/Errors/ClerkErrors35.md new file mode 100644 index 0000000..2758826 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors35.md @@ -0,0 +1,11 @@ +# ClerkErrors35 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors36.md b/docs/Models/Errors/ClerkErrors36.md new file mode 100644 index 0000000..d0a30bc --- /dev/null +++ b/docs/Models/Errors/ClerkErrors36.md @@ -0,0 +1,11 @@ +# ClerkErrors36 + +Authentication invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors37.md b/docs/Models/Errors/ClerkErrors37.md new file mode 100644 index 0000000..b975b1c --- /dev/null +++ b/docs/Models/Errors/ClerkErrors37.md @@ -0,0 +1,11 @@ +# ClerkErrors37 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors38.md b/docs/Models/Errors/ClerkErrors38.md new file mode 100644 index 0000000..b70590a --- /dev/null +++ b/docs/Models/Errors/ClerkErrors38.md @@ -0,0 +1,11 @@ +# ClerkErrors38 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors39.md b/docs/Models/Errors/ClerkErrors39.md new file mode 100644 index 0000000..a5f3bf7 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors39.md @@ -0,0 +1,11 @@ +# ClerkErrors39 + +Authentication invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors4.md b/docs/Models/Errors/ClerkErrors4.md new file mode 100644 index 0000000..670aec0 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors4.md @@ -0,0 +1,11 @@ +# ClerkErrors4 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors40.md b/docs/Models/Errors/ClerkErrors40.md new file mode 100644 index 0000000..691e08e --- /dev/null +++ b/docs/Models/Errors/ClerkErrors40.md @@ -0,0 +1,11 @@ +# ClerkErrors40 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors41.md b/docs/Models/Errors/ClerkErrors41.md new file mode 100644 index 0000000..1c98ffd --- /dev/null +++ b/docs/Models/Errors/ClerkErrors41.md @@ -0,0 +1,11 @@ +# ClerkErrors41 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors42.md b/docs/Models/Errors/ClerkErrors42.md new file mode 100644 index 0000000..10bc66a --- /dev/null +++ b/docs/Models/Errors/ClerkErrors42.md @@ -0,0 +1,11 @@ +# ClerkErrors42 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors43.md b/docs/Models/Errors/ClerkErrors43.md new file mode 100644 index 0000000..f9c68db --- /dev/null +++ b/docs/Models/Errors/ClerkErrors43.md @@ -0,0 +1,11 @@ +# ClerkErrors43 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors44.md b/docs/Models/Errors/ClerkErrors44.md new file mode 100644 index 0000000..5f4812f --- /dev/null +++ b/docs/Models/Errors/ClerkErrors44.md @@ -0,0 +1,11 @@ +# ClerkErrors44 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors45.md b/docs/Models/Errors/ClerkErrors45.md new file mode 100644 index 0000000..85386d5 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors45.md @@ -0,0 +1,11 @@ +# ClerkErrors45 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors46.md b/docs/Models/Errors/ClerkErrors46.md new file mode 100644 index 0000000..6132284 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors46.md @@ -0,0 +1,11 @@ +# ClerkErrors46 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors47.md b/docs/Models/Errors/ClerkErrors47.md new file mode 100644 index 0000000..f80bd35 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors47.md @@ -0,0 +1,11 @@ +# ClerkErrors47 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors48.md b/docs/Models/Errors/ClerkErrors48.md new file mode 100644 index 0000000..64c5059 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors48.md @@ -0,0 +1,11 @@ +# ClerkErrors48 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors49.md b/docs/Models/Errors/ClerkErrors49.md new file mode 100644 index 0000000..546b440 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors49.md @@ -0,0 +1,11 @@ +# ClerkErrors49 + +Invalid request parameters + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors5.md b/docs/Models/Errors/ClerkErrors5.md new file mode 100644 index 0000000..4ef6370 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors5.md @@ -0,0 +1,11 @@ +# ClerkErrors5 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors50.md b/docs/Models/Errors/ClerkErrors50.md new file mode 100644 index 0000000..0e3d1f3 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors50.md @@ -0,0 +1,11 @@ +# ClerkErrors50 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors51.md b/docs/Models/Errors/ClerkErrors51.md new file mode 100644 index 0000000..df816b4 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors51.md @@ -0,0 +1,11 @@ +# ClerkErrors51 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors52.md b/docs/Models/Errors/ClerkErrors52.md new file mode 100644 index 0000000..866e368 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors52.md @@ -0,0 +1,11 @@ +# ClerkErrors52 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors53.md b/docs/Models/Errors/ClerkErrors53.md new file mode 100644 index 0000000..915837a --- /dev/null +++ b/docs/Models/Errors/ClerkErrors53.md @@ -0,0 +1,11 @@ +# ClerkErrors53 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors54.md b/docs/Models/Errors/ClerkErrors54.md new file mode 100644 index 0000000..991ea6c --- /dev/null +++ b/docs/Models/Errors/ClerkErrors54.md @@ -0,0 +1,11 @@ +# ClerkErrors54 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors55.md b/docs/Models/Errors/ClerkErrors55.md new file mode 100644 index 0000000..17208b1 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors55.md @@ -0,0 +1,11 @@ +# ClerkErrors55 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors56.md b/docs/Models/Errors/ClerkErrors56.md new file mode 100644 index 0000000..10b16d9 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors56.md @@ -0,0 +1,11 @@ +# ClerkErrors56 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors57.md b/docs/Models/Errors/ClerkErrors57.md new file mode 100644 index 0000000..833bc3d --- /dev/null +++ b/docs/Models/Errors/ClerkErrors57.md @@ -0,0 +1,11 @@ +# ClerkErrors57 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors58.md b/docs/Models/Errors/ClerkErrors58.md new file mode 100644 index 0000000..ff5da84 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors58.md @@ -0,0 +1,11 @@ +# ClerkErrors58 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors59.md b/docs/Models/Errors/ClerkErrors59.md new file mode 100644 index 0000000..7fa7519 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors59.md @@ -0,0 +1,11 @@ +# ClerkErrors59 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors6.md b/docs/Models/Errors/ClerkErrors6.md new file mode 100644 index 0000000..8e68718 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors6.md @@ -0,0 +1,11 @@ +# ClerkErrors6 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors60.md b/docs/Models/Errors/ClerkErrors60.md new file mode 100644 index 0000000..5c9a7ec --- /dev/null +++ b/docs/Models/Errors/ClerkErrors60.md @@ -0,0 +1,11 @@ +# ClerkErrors60 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors61.md b/docs/Models/Errors/ClerkErrors61.md new file mode 100644 index 0000000..1cbb908 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors61.md @@ -0,0 +1,11 @@ +# ClerkErrors61 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors62.md b/docs/Models/Errors/ClerkErrors62.md new file mode 100644 index 0000000..2bd5ff3 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors62.md @@ -0,0 +1,11 @@ +# ClerkErrors62 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors63.md b/docs/Models/Errors/ClerkErrors63.md new file mode 100644 index 0000000..1b9ab49 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors63.md @@ -0,0 +1,11 @@ +# ClerkErrors63 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors64.md b/docs/Models/Errors/ClerkErrors64.md new file mode 100644 index 0000000..bdef0c7 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors64.md @@ -0,0 +1,11 @@ +# ClerkErrors64 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors65.md b/docs/Models/Errors/ClerkErrors65.md new file mode 100644 index 0000000..18a2946 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors65.md @@ -0,0 +1,11 @@ +# ClerkErrors65 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors66.md b/docs/Models/Errors/ClerkErrors66.md new file mode 100644 index 0000000..5b97dc9 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors66.md @@ -0,0 +1,11 @@ +# ClerkErrors66 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors67.md b/docs/Models/Errors/ClerkErrors67.md new file mode 100644 index 0000000..49d9b1a --- /dev/null +++ b/docs/Models/Errors/ClerkErrors67.md @@ -0,0 +1,11 @@ +# ClerkErrors67 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors68.md b/docs/Models/Errors/ClerkErrors68.md new file mode 100644 index 0000000..e25606c --- /dev/null +++ b/docs/Models/Errors/ClerkErrors68.md @@ -0,0 +1,11 @@ +# ClerkErrors68 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors69.md b/docs/Models/Errors/ClerkErrors69.md new file mode 100644 index 0000000..55eb81b --- /dev/null +++ b/docs/Models/Errors/ClerkErrors69.md @@ -0,0 +1,11 @@ +# ClerkErrors69 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors7.md b/docs/Models/Errors/ClerkErrors7.md new file mode 100644 index 0000000..737a339 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors7.md @@ -0,0 +1,11 @@ +# ClerkErrors7 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors70.md b/docs/Models/Errors/ClerkErrors70.md new file mode 100644 index 0000000..5d660dd --- /dev/null +++ b/docs/Models/Errors/ClerkErrors70.md @@ -0,0 +1,11 @@ +# ClerkErrors70 + +Authentication invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors71.md b/docs/Models/Errors/ClerkErrors71.md new file mode 100644 index 0000000..87792d9 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors71.md @@ -0,0 +1,11 @@ +# ClerkErrors71 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors72.md b/docs/Models/Errors/ClerkErrors72.md new file mode 100644 index 0000000..1f420bf --- /dev/null +++ b/docs/Models/Errors/ClerkErrors72.md @@ -0,0 +1,11 @@ +# ClerkErrors72 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors73.md b/docs/Models/Errors/ClerkErrors73.md new file mode 100644 index 0000000..ccfdf96 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors73.md @@ -0,0 +1,11 @@ +# ClerkErrors73 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors74.md b/docs/Models/Errors/ClerkErrors74.md new file mode 100644 index 0000000..75b06b1 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors74.md @@ -0,0 +1,11 @@ +# ClerkErrors74 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors75.md b/docs/Models/Errors/ClerkErrors75.md new file mode 100644 index 0000000..f5cffee --- /dev/null +++ b/docs/Models/Errors/ClerkErrors75.md @@ -0,0 +1,11 @@ +# ClerkErrors75 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors76.md b/docs/Models/Errors/ClerkErrors76.md new file mode 100644 index 0000000..02c7bcc --- /dev/null +++ b/docs/Models/Errors/ClerkErrors76.md @@ -0,0 +1,11 @@ +# ClerkErrors76 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors77.md b/docs/Models/Errors/ClerkErrors77.md new file mode 100644 index 0000000..2abc606 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors77.md @@ -0,0 +1,11 @@ +# ClerkErrors77 + +Resource not found + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors78.md b/docs/Models/Errors/ClerkErrors78.md new file mode 100644 index 0000000..7d3d264 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors78.md @@ -0,0 +1,11 @@ +# ClerkErrors78 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors79.md b/docs/Models/Errors/ClerkErrors79.md new file mode 100644 index 0000000..d443a63 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors79.md @@ -0,0 +1,11 @@ +# ClerkErrors79 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors8.md b/docs/Models/Errors/ClerkErrors8.md new file mode 100644 index 0000000..e63fa18 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors8.md @@ -0,0 +1,11 @@ +# ClerkErrors8 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors80.md b/docs/Models/Errors/ClerkErrors80.md new file mode 100644 index 0000000..afccace --- /dev/null +++ b/docs/Models/Errors/ClerkErrors80.md @@ -0,0 +1,11 @@ +# ClerkErrors80 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors81.md b/docs/Models/Errors/ClerkErrors81.md new file mode 100644 index 0000000..1feb02f --- /dev/null +++ b/docs/Models/Errors/ClerkErrors81.md @@ -0,0 +1,11 @@ +# ClerkErrors81 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors82.md b/docs/Models/Errors/ClerkErrors82.md new file mode 100644 index 0000000..6526e70 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors82.md @@ -0,0 +1,11 @@ +# ClerkErrors82 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors83.md b/docs/Models/Errors/ClerkErrors83.md new file mode 100644 index 0000000..eaa9a9b --- /dev/null +++ b/docs/Models/Errors/ClerkErrors83.md @@ -0,0 +1,11 @@ +# ClerkErrors83 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors84.md b/docs/Models/Errors/ClerkErrors84.md new file mode 100644 index 0000000..2e63201 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors84.md @@ -0,0 +1,11 @@ +# ClerkErrors84 + +Authorization invalid + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors85.md b/docs/Models/Errors/ClerkErrors85.md new file mode 100644 index 0000000..bce19d8 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors85.md @@ -0,0 +1,11 @@ +# ClerkErrors85 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors86.md b/docs/Models/Errors/ClerkErrors86.md new file mode 100644 index 0000000..678ae43 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors86.md @@ -0,0 +1,11 @@ +# ClerkErrors86 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors87.md b/docs/Models/Errors/ClerkErrors87.md new file mode 100644 index 0000000..666f212 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors87.md @@ -0,0 +1,11 @@ +# ClerkErrors87 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors88.md b/docs/Models/Errors/ClerkErrors88.md new file mode 100644 index 0000000..ac5da15 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors88.md @@ -0,0 +1,11 @@ +# ClerkErrors88 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors89.md b/docs/Models/Errors/ClerkErrors89.md new file mode 100644 index 0000000..bd32990 --- /dev/null +++ b/docs/Models/Errors/ClerkErrors89.md @@ -0,0 +1,11 @@ +# ClerkErrors89 + +Payment required + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Errors/ClerkErrors9.md b/docs/Models/Errors/ClerkErrors9.md new file mode 100644 index 0000000..8e38e1c --- /dev/null +++ b/docs/Models/Errors/ClerkErrors9.md @@ -0,0 +1,11 @@ +# ClerkErrors9 + +Request was not successful + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `errors` | array<[Components\ClerkError](../../Models/Components/ClerkError.md)> | :heavy_check_mark: | N/A | +| `meta` | [?Errors\Meta](../../Models/Errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreateJWTTemplateRequestBody.md b/docs/Models/Operations/CreateJWTTemplateRequestBody.md index 961ef1b..dbdb6c8 100644 --- a/docs/Models/Operations/CreateJWTTemplateRequestBody.md +++ b/docs/Models/Operations/CreateJWTTemplateRequestBody.md @@ -7,8 +7,8 @@ | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `name` | *?string* | :heavy_minus_sign: | JWT template name | | `claims` | [?Operations\Claims](../../Models/Operations/Claims.md) | :heavy_minus_sign: | JWT template claims in JSON format | +| `customSigningKey` | *?bool* | :heavy_minus_sign: | Whether a custom signing key/algorithm is also provided for this template | | `lifetime` | *?float* | :heavy_minus_sign: | JWT token lifetime | | `allowedClockSkew` | *?float* | :heavy_minus_sign: | JWT token allowed clock skew | -| `customSigningKey` | *?bool* | :heavy_minus_sign: | Whether a custom signing key/algorithm is also provided for this template | | `signingAlgorithm` | *?string* | :heavy_minus_sign: | The custom signing algorithm to use when minting JWTs | | `signingKey` | *?string* | :heavy_minus_sign: | The custom signing private key to use when minting JWTs | \ No newline at end of file diff --git a/docs/Models/Operations/CreateUserRequestBody.md b/docs/Models/Operations/CreateUserRequestBody.md index f28b8f3..0ad1ae1 100644 --- a/docs/Models/Operations/CreateUserRequestBody.md +++ b/docs/Models/Operations/CreateUserRequestBody.md @@ -5,14 +5,9 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `externalId` | *?string* | :heavy_minus_sign: | The ID of the user as used in your external systems or your previous authentication solution.
Must be unique across your instance. | -| `firstName` | *?string* | :heavy_minus_sign: | The first name to assign to the user | -| `lastName` | *?string* | :heavy_minus_sign: | The last name to assign to the user | | `emailAddress` | array<*string*> | :heavy_minus_sign: | Email addresses to add to the user.
Must be unique across your instance.
The first email address will be set as the user's primary email address. | | `phoneNumber` | array<*string*> | :heavy_minus_sign: | Phone numbers to add to the user.
Must be unique across your instance.
The first phone number will be set as the user's primary phone number. | | `web3Wallet` | array<*string*> | :heavy_minus_sign: | Web3 wallets to add to the user.
Must be unique across your instance.
The first wallet will be set as the user's primary wallet. | -| `username` | *?string* | :heavy_minus_sign: | The username to give to the user.
It must be unique across your instance. | -| `password` | *?string* | :heavy_minus_sign: | The plaintext password to give the user.
Must be at least 8 characters long, and can not be in any list of hacked passwords. | | `passwordDigest` | *?string* | :heavy_minus_sign: | In case you already have the password digests and not the passwords, you can use them for the newly created user via this property.
The digests should be generated with one of the supported algorithms.
The hashing algorithm can be specified using the `password_hasher` property. | | `passwordHasher` | [?Operations\PasswordHasher](../../Models/Operations/PasswordHasher.md) | :heavy_minus_sign: | The hashing algorithm that was used to generate the password digest.
The algorithms we support at the moment are [bcrypt](https://en.wikipedia.org/wiki/Bcrypt), [bcrypt_sha256_django](https://docs.djangoproject.com/en/4.0/topics/auth/passwords/),
[md5](https://en.wikipedia.org/wiki/MD5), pbkdf2_sha256, pbkdf2_sha512, [pbkdf2_sha256_django](https://docs.djangoproject.com/en/4.0/topics/auth/passwords/),
[phpass](https://www.openwall.com/phpass/), [scrypt_firebase](https://firebaseopensource.com/projects/firebase/scrypt/),
[scrypt_werkzeug](https://werkzeug.palletsprojects.com/en/3.0.x/utils/#werkzeug.security.generate_password_hash), [sha256](https://en.wikipedia.org/wiki/SHA-2)
and the [argon2](https://argon2.online/) variants argon2i and argon2id.

If you need support for any particular hashing algorithm, [please let us know](https://clerk.com/support).

Note: for password hashers considered insecure (at this moment MD5 and SHA256), the corresponding user password hashes will be transparently migrated to Bcrypt (a secure hasher) upon the user's first successful password sign in.
Insecure schemes are marked with `(insecure)` in the list below.

Each of the supported hashers expects the incoming digest to be in a particular format. Specifically:

**bcrypt:** The digest should be of the following form:

`$$$`

**bcrypt_sha256_django:** This is the Django-specific variant of Bcrypt, using SHA256 hashing function. The format should be as follows (as exported from Django):

`bcrypt_sha256$$$$`

**md5** (insecure): The digest should follow the regular form e.g.:

`5f4dcc3b5aa765d61d8327deb882cf99`

**pbkdf2_sha256:** This is the PBKDF2 algorithm using the SHA256 hashing function. The format should be as follows:

`pbkdf2_sha256$$$`

Note: Both the salt and the hash are expected to be base64-encoded.

**pbkdf2_sha512:** This is the PBKDF2 algorithm using the SHA512 hashing function. The format should be as follows:

`pbkdf2_sha512$$$`

_iterations:_ The number of iterations used. Must be an integer less than 420000.
_salt:_ The salt used when generating the hash. Must be less than 1024 bytes.
_hash:_ The hex-encoded hash. Must have been generated with a key length less than 1024 bytes.

**pbkdf2_sha256_django:** This is the Django-specific variant of PBKDF2 and the digest should have the following format (as exported from Django):

`pbkdf2_sha256$$$`

Note: The salt is expected to be un-encoded, the hash is expected base64-encoded.

**pbkdf2_sha1:** This is similar to pkbdf2_sha256_django, but with two differences:
1. uses sha1 instead of sha256
2. accepts the hash as a hex-encoded string

The format is the following:

`pbkdf2_sha1$$$`

**phpass:** Portable public domain password hashing framework for use in PHP applications. Digests hashed with phpass have the following sections:

The format is the following:

`$P$`

- $P$ is the prefix used to identify phpass hashes.
- rounds is a single character encoding a 6-bit integer representing the number of rounds used.
- salt is eight characters drawn from [./0-9A-Za-z], providing a 48-bit salt.
- checksum is 22 characters drawn from the same set, encoding the 128-bit checksum with MD5.

**scrypt_firebase:** The Firebase-specific variant of scrypt.
The value is expected to have 6 segments separated by the $ character and include the following information:

_hash:_ The actual Base64 hash. This can be retrieved when exporting the user from Firebase.
_salt:_ The salt used to generate the above hash. Again, this is given when exporting the user.
_signer key:_ The base64 encoded signer key.
_salt separator:_ The base64 encoded salt separator.
_rounds:_ The number of rounds the algorithm needs to run.
_memory cost:_ The cost of the algorithm run

The first 2 (hash and salt) are per user and can be retrieved when exporting the user from Firebase.
The other 4 values (signer key, salt separator, rounds and memory cost) are project-wide settings and can be retrieved from the project's password hash parameters.

Once you have all these, you can combine it in the following format and send this as the digest in order for Clerk to accept it:

`$$$$$`

**scrypt_werkzeug:** The Werkzeug-specific variant of scrypt.

The value is expected to have 3 segments separated by the $ character and include the following information:

_algorithm args:_ The algorithm used to generate the hash.
_salt:_ The salt used to generate the above hash.
_hash:_ The actual Base64 hash.

The algorithm args are the parameters used to generate the hash and are included in the digest.

**argon2i:** Algorithms in the argon2 family generate digests that encode the following information:

_version (v):_ The argon version, version 19 is assumed
_memory (m):_ The memory used by the algorithm (in kibibytes)
_iterations (t):_ The number of iterations to perform
_parallelism (p):_ The number of threads to use

Parts are demarcated by the `$` character, with the first part identifying the algorithm variant.
The middle part is a comma-separated list of the encoding options (memory, iterations, parallelism).
The final part is the actual digest.

`$argon2i$v=19$m=4096,t=3,p=1$4t6CL3P7YiHBtwESXawI8Hm20zJj4cs7/4/G3c187e0$m7RQFczcKr5bIR0IIxbpO2P0tyrLjf3eUW3M3QSwnLc`

**argon2id:** See the previous algorithm for an explanation of the formatting.

For the argon2id case, the value of the algorithm in the first part of the digest is `argon2id`:

`$argon2id$v=19$m=64,t=4,p=8$Z2liZXJyaXNo$iGXEpMBTDYQ8G/71tF0qGjxRHEmR3gpGULcE93zUJVU`

**sha256** (insecure): The digest should be a 64-length hex string, e.g.:

`9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08`

**sha256_salted** (insecure): The digest should be a 64-length hex string with a salt.

The format is the following:
`$`

The value is expected to have 2 segments separated by the $ character and include the following information:
_hash:_ The sha256 hash, a 64-length hex string.
_salt:_ The salt used to generate the above hash. Must be between 1 and 1024 bits. | | `skipPasswordChecks` | *?bool* | :heavy_minus_sign: | When set to `true` all password checks are skipped.
It is recommended to use this method only when migrating plaintext passwords to Clerk.
Upon migration the user base should be prompted to pick stronger password. | @@ -22,4 +17,9 @@ | `publicMetadata` | [?Operations\PublicMetadata](../../Models/Operations/PublicMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that is visible to both your Frontend and Backend APIs | | `privateMetadata` | [?Operations\PrivateMetadata](../../Models/Operations/PrivateMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that is only visible to your Backend API | | `unsafeMetadata` | [?Operations\UnsafeMetadata](../../Models/Operations/UnsafeMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.
Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. | -| `createdAt` | *?string* | :heavy_minus_sign: | A custom date/time denoting _when_ the user signed up to the application, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | \ No newline at end of file +| `createdAt` | *?string* | :heavy_minus_sign: | A custom date/time denoting _when_ the user signed up to the application, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | +| `externalId` | *?string* | :heavy_minus_sign: | The ID of the user as used in your external systems or your previous authentication solution.
Must be unique across your instance. | +| `firstName` | *?string* | :heavy_minus_sign: | The first name to assign to the user | +| `lastName` | *?string* | :heavy_minus_sign: | The last name to assign to the user | +| `username` | *?string* | :heavy_minus_sign: | The username to give to the user.
It must be unique across your instance. | +| `password` | *?string* | :heavy_minus_sign: | The plaintext password to give the user.
Must be at least 8 characters long, and can not be in any list of hacked passwords. | \ No newline at end of file diff --git a/docs/Models/Operations/PreviewTemplateRequestBody.md b/docs/Models/Operations/PreviewTemplateRequestBody.md index 553c521..ae7dd23 100644 --- a/docs/Models/Operations/PreviewTemplateRequestBody.md +++ b/docs/Models/Operations/PreviewTemplateRequestBody.md @@ -7,7 +7,7 @@ Required parameters | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `subject` | *?string* | :heavy_minus_sign: | The email subject.
Applicable only to email templates. | | `body` | *?string* | :heavy_minus_sign: | The template body before variable interpolation | | `fromEmailName` | *?string* | :heavy_minus_sign: | The local part of the From email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | -| `replyToEmailName` | *?string* | :heavy_minus_sign: | The local part of the Reply To email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | \ No newline at end of file +| `replyToEmailName` | *?string* | :heavy_minus_sign: | The local part of the Reply To email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | +| `subject` | *?string* | :heavy_minus_sign: | The email subject.
Applicable only to email templates. | \ No newline at end of file diff --git a/docs/Models/Operations/ResponseBody.md b/docs/Models/Operations/ResponseBody.md index 9b363c2..3a8dda1 100644 --- a/docs/Models/Operations/ResponseBody.md +++ b/docs/Models/Operations/ResponseBody.md @@ -11,6 +11,6 @@ | `token` | *?string* | :heavy_minus_sign: | The access token | | `provider` | *?string* | :heavy_minus_sign: | The ID of the provider | | `publicMetadata` | [?Operations\GetOAuthAccessTokenPublicMetadata](../../Models/Operations/GetOAuthAccessTokenPublicMetadata.md) | :heavy_minus_sign: | N/A | -| `label` | *?string* | :heavy_minus_sign: | N/A | | `scopes` | array<*string*> | :heavy_minus_sign: | The list of scopes that the token is valid for.
Only present for OAuth 2.0 tokens. | -| `tokenSecret` | *?string* | :heavy_minus_sign: | The token secret. Only present for OAuth 1.0 tokens. | \ No newline at end of file +| `tokenSecret` | *?string* | :heavy_minus_sign: | The token secret. Only present for OAuth 1.0 tokens. | +| `label` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md b/docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md index 7b25b6a..ff38df0 100644 --- a/docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md +++ b/docs/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | +| `domainsEnrollmentModes` | array<*string*> | :heavy_minus_sign: | Specify which enrollment modes to enable for your Organization Domains.
Supported modes are 'automatic_invitation' & 'automatic_suggestion'. | +| `creatorRoleId` | *?string* | :heavy_minus_sign: | Specify what the default organization role is for an organization creator. | +| `domainsDefaultRoleId` | *?string* | :heavy_minus_sign: | Specify what the default organization role is for the organization domains. | | `enabled` | *?bool* | :heavy_minus_sign: | N/A | | `maxAllowedMemberships` | *?int* | :heavy_minus_sign: | N/A | | `adminDeleteEnabled` | *?bool* | :heavy_minus_sign: | N/A | -| `domainsEnabled` | *?bool* | :heavy_minus_sign: | N/A | -| `domainsEnrollmentModes` | array<*string*> | :heavy_minus_sign: | Specify which enrollment modes to enable for your Organization Domains.
Supported modes are 'automatic_invitation' & 'automatic_suggestion'. | -| `creatorRoleId` | *?string* | :heavy_minus_sign: | Specify what the default organization role is for an organization creator. | -| `domainsDefaultRoleId` | *?string* | :heavy_minus_sign: | Specify what the default organization role is for the organization domains. | \ No newline at end of file +| `domainsEnabled` | *?bool* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateInstanceRequestBody.md b/docs/Models/Operations/UpdateInstanceRequestBody.md index 7ec6c0b..aea41ea 100644 --- a/docs/Models/Operations/UpdateInstanceRequestBody.md +++ b/docs/Models/Operations/UpdateInstanceRequestBody.md @@ -5,12 +5,12 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowedOrigins` | array<*string*> | :heavy_minus_sign: | For browser-like stacks such as browser extensions, Electron, or Capacitor.js the instance allowed origins need to be updated with the request origin value.
For Chrome extensions popup, background, or service worker pages the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost. | +| ~~`cookielessDev`~~ | *?bool* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Whether the instance should operate in cookieless development mode (i.e. without third-party cookies).
Deprecated: Please use `url_based_session_syncing` instead. | +| `urlBasedSessionSyncing` | *?bool* | :heavy_minus_sign: | Whether the instance should use URL-based session syncing in development mode (i.e. without third-party cookies). | | `testMode` | *?bool* | :heavy_minus_sign: | Toggles test mode for this instance, allowing the use of test email addresses and phone numbers.
Defaults to true for development instances. | | `hibp` | *?bool* | :heavy_minus_sign: | Whether the instance should be using the HIBP service to check passwords for breaches | | `enhancedEmailDeliverability` | *?bool* | :heavy_minus_sign: | The "enhanced_email_deliverability" feature will send emails from "verifications@clerk.dev" instead of your domain.
This can be helpful if you do not have a high domain reputation. | | `supportEmail` | *?string* | :heavy_minus_sign: | N/A | | `clerkJsVersion` | *?string* | :heavy_minus_sign: | N/A | -| `developmentOrigin` | *?string* | :heavy_minus_sign: | N/A | -| `allowedOrigins` | array<*string*> | :heavy_minus_sign: | For browser-like stacks such as browser extensions, Electron, or Capacitor.js the instance allowed origins need to be updated with the request origin value.
For Chrome extensions popup, background, or service worker pages the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost. | -| ~~`cookielessDev`~~ | *?bool* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Whether the instance should operate in cookieless development mode (i.e. without third-party cookies).
Deprecated: Please use `url_based_session_syncing` instead. | -| `urlBasedSessionSyncing` | *?bool* | :heavy_minus_sign: | Whether the instance should use URL-based session syncing in development mode (i.e. without third-party cookies). | \ No newline at end of file +| `developmentOrigin` | *?string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateJWTTemplateRequestBody.md b/docs/Models/Operations/UpdateJWTTemplateRequestBody.md index c965f57..7bd32d0 100644 --- a/docs/Models/Operations/UpdateJWTTemplateRequestBody.md +++ b/docs/Models/Operations/UpdateJWTTemplateRequestBody.md @@ -7,8 +7,8 @@ | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `name` | *?string* | :heavy_minus_sign: | JWT template name | | `claims` | [?Operations\UpdateJWTTemplateClaims](../../Models/Operations/UpdateJWTTemplateClaims.md) | :heavy_minus_sign: | JWT template claims in JSON format | +| `customSigningKey` | *?bool* | :heavy_minus_sign: | Whether a custom signing key/algorithm is also provided for this template | | `lifetime` | *?float* | :heavy_minus_sign: | JWT token lifetime | | `allowedClockSkew` | *?float* | :heavy_minus_sign: | JWT token allowed clock skew | -| `customSigningKey` | *?bool* | :heavy_minus_sign: | Whether a custom signing key/algorithm is also provided for this template | | `signingAlgorithm` | *?string* | :heavy_minus_sign: | The custom signing algorithm to use when minting JWTs | | `signingKey` | *?string* | :heavy_minus_sign: | The custom signing private key to use when minting JWTs | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateUserRequestBody.md b/docs/Models/Operations/UpdateUserRequestBody.md index e5ba6d5..8909dcb 100644 --- a/docs/Models/Operations/UpdateUserRequestBody.md +++ b/docs/Models/Operations/UpdateUserRequestBody.md @@ -5,25 +5,25 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `externalId` | *?string* | :heavy_minus_sign: | The ID of the user as used in your external systems or your previous authentication solution.
Must be unique across your instance. | -| `firstName` | *?string* | :heavy_minus_sign: | The first name to assign to the user | -| `lastName` | *?string* | :heavy_minus_sign: | The last name to assign to the user | | `primaryEmailAddressId` | *?string* | :heavy_minus_sign: | The ID of the email address to set as primary.
It must be verified, and present on the current user. | | `notifyPrimaryEmailAddressChanged` | *?bool* | :heavy_minus_sign: | If set to `true`, the user will be notified that their primary email address has changed.
By default, no notification is sent. | | `primaryPhoneNumberId` | *?string* | :heavy_minus_sign: | The ID of the phone number to set as primary.
It must be verified, and present on the current user. | | `primaryWeb3WalletId` | *?string* | :heavy_minus_sign: | The ID of the web3 wallets to set as primary.
It must be verified, and present on the current user. | -| `username` | *?string* | :heavy_minus_sign: | The username to give to the user.
It must be unique across your instance. | -| `profileImageId` | *?string* | :heavy_minus_sign: | The ID of the image to set as the user's profile image | -| `password` | *?string* | :heavy_minus_sign: | The plaintext password to give the user.
Must be at least 8 characters long, and can not be in any list of hacked passwords. | | `passwordDigest` | *?string* | :heavy_minus_sign: | In case you already have the password digests and not the passwords, you can use them for the newly created user via this property.
The digests should be generated with one of the supported algorithms.
The hashing algorithm can be specified using the `password_hasher` property. | | `passwordHasher` | [?Operations\UpdateUserPasswordHasher](../../Models/Operations/UpdateUserPasswordHasher.md) | :heavy_minus_sign: | The hashing algorithm that was used to generate the password digest.
The algorithms we support at the moment are [bcrypt](https://en.wikipedia.org/wiki/Bcrypt), [bcrypt_sha256_django](https://docs.djangoproject.com/en/4.0/topics/auth/passwords/),
[md5](https://en.wikipedia.org/wiki/MD5), pbkdf2_sha256, pbkdf2_sha512, [pbkdf2_sha256_django](https://docs.djangoproject.com/en/4.0/topics/auth/passwords/),
[phpass](https://www.openwall.com/phpass/), [scrypt_firebase](https://firebaseopensource.com/projects/firebase/scrypt/),
[sha256](https://en.wikipedia.org/wiki/SHA-2), [scrypt_werkzeug](https://werkzeug.palletsprojects.com/en/3.0.x/utils/#werkzeug.security.generate_password_hash)
and the [argon2](https://argon2.online/) variants argon2i and argon2id.

If you need support for any particular hashing algorithm, [please let us know](https://clerk.com/support).

Note: for password hashers considered insecure (at this moment MD5 and SHA256), the corresponding user password hashes will be transparently migrated to Bcrypt (a secure hasher) upon the user's first successful password sign in.
Insecure schemes are marked with `(insecure)` in the list below.

Each of the supported hashers expects the incoming digest to be in a particular format. Specifically:

**bcrypt:** The digest should be of the following form:

`$$$`

**bcrypt_sha256_django:** This is the Django-specific variant of Bcrypt, using SHA256 hashing function. The format should be as follows (as exported from Django):

`bcrypt_sha256$$$$`

**md5** (insecure): The digest should follow the regular form e.g.:

`5f4dcc3b5aa765d61d8327deb882cf99`

**pbkdf2_sha256:** This is the PBKDF2 algorithm using the SHA256 hashing function. The format should be as follows:

`pbkdf2_sha256$$$`

Note: Both the salt and the hash are expected to be base64-encoded.

**pbkdf2_sha512:** This is the PBKDF2 algorithm using the SHA512 hashing function. The format should be as follows:

`pbkdf2_sha512$$$`

_iterations:_ The number of iterations used. Must be an integer less than 420000.
_salt:_ The salt used when generating the hash. Must be less than bytes.
_hash:_ The hex-encoded hash. Must have been generated with a key length less than 1024 bytes.

**pbkdf2_sha256_django:** This is the Django-specific variant of PBKDF2 and the digest should have the following format (as exported from Django):

`pbkdf2_sha256$$$`

Note: The salt is expected to be un-encoded, the hash is expected base64-encoded.

**pbkdf2_sha1:** This is similar to pkbdf2_sha256_django, but with two differences:
1. uses sha1 instead of sha256
2. accepts the hash as a hex-encoded string

The format is the following:

`pbkdf2_sha1$$$`

**phpass:** Portable public domain password hashing framework for use in PHP applications. Digests hashed with phpass have the following sections:

The format is the following:

`$P$`

- $P$ is the prefix used to identify phpass hashes.
- rounds is a single character encoding a 6-bit integer representing the number of rounds used.
- salt is eight characters drawn from [./0-9A-Za-z], providing a 48-bit salt.
- checksum is 22 characters drawn from the same set, encoding the 128-bit checksum with MD5.

**scrypt_firebase:** The Firebase-specific variant of scrypt.
The value is expected to have 6 segments separated by the $ character and include the following information:

_hash:_ The actual Base64 hash. This can be retrieved when exporting the user from Firebase.
_salt:_ The salt used to generate the above hash. Again, this is given when exporting the user.
_signer key:_ The base64 encoded signer key.
_salt separator:_ The base64 encoded salt separator.
_rounds:_ The number of rounds the algorithm needs to run.
_memory cost:_ The cost of the algorithm run

The first 2 (hash and salt) are per user and can be retrieved when exporting the user from Firebase.
The other 4 values (signer key, salt separator, rounds and memory cost) are project-wide settings and can be retrieved from the project's password hash parameters.

Once you have all these, you can combine it in the following format and send this as the digest in order for Clerk to accept it:

`$$$$$`

**scrypt_werkzeug:** The Werkzeug-specific variant of scrypt.

The value is expected to have 3 segments separated by the $ character and include the following information:

_algorithm args:_ The algorithm used to generate the hash.
_salt:_ The salt used to generate the above hash.
_hash:_ The actual Base64 hash.

The algorithm args are the parameters used to generate the hash and are included in the digest.

**argon2i:** Algorithms in the argon2 family generate digests that encode the following information:

_version (v):_ The argon version, version 19 is assumed
_memory (m):_ The memory used by the algorithm (in kibibytes)
_iterations (t):_ The number of iterations to perform
_parallelism (p):_ The number of threads to use

Parts are demarcated by the `$` character, with the first part identifying the algorithm variant.
The middle part is a comma-separated list of the encoding options (memory, iterations, parallelism).
The final part is the actual digest.

`$argon2i$v=19$m=4096,t=3,p=1$4t6CL3P7YiHBtwESXawI8Hm20zJj4cs7/4/G3c187e0$m7RQFczcKr5bIR0IIxbpO2P0tyrLjf3eUW3M3QSwnLc`

**argon2id:** See the previous algorithm for an explanation of the formatting.

For the argon2id case, the value of the algorithm in the first part of the digest is `argon2id`:

`$argon2id$v=19$m=64,t=4,p=8$Z2liZXJyaXNo$iGXEpMBTDYQ8G/71tF0qGjxRHEmR3gpGULcE93zUJVU`

**sha256** (insecure): The digest should be a 64-length hex string, e.g.:

`9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08` | -| `skipPasswordChecks` | *?bool* | :heavy_minus_sign: | Set it to `true` if you're updating the user's password and want to skip any password policy settings check. This parameter can only be used when providing a `password`. | -| `signOutOfOtherSessions` | *?bool* | :heavy_minus_sign: | Set to `true` to sign out the user from all their active sessions once their password is updated. This parameter can only be used when providing a `password`. | | `totpSecret` | *?string* | :heavy_minus_sign: | In case TOTP is configured on the instance, you can provide the secret to enable it on the specific user without the need to reset it.
Please note that currently the supported options are:
* Period: 30 seconds
* Code length: 6 digits
* Algorithm: SHA1 | | `backupCodes` | array<*string*> | :heavy_minus_sign: | If Backup Codes are configured on the instance, you can provide them to enable it on the specific user without the need to reset them.
You must provide the backup codes in plain format or the corresponding bcrypt digest. | | `publicMetadata` | [?Operations\UpdateUserPublicMetadata](../../Models/Operations/UpdateUserPublicMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that is visible to both your Frontend and Backend APIs | | `privateMetadata` | [?Operations\UpdateUserPrivateMetadata](../../Models/Operations/UpdateUserPrivateMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that is only visible to your Backend API | | `unsafeMetadata` | [?Operations\UpdateUserUnsafeMetadata](../../Models/Operations/UpdateUserUnsafeMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.
Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. | +| `createdAt` | *?string* | :heavy_minus_sign: | A custom date/time denoting _when_ the user signed up to the application, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | +| `externalId` | *?string* | :heavy_minus_sign: | The ID of the user as used in your external systems or your previous authentication solution.
Must be unique across your instance. | +| `firstName` | *?string* | :heavy_minus_sign: | The first name to assign to the user | +| `lastName` | *?string* | :heavy_minus_sign: | The last name to assign to the user | +| `username` | *?string* | :heavy_minus_sign: | The username to give to the user.
It must be unique across your instance. | +| `profileImageId` | *?string* | :heavy_minus_sign: | The ID of the image to set as the user's profile image | +| `password` | *?string* | :heavy_minus_sign: | The plaintext password to give the user.
Must be at least 8 characters long, and can not be in any list of hacked passwords. | +| `skipPasswordChecks` | *?bool* | :heavy_minus_sign: | Set it to `true` if you're updating the user's password and want to skip any password policy settings check. This parameter can only be used when providing a `password`. | +| `signOutOfOtherSessions` | *?bool* | :heavy_minus_sign: | Set to `true` to sign out the user from all their active sessions once their password is updated. This parameter can only be used when providing a `password`. | | `deleteSelfEnabled` | *?bool* | :heavy_minus_sign: | If true, the user can delete themselves with the Frontend API. | -| `createOrganizationEnabled` | *?bool* | :heavy_minus_sign: | If true, the user can create organizations with the Frontend API. | -| `createdAt` | *?string* | :heavy_minus_sign: | A custom date/time denoting _when_ the user signed up to the application, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | \ No newline at end of file +| `createOrganizationEnabled` | *?bool* | :heavy_minus_sign: | If true, the user can create organizations with the Frontend API. | \ No newline at end of file diff --git a/docs/Models/Operations/UpsertTemplateRequestBody.md b/docs/Models/Operations/UpsertTemplateRequestBody.md index f481772..ab00949 100644 --- a/docs/Models/Operations/UpsertTemplateRequestBody.md +++ b/docs/Models/Operations/UpsertTemplateRequestBody.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `name` | *?string* | :heavy_minus_sign: | The user-friendly name of the template | -| `subject` | *?string* | :heavy_minus_sign: | The email subject.
Applicable only to email templates. | -| `markup` | *?string* | :heavy_minus_sign: | The editor markup used to generate the body of the template | | `body` | *?string* | :heavy_minus_sign: | The template body before variable interpolation | -| `deliveredByClerk` | *?bool* | :heavy_minus_sign: | Whether Clerk should deliver emails or SMS messages based on the current template | | `fromEmailName` | *?string* | :heavy_minus_sign: | The local part of the From email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | -| `replyToEmailName` | *?string* | :heavy_minus_sign: | The local part of the Reply To email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | \ No newline at end of file +| `replyToEmailName` | *?string* | :heavy_minus_sign: | The local part of the Reply To email address that will be used for emails.
For example, in the address 'hello@example.com', the local part is 'hello'.
Applicable only to email templates. | +| `subject` | *?string* | :heavy_minus_sign: | The email subject.
Applicable only to email templates. | +| `markup` | *?string* | :heavy_minus_sign: | The editor markup used to generate the body of the template | +| `deliveredByClerk` | *?bool* | :heavy_minus_sign: | Whether Clerk should deliver emails or SMS messages based on the current template | \ No newline at end of file diff --git a/docs/sdks/actortokens/README.md b/docs/sdks/actortokens/README.md index a9d4a1f..e0cf68d 100644 --- a/docs/sdks/actortokens/README.md +++ b/docs/sdks/actortokens/README.md @@ -1,4 +1,5 @@ # ActorTokens +(*actorTokens*) ## Overview @@ -23,30 +24,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateActorTokenRequestBody( - userId: '', - actor: new Operations\Actor( - - ), - expiresInSeconds: 77540, - sessionMaxDurationInSeconds: 26185, - ); - $response = $sdk->actorTokens->createActorToken($request); - - if ($response->actorToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateActorTokenRequestBody( + userId: '', + actor: new Operations\Actor(), +); + +$response = $sdk->actorTokens->createActorToken( + request: $request +); + +if ($response->actorToken !== null) { + // handle response } ``` @@ -62,11 +56,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors44 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## revokeActorToken @@ -80,22 +73,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->actorTokens->revokeActorToken(''); - if ($response->actorToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->actorTokens->revokeActorToken( + actorTokenId: '' +); + +if ($response->actorToken !== null) { + // handle response } ``` @@ -111,7 +101,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors45 | 400, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/allowlistblocklist/README.md b/docs/sdks/allowlistblocklist/README.md index 5bcd881..eb41de4 100644 --- a/docs/sdks/allowlistblocklist/README.md +++ b/docs/sdks/allowlistblocklist/README.md @@ -1,4 +1,5 @@ # AllowListBlockList +(*allowListBlockList*) ## Overview @@ -28,21 +29,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->allowListBlockList->listAllowlistIdentifiers(); - if ($response->allowlistIdentifierList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->allowListBlockList->listAllowlistIdentifiers( + +); + +if ($response->allowlistIdentifierList !== null) { + // handle response } ``` @@ -52,11 +51,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 401,402 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors36 | 401, 402 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createAllowlistIdentifier @@ -70,26 +68,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateAllowlistIdentifierRequestBody( - identifier: '', - notify: false, - ); - $response = $sdk->allowListBlockList->createAllowlistIdentifier($request); - - if ($response->allowlistIdentifier !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateAllowlistIdentifierRequestBody( + identifier: '', +); + +$response = $sdk->allowListBlockList->createAllowlistIdentifier( + request: $request +); + +if ($response->allowlistIdentifier !== null) { + // handle response } ``` @@ -105,11 +99,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors37 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteAllowlistIdentifier @@ -123,22 +116,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->allowListBlockList->deleteAllowlistIdentifier(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->allowListBlockList->deleteAllowlistIdentifier( + identifierId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -154,11 +144,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors38 | 402, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## listBlocklistIdentifiers @@ -172,21 +161,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->allowListBlockList->listBlocklistIdentifiers(); - if ($response->blocklistIdentifiers !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->allowListBlockList->listBlocklistIdentifiers( + +); + +if ($response->blocklistIdentifiers !== null) { + // handle response } ``` @@ -196,11 +183,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 401,402 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors39 | 401, 402 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createBlocklistIdentifier @@ -214,25 +200,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateBlocklistIdentifierRequestBody( - identifier: '', - ); - $response = $sdk->allowListBlockList->createBlocklistIdentifier($request); - - if ($response->blocklistIdentifier !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateBlocklistIdentifierRequestBody( + identifier: '', +); + +$response = $sdk->allowListBlockList->createBlocklistIdentifier( + request: $request +); + +if ($response->blocklistIdentifier !== null) { + // handle response } ``` @@ -248,11 +231,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors40 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteBlocklistIdentifier @@ -266,22 +248,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->allowListBlockList->deleteBlocklistIdentifier(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->allowListBlockList->deleteBlocklistIdentifier( + identifierId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -297,7 +276,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors41 | 402, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/betafeatures/README.md b/docs/sdks/betafeatures/README.md index a30ac49..891bd24 100644 --- a/docs/sdks/betafeatures/README.md +++ b/docs/sdks/betafeatures/README.md @@ -1,4 +1,5 @@ # BetaFeatures +(*betaFeatures*) ## Overview @@ -22,30 +23,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateInstanceAuthConfigRequestBody( - restrictedToAllowlist: false, - fromEmailAddress: '', - progressiveSignUp: false, - sessionTokenTemplate: '', - enhancedEmailDeliverability: false, - testMode: false, - ); - $response = $sdk->betaFeatures->updateInstanceAuthConfig($request); - - if ($response->instanceSettings !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\UpdateInstanceAuthConfigRequestBody(); + +$response = $sdk->betaFeatures->updateInstanceAuthConfig( + request: $request +); + +if ($response->instanceSettings !== null) { + // handle response } ``` @@ -61,11 +52,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors42 | 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~updateProductionInstanceDomain~~ @@ -85,25 +75,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateProductionInstanceDomainRequestBody( - homeUrl: '', - ); - $response = $sdk->betaFeatures->updateProductionInstanceDomain($request); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\UpdateProductionInstanceDomainRequestBody(); + +$response = $sdk->betaFeatures->updateProductionInstanceDomain( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -119,11 +104,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors43 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## changeProductionInstanceDomain @@ -141,25 +125,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\ChangeProductionInstanceDomainRequestBody( - homeUrl: '', - ); - $response = $sdk->betaFeatures->changeProductionInstanceDomain($request); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\ChangeProductionInstanceDomainRequestBody(); + +$response = $sdk->betaFeatures->changeProductionInstanceDomain( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -175,7 +154,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors50 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/clients/README.md b/docs/sdks/clients/README.md index e817d41..a916a27 100644 --- a/docs/sdks/clients/README.md +++ b/docs/sdks/clients/README.md @@ -1,4 +1,5 @@ # Clients +(*clients*) ## Overview @@ -27,22 +28,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->clients->getClientList(2830.33, 2613.46); - if ($response->clientList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->clients->getClientList( + limit: 10, + offset: 0 + +); + +if ($response->clientList !== null) { + // handle response } ``` @@ -50,8 +50,8 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | ### Response @@ -59,11 +59,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,410,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors | 400, 401, 410, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## verifyClient @@ -77,25 +76,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\VerifyClientRequestBody( - token: '', - ); - $response = $sdk->clients->verifyClient($request); - - if ($response->client !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\VerifyClientRequestBody(); + +$response = $sdk->clients->verifyClient( + request: $request +); + +if ($response->client !== null) { + // handle response } ``` @@ -111,11 +105,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors1 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getClient @@ -129,22 +122,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->clients->getClient(''); - if ($response->client !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->clients->getClient( + clientId: '' +); + +if ($response->client !== null) { + // handle response } ``` @@ -160,7 +150,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors2 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/domains/README.md b/docs/sdks/domains/README.md index ed2de8c..46c451a 100644 --- a/docs/sdks/domains/README.md +++ b/docs/sdks/domains/README.md @@ -1,4 +1,5 @@ # Domains +(*domains*) ## Overview @@ -24,21 +25,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->domains->listDomains(); - if ($response->domains !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->domains->listDomains( + +); + +if ($response->domains !== null) { + // handle response } ``` @@ -48,10 +47,9 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## addDomain @@ -69,27 +67,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\AddDomainRequestBody( - name: '', - isSatellite: false, - proxyUrl: '', - ); - $response = $sdk->domains->addDomain($request); - - if ($response->domain !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\AddDomainRequestBody( + name: '', + isSatellite: false, +); + +$response = $sdk->domains->addDomain( + request: $request +); + +if ($response->domain !== null) { + // handle response } ``` @@ -105,11 +99,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors46 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteDomain @@ -124,22 +117,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->domains->deleteDomain(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->domains->deleteDomain( + domainId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -155,11 +145,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors47 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateDomain @@ -180,26 +169,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateDomainRequestBody( - name: '', - proxyUrl: '', - ); - $response = $sdk->domains->updateDomain('', $requestBody); - - if ($response->domain !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateDomainRequestBody(); + +$response = $sdk->domains->updateDomain( + domainId: '', + requestBody: $requestBody + +); + +if ($response->domain !== null) { + // handle response } ``` @@ -216,7 +201,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors48 | 400, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/emailaddresses/README.md b/docs/sdks/emailaddresses/README.md index 7941a14..5f6e857 100644 --- a/docs/sdks/emailaddresses/README.md +++ b/docs/sdks/emailaddresses/README.md @@ -1,4 +1,5 @@ # EmailAddresses +(*emailAddresses*) ## Overview @@ -24,28 +25,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateEmailAddressRequestBody( - userId: '', - emailAddress: 'Hailee_Leuschke90@hotmail.com', - verified: false, - primary: false, - ); - $response = $sdk->emailAddresses->createEmailAddress($request); - - if ($response->emailAddress !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateEmailAddressRequestBody(); + +$response = $sdk->emailAddresses->createEmailAddress( + request: $request +); + +if ($response->emailAddress !== null) { + // handle response } ``` @@ -61,11 +54,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| Errors\ClerkErrors3 | 400, 401, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getEmailAddress @@ -79,22 +71,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->emailAddresses->getEmailAddress(''); - if ($response->emailAddress !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->emailAddresses->getEmailAddress( + emailAddressId: '' +); + +if ($response->emailAddress !== null) { + // handle response } ``` @@ -110,11 +99,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors4 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteEmailAddress @@ -128,22 +116,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->emailAddresses->deleteEmailAddress(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->emailAddresses->deleteEmailAddress( + emailAddressId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -159,11 +144,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors5 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateEmailAddress @@ -177,35 +161,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateEmailAddressRequestBody( - verified: false, - primary: false, - ); - $response = $sdk->emailAddresses->updateEmailAddress('', $requestBody); - - if ($response->emailAddress !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateEmailAddressRequestBody(); + +$response = $sdk->emailAddresses->updateEmailAddress( + emailAddressId: '', + requestBody: $requestBody + +); + +if ($response->emailAddress !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `emailAddressId` | *string* | :heavy_check_mark: | The ID of the email address to update | -| `requestBody` | [Operations\UpdateEmailAddressRequestBody](../../Models/Operations/UpdateEmailAddressRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `emailAddressId` | *string* | :heavy_check_mark: | The ID of the email address to update | +| `requestBody` | [?Operations\UpdateEmailAddressRequestBody](../../Models/Operations/UpdateEmailAddressRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -213,7 +193,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors6 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/emailandsmstemplates/README.md b/docs/sdks/emailandsmstemplates/README.md index 30ca45a..1263127 100644 --- a/docs/sdks/emailandsmstemplates/README.md +++ b/docs/sdks/emailandsmstemplates/README.md @@ -1,4 +1,5 @@ # EmailAndSMSTemplates +(*emailAndSMSTemplates*) ## Overview @@ -29,23 +30,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->emailAndSMSTemplates->getTemplateList(Operations\TemplateType::Sms); - if ($response->templateList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->emailAndSMSTemplates->getTemplateList( + templateType: Operations\TemplateType::Sms +); + +if ($response->templateList !== null) { + // handle response } ``` @@ -61,11 +59,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors16 | 400, 401, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~getTemplate~~ @@ -81,23 +78,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->emailAndSMSTemplates->getTemplate(Operations\PathParamTemplateType::Email, ''); - if ($response->template !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->emailAndSMSTemplates->getTemplate( + templateType: Operations\PathParamTemplateType::Email, + slug: '' + +); + +if ($response->template !== null) { + // handle response } ``` @@ -114,11 +110,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors17 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~upsertTemplate~~ @@ -134,31 +129,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpsertTemplateRequestBody( - name: '', - subject: '', - markup: '', - body: '', - deliveredByClerk: false, - fromEmailName: '', - replyToEmailName: '', - ); - $response = $sdk->emailAndSMSTemplates->upsertTemplate(Operations\UpsertTemplatePathParamTemplateType::Email, '', $requestBody); - - if ($response->template !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpsertTemplateRequestBody(); + +$response = $sdk->emailAndSMSTemplates->upsertTemplate( + templateType: Operations\UpsertTemplatePathParamTemplateType::Email, + slug: '', + requestBody: $requestBody + +); + +if ($response->template !== null) { + // handle response } ``` @@ -168,7 +155,7 @@ try { | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `templateType` | [Operations\UpsertTemplatePathParamTemplateType](../../Models/Operations/UpsertTemplatePathParamTemplateType.md) | :heavy_check_mark: | The type of template to update | | `slug` | *string* | :heavy_check_mark: | The slug of the template to update | -| `requestBody` | [Operations\UpsertTemplateRequestBody](../../Models/Operations/UpsertTemplateRequestBody.md) | :heavy_minus_sign: | N/A | +| `requestBody` | [?Operations\UpsertTemplateRequestBody](../../Models/Operations/UpsertTemplateRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -176,11 +163,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,402,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ---------------------------- | ---------------------------- | ---------------------------- | +| Errors\ClerkErrors18 | 400, 401, 402, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~revertTemplate~~ @@ -196,23 +182,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->emailAndSMSTemplates->revertTemplate(Operations\RevertTemplatePathParamTemplateType::Sms, ''); - if ($response->template !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->emailAndSMSTemplates->revertTemplate( + templateType: Operations\RevertTemplatePathParamTemplateType::Sms, + slug: '' + +); + +if ($response->template !== null) { + // handle response } ``` @@ -229,11 +214,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,402,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors19 | 400, 401, 402, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~previewTemplate~~ @@ -249,38 +233,33 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\PreviewTemplateRequestBody( - subject: '', - body: '', - fromEmailName: '', - replyToEmailName: '', - ); - $response = $sdk->emailAndSMSTemplates->previewTemplate('', '', $requestBody); - - if ($response->object !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\PreviewTemplateRequestBody(); + +$response = $sdk->emailAndSMSTemplates->previewTemplate( + templateType: '', + slug: '', + requestBody: $requestBody + +); + +if ($response->object !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `templateType` | *string* | :heavy_check_mark: | The type of template to preview | -| `slug` | *string* | :heavy_check_mark: | The slug of the template to preview | -| `requestBody` | [Operations\PreviewTemplateRequestBody](../../Models/Operations/PreviewTemplateRequestBody.md) | :heavy_minus_sign: | Required parameters | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `templateType` | *string* | :heavy_check_mark: | The type of template to preview | +| `slug` | *string* | :heavy_check_mark: | The slug of the template to preview | +| `requestBody` | [?Operations\PreviewTemplateRequestBody](../../Models/Operations/PreviewTemplateRequestBody.md) | :heavy_minus_sign: | Required parameters | ### Response @@ -288,11 +267,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors20 | 400, 401, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~toggleTemplateDelivery~~ @@ -310,25 +288,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\ToggleTemplateDeliveryRequestBody( - deliveredByClerk: false, - ); - $response = $sdk->emailAndSMSTemplates->toggleTemplateDelivery(Operations\ToggleTemplateDeliveryPathParamTemplateType::Sms, '', $requestBody); - - if ($response->template !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\ToggleTemplateDeliveryRequestBody(); + +$response = $sdk->emailAndSMSTemplates->toggleTemplateDelivery( + templateType: Operations\ToggleTemplateDeliveryPathParamTemplateType::Sms, + slug: '', + requestBody: $requestBody + +); + +if ($response->template !== null) { + // handle response } ``` @@ -338,7 +314,7 @@ try { | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | `templateType` | [Operations\ToggleTemplateDeliveryPathParamTemplateType](../../Models/Operations/ToggleTemplateDeliveryPathParamTemplateType.md) | :heavy_check_mark: | The type of template to toggle delivery for | | `slug` | *string* | :heavy_check_mark: | The slug of the template for which to toggle delivery | -| `requestBody` | [Operations\ToggleTemplateDeliveryRequestBody](../../Models/Operations/ToggleTemplateDeliveryRequestBody.md) | :heavy_minus_sign: | N/A | +| `requestBody` | [?Operations\ToggleTemplateDeliveryRequestBody](../../Models/Operations/ToggleTemplateDeliveryRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -346,7 +322,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors21 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/instancesettings/README.md b/docs/sdks/instancesettings/README.md index 9652f2b..384b755 100644 --- a/docs/sdks/instancesettings/README.md +++ b/docs/sdks/instancesettings/README.md @@ -1,4 +1,5 @@ # InstanceSettings +(*instanceSettings*) ## Overview @@ -22,35 +23,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateInstanceRequestBody( - testMode: false, - hibp: false, - enhancedEmailDeliverability: false, - supportEmail: '', - clerkJsVersion: '', - developmentOrigin: '', - allowedOrigins: [ - '', - ], - cookielessDev: false, - urlBasedSessionSyncing: false, - ); - $response = $sdk->instanceSettings->updateInstance($request); - - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\UpdateInstanceRequestBody(); + +$response = $sdk->instanceSettings->updateInstance( + request: $request +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -66,11 +52,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors49 | 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateInstanceRestrictions @@ -84,29 +69,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateInstanceRestrictionsRequestBody( - allowlist: false, - blocklist: false, - blockEmailSubaddresses: false, - blockDisposableEmailDomains: false, - ignoreDotsForGmailAddresses: false, - ); - $response = $sdk->instanceSettings->updateInstanceRestrictions($request); - - if ($response->instanceRestrictions !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\UpdateInstanceRestrictionsRequestBody(); + +$response = $sdk->instanceSettings->updateInstanceRestrictions( + request: $request +); + +if ($response->instanceRestrictions !== null) { + // handle response } ``` @@ -122,11 +98,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors49 | 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateInstanceOrganizationSettings @@ -140,33 +115,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\UpdateInstanceOrganizationSettingsRequestBody( - enabled: false, - maxAllowedMemberships: 238063, - adminDeleteEnabled: false, - domainsEnabled: false, - domainsEnrollmentModes: [ - '', - ], - creatorRoleId: '', - domainsDefaultRoleId: '', - ); - $response = $sdk->instanceSettings->updateInstanceOrganizationSettings($request); - - if ($response->organizationSettings !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\UpdateInstanceOrganizationSettingsRequestBody(); + +$response = $sdk->instanceSettings->updateInstanceOrganizationSettings( + request: $request +); + +if ($response->organizationSettings !== null) { + // handle response } ``` @@ -182,7 +144,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors51 | 402, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/invitations/README.md b/docs/sdks/invitations/README.md index 2c975d3..4b3e383 100644 --- a/docs/sdks/invitations/README.md +++ b/docs/sdks/invitations/README.md @@ -1,4 +1,5 @@ # Invitations +(*invitations*) ## Overview @@ -25,31 +26,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateInvitationRequestBody( - emailAddress: 'Green.Aufderhar@hotmail.com', - publicMetadata: new Operations\CreateInvitationPublicMetadata( - - ), - redirectUrl: '', - notify: false, - ignoreExisting: false, - ); - $response = $sdk->invitations->createInvitation($request); - - if ($response->invitation !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateInvitationRequestBody( + emailAddress: 'Al.Grady1@hotmail.com', +); + +$response = $sdk->invitations->createInvitation( + request: $request +); + +if ($response->invitation !== null) { + // handle response } ``` @@ -65,11 +57,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors34 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## listInvitations @@ -83,23 +74,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->invitations->listInvitations(5414.73, 4011.8, Operations\QueryParamStatus::Accepted); - if ($response->invitationList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->invitations->listInvitations( + limit: 10, + offset: 0, + status: Operations\QueryParamStatus::Accepted + +); + +if ($response->invitationList !== null) { + // handle response } ``` @@ -107,9 +98,9 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | -| `status` | [Operations\QueryParamStatus](../../Models/Operations/QueryParamStatus.md) | :heavy_minus_sign: | Filter invitations based on their status | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `status` | [?Operations\QueryParamStatus](../../Models/Operations/QueryParamStatus.md) | :heavy_minus_sign: | Filter invitations based on their status | ### Response @@ -117,10 +108,9 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## revokeInvitation @@ -137,22 +127,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->invitations->revokeInvitation(''); - if ($response->invitationRevoked !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->invitations->revokeInvitation( + invitationId: '' +); + +if ($response->invitationRevoked !== null) { + // handle response } ``` @@ -168,7 +155,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors35 | 400, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/jwks/README.md b/docs/sdks/jwks/README.md index 2ed0e33..851eefe 100644 --- a/docs/sdks/jwks/README.md +++ b/docs/sdks/jwks/README.md @@ -1,4 +1,5 @@ # Jwks +(*jwks*) ## Overview @@ -20,21 +21,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->jwks->getJWKS(); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->jwks->getJWKS( + +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -44,6 +43,6 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/jwttemplates/README.md b/docs/sdks/jwttemplates/README.md index 73c8ea1..c9dfd52 100644 --- a/docs/sdks/jwttemplates/README.md +++ b/docs/sdks/jwttemplates/README.md @@ -1,4 +1,5 @@ # JWTTemplates +(*jwtTemplates*) ## Overview @@ -27,21 +28,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->jwtTemplates->listJWTTemplates(); - if ($response->jwtTemplateList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->jwtTemplates->listJWTTemplates( + +); + +if ($response->jwtTemplateList !== null) { + // handle response } ``` @@ -51,10 +50,9 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createJWTTemplate @@ -68,33 +66,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateJWTTemplateRequestBody( - name: '', - claims: new Operations\Claims( - - ), - lifetime: 6361.96, - allowedClockSkew: 8500.88, - customSigningKey: false, - signingAlgorithm: '', - signingKey: '', - ); - $response = $sdk->jwtTemplates->createJWTTemplate($request); - - if ($response->jwtTemplate !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateJWTTemplateRequestBody(); + +$response = $sdk->jwtTemplates->createJWTTemplate( + request: $request +); + +if ($response->jwtTemplate !== null) { + // handle response } ``` @@ -110,11 +95,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors53 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getJWTTemplate @@ -128,22 +112,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->jwtTemplates->getJWTTemplate(''); - if ($response->jwtTemplate !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->jwtTemplates->getJWTTemplate( + templateId: '' +); + +if ($response->jwtTemplate !== null) { + // handle response } ``` @@ -159,11 +140,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors54 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateJWTTemplate @@ -177,42 +157,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateJWTTemplateRequestBody( - name: '', - claims: new Operations\UpdateJWTTemplateClaims( - - ), - lifetime: 5704.19, - allowedClockSkew: 1506.03, - customSigningKey: false, - signingAlgorithm: '', - signingKey: '', - ); - $response = $sdk->jwtTemplates->updateJWTTemplate('', $requestBody); - - if ($response->jwtTemplate !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateJWTTemplateRequestBody(); + +$response = $sdk->jwtTemplates->updateJWTTemplate( + templateId: '', + requestBody: $requestBody + +); + +if ($response->jwtTemplate !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `templateId` | *string* | :heavy_check_mark: | The ID of the JWT template to update | -| `requestBody` | [Operations\UpdateJWTTemplateRequestBody](../../Models/Operations/UpdateJWTTemplateRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `templateId` | *string* | :heavy_check_mark: | The ID of the JWT template to update | +| `requestBody` | [?Operations\UpdateJWTTemplateRequestBody](../../Models/Operations/UpdateJWTTemplateRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -220,11 +189,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,402,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors55 | 400, 402, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteJWTTemplate @@ -238,22 +206,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->jwtTemplates->deleteJWTTemplate(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->jwtTemplates->deleteJWTTemplate( + templateId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -269,7 +234,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors56 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/miscellaneous/README.md b/docs/sdks/miscellaneous/README.md index 88d0517..4267e13 100644 --- a/docs/sdks/miscellaneous/README.md +++ b/docs/sdks/miscellaneous/README.md @@ -1,4 +1,5 @@ # Miscellaneous +(*miscellaneous*) ## Overview @@ -24,15 +25,16 @@ use Clerk\Backend; $sdk = Backend\ClerkBackend::builder()->build(); -try { - $response = $sdk->miscellaneous->getPublicInterstitial('', ''); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->miscellaneous->getPublicInterstitial( + frontendApi: '', + publishableKey: '' + +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -40,8 +42,8 @@ try { | Parameter | Type | Required | Description | | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `frontendApi` | *string* | :heavy_minus_sign: | The Frontend API key of your instance | -| `publishableKey` | *string* | :heavy_minus_sign: | The publishable key of your instance | +| `frontendApi` | *?string* | :heavy_minus_sign: | The Frontend API key of your instance | +| `publishableKey` | *?string* | :heavy_minus_sign: | The publishable key of your instance | ### Response @@ -49,6 +51,6 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/oauthapplications/README.md b/docs/sdks/oauthapplications/README.md index 2ccf66d..2b6c1cb 100644 --- a/docs/sdks/oauthapplications/README.md +++ b/docs/sdks/oauthapplications/README.md @@ -1,4 +1,5 @@ # OAuthApplications +(*oAuthApplications*) ## Overview @@ -28,22 +29,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->oAuthApplications->listOAuthApplications(8554.92, 4821.55); - if ($response->oAuthApplications !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->oAuthApplications->listOAuthApplications( + limit: 10, + offset: 0 + +); + +if ($response->oAuthApplications !== null) { + // handle response } ``` @@ -51,8 +51,8 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | ### Response @@ -60,11 +60,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors79 | 400, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createOAuthApplication @@ -80,28 +79,24 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateOAuthApplicationRequestBody( - name: '', - callbackUrl: '', - scopes: 'profile email public_metadata', - public: false, - ); - $response = $sdk->oAuthApplications->createOAuthApplication($request); - - if ($response->oAuthApplicationWithSecret !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateOAuthApplicationRequestBody( + name: '', + callbackUrl: 'https://silent-hyena.name', + scopes: 'profile email public_metadata', +); + +$response = $sdk->oAuthApplications->createOAuthApplication( + request: $request +); + +if ($response->oAuthApplicationWithSecret !== null) { + // handle response } ``` @@ -117,11 +112,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors80 | 400, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getOAuthApplication @@ -135,22 +129,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->oAuthApplications->getOAuthApplication(''); - if ($response->oAuthApplication !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->oAuthApplications->getOAuthApplication( + oauthApplicationId: '' +); + +if ($response->oAuthApplication !== null) { + // handle response } ``` @@ -166,11 +157,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors81 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateOAuthApplication @@ -184,27 +174,24 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateOAuthApplicationRequestBody( - name: '', - callbackUrl: '', - scopes: 'profile email public_metadata private_metadata', - ); - $response = $sdk->oAuthApplications->updateOAuthApplication('', $requestBody); - - if ($response->oAuthApplication !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateOAuthApplicationRequestBody( + scopes: 'profile email public_metadata private_metadata', +); + +$response = $sdk->oAuthApplications->updateOAuthApplication( + oauthApplicationId: '', + requestBody: $requestBody + +); + +if ($response->oAuthApplication !== null) { + // handle response } ``` @@ -221,11 +208,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors82 | 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteOAuthApplication @@ -240,22 +226,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->oAuthApplications->deleteOAuthApplication(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->oAuthApplications->deleteOAuthApplication( + oauthApplicationId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -271,11 +254,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors83 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## rotateOAuthApplicationSecret @@ -290,22 +272,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->oAuthApplications->rotateOAuthApplicationSecret(''); - if ($response->oAuthApplicationWithSecret !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->oAuthApplications->rotateOAuthApplicationSecret( + oauthApplicationId: '' +); + +if ($response->oAuthApplicationWithSecret !== null) { + // handle response } ``` @@ -321,7 +300,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors84 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizationinvitations/README.md b/docs/sdks/organizationinvitations/README.md index e4d8dbe..6884694 100644 --- a/docs/sdks/organizationinvitations/README.md +++ b/docs/sdks/organizationinvitations/README.md @@ -1,4 +1,5 @@ # OrganizationInvitations +(*organizationInvitations*) ## Overview @@ -41,34 +42,26 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\CreateOrganizationInvitationRequestBody( - emailAddress: 'Palma.Kulas@hotmail.com', - inviterUserId: '', - role: '', - publicMetadata: new Operations\CreateOrganizationInvitationPublicMetadata( +$requestBody = new Operations\CreateOrganizationInvitationRequestBody( + emailAddress: 'Jensen_Ankunding@hotmail.com', + inviterUserId: '', + role: '', +); - ), - privateMetadata: new Operations\CreateOrganizationInvitationPrivateMetadata( +$response = $sdk->organizationInvitations->createOrganizationInvitation( + organizationId: '', + requestBody: $requestBody - ), - redirectUrl: '', - ); - $response = $sdk->organizationInvitations->createOrganizationInvitation('', $requestBody); - - if ($response->organizationInvitation !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +); + +if ($response->organizationInvitation !== null) { + // handle response } ``` @@ -85,11 +78,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors63 | 400, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## listOrganizationInvitations @@ -108,23 +100,24 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationInvitations->listOrganizationInvitations('', 6429.18, 2744.7, Operations\ListOrganizationInvitationsQueryParamStatus::Pending); - if ($response->organizationInvitations !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationInvitations->listOrganizationInvitations( + organizationId: '', + limit: 10, + offset: 0, + status: Operations\ListOrganizationInvitationsQueryParamStatus::Accepted + +); + +if ($response->organizationInvitations !== null) { + // handle response } ``` @@ -133,9 +126,9 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `organizationId` | *string* | :heavy_check_mark: | The organization ID. | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | -| `status` | [Operations\ListOrganizationInvitationsQueryParamStatus](../../Models/Operations/ListOrganizationInvitationsQueryParamStatus.md) | :heavy_minus_sign: | Filter organization invitations based on their status | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `status` | [?Operations\ListOrganizationInvitationsQueryParamStatus](../../Models/Operations/ListOrganizationInvitationsQueryParamStatus.md) | :heavy_minus_sign: | Filter organization invitations based on their status | ### Response @@ -143,11 +136,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors64 | 400, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createOrganizationInvitationBulk @@ -173,25 +165,28 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationInvitations->createOrganizationInvitationBulk('', [ - new Operations\RequestBody, - ]); - if ($response->organizationInvitations !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationInvitations->createOrganizationInvitationBulk( + organizationId: '', + requestBody: [ + new Operations\RequestBody( + emailAddress: 'Murray_Roberts@gmail.com', + inviterUserId: '', + role: '', + ), + ] + +); + +if ($response->organizationInvitations !== null) { + // handle response } ``` @@ -208,11 +203,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors65 | 400, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~listPendingOrganizationInvitations~~ @@ -233,22 +227,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationInvitations->listPendingOrganizationInvitations('', 9194.42, 4938.23); - if ($response->organizationInvitations !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationInvitations->listPendingOrganizationInvitations( + organizationId: '', + limit: 10, + offset: 0 + +); + +if ($response->organizationInvitations !== null) { + // handle response } ``` @@ -257,8 +251,8 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `organizationId` | *string* | :heavy_check_mark: | The organization ID. | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | ### Response @@ -266,11 +260,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors66 | 400, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getOrganizationInvitation @@ -284,22 +277,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationInvitations->getOrganizationInvitation('', ''); - if ($response->organizationInvitation !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationInvitations->getOrganizationInvitation( + organizationId: '', + invitationId: '' + +); + +if ($response->organizationInvitation !== null) { + // handle response } ``` @@ -316,11 +308,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors67 | 400, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## revokeOrganizationInvitation @@ -338,25 +329,25 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\RevokeOrganizationInvitationRequestBody( - requestingUserId: '', - ); - $response = $sdk->organizationInvitations->revokeOrganizationInvitation('', '', $requestBody); - - if ($response->organizationInvitation !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\RevokeOrganizationInvitationRequestBody( + requestingUserId: '', +); + +$response = $sdk->organizationInvitations->revokeOrganizationInvitation( + organizationId: '', + invitationId: '', + requestBody: $requestBody + +); + +if ($response->organizationInvitation !== null) { + // handle response } ``` @@ -374,7 +365,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors68 | 400, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizationmemberships/README.md b/docs/sdks/organizationmemberships/README.md index 795225b..e319531 100644 --- a/docs/sdks/organizationmemberships/README.md +++ b/docs/sdks/organizationmemberships/README.md @@ -1,4 +1,5 @@ # OrganizationMemberships +(*organizationMemberships*) ## Overview @@ -26,26 +27,25 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\CreateOrganizationMembershipRequestBody( - userId: '', - role: '', - ); - $response = $sdk->organizationMemberships->createOrganizationMembership('', $requestBody); - - if ($response->organizationMembership !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\CreateOrganizationMembershipRequestBody( + userId: '', + role: '', +); + +$response = $sdk->organizationMemberships->createOrganizationMembership( + organizationId: '', + requestBody: $requestBody + +); + +if ($response->organizationMembership !== null) { + // handle response } ``` @@ -62,11 +62,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors69 | 400, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## listOrganizationMemberships @@ -80,22 +79,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationMemberships->listOrganizationMemberships('', 4957.25, 5573.93, ''); - if ($response->organizationMemberships !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationMemberships->listOrganizationMemberships( + organizationId: '', + limit: 10, + offset: 0, + orderBy: '' + +); + +if ($response->organizationMemberships !== null) { + // handle response } ``` @@ -104,9 +104,9 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `organizationId` | *string* | :heavy_check_mark: | The organization ID. | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | -| `orderBy` | *string* | :heavy_minus_sign: | Sorts organizations memberships by phone_number, email_address, created_at, first_name, last_name or username.
By prepending one of those values with + or -,
we can choose to sort in ascending (ASC) or descending (DESC) order." | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `orderBy` | *?string* | :heavy_minus_sign: | Sorts organizations memberships by phone_number, email_address, created_at, first_name, last_name or username.
By prepending one of those values with + or -,
we can choose to sort in ascending (ASC) or descending (DESC) order." | ### Response @@ -114,11 +114,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 401,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors70 | 401, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateOrganizationMembership @@ -132,25 +131,25 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateOrganizationMembershipRequestBody( - role: '', - ); - $response = $sdk->organizationMemberships->updateOrganizationMembership('', '', $requestBody); - - if ($response->organizationMembership !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateOrganizationMembershipRequestBody( + role: '', +); + +$response = $sdk->organizationMemberships->updateOrganizationMembership( + organizationId: '', + userId: '', + requestBody: $requestBody + +); + +if ($response->organizationMembership !== null) { + // handle response } ``` @@ -168,11 +167,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors71 | 400, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteOrganizationMembership @@ -186,22 +184,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizationMemberships->deleteOrganizationMembership('', ''); - if ($response->organizationMembership !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizationMemberships->deleteOrganizationMembership( + organizationId: '', + userId: '' + +); + +if ($response->organizationMembership !== null) { + // handle response } ``` @@ -218,11 +215,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors72 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateOrganizationMembershipMetadata @@ -238,30 +234,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateOrganizationMembershipMetadataRequestBody( - publicMetadata: new Operations\UpdateOrganizationMembershipMetadataPublicMetadata( +$requestBody = new Operations\UpdateOrganizationMembershipMetadataRequestBody(); - ), - privateMetadata: new Operations\UpdateOrganizationMembershipMetadataPrivateMetadata( +$response = $sdk->organizationMemberships->updateOrganizationMembershipMetadata( + organizationId: '', + userId: '', + requestBody: $requestBody - ), - ); - $response = $sdk->organizationMemberships->updateOrganizationMembershipMetadata('', '', $requestBody); +); - if ($response->organizationMembership !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +if ($response->organizationMembership !== null) { + // handle response } ``` @@ -279,7 +268,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors73 | 400, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 2fbb835..3d4d017 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -1,4 +1,5 @@ # Organizations +(*organizations*) ## Overview @@ -31,29 +32,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\ListOrganizationsRequest( - limit: 7112.49, - offset: 5895.54, - includeMembersCount: false, - query: '', - orderBy: '', - ); - $response = $sdk->organizations->listOrganizations($request); - - if ($response->organizations !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\ListOrganizationsRequest(); + +$response = $sdk->organizations->listOrganizations( + request: $request +); + +if ($response->organizations !== null) { + // handle response } ``` @@ -69,11 +61,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors57 | 400, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createOrganization @@ -95,34 +86,23 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateOrganizationRequestBody( - name: '', - createdBy: '', - privateMetadata: new Operations\CreateOrganizationPrivateMetadata( - - ), - publicMetadata: new Operations\CreateOrganizationPublicMetadata( - - ), - slug: '', - maxAllowedMemberships: 57077, - ); - $response = $sdk->organizations->createOrganization($request); - - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateOrganizationRequestBody( + name: '', + createdBy: '', +); + +$response = $sdk->organizations->createOrganization( + request: $request +); + +if ($response->organization !== null) { + // handle response } ``` @@ -138,11 +118,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors58 | 400, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getOrganization @@ -156,22 +135,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizations->getOrganization(''); - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizations->getOrganization( + organizationId: '' +); + +if ($response->organization !== null) { + // handle response } ``` @@ -187,11 +163,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors59 | 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateOrganization @@ -205,34 +180,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateOrganizationRequestBody( - publicMetadata: new Operations\UpdateOrganizationPublicMetadata( - - ), - privateMetadata: new Operations\UpdateOrganizationPrivateMetadata( - - ), - name: '', - slug: '', - maxAllowedMemberships: 524231, - adminDeleteEnabled: false, - ); - $response = $sdk->organizations->updateOrganization('', $requestBody); - - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateOrganizationRequestBody(); + +$response = $sdk->organizations->updateOrganization( + organizationId: '', + requestBody: $requestBody + +); + +if ($response->organization !== null) { + // handle response } ``` @@ -249,11 +212,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors60 | 402, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteOrganization @@ -269,22 +231,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizations->deleteOrganization(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizations->deleteOrganization( + organizationId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -300,11 +259,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors61 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## mergeOrganizationMetadata @@ -321,30 +279,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\MergeOrganizationMetadataRequestBody( - publicMetadata: new Operations\MergeOrganizationMetadataPublicMetadata( +$requestBody = new Operations\MergeOrganizationMetadataRequestBody(); - ), - privateMetadata: new Operations\MergeOrganizationMetadataPrivateMetadata( +$response = $sdk->organizations->mergeOrganizationMetadata( + organizationId: '', + requestBody: $requestBody - ), - ); - $response = $sdk->organizations->mergeOrganizationMetadata('', $requestBody); +); - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +if ($response->organization !== null) { + // handle response } ``` @@ -361,11 +311,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors61 | 400, 401, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## uploadOrganizationLogo @@ -382,38 +331,37 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UploadOrganizationLogoRequestBody( - uploaderUserId: '', - file: new Operations\UploadOrganizationLogoFile( - fileName: 'your_file_here', - content: '0xda979adced', - ), - ); - $response = $sdk->organizations->uploadOrganizationLogo('', $requestBody); - - if ($response->organizationWithLogo !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UploadOrganizationLogoRequestBody( + uploaderUserId: '', + file: new Operations\UploadOrganizationLogoFile( + fileName: 'example.file', + content: '0xd99deAb77d', + ), +); + +$response = $sdk->organizations->uploadOrganizationLogo( + organizationId: '', + requestBody: $requestBody + +); + +if ($response->organizationWithLogo !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization for which to upload a logo | -| `requestBody` | [Operations\UploadOrganizationLogoRequestBody](../../Models/Operations/UploadOrganizationLogoRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization for which to upload a logo | +| `requestBody` | [?Operations\UploadOrganizationLogoRequestBody](../../Models/Operations/UploadOrganizationLogoRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -421,11 +369,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,403,404,413 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors62 | 400, 403, 404, 413 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteOrganizationLogo @@ -439,22 +386,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->organizations->deleteOrganizationLogo(''); - if ($response->organization !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->organizations->deleteOrganizationLogo( + organizationId: '' +); + +if ($response->organization !== null) { + // handle response } ``` @@ -470,7 +414,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors63 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index 8c7d287..33fca27 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -1,4 +1,5 @@ # PhoneNumbers +(*phoneNumbers*) ## Overview @@ -24,29 +25,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreatePhoneNumberRequestBody( - userId: '', - phoneNumber: '', - verified: false, - primary: false, - reservedForSecondFactor: false, - ); - $response = $sdk->phoneNumbers->createPhoneNumber($request); - - if ($response->phoneNumber !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreatePhoneNumberRequestBody(); + +$response = $sdk->phoneNumbers->createPhoneNumber( + request: $request +); + +if ($response->phoneNumber !== null) { + // handle response } ``` @@ -62,11 +54,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ----------------------- | ----------------------- | ----------------------- | +| Errors\ClerkErrors7 | 400, 401, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getPhoneNumber @@ -80,22 +71,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->phoneNumbers->getPhoneNumber(''); - if ($response->phoneNumber !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->phoneNumbers->getPhoneNumber( + phoneNumberId: '' +); + +if ($response->phoneNumber !== null) { + // handle response } ``` @@ -111,11 +99,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors8 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deletePhoneNumber @@ -129,22 +116,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->phoneNumbers->deletePhoneNumber(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->phoneNumbers->deletePhoneNumber( + phoneNumberId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -160,11 +144,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\ClerkErrors9 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updatePhoneNumber @@ -178,36 +161,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdatePhoneNumberRequestBody( - verified: false, - primary: false, - reservedForSecondFactor: false, - ); - $response = $sdk->phoneNumbers->updatePhoneNumber('', $requestBody); - - if ($response->phoneNumber !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdatePhoneNumberRequestBody(); + +$response = $sdk->phoneNumbers->updatePhoneNumber( + phoneNumberId: '', + requestBody: $requestBody + +); + +if ($response->phoneNumber !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `phoneNumberId` | *string* | :heavy_check_mark: | The ID of the phone number to update | -| `requestBody` | [Operations\UpdatePhoneNumberRequestBody](../../Models/Operations/UpdatePhoneNumberRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `phoneNumberId` | *string* | :heavy_check_mark: | The ID of the phone number to update | +| `requestBody` | [?Operations\UpdatePhoneNumberRequestBody](../../Models/Operations/UpdatePhoneNumberRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -215,7 +193,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors10 | 400, 401, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/proxychecks/README.md b/docs/sdks/proxychecks/README.md index be3d776..54c8dec 100644 --- a/docs/sdks/proxychecks/README.md +++ b/docs/sdks/proxychecks/README.md @@ -1,4 +1,5 @@ # ProxyChecks +(*proxyChecks*) ## Overview @@ -25,26 +26,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\VerifyDomainProxyRequestBody( - domainId: '', - proxyUrl: '', - ); - $response = $sdk->proxyChecks->verifyDomainProxy($request); - - if ($response->proxyCheck !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\VerifyDomainProxyRequestBody(); + +$response = $sdk->proxyChecks->verifyDomainProxy( + request: $request +); + +if ($response->proxyCheck !== null) { + // handle response } ``` @@ -60,7 +55,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors74 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/redirecturls/README.md b/docs/sdks/redirecturls/README.md index 7e65583..c87f72e 100644 --- a/docs/sdks/redirecturls/README.md +++ b/docs/sdks/redirecturls/README.md @@ -1,4 +1,5 @@ # RedirectURLs +(*redirectURLs*) ## Overview @@ -24,21 +25,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->redirectURLs->listRedirectURLs(); - if ($response->redirectURLList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->redirectURLs->listRedirectURLs( + +); + +if ($response->redirectURLList !== null) { + // handle response } ``` @@ -48,10 +47,9 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createRedirectURL @@ -65,25 +63,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateRedirectURLRequestBody( - url: 'https://physical-airbus.name', - ); - $response = $sdk->redirectURLs->createRedirectURL($request); - - if ($response->redirectURL !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateRedirectURLRequestBody(); + +$response = $sdk->redirectURLs->createRedirectURL( + request: $request +); + +if ($response->redirectURL !== null) { + // handle response } ``` @@ -99,11 +92,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors75 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getRedirectURL @@ -117,22 +109,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->redirectURLs->getRedirectURL(''); - if ($response->redirectURL !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->redirectURLs->getRedirectURL( + id: '' +); + +if ($response->redirectURL !== null) { + // handle response } ``` @@ -148,11 +137,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors76 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteRedirectURL @@ -166,22 +154,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->redirectURLs->deleteRedirectURL(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->redirectURLs->deleteRedirectURL( + id: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -197,7 +182,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors77 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/samlconnections/README.md b/docs/sdks/samlconnections/README.md index f669a92..851d284 100644 --- a/docs/sdks/samlconnections/README.md +++ b/docs/sdks/samlconnections/README.md @@ -1,4 +1,5 @@ # SAMLConnections +(*samlConnections*) ## Overview @@ -27,22 +28,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->samlConnections->listSAMLConnections(7432.91, 2980.65); - if ($response->samlConnections !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->samlConnections->listSAMLConnections( + limit: 10, + offset: 0 + +); + +if ($response->samlConnections !== null) { + // handle response } ``` @@ -50,8 +50,8 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | ### Response @@ -59,11 +59,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors85 | 402, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createSAMLConnection @@ -77,38 +76,24 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateSAMLConnectionRequestBody( - name: '', - domain: 'sticky-consulting.name', - provider: Operations\Provider::SamlGoogle, - idpEntityId: '', - idpSsoUrl: '', - idpCertificate: '', - idpMetadataUrl: '', - idpMetadata: '', - attributeMapping: new Operations\AttributeMapping( - userId: '', - emailAddress: 'Ally18@yahoo.com', - firstName: 'Kailyn', - lastName: 'Schuppe', - ), - ); - $response = $sdk->samlConnections->createSAMLConnection($request); - - if ($response->samlConnection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateSAMLConnectionRequestBody( + name: '', + domain: 'stingy-necklace.name', + provider: Operations\Provider::SamlGoogle, +); + +$response = $sdk->samlConnections->createSAMLConnection( + request: $request +); + +if ($response->samlConnection !== null) { + // handle response } ``` @@ -124,11 +109,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors86 | 402, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getSAMLConnection @@ -142,22 +126,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->samlConnections->getSAMLConnection(''); - if ($response->samlConnection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->samlConnections->getSAMLConnection( + samlConnectionId: '' +); + +if ($response->samlConnection !== null) { + // handle response } ``` @@ -173,11 +154,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors87 | 402, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateSAMLConnection @@ -191,41 +171,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateSAMLConnectionRequestBody( - name: '', - domain: 'best-latter.com', - idpEntityId: '', - idpSsoUrl: '', - idpCertificate: '', - idpMetadataUrl: '', - idpMetadata: '', - attributeMapping: new Operations\UpdateSAMLConnectionAttributeMapping( - userId: '', - emailAddress: 'Demarcus_Ward@hotmail.com', - firstName: 'Cordell', - lastName: 'Fay', - ), - active: false, - syncUserAttributes: false, - allowSubdomains: false, - allowIdpInitiated: false, - ); - $response = $sdk->samlConnections->updateSAMLConnection('', $requestBody); - - if ($response->samlConnection !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateSAMLConnectionRequestBody(); + +$response = $sdk->samlConnections->updateSAMLConnection( + samlConnectionId: '', + requestBody: $requestBody + +); + +if ($response->samlConnection !== null) { + // handle response } ``` @@ -242,11 +203,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,403,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors88 | 402, 403, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteSAMLConnection @@ -260,22 +220,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->samlConnections->deleteSAMLConnection(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->samlConnections->deleteSAMLConnection( + samlConnectionId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -291,7 +248,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402,403,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors89 | 402, 403, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 7113b6c..b6ccc6b 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -1,4 +1,5 @@ # Sessions +(*sessions*) ## Overview @@ -30,29 +31,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetSessionListRequest( - clientId: '', - userId: '', - status: Operations\Status::Removed, - limit: 1172.96, - offset: 1903.38, - ); - $response = $sdk->sessions->getSessionList($request); - - if ($response->sessionList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\GetSessionListRequest(); + +$response = $sdk->sessions->getSessionList( + request: $request +); + +if ($response->sessionList !== null) { + // handle response } ``` @@ -68,11 +60,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors11 | 400, 401, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getSession @@ -86,22 +77,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->sessions->getSession(''); - if ($response->session !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->sessions->getSession( + sessionId: '' +); + +if ($response->session !== null) { + // handle response } ``` @@ -117,11 +105,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors12 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## revokeSession @@ -136,22 +123,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->sessions->revokeSession(''); - if ($response->session !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->sessions->revokeSession( + sessionId: '' +); + +if ($response->session !== null) { + // handle response } ``` @@ -167,11 +151,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors13 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## ~~verifySession~~ @@ -190,34 +173,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\VerifySessionRequestBody( - token: '', - ); - $response = $sdk->sessions->verifySession('', $requestBody); - - if ($response->session !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\VerifySessionRequestBody(); + +$response = $sdk->sessions->verifySession( + sessionId: '', + requestBody: $requestBody + +); + +if ($response->session !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `sessionId` | *string* | :heavy_check_mark: | The ID of the session | -| `requestBody` | [Operations\VerifySessionRequestBody](../../Models/Operations/VerifySessionRequestBody.md) | :heavy_minus_sign: | Parameters. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `sessionId` | *string* | :heavy_check_mark: | The ID of the session | +| `requestBody` | [?Operations\VerifySessionRequestBody](../../Models/Operations/VerifySessionRequestBody.md) | :heavy_minus_sign: | Parameters. | ### Response @@ -225,11 +205,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404,410 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors14 | 400, 401, 404, 410 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createSessionTokenFromTemplate @@ -243,22 +222,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->sessions->createSessionTokenFromTemplate('', ''); - if ($response->object !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->sessions->createSessionTokenFromTemplate( + sessionId: '', + templateName: '' + +); + +if ($response->object !== null) { + // handle response } ``` @@ -275,7 +253,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors15 | 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/signintokens/README.md b/docs/sdks/signintokens/README.md index c17b186..7d37950 100644 --- a/docs/sdks/signintokens/README.md +++ b/docs/sdks/signintokens/README.md @@ -1,4 +1,5 @@ # SignInTokens +(*signInTokens*) ## Overview @@ -24,26 +25,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateSignInTokenRequestBody( - userId: '', - expiresInSeconds: 333727, - ); - $response = $sdk->signInTokens->createSignInToken($request); - - if ($response->signInToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateSignInTokenRequestBody(); + +$response = $sdk->signInTokens->createSignInToken( + request: $request +); + +if ($response->signInToken !== null) { + // handle response } ``` @@ -59,11 +54,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors77 | 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## revokeSignInToken @@ -77,22 +71,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->signInTokens->revokeSignInToken(''); - if ($response->signInToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->signInTokens->revokeSignInToken( + signInTokenId: '' +); + +if ($response->signInToken !== null) { + // handle response } ``` @@ -108,7 +99,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors78 | 400, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/signups/README.md b/docs/sdks/signups/README.md index ca6092a..4acded7 100644 --- a/docs/sdks/signups/README.md +++ b/docs/sdks/signups/README.md @@ -1,4 +1,5 @@ # SignUps +(*signUps*) ## Overview @@ -18,35 +19,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateSignUpRequestBody( - customAction: false, - externalId: '', - ); - $response = $sdk->signUps->updateSignUp('', $requestBody); - - if ($response->signUp !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateSignUpRequestBody(); + +$response = $sdk->signUps->updateSignUp( + id: '', + requestBody: $requestBody + +); + +if ($response->signUp !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `id` | *string* | :heavy_check_mark: | The ID of the sign-up to update | -| `requestBody` | [Operations\UpdateSignUpRequestBody](../../Models/Operations/UpdateSignUpRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `id` | *string* | :heavy_check_mark: | The ID of the sign-up to update | +| `requestBody` | [?Operations\UpdateSignUpRequestBody](../../Models/Operations/UpdateSignUpRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -54,7 +51,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors79 | 403 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/testingtokens/README.md b/docs/sdks/testingtokens/README.md index fa15b02..63ee256 100644 --- a/docs/sdks/testingtokens/README.md +++ b/docs/sdks/testingtokens/README.md @@ -1,4 +1,5 @@ # TestingTokens +(*testingTokens*) ## Overview @@ -21,21 +22,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->testingTokens->createTestingToken(); - if ($response->testingToken !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->testingTokens->createTestingToken( + +); + +if ($response->testingToken !== null) { + // handle response } ``` @@ -45,6 +44,6 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 4774285..7fc70a9 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1,4 +1,5 @@ # Users +(*users*) ## Overview @@ -39,50 +40,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetUserListRequest( - emailAddress: [ - '', - ], - phoneNumber: [ - '', - ], - externalId: [ - '', - ], - username: [ - '', - ], - web3Wallet: [ - '', - ], - userId: [ - '', - ], - organizationId: [ - '', - ], - query: '', - lastActiveAtSince: 1700690400000, - limit: 2951.7, - offset: 6512.27, - orderBy: '', - ); - $response = $sdk->users->getUserList($request); - - if ($response->userList !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\GetUserListRequest( + lastActiveAtSince: 1700690400000, +); + +$response = $sdk->users->getUserList( + request: $request +); + +if ($response->userList !== null) { + // handle response } ``` @@ -98,11 +71,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors22 | 400, 401, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## createUser @@ -122,56 +94,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\CreateUserRequestBody( - externalId: '', - firstName: 'Grayce', - lastName: 'Simonis', - emailAddress: [ - '', - ], - phoneNumber: [ - '', - ], - web3Wallet: [ - '', - ], - username: 'Jazmyn_Simonis', - password: 'tcG6vjwZ0JJFZd3', - passwordDigest: '', - passwordHasher: Operations\PasswordHasher::Pbkdf2Sha512, - skipPasswordChecks: false, - skipPasswordRequirement: false, - totpSecret: '', - backupCodes: [ - '', - ], - publicMetadata: new Operations\PublicMetadata( - - ), - privateMetadata: new Operations\PrivateMetadata( - - ), - unsafeMetadata: new Operations\UnsafeMetadata( - - ), - createdAt: '', - ); - $response = $sdk->users->createUser($request); - - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\CreateUserRequestBody(); + +$response = $sdk->users->createUser( + request: $request +); + +if ($response->user !== null) { + // handle response } ``` @@ -187,11 +123,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,403,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors23 | 400, 401, 403, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getUsersCount @@ -205,43 +140,20 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $request = new Operations\GetUsersCountRequest( - emailAddress: [ - '', - ], - phoneNumber: [ - '', - ], - externalId: [ - '', - ], - username: [ - '', - ], - web3Wallet: [ - '', - ], - userId: [ - '', - ], - query: '', - ); - $response = $sdk->users->getUsersCount($request); - - if ($response->totalCount !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$request = new Operations\GetUsersCountRequest(); + +$response = $sdk->users->getUsersCount( + request: $request +); + +if ($response->totalCount !== null) { + // handle response } ``` @@ -257,11 +169,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors24 | 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getUser @@ -275,22 +186,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->getUser(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->getUser( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -306,11 +214,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors25 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateUser @@ -335,54 +242,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateUserRequestBody( - externalId: '', - firstName: 'Geovanny', - lastName: 'O\'Kon', - primaryEmailAddressId: '', - notifyPrimaryEmailAddressChanged: false, - primaryPhoneNumberId: '', - primaryWeb3WalletId: '', - username: 'Grant.Schmeler', - profileImageId: '', - password: 'gAw_7A9pbvu1hDx', - passwordDigest: '', - passwordHasher: Operations\UpdateUserPasswordHasher::Pbkdf2Sha1, - skipPasswordChecks: false, - signOutOfOtherSessions: false, - totpSecret: '', - backupCodes: [ - '', - ], - publicMetadata: new Operations\UpdateUserPublicMetadata( - - ), - privateMetadata: new Operations\UpdateUserPrivateMetadata( - - ), - unsafeMetadata: new Operations\UpdateUserUnsafeMetadata( - - ), - deleteSelfEnabled: false, - createOrganizationEnabled: false, - createdAt: '', - ); - $response = $sdk->users->updateUser('', $requestBody); - - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateUserRequestBody(); + +$response = $sdk->users->updateUser( + userId: '', + requestBody: $requestBody + +); + +if ($response->user !== null) { + // handle response } ``` @@ -399,11 +274,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors26 | 400, 401, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteUser @@ -417,22 +291,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->deleteUser(''); - if ($response->deletedObject !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->deleteUser( + userId: '' +); + +if ($response->deletedObject !== null) { + // handle response } ``` @@ -448,11 +319,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors27 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## banUser @@ -466,22 +336,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->banUser(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->banUser( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -497,11 +364,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors28 | 402 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## unbanUser @@ -515,22 +381,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->unbanUser(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->unbanUser( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -546,11 +409,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 402 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors29 | 402 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## lockUser @@ -565,22 +427,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->lockUser(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->lockUser( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -596,11 +455,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors29 | 403 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## unlockUser @@ -614,22 +472,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->unlockUser(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->unlockUser( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -645,11 +500,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors29 | 403 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## setUserProfileImage @@ -663,28 +517,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\SetUserProfileImageRequestBody( - file: new Operations\File( - fileName: 'your_file_here', - content: '0xa2d4F0A27D', - ), - ); - $response = $sdk->users->setUserProfileImage('', $requestBody); - - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\SetUserProfileImageRequestBody(); + +$response = $sdk->users->setUserProfileImage( + userId: '', + requestBody: $requestBody + +); + +if ($response->user !== null) { + // handle response } ``` @@ -701,11 +549,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors29 | 400, 401, 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteUserProfileImage @@ -719,22 +566,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->deleteUserProfileImage(''); - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->deleteUserProfileImage( + userId: '' +); + +if ($response->user !== null) { + // handle response } ``` @@ -750,11 +594,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors30 | 404 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## updateUserMetadata @@ -775,42 +618,31 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\UpdateUserMetadataRequestBody( - publicMetadata: [ - 'interestingly' => '', - ], - privateMetadata: [ - 'Bristol' => '', - ], - unsafeMetadata: [ - 'withdrawal' => '', - ], - ); - $response = $sdk->users->updateUserMetadata('', $requestBody); - - if ($response->user !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\UpdateUserMetadataRequestBody(); + +$response = $sdk->users->updateUserMetadata( + userId: '', + requestBody: $requestBody + +); + +if ($response->user !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `userId` | *string* | :heavy_check_mark: | The ID of the user whose metadata will be updated and merged | -| `requestBody` | [Operations\UpdateUserMetadataRequestBody](../../Models/Operations/UpdateUserMetadataRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user whose metadata will be updated and merged | +| `requestBody` | [?Operations\UpdateUserMetadataRequestBody](../../Models/Operations/UpdateUserMetadataRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -818,11 +650,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,401,404,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors31 | 400, 401, 404, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## getOAuthAccessToken @@ -837,22 +668,21 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->getOAuthAccessToken('', ''); - if ($response->responseBodies !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->getOAuthAccessToken( + userId: '', + provider: '' + +); + +if ($response->responseBodies !== null) { + // handle response } ``` @@ -869,11 +699,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400,422 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors32 | 400, 422 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## usersGetOrganizationMemberships @@ -887,22 +716,22 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->usersGetOrganizationMemberships('', 2742.08, 1971.95); - if ($response->organizationMemberships !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->usersGetOrganizationMemberships( + userId: '', + limit: 10, + offset: 0 + +); + +if ($response->organizationMemberships !== null) { + // handle response } ``` @@ -911,8 +740,8 @@ try { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `userId` | *string* | :heavy_check_mark: | The ID of the user whose organization memberships we want to retrieve | -| `limit` | *float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | +| `limit` | *?float* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *?float* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | ### Response @@ -920,11 +749,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 403 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors33 | 403 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## verifyPassword @@ -939,34 +767,33 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\VerifyPasswordRequestBody( - password: 'fjScBhNI5ihHdcl', - ); - $response = $sdk->users->verifyPassword('', $requestBody); - - if ($response->object !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\VerifyPasswordRequestBody( + password: 'fSBhIihdxMPlTHN', +); + +$response = $sdk->users->verifyPassword( + userId: '', + requestBody: $requestBody + +); + +if ($response->object !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `userId` | *string* | :heavy_check_mark: | The ID of the user for whom to verify the password | -| `requestBody` | [Operations\VerifyPasswordRequestBody](../../Models/Operations/VerifyPasswordRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user for whom to verify the password | +| `requestBody` | [?Operations\VerifyPasswordRequestBody](../../Models/Operations/VerifyPasswordRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -974,11 +801,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 500 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors33 | 500 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## verifyTOTP @@ -995,34 +821,33 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; use Clerk\Backend\Models\Operations; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $requestBody = new Operations\VerifyTOTPRequestBody( - code: '', - ); - $response = $sdk->users->verifyTOTP('', $requestBody); - - if ($response->object !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$requestBody = new Operations\VerifyTOTPRequestBody( + code: '', +); + +$response = $sdk->users->verifyTOTP( + userId: '', + requestBody: $requestBody + +); + +if ($response->object !== null) { + // handle response } ``` ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `userId` | *string* | :heavy_check_mark: | The ID of the user for whom to verify the TOTP | -| `requestBody` | [Operations\VerifyTOTPRequestBody](../../Models/Operations/VerifyTOTPRequestBody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `userId` | *string* | :heavy_check_mark: | The ID of the user for whom to verify the TOTP | +| `requestBody` | [?Operations\VerifyTOTPRequestBody](../../Models/Operations/VerifyTOTPRequestBody.md) | :heavy_minus_sign: | N/A | ### Response @@ -1030,11 +855,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 500 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors33 | 500 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## disableMFA @@ -1048,22 +872,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->users->disableMFA(''); - if ($response->object !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception +$response = $sdk->users->disableMFA( + userId: '' +); + +if ($response->object !== null) { + // handle response } ``` @@ -1079,7 +900,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 404,500 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors33 | 404, 500 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index a7ece5d..ff2e962 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -1,4 +1,5 @@ # Webhooks +(*webhooks*) ## Overview @@ -23,21 +24,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->webhooks->createSvixApp(); - if ($response->svixURL !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->webhooks->createSvixApp( + +); + +if ($response->svixURL !== null) { + // handle response } ``` @@ -47,11 +46,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors52 | 400 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## deleteSvixApp @@ -65,21 +63,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->webhooks->deleteSvixApp(); - if ($response->statusCode === 200) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->webhooks->deleteSvixApp( + +); + +if ($response->statusCode === 200) { + // handle response } ``` @@ -89,11 +85,10 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | - +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors53 | 400 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | ## generateSvixAuthURL @@ -107,21 +102,19 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Clerk\Backend; -use Clerk\Backend\Models\Components; -$security = new Components\Security(); -$security->bearerAuth = ''; +$security = ''; $sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build(); -try { - $response = $sdk->webhooks->generateSvixAuthURL(); - if ($response->svixURL !== null) { - // handle response - } -} catch (Throwable $e) { - // handle exception + +$response = $sdk->webhooks->generateSvixAuthURL( + +); + +if ($response->svixURL !== null) { + // handle response } ``` @@ -131,7 +124,7 @@ try { ### Errors -| Error Object | Status Code | Content Type | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| Errors\ClerkErrors | 400 | application/json | -| Clerk\Backend\Models\Errors.SDKException | 4xx-5xx | */* | +| Error Type | Status Code | Content Type | +| -------------------- | -------------------- | -------------------- | +| Errors\ClerkErrors53 | 400 | application/json | +| Errors\SDKException | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/src/ActorTokens.php b/src/ActorTokens.php index b05e8a4..508fe67 100644 --- a/src/ActorTokens.php +++ b/src/ActorTokens.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class ActorTokens { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -29,13 +28,12 @@ public function __construct(SDKConfiguration $sdkConfig) * Create an actor token that can be used to impersonate the given user. * The `actor` parameter needs to include at least a "sub" key whose value is the ID of the actor (impersonating) user. * - * @param Operations\CreateActorTokenRequestBody $request + * @param ?Operations\CreateActorTokenRequestBody $request * @return Operations\CreateActorTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createActorToken( - ?Operations\CreateActorTokenRequestBody $request, - ): Operations\CreateActorTokenResponse { + public function createActorToken(?Operations\CreateActorTokenRequestBody $request = null): Operations\CreateActorTokenResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/actor_tokens'); $options = ['http_errors' => false]; @@ -69,7 +67,7 @@ public function createActorToken( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors44', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -90,9 +88,8 @@ public function createActorToken( * @return Operations\RevokeActorTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function revokeActorToken( - string $actorTokenId, - ): Operations\RevokeActorTokenResponse { + public function revokeActorToken(string $actorTokenId): Operations\RevokeActorTokenResponse + { $request = new Operations\RevokeActorTokenRequest( actorTokenId: $actorTokenId, ); @@ -125,7 +122,7 @@ public function revokeActorToken( } elseif (in_array($statusCode, [400, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors45', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -136,4 +133,5 @@ public function revokeActorToken( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/AllowListBlockList.php b/src/AllowListBlockList.php index d1a27c1..0a7bf0a 100644 --- a/src/AllowListBlockList.php +++ b/src/AllowListBlockList.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class AllowListBlockList { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,8 +30,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListAllowlistIdentifiersResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listAllowlistIdentifiers( - ): Operations\ListAllowlistIdentifiersResponse { + public function listAllowlistIdentifiers(): Operations\ListAllowlistIdentifiersResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/allowlist_identifiers'); $options = ['http_errors' => false]; @@ -62,7 +61,7 @@ public function listAllowlistIdentifiers( } elseif (in_array($statusCode, [401, 402])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors36', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -79,13 +78,12 @@ public function listAllowlistIdentifiers( * * Create an identifier allowed to sign up to an instance * - * @param Operations\CreateAllowlistIdentifierRequestBody $request + * @param ?Operations\CreateAllowlistIdentifierRequestBody $request * @return Operations\CreateAllowlistIdentifierResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createAllowlistIdentifier( - ?Operations\CreateAllowlistIdentifierRequestBody $request, - ): Operations\CreateAllowlistIdentifierResponse { + public function createAllowlistIdentifier(?Operations\CreateAllowlistIdentifierRequestBody $request = null): Operations\CreateAllowlistIdentifierResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/allowlist_identifiers'); $options = ['http_errors' => false]; @@ -119,7 +117,7 @@ public function createAllowlistIdentifier( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors37', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -140,9 +138,8 @@ public function createAllowlistIdentifier( * @return Operations\DeleteAllowlistIdentifierResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteAllowlistIdentifier( - string $identifierId, - ): Operations\DeleteAllowlistIdentifierResponse { + public function deleteAllowlistIdentifier(string $identifierId): Operations\DeleteAllowlistIdentifierResponse + { $request = new Operations\DeleteAllowlistIdentifierRequest( identifierId: $identifierId, ); @@ -175,7 +172,7 @@ public function deleteAllowlistIdentifier( } elseif (in_array($statusCode, [402, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors38', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -195,8 +192,8 @@ public function deleteAllowlistIdentifier( * @return Operations\ListBlocklistIdentifiersResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listBlocklistIdentifiers( - ): Operations\ListBlocklistIdentifiersResponse { + public function listBlocklistIdentifiers(): Operations\ListBlocklistIdentifiersResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/blocklist_identifiers'); $options = ['http_errors' => false]; @@ -226,7 +223,7 @@ public function listBlocklistIdentifiers( } elseif (in_array($statusCode, [401, 402])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors39', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -243,13 +240,12 @@ public function listBlocklistIdentifiers( * * Create an identifier that is blocked from accessing an instance * - * @param Operations\CreateBlocklistIdentifierRequestBody $request + * @param ?Operations\CreateBlocklistIdentifierRequestBody $request * @return Operations\CreateBlocklistIdentifierResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createBlocklistIdentifier( - ?Operations\CreateBlocklistIdentifierRequestBody $request, - ): Operations\CreateBlocklistIdentifierResponse { + public function createBlocklistIdentifier(?Operations\CreateBlocklistIdentifierRequestBody $request = null): Operations\CreateBlocklistIdentifierResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/blocklist_identifiers'); $options = ['http_errors' => false]; @@ -283,7 +279,7 @@ public function createBlocklistIdentifier( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors40', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -304,9 +300,8 @@ public function createBlocklistIdentifier( * @return Operations\DeleteBlocklistIdentifierResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteBlocklistIdentifier( - string $identifierId, - ): Operations\DeleteBlocklistIdentifierResponse { + public function deleteBlocklistIdentifier(string $identifierId): Operations\DeleteBlocklistIdentifierResponse + { $request = new Operations\DeleteBlocklistIdentifierRequest( identifierId: $identifierId, ); @@ -339,7 +334,7 @@ public function deleteBlocklistIdentifier( } elseif (in_array($statusCode, [402, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors41', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -350,4 +345,5 @@ public function deleteBlocklistIdentifier( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/BetaFeatures.php b/src/BetaFeatures.php index 4c60771..afeda01 100644 --- a/src/BetaFeatures.php +++ b/src/BetaFeatures.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class BetaFeatures { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -28,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig) * * Updates the settings of an instance * - * @param Operations\UpdateInstanceAuthConfigRequestBody $request + * @param ?Operations\UpdateInstanceAuthConfigRequestBody $request * @return Operations\UpdateInstanceAuthConfigResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateInstanceAuthConfig( - ?Operations\UpdateInstanceAuthConfigRequestBody $request, - ): Operations\UpdateInstanceAuthConfigResponse { + public function updateInstanceAuthConfig(?Operations\UpdateInstanceAuthConfigRequestBody $request = null): Operations\UpdateInstanceAuthConfigResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/beta_features/instance_settings'); $options = ['http_errors' => false]; @@ -68,7 +66,7 @@ public function updateInstanceAuthConfig( } elseif (in_array($statusCode, [402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors42', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -89,14 +87,13 @@ public function updateInstanceAuthConfig( * * WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur. * - * @param Operations\UpdateProductionInstanceDomainRequestBody $request + * @param ?Operations\UpdateProductionInstanceDomainRequestBody $request * @return Operations\UpdateProductionInstanceDomainResponse * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function updateProductionInstanceDomain( - ?Operations\UpdateProductionInstanceDomainRequestBody $request, - ): Operations\UpdateProductionInstanceDomainResponse { + public function updateProductionInstanceDomain(?Operations\UpdateProductionInstanceDomainRequestBody $request = null): Operations\UpdateProductionInstanceDomainResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/beta_features/domain'); @@ -123,7 +120,7 @@ public function updateProductionInstanceDomain( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors43', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -144,13 +141,12 @@ public function updateProductionInstanceDomain( * * WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur. * - * @param Operations\ChangeProductionInstanceDomainRequestBody $request + * @param ?Operations\ChangeProductionInstanceDomainRequestBody $request * @return Operations\ChangeProductionInstanceDomainResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function changeProductionInstanceDomain( - ?Operations\ChangeProductionInstanceDomainRequestBody $request, - ): Operations\ChangeProductionInstanceDomainResponse { + public function changeProductionInstanceDomain(?Operations\ChangeProductionInstanceDomainRequestBody $request = null): Operations\ChangeProductionInstanceDomainResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/instance/change_domain'); $options = ['http_errors' => false]; @@ -176,7 +172,7 @@ public function changeProductionInstanceDomain( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors50', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -187,4 +183,5 @@ public function changeProductionInstanceDomain( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/ClerkBackend.php b/src/ClerkBackend.php index e7f110f..35ab08c 100644 --- a/src/ClerkBackend.php +++ b/src/ClerkBackend.php @@ -233,7 +233,7 @@ public static function builder(): ClerkBackendBuilder * @param SDKConfiguration $sdkConfiguration */ public function __construct( - private SDKConfiguration $sdkConfiguration, + public SDKConfiguration $sdkConfiguration, ) { $this->miscellaneous = new Miscellaneous($this->sdkConfiguration); $this->jwks = new Jwks($this->sdkConfiguration); diff --git a/src/Clients.php b/src/Clients.php index d1b56fb..3f73c9c 100644 --- a/src/Clients.php +++ b/src/Clients.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Clients { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -36,10 +35,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function getClientList( - ?float $limit = null, - ?float $offset = null, - ): Operations\GetClientListResponse { + public function getClientList(?float $limit = null, ?float $offset = null): Operations\GetClientListResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\GetClientListRequest( limit: $limit, @@ -92,13 +89,12 @@ public function getClientList( * * Verifies the client in the provided token * - * @param Operations\VerifyClientRequestBody $request + * @param ?Operations\VerifyClientRequestBody $request * @return Operations\VerifyClientResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function verifyClient( - ?Operations\VerifyClientRequestBody $request, - ): Operations\VerifyClientResponse { + public function verifyClient(?Operations\VerifyClientRequestBody $request = null): Operations\VerifyClientResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/clients/verify'); $options = ['http_errors' => false]; @@ -132,7 +128,7 @@ public function verifyClient( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors1', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -153,9 +149,8 @@ public function verifyClient( * @return Operations\GetClientResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getClient( - string $clientId, - ): Operations\GetClientResponse { + public function getClient(string $clientId): Operations\GetClientResponse + { $request = new Operations\GetClientRequest( clientId: $clientId, ); @@ -188,7 +183,7 @@ public function getClient( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors2', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -199,4 +194,5 @@ public function getClient( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Domains.php b/src/Domains.php index a64185c..db19411 100644 --- a/src/Domains.php +++ b/src/Domains.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Domains { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -32,8 +31,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListDomainsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listDomains( - ): Operations\ListDomainsResponse { + public function listDomains(): Operations\ListDomainsResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/domains'); $options = ['http_errors' => false]; @@ -76,13 +75,12 @@ public function listDomains( * At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`. * If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly. * - * @param Operations\AddDomainRequestBody $request + * @param ?Operations\AddDomainRequestBody $request * @return Operations\AddDomainResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function addDomain( - ?Operations\AddDomainRequestBody $request, - ): Operations\AddDomainResponse { + public function addDomain(?Operations\AddDomainRequestBody $request = null): Operations\AddDomainResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/domains'); $options = ['http_errors' => false]; @@ -116,7 +114,7 @@ public function addDomain( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors46', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -138,9 +136,8 @@ public function addDomain( * @return Operations\DeleteDomainResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteDomain( - string $domainId, - ): Operations\DeleteDomainResponse { + public function deleteDomain(string $domainId): Operations\DeleteDomainResponse + { $request = new Operations\DeleteDomainRequest( domainId: $domainId, ); @@ -173,7 +170,7 @@ public function deleteDomain( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors47', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -197,15 +194,13 @@ public function deleteDomain( * emails to work. Expect downtime otherwise. Updating a primary domain's name will also * update the instance's home origin, affecting the default application paths. * - * @param string $domainId * @param Operations\UpdateDomainRequestBody $requestBody + * @param string $domainId * @return Operations\UpdateDomainResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateDomain( - string $domainId, - Operations\UpdateDomainRequestBody $requestBody, - ): Operations\UpdateDomainResponse { + public function updateDomain(Operations\UpdateDomainRequestBody $requestBody, string $domainId): Operations\UpdateDomainResponse + { $request = new Operations\UpdateDomainRequest( domainId: $domainId, requestBody: $requestBody, @@ -244,7 +239,7 @@ public function updateDomain( } elseif (in_array($statusCode, [400, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors48', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -255,4 +250,5 @@ public function updateDomain( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/EmailAddresses.php b/src/EmailAddresses.php index 17aef5a..a490d58 100644 --- a/src/EmailAddresses.php +++ b/src/EmailAddresses.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class EmailAddresses { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -28,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig) * * Create a new email address * - * @param Operations\CreateEmailAddressRequestBody $request + * @param ?Operations\CreateEmailAddressRequestBody $request * @return Operations\CreateEmailAddressResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createEmailAddress( - ?Operations\CreateEmailAddressRequestBody $request, - ): Operations\CreateEmailAddressResponse { + public function createEmailAddress(?Operations\CreateEmailAddressRequestBody $request = null): Operations\CreateEmailAddressResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/email_addresses'); $options = ['http_errors' => false]; @@ -68,7 +66,7 @@ public function createEmailAddress( } elseif (in_array($statusCode, [400, 401, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors3', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -89,9 +87,8 @@ public function createEmailAddress( * @return Operations\GetEmailAddressResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getEmailAddress( - string $emailAddressId, - ): Operations\GetEmailAddressResponse { + public function getEmailAddress(string $emailAddressId): Operations\GetEmailAddressResponse + { $request = new Operations\GetEmailAddressRequest( emailAddressId: $emailAddressId, ); @@ -124,7 +121,7 @@ public function getEmailAddress( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors4', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -145,9 +142,8 @@ public function getEmailAddress( * @return Operations\DeleteEmailAddressResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteEmailAddress( - string $emailAddressId, - ): Operations\DeleteEmailAddressResponse { + public function deleteEmailAddress(string $emailAddressId): Operations\DeleteEmailAddressResponse + { $request = new Operations\DeleteEmailAddressRequest( emailAddressId: $emailAddressId, ); @@ -180,7 +176,7 @@ public function deleteEmailAddress( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors5', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -202,10 +198,8 @@ public function deleteEmailAddress( * @return Operations\UpdateEmailAddressResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateEmailAddress( - string $emailAddressId, - ?Operations\UpdateEmailAddressRequestBody $requestBody = null, - ): Operations\UpdateEmailAddressResponse { + public function updateEmailAddress(string $emailAddressId, ?Operations\UpdateEmailAddressRequestBody $requestBody = null): Operations\UpdateEmailAddressResponse + { $request = new Operations\UpdateEmailAddressRequest( emailAddressId: $emailAddressId, requestBody: $requestBody, @@ -243,7 +237,7 @@ public function updateEmailAddress( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors6', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -254,4 +248,5 @@ public function updateEmailAddress( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/EmailAndSMSTemplates.php b/src/EmailAndSMSTemplates.php index 6c953de..f0db116 100644 --- a/src/EmailAndSMSTemplates.php +++ b/src/EmailAndSMSTemplates.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class EmailAndSMSTemplates { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -34,9 +33,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function getTemplateList( - Operations\TemplateType $templateType, - ): Operations\GetTemplateListResponse { + public function getTemplateList(Operations\TemplateType $templateType): Operations\GetTemplateListResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\GetTemplateListRequest( templateType: $templateType, @@ -70,7 +68,7 @@ public function getTemplateList( } elseif (in_array($statusCode, [400, 401, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors16', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -93,10 +91,8 @@ public function getTemplateList( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function getTemplate( - Operations\PathParamTemplateType $templateType, - string $slug, - ): Operations\GetTemplateResponse { + public function getTemplate(Operations\PathParamTemplateType $templateType, string $slug): Operations\GetTemplateResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\GetTemplateRequest( templateType: $templateType, @@ -131,7 +127,7 @@ public function getTemplate( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors17', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -155,11 +151,8 @@ public function getTemplate( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function upsertTemplate( - Operations\UpsertTemplatePathParamTemplateType $templateType, - string $slug, - ?Operations\UpsertTemplateRequestBody $requestBody = null, - ): Operations\UpsertTemplateResponse { + public function upsertTemplate(Operations\UpsertTemplatePathParamTemplateType $templateType, string $slug, ?Operations\UpsertTemplateRequestBody $requestBody = null): Operations\UpsertTemplateResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\UpsertTemplateRequest( templateType: $templateType, @@ -199,7 +192,7 @@ public function upsertTemplate( } elseif (in_array($statusCode, [400, 401, 402, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors18', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -222,10 +215,8 @@ public function upsertTemplate( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function revertTemplate( - Operations\RevertTemplatePathParamTemplateType $templateType, - string $slug, - ): Operations\RevertTemplateResponse { + public function revertTemplate(Operations\RevertTemplatePathParamTemplateType $templateType, string $slug): Operations\RevertTemplateResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\RevertTemplateRequest( templateType: $templateType, @@ -260,7 +251,7 @@ public function revertTemplate( } elseif (in_array($statusCode, [400, 401, 402, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors19', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -284,11 +275,8 @@ public function revertTemplate( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function previewTemplate( - string $templateType, - string $slug, - ?Operations\PreviewTemplateRequestBody $requestBody = null, - ): Operations\PreviewTemplateResponse { + public function previewTemplate(string $templateType, string $slug, ?Operations\PreviewTemplateRequestBody $requestBody = null): Operations\PreviewTemplateResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\PreviewTemplateRequest( templateType: $templateType, @@ -328,7 +316,7 @@ public function previewTemplate( } elseif (in_array($statusCode, [400, 401, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors20', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -354,11 +342,8 @@ public function previewTemplate( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function toggleTemplateDelivery( - Operations\ToggleTemplateDeliveryPathParamTemplateType $templateType, - string $slug, - ?Operations\ToggleTemplateDeliveryRequestBody $requestBody = null, - ): Operations\ToggleTemplateDeliveryResponse { + public function toggleTemplateDelivery(Operations\ToggleTemplateDeliveryPathParamTemplateType $templateType, string $slug, ?Operations\ToggleTemplateDeliveryRequestBody $requestBody = null): Operations\ToggleTemplateDeliveryResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\ToggleTemplateDeliveryRequest( templateType: $templateType, @@ -398,7 +383,7 @@ public function toggleTemplateDelivery( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors21', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -409,4 +394,5 @@ public function toggleTemplateDelivery( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/InstanceSettings.php b/src/InstanceSettings.php index 629c7bb..942c5de 100644 --- a/src/InstanceSettings.php +++ b/src/InstanceSettings.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class InstanceSettings { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -28,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig) * * Updates the settings of an instance * - * @param Operations\UpdateInstanceRequestBody $request + * @param ?Operations\UpdateInstanceRequestBody $request * @return Operations\UpdateInstanceResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateInstance( - ?Operations\UpdateInstanceRequestBody $request, - ): Operations\UpdateInstanceResponse { + public function updateInstance(?Operations\UpdateInstanceRequestBody $request = null): Operations\UpdateInstanceResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/instance'); $options = ['http_errors' => false]; @@ -60,7 +58,7 @@ public function updateInstance( } elseif ($statusCode == 422) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors49', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -77,13 +75,12 @@ public function updateInstance( * * Updates the restriction settings of an instance * - * @param Operations\UpdateInstanceRestrictionsRequestBody $request + * @param ?Operations\UpdateInstanceRestrictionsRequestBody $request * @return Operations\UpdateInstanceRestrictionsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateInstanceRestrictions( - ?Operations\UpdateInstanceRestrictionsRequestBody $request, - ): Operations\UpdateInstanceRestrictionsResponse { + public function updateInstanceRestrictions(?Operations\UpdateInstanceRestrictionsRequestBody $request = null): Operations\UpdateInstanceRestrictionsResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/instance/restrictions'); $options = ['http_errors' => false]; @@ -117,7 +114,7 @@ public function updateInstanceRestrictions( } elseif (in_array($statusCode, [402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors49', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -134,13 +131,12 @@ public function updateInstanceRestrictions( * * Updates the organization settings of the instance * - * @param Operations\UpdateInstanceOrganizationSettingsRequestBody $request + * @param ?Operations\UpdateInstanceOrganizationSettingsRequestBody $request * @return Operations\UpdateInstanceOrganizationSettingsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateInstanceOrganizationSettings( - ?Operations\UpdateInstanceOrganizationSettingsRequestBody $request, - ): Operations\UpdateInstanceOrganizationSettingsResponse { + public function updateInstanceOrganizationSettings(?Operations\UpdateInstanceOrganizationSettingsRequestBody $request = null): Operations\UpdateInstanceOrganizationSettingsResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/instance/organization_settings'); $options = ['http_errors' => false]; @@ -174,7 +170,7 @@ public function updateInstanceOrganizationSettings( } elseif (in_array($statusCode, [402, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors51', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -185,4 +181,5 @@ public function updateInstanceOrganizationSettings( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Invitations.php b/src/Invitations.php index 87047df..8895c9c 100644 --- a/src/Invitations.php +++ b/src/Invitations.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Invitations { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -30,13 +29,12 @@ public function __construct(SDKConfiguration $sdkConfig) * Keep in mind that you cannot create an invitation if there is already one for the given email address. * Also, trying to create an invitation for an email address that already exists in your application will result to an error. * - * @param Operations\CreateInvitationRequestBody $request + * @param ?Operations\CreateInvitationRequestBody $request * @return Operations\CreateInvitationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createInvitation( - ?Operations\CreateInvitationRequestBody $request, - ): Operations\CreateInvitationResponse { + public function createInvitation(?Operations\CreateInvitationRequestBody $request = null): Operations\CreateInvitationResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/invitations'); $options = ['http_errors' => false]; @@ -70,7 +68,7 @@ public function createInvitation( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors34', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -93,11 +91,8 @@ public function createInvitation( * @return Operations\ListInvitationsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listInvitations( - ?float $limit = null, - ?float $offset = null, - ?Operations\QueryParamStatus $status = null, - ): Operations\ListInvitationsResponse { + public function listInvitations(?float $limit = null, ?float $offset = null, ?Operations\QueryParamStatus $status = null): Operations\ListInvitationsResponse + { $request = new Operations\ListInvitationsRequest( limit: $limit, offset: $offset, @@ -149,9 +144,8 @@ public function listInvitations( * @return Operations\RevokeInvitationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function revokeInvitation( - string $invitationId, - ): Operations\RevokeInvitationResponse { + public function revokeInvitation(string $invitationId): Operations\RevokeInvitationResponse + { $request = new Operations\RevokeInvitationRequest( invitationId: $invitationId, ); @@ -184,7 +178,7 @@ public function revokeInvitation( } elseif (in_array($statusCode, [400, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors35', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -195,4 +189,5 @@ public function revokeInvitation( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/JWTTemplates.php b/src/JWTTemplates.php index ba8696f..1400d70 100644 --- a/src/JWTTemplates.php +++ b/src/JWTTemplates.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class JWTTemplates { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -29,8 +28,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListJWTTemplatesResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listJWTTemplates( - ): Operations\ListJWTTemplatesResponse { + public function listJWTTemplates(): Operations\ListJWTTemplatesResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/jwt_templates'); $options = ['http_errors' => false]; @@ -69,13 +68,12 @@ public function listJWTTemplates( * * Create a new JWT template * - * @param Operations\CreateJWTTemplateRequestBody $request + * @param ?Operations\CreateJWTTemplateRequestBody $request * @return Operations\CreateJWTTemplateResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createJWTTemplate( - ?Operations\CreateJWTTemplateRequestBody $request, - ): Operations\CreateJWTTemplateResponse { + public function createJWTTemplate(?Operations\CreateJWTTemplateRequestBody $request = null): Operations\CreateJWTTemplateResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/jwt_templates'); $options = ['http_errors' => false]; @@ -109,7 +107,7 @@ public function createJWTTemplate( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors53', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -130,9 +128,8 @@ public function createJWTTemplate( * @return Operations\GetJWTTemplateResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getJWTTemplate( - string $templateId, - ): Operations\GetJWTTemplateResponse { + public function getJWTTemplate(string $templateId): Operations\GetJWTTemplateResponse + { $request = new Operations\GetJWTTemplateRequest( templateId: $templateId, ); @@ -165,7 +162,7 @@ public function getJWTTemplate( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors54', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -187,10 +184,8 @@ public function getJWTTemplate( * @return Operations\UpdateJWTTemplateResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateJWTTemplate( - string $templateId, - ?Operations\UpdateJWTTemplateRequestBody $requestBody = null, - ): Operations\UpdateJWTTemplateResponse { + public function updateJWTTemplate(string $templateId, ?Operations\UpdateJWTTemplateRequestBody $requestBody = null): Operations\UpdateJWTTemplateResponse + { $request = new Operations\UpdateJWTTemplateRequest( templateId: $templateId, requestBody: $requestBody, @@ -228,7 +223,7 @@ public function updateJWTTemplate( } elseif (in_array($statusCode, [400, 402, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors55', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -247,9 +242,8 @@ public function updateJWTTemplate( * @return Operations\DeleteJWTTemplateResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteJWTTemplate( - string $templateId, - ): Operations\DeleteJWTTemplateResponse { + public function deleteJWTTemplate(string $templateId): Operations\DeleteJWTTemplateResponse + { $request = new Operations\DeleteJWTTemplateRequest( templateId: $templateId, ); @@ -282,7 +276,7 @@ public function deleteJWTTemplate( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors56', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -293,4 +287,5 @@ public function deleteJWTTemplate( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Jwks.php b/src/Jwks.php index eb658f4..c6a0e22 100644 --- a/src/Jwks.php +++ b/src/Jwks.php @@ -13,11 +13,10 @@ class Jwks { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -30,8 +29,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\GetJWKSResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getJWKS( - ): Operations\GetJWKSResponse { + public function getJWKS(): Operations\GetJWKSResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/jwks'); $options = ['http_errors' => false]; @@ -56,4 +55,5 @@ public function getJWKS( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Miscellaneous.php b/src/Miscellaneous.php index e04dddb..f847edd 100644 --- a/src/Miscellaneous.php +++ b/src/Miscellaneous.php @@ -13,11 +13,10 @@ class Miscellaneous { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -33,10 +32,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\GetPublicInterstitialResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getPublicInterstitial( - ?string $frontendApi = null, - ?string $publishableKey = null, - ): Operations\GetPublicInterstitialResponse { + public function getPublicInterstitial(?string $frontendApi = null, ?string $publishableKey = null): Operations\GetPublicInterstitialResponse + { $request = new Operations\GetPublicInterstitialRequest( frontendApi: $frontendApi, publishableKey: $publishableKey, @@ -64,4 +61,5 @@ public function getPublicInterstitial( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Models/Components/ActorToken.php b/src/Models/Components/ActorToken.php index eac632f..ff06216 100644 --- a/src/Models/Components/ActorToken.php +++ b/src/Models/Components/ActorToken.php @@ -9,60 +9,61 @@ namespace Clerk\Backend\Models\Components; +/** ActorToken - Success */ class ActorToken { /** * * @var ActorTokenObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenObject')] public ActorTokenObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var ActorTokenStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenStatus')] public ActorTokenStatus $status; /** * * @var string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] public string $userId; /** * * @var ActorTokenActor $actor */ - #[\JMS\Serializer\Annotation\SerializedName('actor')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenActor')] + #[\Speakeasy\Serializer\Annotation\SerializedName('actor')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ActorTokenActor')] public ActorTokenActor $actor; /** * * @var ?string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $token = null; /** * * @var ?string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $url = null; /** @@ -72,7 +73,7 @@ class ActorToken * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -82,21 +83,21 @@ class ActorToken * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?ActorTokenObject $object - * @param ?string $id - * @param ?ActorTokenStatus $status - * @param ?string $userId - * @param ?ActorTokenActor $actor - * @param ?int $createdAt - * @param ?int $updatedAt + * @param ActorTokenObject $object + * @param string $id + * @param ActorTokenStatus $status + * @param string $userId + * @param ActorTokenActor $actor + * @param int $createdAt + * @param int $updatedAt * @param ?string $token * @param ?string $url */ - public function __construct(?ActorTokenObject $object = null, ?string $id = null, ?ActorTokenStatus $status = null, ?string $userId = null, ?ActorTokenActor $actor = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $token = null, ?string $url = null) + public function __construct(ActorTokenObject $object, string $id, ActorTokenStatus $status, string $userId, ActorTokenActor $actor, int $createdAt, int $updatedAt, ?string $token = null, ?string $url = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/Admin.php b/src/Models/Components/Admin.php index ce36f9e..a5132a8 100644 --- a/src/Models/Components/Admin.php +++ b/src/Models/Components/Admin.php @@ -15,41 +15,41 @@ class Admin * * @var AdminVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationStatus')] public AdminVerificationStatus $status; /** * * @var VerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationStrategy')] public VerificationStrategy $strategy; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?AdminVerificationStatus $status - * @param ?VerificationStrategy $strategy + * @param AdminVerificationStatus $status + * @param VerificationStrategy $strategy * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?AdminVerificationStatus $status = null, ?VerificationStrategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(AdminVerificationStatus $status, VerificationStrategy $strategy, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/AllowlistIdentifier.php b/src/Models/Components/AllowlistIdentifier.php index 50c3c73..c511f9a 100644 --- a/src/Models/Components/AllowlistIdentifier.php +++ b/src/Models/Components/AllowlistIdentifier.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** AllowlistIdentifier - Success */ class AllowlistIdentifier { /** @@ -18,25 +19,25 @@ class AllowlistIdentifier * * @var ?AllowlistIdentifierObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AllowlistIdentifierObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AllowlistIdentifierObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?AllowlistIdentifierObject $object = null; /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** * * @var ?string $invitationId */ - #[\JMS\Serializer\Annotation\SerializedName('invitation_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('invitation_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $invitationId = null; /** @@ -46,25 +47,25 @@ class AllowlistIdentifier * * @var ?string $identifier */ - #[\JMS\Serializer\Annotation\SerializedName('identifier')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $identifier = null; /** * * @var ?IdentifierType $identifierType */ - #[\JMS\Serializer\Annotation\SerializedName('identifier_type')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\IdentifierType|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier_type')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\IdentifierType|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?IdentifierType $identifierType = null; /** * * @var ?string $instanceId */ - #[\JMS\Serializer\Annotation\SerializedName('instance_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('instance_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $instanceId = null; /** @@ -74,8 +75,8 @@ class AllowlistIdentifier * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** @@ -85,8 +86,8 @@ class AllowlistIdentifier * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** diff --git a/src/Models/Components/AttributeMapping.php b/src/Models/Components/AttributeMapping.php index b80b8cd..c2318a4 100644 --- a/src/Models/Components/AttributeMapping.php +++ b/src/Models/Components/AttributeMapping.php @@ -15,32 +15,32 @@ class AttributeMapping * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** diff --git a/src/Models/Components/BlocklistIdentifier.php b/src/Models/Components/BlocklistIdentifier.php index f1b5190..6c3623f 100644 --- a/src/Models/Components/BlocklistIdentifier.php +++ b/src/Models/Components/BlocklistIdentifier.php @@ -18,17 +18,17 @@ class BlocklistIdentifier * * @var ?BlocklistIdentifierObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\BlocklistIdentifierObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\BlocklistIdentifierObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?BlocklistIdentifierObject $object = null; /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -38,25 +38,25 @@ class BlocklistIdentifier * * @var ?string $identifier */ - #[\JMS\Serializer\Annotation\SerializedName('identifier')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $identifier = null; /** * * @var ?BlocklistIdentifierIdentifierType $identifierType */ - #[\JMS\Serializer\Annotation\SerializedName('identifier_type')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\BlocklistIdentifierIdentifierType|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier_type')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\BlocklistIdentifierIdentifierType|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?BlocklistIdentifierIdentifierType $identifierType = null; /** * * @var ?string $instanceId */ - #[\JMS\Serializer\Annotation\SerializedName('instance_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('instance_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $instanceId = null; /** @@ -66,8 +66,8 @@ class BlocklistIdentifier * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** @@ -77,8 +77,8 @@ class BlocklistIdentifier * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** diff --git a/src/Models/Components/BlocklistIdentifiers.php b/src/Models/Components/BlocklistIdentifiers.php index 7f37017..a33d836 100644 --- a/src/Models/Components/BlocklistIdentifiers.php +++ b/src/Models/Components/BlocklistIdentifiers.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** BlocklistIdentifiers - Success */ class BlocklistIdentifiers { /** @@ -16,8 +17,8 @@ class BlocklistIdentifiers * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\BlocklistIdentifier>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\BlocklistIdentifier>')] public array $data; /** @@ -27,14 +28,14 @@ class BlocklistIdentifiers * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/CNameTarget.php b/src/Models/Components/CNameTarget.php index 0a165e1..b9d2659 100644 --- a/src/Models/Components/CNameTarget.php +++ b/src/Models/Components/CNameTarget.php @@ -15,14 +15,14 @@ class CNameTarget * * @var string $host */ - #[\JMS\Serializer\Annotation\SerializedName('host')] + #[\Speakeasy\Serializer\Annotation\SerializedName('host')] public string $host; /** * * @var string $value */ - #[\JMS\Serializer\Annotation\SerializedName('value')] + #[\Speakeasy\Serializer\Annotation\SerializedName('value')] public string $value; /** @@ -32,15 +32,15 @@ class CNameTarget * * @var bool $required */ - #[\JMS\Serializer\Annotation\SerializedName('required')] + #[\Speakeasy\Serializer\Annotation\SerializedName('required')] public bool $required; /** - * @param ?string $host - * @param ?string $value - * @param ?bool $required + * @param string $host + * @param string $value + * @param bool $required */ - public function __construct(?string $host = null, ?string $value = null, ?bool $required = null) + public function __construct(string $host, string $value, bool $required) { $this->host = $host; $this->value = $value; diff --git a/src/Models/Components/ClerkError.php b/src/Models/Components/ClerkError.php index f76779e..406e0bd 100644 --- a/src/Models/Components/ClerkError.php +++ b/src/Models/Components/ClerkError.php @@ -15,48 +15,48 @@ class ClerkError * * @var string $message */ - #[\JMS\Serializer\Annotation\SerializedName('message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('message')] public string $message; /** * * @var string $longMessage */ - #[\JMS\Serializer\Annotation\SerializedName('long_message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('long_message')] public string $longMessage; /** * * @var string $code */ - #[\JMS\Serializer\Annotation\SerializedName('code')] + #[\Speakeasy\Serializer\Annotation\SerializedName('code')] public string $code; /** * * @var ?Meta $meta */ - #[\JMS\Serializer\Annotation\SerializedName('meta')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Meta|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?Meta $meta = null; /** * * @var ?string $clerkTraceId */ - #[\JMS\Serializer\Annotation\SerializedName('clerk_trace_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('clerk_trace_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $clerkTraceId = null; /** - * @param ?string $message - * @param ?string $longMessage - * @param ?string $code + * @param string $message + * @param string $longMessage + * @param string $code * @param ?Meta $meta * @param ?string $clerkTraceId */ - public function __construct(?string $message = null, ?string $longMessage = null, ?string $code = null, ?Meta $meta = null, ?string $clerkTraceId = null) + public function __construct(string $message, string $longMessage, string $code, ?Meta $meta = null, ?string $clerkTraceId = null) { $this->message = $message; $this->longMessage = $longMessage; diff --git a/src/Models/Components/Client.php b/src/Models/Components/Client.php index fcf072d..ec743a4 100644 --- a/src/Models/Components/Client.php +++ b/src/Models/Components/Client.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** Client - Success */ class Client { /** @@ -18,8 +19,8 @@ class Client * * @var ObjectT $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ObjectT')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ObjectT')] public ObjectT $object; /** @@ -29,7 +30,7 @@ class Client * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** @@ -37,8 +38,8 @@ class Client * * @var array $sessionIds */ - #[\JMS\Serializer\Annotation\SerializedName('session_ids')] - #[\JMS\Serializer\Annotation\Type('array')] + #[\Speakeasy\Serializer\Annotation\SerializedName('session_ids')] + #[\Speakeasy\Serializer\Annotation\Type('array')] public array $sessionIds; /** @@ -46,33 +47,33 @@ class Client * * @var array $sessions */ - #[\JMS\Serializer\Annotation\SerializedName('sessions')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Session>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('sessions')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Session>')] public array $sessions; /** * - * @var string $signInId + * @var ?string $signInId */ - #[\JMS\Serializer\Annotation\SerializedName('sign_in_id')] - public string $signInId; + #[\Speakeasy\Serializer\Annotation\SerializedName('sign_in_id')] + public ?string $signInId; /** * - * @var string $signUpId + * @var ?string $signUpId */ - #[\JMS\Serializer\Annotation\SerializedName('sign_up_id')] - public string $signUpId; + #[\Speakeasy\Serializer\Annotation\SerializedName('sign_up_id')] + public ?string $signUpId; /** * Last active session_id. * * * - * @var string $lastActiveSessionId + * @var ?string $lastActiveSessionId */ - #[\JMS\Serializer\Annotation\SerializedName('last_active_session_id')] - public string $lastActiveSessionId; + #[\Speakeasy\Serializer\Annotation\SerializedName('last_active_session_id')] + public ?string $lastActiveSessionId; /** * Unix timestamp of last update. @@ -81,7 +82,7 @@ class Client * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** @@ -91,30 +92,30 @@ class Client * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** - * @param ?ObjectT $object - * @param ?string $id - * @param ?array $sessionIds - * @param ?array $sessions + * @param ObjectT $object + * @param string $id + * @param array $sessionIds + * @param array $sessions + * @param int $updatedAt + * @param int $createdAt * @param ?string $signInId * @param ?string $signUpId * @param ?string $lastActiveSessionId - * @param ?int $updatedAt - * @param ?int $createdAt */ - public function __construct(?ObjectT $object = null, ?string $id = null, ?array $sessionIds = null, ?array $sessions = null, ?string $signInId = null, ?string $signUpId = null, ?string $lastActiveSessionId = null, ?int $updatedAt = null, ?int $createdAt = null) + public function __construct(ObjectT $object, string $id, array $sessionIds, array $sessions, int $updatedAt, int $createdAt, ?string $signInId = null, ?string $signUpId = null, ?string $lastActiveSessionId = null) { $this->object = $object; $this->id = $id; $this->sessionIds = $sessionIds; $this->sessions = $sessions; + $this->updatedAt = $updatedAt; + $this->createdAt = $createdAt; $this->signInId = $signInId; $this->signUpId = $signUpId; $this->lastActiveSessionId = $lastActiveSessionId; - $this->updatedAt = $updatedAt; - $this->createdAt = $createdAt; } } \ No newline at end of file diff --git a/src/Models/Components/DeletedObject.php b/src/Models/Components/DeletedObject.php index 87445a7..1869536 100644 --- a/src/Models/Components/DeletedObject.php +++ b/src/Models/Components/DeletedObject.php @@ -9,45 +9,46 @@ namespace Clerk\Backend\Models\Components; +/** DeletedObject - Deleted Object */ class DeletedObject { /** * * @var string $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] public string $object; /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** * * @var ?string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $slug = null; /** * * @var bool $deleted */ - #[\JMS\Serializer\Annotation\SerializedName('deleted')] + #[\Speakeasy\Serializer\Annotation\SerializedName('deleted')] public bool $deleted; /** - * @param ?string $object - * @param ?bool $deleted + * @param string $object + * @param bool $deleted * @param ?string $id * @param ?string $slug */ - public function __construct(?string $object = null, ?bool $deleted = null, ?string $id = null, ?string $slug = null) + public function __construct(string $object, bool $deleted, ?string $id = null, ?string $slug = null) { $this->object = $object; $this->deleted = $deleted; diff --git a/src/Models/Components/Domain.php b/src/Models/Components/Domain.php index 84a5a84..09875a9 100644 --- a/src/Models/Components/Domain.php +++ b/src/Models/Components/Domain.php @@ -15,36 +15,36 @@ class Domain * * @var DomainObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\DomainObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\DomainObject')] public DomainObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var bool $isSatellite */ - #[\JMS\Serializer\Annotation\SerializedName('is_satellite')] + #[\Speakeasy\Serializer\Annotation\SerializedName('is_satellite')] public bool $isSatellite; /** * * @var string $frontendApiUrl */ - #[\JMS\Serializer\Annotation\SerializedName('frontend_api_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('frontend_api_url')] public string $frontendApiUrl; /** @@ -54,23 +54,23 @@ class Domain * * @var ?string $accountsPortalUrl */ - #[\JMS\Serializer\Annotation\SerializedName('accounts_portal_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('accounts_portal_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $accountsPortalUrl = null; /** * * @var ?string $proxyUrl */ - #[\JMS\Serializer\Annotation\SerializedName('proxy_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('proxy_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $proxyUrl = null; /** * * @var string $developmentOrigin */ - #[\JMS\Serializer\Annotation\SerializedName('development_origin')] + #[\Speakeasy\Serializer\Annotation\SerializedName('development_origin')] public string $developmentOrigin; /** @@ -78,23 +78,23 @@ class Domain * * @var ?array $cnameTargets */ - #[\JMS\Serializer\Annotation\SerializedName('cname_targets')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\CNameTarget>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('cname_targets')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\CNameTarget>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $cnameTargets = null; /** - * @param ?DomainObject $object - * @param ?string $id - * @param ?string $name - * @param ?bool $isSatellite - * @param ?string $frontendApiUrl - * @param ?string $developmentOrigin + * @param DomainObject $object + * @param string $id + * @param string $name + * @param bool $isSatellite + * @param string $frontendApiUrl + * @param string $developmentOrigin * @param ?string $accountsPortalUrl * @param ?string $proxyUrl * @param ?array $cnameTargets */ - public function __construct(?DomainObject $object = null, ?string $id = null, ?string $name = null, ?bool $isSatellite = null, ?string $frontendApiUrl = null, ?string $developmentOrigin = null, ?string $accountsPortalUrl = null, ?string $proxyUrl = null, ?array $cnameTargets = null) + public function __construct(DomainObject $object, string $id, string $name, bool $isSatellite, string $frontendApiUrl, string $developmentOrigin, ?string $accountsPortalUrl = null, ?string $proxyUrl = null, ?array $cnameTargets = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/Domains.php b/src/Models/Components/Domains.php index 6960960..44d7b20 100644 --- a/src/Models/Components/Domains.php +++ b/src/Models/Components/Domains.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** Domains - A list of domains */ class Domains { /** @@ -16,8 +17,8 @@ class Domains * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Domain>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Domain>')] public array $data; /** @@ -27,14 +28,14 @@ class Domains * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/EmailAddress.php b/src/Models/Components/EmailAddress.php index 83d8ba4..ec99e14 100644 --- a/src/Models/Components/EmailAddress.php +++ b/src/Models/Components/EmailAddress.php @@ -9,14 +9,15 @@ namespace Clerk\Backend\Models\Components; +/** EmailAddress - Success */ class EmailAddress { /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,39 +27,39 @@ class EmailAddress * * @var EmailAddressObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\EmailAddressObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\EmailAddressObject')] public EmailAddressObject $object; /** * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** * * @var bool $reserved */ - #[\JMS\Serializer\Annotation\SerializedName('reserved')] + #[\Speakeasy\Serializer\Annotation\SerializedName('reserved')] public bool $reserved; /** * - * @var Otp|Admin|Oauth $verification + * @var Otp|Admin|Oauth|null $verification */ - #[\JMS\Serializer\Annotation\SerializedName('verification')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Otp|\Clerk\Backend\Models\Components\Admin|\Clerk\Backend\Models\Components\Oauth')] - public Otp|Admin|Oauth $verification; + #[\Speakeasy\Serializer\Annotation\SerializedName('verification')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Otp|\Clerk\Backend\Models\Components\Admin|\Clerk\Backend\Models\Components\Oauth')] + public Otp|Admin|Oauth|null $verification; /** * $linkedTo * * @var array $linkedTo */ - #[\JMS\Serializer\Annotation\SerializedName('linked_to')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\IdentificationLink>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('linked_to')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\IdentificationLink>')] public array $linkedTo; /** @@ -68,7 +69,7 @@ class EmailAddress * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -78,28 +79,28 @@ class EmailAddress * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?EmailAddressObject $object - * @param ?string $emailAddress - * @param ?bool $reserved - * @param Otp|Admin|Oauth|null $verification - * @param ?array $linkedTo - * @param ?int $createdAt - * @param ?int $updatedAt + * @param EmailAddressObject $object + * @param string $emailAddress + * @param bool $reserved + * @param array $linkedTo + * @param int $createdAt + * @param int $updatedAt * @param ?string $id + * @param Otp|Admin|Oauth|null $verification */ - public function __construct(?EmailAddressObject $object = null, ?string $emailAddress = null, ?bool $reserved = null, Otp|Admin|Oauth|null $verification = null, ?array $linkedTo = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $id = null) + public function __construct(EmailAddressObject $object, string $emailAddress, bool $reserved, array $linkedTo, int $createdAt, int $updatedAt, ?string $id = null, Otp|Admin|Oauth|null $verification = null) { $this->object = $object; $this->emailAddress = $emailAddress; $this->reserved = $reserved; - $this->verification = $verification; $this->linkedTo = $linkedTo; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; $this->id = $id; + $this->verification = $verification; } } \ No newline at end of file diff --git a/src/Models/Components/ErrorClerkError.php b/src/Models/Components/ErrorClerkError.php index 9bb2922..6f5559d 100644 --- a/src/Models/Components/ErrorClerkError.php +++ b/src/Models/Components/ErrorClerkError.php @@ -15,48 +15,48 @@ class ErrorClerkError * * @var string $message */ - #[\JMS\Serializer\Annotation\SerializedName('message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('message')] public string $message; /** * * @var string $longMessage */ - #[\JMS\Serializer\Annotation\SerializedName('long_message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('long_message')] public string $longMessage; /** * * @var string $code */ - #[\JMS\Serializer\Annotation\SerializedName('code')] + #[\Speakeasy\Serializer\Annotation\SerializedName('code')] public string $code; /** * * @var ?ErrorMeta $meta */ - #[\JMS\Serializer\Annotation\SerializedName('meta')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ErrorMeta|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ErrorMeta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?ErrorMeta $meta = null; /** * * @var ?string $clerkTraceId */ - #[\JMS\Serializer\Annotation\SerializedName('clerk_trace_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('clerk_trace_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $clerkTraceId = null; /** - * @param ?string $message - * @param ?string $longMessage - * @param ?string $code + * @param string $message + * @param string $longMessage + * @param string $code * @param ?ErrorMeta $meta * @param ?string $clerkTraceId */ - public function __construct(?string $message = null, ?string $longMessage = null, ?string $code = null, ?ErrorMeta $meta = null, ?string $clerkTraceId = null) + public function __construct(string $message, string $longMessage, string $code, ?ErrorMeta $meta = null, ?string $clerkTraceId = null) { $this->message = $message; $this->longMessage = $longMessage; diff --git a/src/Models/Components/IdentificationLink.php b/src/Models/Components/IdentificationLink.php index b063959..15cb877 100644 --- a/src/Models/Components/IdentificationLink.php +++ b/src/Models/Components/IdentificationLink.php @@ -15,22 +15,22 @@ class IdentificationLink * * @var Type $type */ - #[\JMS\Serializer\Annotation\SerializedName('type')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Type')] + #[\Speakeasy\Serializer\Annotation\SerializedName('type')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Type')] public Type $type; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** - * @param ?Type $type - * @param ?string $id + * @param Type $type + * @param string $id */ - public function __construct(?Type $type = null, ?string $id = null) + public function __construct(Type $type, string $id) { $this->type = $type; $this->id = $id; diff --git a/src/Models/Components/InstanceRestrictions.php b/src/Models/Components/InstanceRestrictions.php index a9d6e53..3389fb3 100644 --- a/src/Models/Components/InstanceRestrictions.php +++ b/src/Models/Components/InstanceRestrictions.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** InstanceRestrictions - Success */ class InstanceRestrictions { /** @@ -16,41 +17,41 @@ class InstanceRestrictions * * @var ?InstanceRestrictionsObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InstanceRestrictionsObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InstanceRestrictionsObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?InstanceRestrictionsObject $object = null; /** * * @var ?bool $allowlist */ - #[\JMS\Serializer\Annotation\SerializedName('allowlist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowlist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowlist = null; /** * * @var ?bool $blocklist */ - #[\JMS\Serializer\Annotation\SerializedName('blocklist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('blocklist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $blocklist = null; /** * * @var ?bool $blockEmailSubaddresses */ - #[\JMS\Serializer\Annotation\SerializedName('block_email_subaddresses')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('block_email_subaddresses')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $blockEmailSubaddresses = null; /** * * @var ?bool $ignoreDotsForGmailAddresses */ - #[\JMS\Serializer\Annotation\SerializedName('ignore_dots_for_gmail_addresses')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('ignore_dots_for_gmail_addresses')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $ignoreDotsForGmailAddresses = null; /** diff --git a/src/Models/Components/InstanceSettings.php b/src/Models/Components/InstanceSettings.php index 2c10fd6..4473c16 100644 --- a/src/Models/Components/InstanceSettings.php +++ b/src/Models/Components/InstanceSettings.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** InstanceSettings - InstanceSettings Server API */ class InstanceSettings { /** @@ -16,49 +17,49 @@ class InstanceSettings * * @var ?InstanceSettingsObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InstanceSettingsObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InstanceSettingsObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?InstanceSettingsObject $object = null; /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** * * @var ?bool $restrictedToAllowlist */ - #[\JMS\Serializer\Annotation\SerializedName('restricted_to_allowlist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('restricted_to_allowlist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $restrictedToAllowlist = null; /** * * @var ?string $fromEmailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('from_email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('from_email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $fromEmailAddress = null; /** * * @var ?bool $progressiveSignUp */ - #[\JMS\Serializer\Annotation\SerializedName('progressive_sign_up')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('progressive_sign_up')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $progressiveSignUp = null; /** * * @var ?bool $enhancedEmailDeliverability */ - #[\JMS\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $enhancedEmailDeliverability = null; /** diff --git a/src/Models/Components/Invitation.php b/src/Models/Components/Invitation.php index 5244b53..42e22ea 100644 --- a/src/Models/Components/Invitation.php +++ b/src/Models/Components/Invitation.php @@ -9,61 +9,62 @@ namespace Clerk\Backend\Models\Components; +/** Invitation - Success */ class Invitation { /** * * @var InvitationObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationObject')] public InvitationObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** * * @var ?InvitationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?InvitationPublicMetadata $publicMetadata = null; /** * * @var ?bool $revoked */ - #[\JMS\Serializer\Annotation\SerializedName('revoked')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('revoked')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $revoked = null; /** * * @var InvitationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationStatus')] public InvitationStatus $status; /** * * @var ?string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $url = null; /** @@ -73,7 +74,7 @@ class Invitation * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -83,21 +84,21 @@ class Invitation * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?InvitationObject $object - * @param ?string $id - * @param ?string $emailAddress - * @param ?InvitationStatus $status - * @param ?int $createdAt - * @param ?int $updatedAt + * @param InvitationObject $object + * @param string $id + * @param string $emailAddress + * @param InvitationStatus $status + * @param int $createdAt + * @param int $updatedAt * @param ?InvitationPublicMetadata $publicMetadata * @param ?bool $revoked * @param ?string $url */ - public function __construct(?InvitationObject $object = null, ?string $id = null, ?string $emailAddress = null, ?InvitationStatus $status = null, ?int $createdAt = null, ?int $updatedAt = null, ?InvitationPublicMetadata $publicMetadata = null, ?bool $revoked = null, ?string $url = null) + public function __construct(InvitationObject $object, string $id, string $emailAddress, InvitationStatus $status, int $createdAt, int $updatedAt, ?InvitationPublicMetadata $publicMetadata = null, ?bool $revoked = null, ?string $url = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/InvitationRevoked.php b/src/Models/Components/InvitationRevoked.php index 2f3ee87..1d67557 100644 --- a/src/Models/Components/InvitationRevoked.php +++ b/src/Models/Components/InvitationRevoked.php @@ -9,61 +9,62 @@ namespace Clerk\Backend\Models\Components; +/** InvitationRevoked - Success */ class InvitationRevoked { /** * * @var InvitationRevokedObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedObject')] public InvitationRevokedObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** * * @var ?InvitationRevokedPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?InvitationRevokedPublicMetadata $publicMetadata = null; /** * * @var ?bool $revoked */ - #[\JMS\Serializer\Annotation\SerializedName('revoked')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('revoked')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $revoked = null; /** * * @var InvitationRevokedStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\InvitationRevokedStatus')] public InvitationRevokedStatus $status; /** * * @var ?string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $url = null; /** @@ -73,7 +74,7 @@ class InvitationRevoked * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -83,21 +84,21 @@ class InvitationRevoked * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?InvitationRevokedObject $object - * @param ?string $id - * @param ?string $emailAddress - * @param ?InvitationRevokedStatus $status - * @param ?int $createdAt - * @param ?int $updatedAt + * @param InvitationRevokedObject $object + * @param string $id + * @param string $emailAddress + * @param InvitationRevokedStatus $status + * @param int $createdAt + * @param int $updatedAt * @param ?InvitationRevokedPublicMetadata $publicMetadata * @param ?bool $revoked * @param ?string $url */ - public function __construct(?InvitationRevokedObject $object = null, ?string $id = null, ?string $emailAddress = null, ?InvitationRevokedStatus $status = null, ?int $createdAt = null, ?int $updatedAt = null, ?InvitationRevokedPublicMetadata $publicMetadata = null, ?bool $revoked = null, ?string $url = null) + public function __construct(InvitationRevokedObject $object, string $id, string $emailAddress, InvitationRevokedStatus $status, int $createdAt, int $updatedAt, ?InvitationRevokedPublicMetadata $publicMetadata = null, ?bool $revoked = null, ?string $url = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/JWTTemplate.php b/src/Models/Components/JWTTemplate.php index c058deb..09d5e7a 100644 --- a/src/Models/Components/JWTTemplate.php +++ b/src/Models/Components/JWTTemplate.php @@ -9,66 +9,67 @@ namespace Clerk\Backend\Models\Components; +/** JWTTemplate - List of JWT templates */ class JWTTemplate { /** * * @var JWTTemplateObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\JWTTemplateObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\JWTTemplateObject')] public JWTTemplateObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var Claims $claims */ - #[\JMS\Serializer\Annotation\SerializedName('claims')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Claims')] + #[\Speakeasy\Serializer\Annotation\SerializedName('claims')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Claims')] public Claims $claims; /** * * @var int $lifetime */ - #[\JMS\Serializer\Annotation\SerializedName('lifetime')] + #[\Speakeasy\Serializer\Annotation\SerializedName('lifetime')] public int $lifetime; /** * * @var int $allowedClockSkew */ - #[\JMS\Serializer\Annotation\SerializedName('allowed_clock_skew')] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowed_clock_skew')] public int $allowedClockSkew; /** * * @var ?bool $customSigningKey */ - #[\JMS\Serializer\Annotation\SerializedName('custom_signing_key')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('custom_signing_key')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $customSigningKey = null; /** * * @var ?string $signingAlgorithm */ - #[\JMS\Serializer\Annotation\SerializedName('signing_algorithm')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('signing_algorithm')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $signingAlgorithm = null; /** @@ -78,7 +79,7 @@ class JWTTemplate * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -88,22 +89,22 @@ class JWTTemplate * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?JWTTemplateObject $object - * @param ?string $id - * @param ?string $name - * @param ?Claims $claims - * @param ?int $lifetime - * @param ?int $allowedClockSkew - * @param ?int $createdAt - * @param ?int $updatedAt + * @param JWTTemplateObject $object + * @param string $id + * @param string $name + * @param Claims $claims + * @param int $lifetime + * @param int $allowedClockSkew + * @param int $createdAt + * @param int $updatedAt * @param ?bool $customSigningKey * @param ?string $signingAlgorithm */ - public function __construct(?JWTTemplateObject $object = null, ?string $id = null, ?string $name = null, ?Claims $claims = null, ?int $lifetime = null, ?int $allowedClockSkew = null, ?int $createdAt = null, ?int $updatedAt = null, ?bool $customSigningKey = null, ?string $signingAlgorithm = null) + public function __construct(JWTTemplateObject $object, string $id, string $name, Claims $claims, int $lifetime, int $allowedClockSkew, int $createdAt, int $updatedAt, ?bool $customSigningKey = null, ?string $signingAlgorithm = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/OAuthApplication.php b/src/Models/Components/OAuthApplication.php index 7ead82a..1fae19b 100644 --- a/src/Models/Components/OAuthApplication.php +++ b/src/Models/Components/OAuthApplication.php @@ -15,78 +15,78 @@ class OAuthApplication * * @var OAuthApplicationObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OAuthApplicationObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OAuthApplicationObject')] public OAuthApplicationObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $instanceId */ - #[\JMS\Serializer\Annotation\SerializedName('instance_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('instance_id')] public string $instanceId; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $clientId */ - #[\JMS\Serializer\Annotation\SerializedName('client_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('client_id')] public string $clientId; /** * * @var bool $public */ - #[\JMS\Serializer\Annotation\SerializedName('public')] + #[\Speakeasy\Serializer\Annotation\SerializedName('public')] public bool $public; /** * * @var string $scopes */ - #[\JMS\Serializer\Annotation\SerializedName('scopes')] + #[\Speakeasy\Serializer\Annotation\SerializedName('scopes')] public string $scopes; /** * * @var string $callbackUrl */ - #[\JMS\Serializer\Annotation\SerializedName('callback_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('callback_url')] public string $callbackUrl; /** * * @var string $authorizeUrl */ - #[\JMS\Serializer\Annotation\SerializedName('authorize_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('authorize_url')] public string $authorizeUrl; /** * * @var string $tokenFetchUrl */ - #[\JMS\Serializer\Annotation\SerializedName('token_fetch_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('token_fetch_url')] public string $tokenFetchUrl; /** * * @var string $userInfoUrl */ - #[\JMS\Serializer\Annotation\SerializedName('user_info_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_info_url')] public string $userInfoUrl; /** @@ -96,7 +96,7 @@ class OAuthApplication * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -106,25 +106,25 @@ class OAuthApplication * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?OAuthApplicationObject $object - * @param ?string $id - * @param ?string $instanceId - * @param ?string $name - * @param ?string $clientId - * @param ?bool $public - * @param ?string $scopes - * @param ?string $callbackUrl - * @param ?string $authorizeUrl - * @param ?string $tokenFetchUrl - * @param ?string $userInfoUrl - * @param ?int $createdAt - * @param ?int $updatedAt + * @param OAuthApplicationObject $object + * @param string $id + * @param string $instanceId + * @param string $name + * @param string $clientId + * @param bool $public + * @param string $scopes + * @param string $callbackUrl + * @param string $authorizeUrl + * @param string $tokenFetchUrl + * @param string $userInfoUrl + * @param int $createdAt + * @param int $updatedAt */ - public function __construct(?OAuthApplicationObject $object = null, ?string $id = null, ?string $instanceId = null, ?string $name = null, ?string $clientId = null, ?bool $public = null, ?string $scopes = null, ?string $callbackUrl = null, ?string $authorizeUrl = null, ?string $tokenFetchUrl = null, ?string $userInfoUrl = null, ?int $createdAt = null, ?int $updatedAt = null) + public function __construct(OAuthApplicationObject $object, string $id, string $instanceId, string $name, string $clientId, bool $public, string $scopes, string $callbackUrl, string $authorizeUrl, string $tokenFetchUrl, string $userInfoUrl, int $createdAt, int $updatedAt) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/OAuthApplicationWithSecret.php b/src/Models/Components/OAuthApplicationWithSecret.php index 4671b6a..fdd398a 100644 --- a/src/Models/Components/OAuthApplicationWithSecret.php +++ b/src/Models/Components/OAuthApplicationWithSecret.php @@ -15,78 +15,78 @@ class OAuthApplicationWithSecret * * @var OAuthApplicationWithSecretObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OAuthApplicationWithSecretObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OAuthApplicationWithSecretObject')] public OAuthApplicationWithSecretObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $instanceId */ - #[\JMS\Serializer\Annotation\SerializedName('instance_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('instance_id')] public string $instanceId; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $clientId */ - #[\JMS\Serializer\Annotation\SerializedName('client_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('client_id')] public string $clientId; /** * * @var bool $public */ - #[\JMS\Serializer\Annotation\SerializedName('public')] + #[\Speakeasy\Serializer\Annotation\SerializedName('public')] public bool $public; /** * * @var string $scopes */ - #[\JMS\Serializer\Annotation\SerializedName('scopes')] + #[\Speakeasy\Serializer\Annotation\SerializedName('scopes')] public string $scopes; /** * * @var string $callbackUrl */ - #[\JMS\Serializer\Annotation\SerializedName('callback_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('callback_url')] public string $callbackUrl; /** * * @var string $authorizeUrl */ - #[\JMS\Serializer\Annotation\SerializedName('authorize_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('authorize_url')] public string $authorizeUrl; /** * * @var string $tokenFetchUrl */ - #[\JMS\Serializer\Annotation\SerializedName('token_fetch_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('token_fetch_url')] public string $tokenFetchUrl; /** * * @var string $userInfoUrl */ - #[\JMS\Serializer\Annotation\SerializedName('user_info_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_info_url')] public string $userInfoUrl; /** @@ -96,7 +96,7 @@ class OAuthApplicationWithSecret * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -106,7 +106,7 @@ class OAuthApplicationWithSecret * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** @@ -116,27 +116,27 @@ class OAuthApplicationWithSecret * * @var ?string $clientSecret */ - #[\JMS\Serializer\Annotation\SerializedName('client_secret')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('client_secret')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $clientSecret = null; /** - * @param ?OAuthApplicationWithSecretObject $object - * @param ?string $id - * @param ?string $instanceId - * @param ?string $name - * @param ?string $clientId - * @param ?bool $public - * @param ?string $scopes - * @param ?string $callbackUrl - * @param ?string $authorizeUrl - * @param ?string $tokenFetchUrl - * @param ?string $userInfoUrl - * @param ?int $createdAt - * @param ?int $updatedAt + * @param OAuthApplicationWithSecretObject $object + * @param string $id + * @param string $instanceId + * @param string $name + * @param string $clientId + * @param bool $public + * @param string $scopes + * @param string $callbackUrl + * @param string $authorizeUrl + * @param string $tokenFetchUrl + * @param string $userInfoUrl + * @param int $createdAt + * @param int $updatedAt * @param ?string $clientSecret */ - public function __construct(?OAuthApplicationWithSecretObject $object = null, ?string $id = null, ?string $instanceId = null, ?string $name = null, ?string $clientId = null, ?bool $public = null, ?string $scopes = null, ?string $callbackUrl = null, ?string $authorizeUrl = null, ?string $tokenFetchUrl = null, ?string $userInfoUrl = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $clientSecret = null) + public function __construct(OAuthApplicationWithSecretObject $object, string $id, string $instanceId, string $name, string $clientId, bool $public, string $scopes, string $callbackUrl, string $authorizeUrl, string $tokenFetchUrl, string $userInfoUrl, int $createdAt, int $updatedAt, ?string $clientSecret = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/OAuthApplications.php b/src/Models/Components/OAuthApplications.php index ce2d0de..0b9b7f5 100644 --- a/src/Models/Components/OAuthApplications.php +++ b/src/Models/Components/OAuthApplications.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** OAuthApplications - A list of OAuth applications */ class OAuthApplications { /** @@ -16,8 +17,8 @@ class OAuthApplications * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OAuthApplication>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OAuthApplication>')] public array $data; /** @@ -27,14 +28,14 @@ class OAuthApplications * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/Oauth.php b/src/Models/Components/Oauth.php index 3934b27..3bdbb37 100644 --- a/src/Models/Components/Oauth.php +++ b/src/Models/Components/Oauth.php @@ -15,59 +15,59 @@ class Oauth * * @var OauthVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OauthVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OauthVerificationStatus')] public OauthVerificationStatus $status; /** * * @var OauthVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OauthVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OauthVerificationStrategy')] public OauthVerificationStrategy $strategy; /** * * @var ?string $externalVerificationRedirectUrl */ - #[\JMS\Serializer\Annotation\SerializedName('external_verification_redirect_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_verification_redirect_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalVerificationRedirectUrl = null; /** * * @var ?ErrorClerkError $error */ - #[\JMS\Serializer\Annotation\SerializedName('error')] - #[\JMS\Serializer\Annotation\Type('?\Clerk\Backend\Models\Components\ErrorClerkError')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('error')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ErrorClerkError')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?ErrorClerkError $error = null; /** * * @var int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] public int $expireAt; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** - * @param ?OauthVerificationStatus $status - * @param ?OauthVerificationStrategy $strategy - * @param ?int $expireAt + * @param OauthVerificationStatus $status + * @param OauthVerificationStrategy $strategy + * @param int $expireAt * @param ?string $externalVerificationRedirectUrl * @param ?ErrorClerkError $error * @param ?int $attempts */ - public function __construct(?OauthVerificationStatus $status = null, ?OauthVerificationStrategy $strategy = null, ?int $expireAt = null, ?string $externalVerificationRedirectUrl = null, ?ErrorClerkError $error = null, ?int $attempts = null) + public function __construct(OauthVerificationStatus $status, OauthVerificationStrategy $strategy, int $expireAt, ?string $externalVerificationRedirectUrl = null, ?ErrorClerkError $error = null, ?int $attempts = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/Organization.php b/src/Models/Components/Organization.php index a0acc20..b77cadc 100644 --- a/src/Models/Components/Organization.php +++ b/src/Models/Components/Organization.php @@ -15,76 +15,76 @@ class Organization * * @var OrganizationObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationObject')] public OrganizationObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] public string $slug; /** * * @var ?int $membersCount */ - #[\JMS\Serializer\Annotation\SerializedName('members_count')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('members_count')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $membersCount = null; /** * * @var int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] public int $maxAllowedMemberships; /** * * @var ?bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $adminDeleteEnabled = null; /** * * @var OrganizationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationPublicMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationPublicMetadata')] public OrganizationPublicMetadata $publicMetadata; /** * * @var OrganizationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationPrivateMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationPrivateMetadata')] public OrganizationPrivateMetadata $privateMetadata; /** * * @var ?string $createdBy */ - #[\JMS\Serializer\Annotation\SerializedName('created_by')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_by')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdBy = null; /** @@ -94,7 +94,7 @@ class Organization * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -104,24 +104,24 @@ class Organization * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?OrganizationObject $object - * @param ?string $id - * @param ?string $name - * @param ?string $slug - * @param ?int $maxAllowedMemberships - * @param ?OrganizationPublicMetadata $publicMetadata - * @param ?OrganizationPrivateMetadata $privateMetadata - * @param ?int $createdAt - * @param ?int $updatedAt - * @param ?int $membersCount + * @param OrganizationObject $object + * @param string $id + * @param string $name + * @param string $slug + * @param int $maxAllowedMemberships + * @param OrganizationPublicMetadata $publicMetadata + * @param OrganizationPrivateMetadata $privateMetadata + * @param int $createdAt + * @param int $updatedAt * @param ?bool $adminDeleteEnabled * @param ?string $createdBy + * @param ?int $membersCount */ - public function __construct(?OrganizationObject $object = null, ?string $id = null, ?string $name = null, ?string $slug = null, ?int $maxAllowedMemberships = null, ?OrganizationPublicMetadata $publicMetadata = null, ?OrganizationPrivateMetadata $privateMetadata = null, ?int $createdAt = null, ?int $updatedAt = null, ?int $membersCount = null, ?bool $adminDeleteEnabled = null, ?string $createdBy = null) + public function __construct(OrganizationObject $object, string $id, string $name, string $slug, int $maxAllowedMemberships, OrganizationPublicMetadata $publicMetadata, OrganizationPrivateMetadata $privateMetadata, int $createdAt, int $updatedAt, ?bool $adminDeleteEnabled = null, ?string $createdBy = null, ?int $membersCount = null) { $this->object = $object; $this->id = $id; @@ -132,8 +132,8 @@ public function __construct(?OrganizationObject $object = null, ?string $id = nu $this->privateMetadata = $privateMetadata; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; - $this->membersCount = $membersCount; $this->adminDeleteEnabled = $adminDeleteEnabled; $this->createdBy = $createdBy; + $this->membersCount = $membersCount; } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationInvitation.php b/src/Models/Components/OrganizationInvitation.php index 4ea3ca9..a20f2f9 100644 --- a/src/Models/Components/OrganizationInvitation.php +++ b/src/Models/Components/OrganizationInvitation.php @@ -16,8 +16,8 @@ class OrganizationInvitation * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -27,59 +27,59 @@ class OrganizationInvitation * * @var ?OrganizationInvitationObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationInvitationObject $object = null; /** * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** * * @var ?string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $role = null; /** * * @var ?string $organizationId */ - #[\JMS\Serializer\Annotation\SerializedName('organization_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('organization_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $organizationId = null; /** * * @var ?string $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $status = null; /** * * @var ?OrganizationInvitationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationInvitationPublicMetadata $publicMetadata = null; /** * * @var ?OrganizationInvitationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationInvitationPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationInvitationPrivateMetadata $privateMetadata = null; /** @@ -87,8 +87,8 @@ class OrganizationInvitation * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** @@ -96,8 +96,8 @@ class OrganizationInvitation * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** diff --git a/src/Models/Components/OrganizationInvitations.php b/src/Models/Components/OrganizationInvitations.php index 7e820a4..6bd3581 100644 --- a/src/Models/Components/OrganizationInvitations.php +++ b/src/Models/Components/OrganizationInvitations.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** OrganizationInvitations - A list of organization invitations */ class OrganizationInvitations { /** @@ -16,8 +17,8 @@ class OrganizationInvitations * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OrganizationInvitation>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OrganizationInvitation>')] public array $data; /** @@ -27,14 +28,14 @@ class OrganizationInvitations * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/OrganizationMembership.php b/src/Models/Components/OrganizationMembership.php index aeb77d3..ddfa3b9 100644 --- a/src/Models/Components/OrganizationMembership.php +++ b/src/Models/Components/OrganizationMembership.php @@ -16,8 +16,8 @@ class OrganizationMembership * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -27,17 +27,17 @@ class OrganizationMembership * * @var ?OrganizationMembershipObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationMembershipObject $object = null; /** * * @var ?string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $role = null; /** @@ -45,9 +45,9 @@ class OrganizationMembership * * @var ?array $permissions */ - #[\JMS\Serializer\Annotation\SerializedName('permissions')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('permissions')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $permissions = null; /** @@ -55,9 +55,9 @@ class OrganizationMembership * * @var ?OrganizationMembershipPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationMembershipPublicMetadata $publicMetadata = null; /** @@ -65,27 +65,27 @@ class OrganizationMembership * * @var ?OrganizationMembershipPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationMembershipPrivateMetadata $privateMetadata = null; /** * * @var ?OrganizationMembershipOrganization $organization */ - #[\JMS\Serializer\Annotation\SerializedName('organization')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganization|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('organization')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganization|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?OrganizationMembershipOrganization $organization = null; /** * * @var ?PublicUserData $publicUserData */ - #[\JMS\Serializer\Annotation\SerializedName('public_user_data')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PublicUserData|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_user_data')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PublicUserData|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PublicUserData $publicUserData = null; /** @@ -93,8 +93,8 @@ class OrganizationMembership * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** @@ -102,8 +102,8 @@ class OrganizationMembership * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** diff --git a/src/Models/Components/OrganizationMembershipOrganization.php b/src/Models/Components/OrganizationMembershipOrganization.php index b393f08..dfde97d 100644 --- a/src/Models/Components/OrganizationMembershipOrganization.php +++ b/src/Models/Components/OrganizationMembershipOrganization.php @@ -15,76 +15,76 @@ class OrganizationMembershipOrganization * * @var OrganizationMembershipOrganizationObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationObject')] public OrganizationMembershipOrganizationObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] public string $slug; /** * * @var ?int $membersCount */ - #[\JMS\Serializer\Annotation\SerializedName('members_count')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('members_count')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $membersCount = null; /** * * @var int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] public int $maxAllowedMemberships; /** * * @var ?bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $adminDeleteEnabled = null; /** * * @var OrganizationMembershipOrganizationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationPublicMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationPublicMetadata')] public OrganizationMembershipOrganizationPublicMetadata $publicMetadata; /** * * @var OrganizationMembershipOrganizationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationPrivateMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationMembershipOrganizationPrivateMetadata')] public OrganizationMembershipOrganizationPrivateMetadata $privateMetadata; /** * * @var ?string $createdBy */ - #[\JMS\Serializer\Annotation\SerializedName('created_by')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_by')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdBy = null; /** @@ -94,7 +94,7 @@ class OrganizationMembershipOrganization * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -104,24 +104,24 @@ class OrganizationMembershipOrganization * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?OrganizationMembershipOrganizationObject $object - * @param ?string $id - * @param ?string $name - * @param ?string $slug - * @param ?int $maxAllowedMemberships - * @param ?OrganizationMembershipOrganizationPublicMetadata $publicMetadata - * @param ?OrganizationMembershipOrganizationPrivateMetadata $privateMetadata - * @param ?int $createdAt - * @param ?int $updatedAt - * @param ?int $membersCount + * @param OrganizationMembershipOrganizationObject $object + * @param string $id + * @param string $name + * @param string $slug + * @param int $maxAllowedMemberships + * @param OrganizationMembershipOrganizationPublicMetadata $publicMetadata + * @param OrganizationMembershipOrganizationPrivateMetadata $privateMetadata + * @param int $createdAt + * @param int $updatedAt * @param ?bool $adminDeleteEnabled * @param ?string $createdBy + * @param ?int $membersCount */ - public function __construct(?OrganizationMembershipOrganizationObject $object = null, ?string $id = null, ?string $name = null, ?string $slug = null, ?int $maxAllowedMemberships = null, ?OrganizationMembershipOrganizationPublicMetadata $publicMetadata = null, ?OrganizationMembershipOrganizationPrivateMetadata $privateMetadata = null, ?int $createdAt = null, ?int $updatedAt = null, ?int $membersCount = null, ?bool $adminDeleteEnabled = null, ?string $createdBy = null) + public function __construct(OrganizationMembershipOrganizationObject $object, string $id, string $name, string $slug, int $maxAllowedMemberships, OrganizationMembershipOrganizationPublicMetadata $publicMetadata, OrganizationMembershipOrganizationPrivateMetadata $privateMetadata, int $createdAt, int $updatedAt, ?bool $adminDeleteEnabled = null, ?string $createdBy = null, ?int $membersCount = null) { $this->object = $object; $this->id = $id; @@ -132,8 +132,8 @@ public function __construct(?OrganizationMembershipOrganizationObject $object = $this->privateMetadata = $privateMetadata; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; - $this->membersCount = $membersCount; $this->adminDeleteEnabled = $adminDeleteEnabled; $this->createdBy = $createdBy; + $this->membersCount = $membersCount; } } \ No newline at end of file diff --git a/src/Models/Components/OrganizationMemberships.php b/src/Models/Components/OrganizationMemberships.php index f004e4a..fe662f3 100644 --- a/src/Models/Components/OrganizationMemberships.php +++ b/src/Models/Components/OrganizationMemberships.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** OrganizationMemberships - A list of organization memberships */ class OrganizationMemberships { /** @@ -16,8 +17,8 @@ class OrganizationMemberships * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OrganizationMembership>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\OrganizationMembership>')] public array $data; /** @@ -27,14 +28,14 @@ class OrganizationMemberships * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/OrganizationSettings.php b/src/Models/Components/OrganizationSettings.php index 21fc0c0..ebe5ec2 100644 --- a/src/Models/Components/OrganizationSettings.php +++ b/src/Models/Components/OrganizationSettings.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** OrganizationSettings - Success */ class OrganizationSettings { /** @@ -16,38 +17,38 @@ class OrganizationSettings * * @var OrganizationSettingsObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationSettingsObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationSettingsObject')] public OrganizationSettingsObject $object; /** * * @var bool $enabled */ - #[\JMS\Serializer\Annotation\SerializedName('enabled')] + #[\Speakeasy\Serializer\Annotation\SerializedName('enabled')] public bool $enabled; /** * * @var int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] public int $maxAllowedMemberships; /** * * @var ?int $maxAllowedRoles */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_roles')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_roles')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $maxAllowedRoles = null; /** * * @var ?int $maxAllowedPermissions */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_permissions')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_permissions')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $maxAllowedPermissions = null; /** @@ -55,7 +56,7 @@ class OrganizationSettings * * @var string $creatorRole */ - #[\JMS\Serializer\Annotation\SerializedName('creator_role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('creator_role')] public string $creatorRole; /** @@ -63,14 +64,14 @@ class OrganizationSettings * * @var bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] public bool $adminDeleteEnabled; /** * * @var bool $domainsEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('domains_enabled')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_enabled')] public bool $domainsEnabled; /** @@ -78,8 +79,8 @@ class OrganizationSettings * * @var array $domainsEnrollmentModes */ - #[\JMS\Serializer\Annotation\SerializedName('domains_enrollment_modes')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\DomainsEnrollmentModes>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_enrollment_modes')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\DomainsEnrollmentModes>')] public array $domainsEnrollmentModes; /** @@ -87,22 +88,22 @@ class OrganizationSettings * * @var string $domainsDefaultRole */ - #[\JMS\Serializer\Annotation\SerializedName('domains_default_role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_default_role')] public string $domainsDefaultRole; /** - * @param ?OrganizationSettingsObject $object - * @param ?bool $enabled - * @param ?int $maxAllowedMemberships - * @param ?string $creatorRole - * @param ?bool $adminDeleteEnabled - * @param ?bool $domainsEnabled - * @param ?array $domainsEnrollmentModes - * @param ?string $domainsDefaultRole + * @param OrganizationSettingsObject $object + * @param bool $enabled + * @param int $maxAllowedMemberships + * @param string $creatorRole + * @param bool $adminDeleteEnabled + * @param bool $domainsEnabled + * @param array $domainsEnrollmentModes + * @param string $domainsDefaultRole * @param ?int $maxAllowedRoles * @param ?int $maxAllowedPermissions */ - public function __construct(?OrganizationSettingsObject $object = null, ?bool $enabled = null, ?int $maxAllowedMemberships = null, ?string $creatorRole = null, ?bool $adminDeleteEnabled = null, ?bool $domainsEnabled = null, ?array $domainsEnrollmentModes = null, ?string $domainsDefaultRole = null, ?int $maxAllowedRoles = null, ?int $maxAllowedPermissions = null) + public function __construct(OrganizationSettingsObject $object, bool $enabled, int $maxAllowedMemberships, string $creatorRole, bool $adminDeleteEnabled, bool $domainsEnabled, array $domainsEnrollmentModes, string $domainsDefaultRole, ?int $maxAllowedRoles = null, ?int $maxAllowedPermissions = null) { $this->object = $object; $this->enabled = $enabled; diff --git a/src/Models/Components/OrganizationWithLogo.php b/src/Models/Components/OrganizationWithLogo.php index cf41d53..02eaa0a 100644 --- a/src/Models/Components/OrganizationWithLogo.php +++ b/src/Models/Components/OrganizationWithLogo.php @@ -15,76 +15,76 @@ class OrganizationWithLogo * * @var OrganizationWithLogoObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoObject')] public OrganizationWithLogoObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] public string $slug; /** * * @var ?int $membersCount */ - #[\JMS\Serializer\Annotation\SerializedName('members_count')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('members_count')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $membersCount = null; /** * * @var int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] public int $maxAllowedMemberships; /** * * @var ?bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $adminDeleteEnabled = null; /** * * @var OrganizationWithLogoPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoPublicMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoPublicMetadata')] public OrganizationWithLogoPublicMetadata $publicMetadata; /** * * @var OrganizationWithLogoPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoPrivateMetadata')] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OrganizationWithLogoPrivateMetadata')] public OrganizationWithLogoPrivateMetadata $privateMetadata; /** * * @var ?string $createdBy */ - #[\JMS\Serializer\Annotation\SerializedName('created_by')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_by')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdBy = null; /** @@ -94,7 +94,7 @@ class OrganizationWithLogo * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -104,7 +104,7 @@ class OrganizationWithLogo * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** @@ -112,43 +112,43 @@ class OrganizationWithLogo * @var ?string $logoUrl * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ - #[\JMS\Serializer\Annotation\SerializedName('logo_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('logo_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $logoUrl = null; /** * * @var string $imageUrl */ - #[\JMS\Serializer\Annotation\SerializedName('image_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('image_url')] public string $imageUrl; /** * * @var ?bool $hasImage */ - #[\JMS\Serializer\Annotation\SerializedName('has_image')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('has_image')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $hasImage = null; /** - * @param ?OrganizationWithLogoObject $object - * @param ?string $id - * @param ?string $name - * @param ?string $slug - * @param ?int $maxAllowedMemberships - * @param ?OrganizationWithLogoPublicMetadata $publicMetadata - * @param ?OrganizationWithLogoPrivateMetadata $privateMetadata - * @param ?int $createdAt - * @param ?int $updatedAt - * @param ?string $imageUrl - * @param ?int $membersCount + * @param OrganizationWithLogoObject $object + * @param string $id + * @param string $name + * @param string $slug + * @param int $maxAllowedMemberships + * @param OrganizationWithLogoPublicMetadata $publicMetadata + * @param OrganizationWithLogoPrivateMetadata $privateMetadata + * @param int $createdAt + * @param int $updatedAt + * @param string $imageUrl * @param ?bool $adminDeleteEnabled * @param ?string $createdBy * @param ?string $logoUrl * @param ?bool $hasImage + * @param ?int $membersCount */ - public function __construct(?OrganizationWithLogoObject $object = null, ?string $id = null, ?string $name = null, ?string $slug = null, ?int $maxAllowedMemberships = null, ?OrganizationWithLogoPublicMetadata $publicMetadata = null, ?OrganizationWithLogoPrivateMetadata $privateMetadata = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $imageUrl = null, ?int $membersCount = null, ?bool $adminDeleteEnabled = null, ?string $createdBy = null, ?string $logoUrl = null, ?bool $hasImage = null) + public function __construct(OrganizationWithLogoObject $object, string $id, string $name, string $slug, int $maxAllowedMemberships, OrganizationWithLogoPublicMetadata $publicMetadata, OrganizationWithLogoPrivateMetadata $privateMetadata, int $createdAt, int $updatedAt, string $imageUrl, ?bool $adminDeleteEnabled = null, ?string $createdBy = null, ?string $logoUrl = null, ?bool $hasImage = null, ?int $membersCount = null) { $this->object = $object; $this->id = $id; @@ -160,10 +160,10 @@ public function __construct(?OrganizationWithLogoObject $object = null, ?string $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; $this->imageUrl = $imageUrl; - $this->membersCount = $membersCount; $this->adminDeleteEnabled = $adminDeleteEnabled; $this->createdBy = $createdBy; $this->logoUrl = $logoUrl; $this->hasImage = $hasImage; + $this->membersCount = $membersCount; } } \ No newline at end of file diff --git a/src/Models/Components/Organizations.php b/src/Models/Components/Organizations.php index 8453642..aed2f9d 100644 --- a/src/Models/Components/Organizations.php +++ b/src/Models/Components/Organizations.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** Organizations - A list of organizations */ class Organizations { /** @@ -16,8 +17,8 @@ class Organizations * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Organization>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Organization>')] public array $data; /** @@ -27,14 +28,14 @@ class Organizations * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/Otp.php b/src/Models/Components/Otp.php index a14dd15..12acfdf 100644 --- a/src/Models/Components/Otp.php +++ b/src/Models/Components/Otp.php @@ -15,39 +15,39 @@ class Otp * * @var VerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationStatus')] public VerificationStatus $status; /** * * @var Strategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Strategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Strategy')] public Strategy $strategy; /** * * @var int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] public int $attempts; /** * * @var int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] public int $expireAt; /** - * @param ?VerificationStatus $status - * @param ?Strategy $strategy - * @param ?int $attempts - * @param ?int $expireAt + * @param VerificationStatus $status + * @param Strategy $strategy + * @param int $attempts + * @param int $expireAt */ - public function __construct(?VerificationStatus $status = null, ?Strategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(VerificationStatus $status, Strategy $strategy, int $attempts, int $expireAt) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/Passkey.php b/src/Models/Components/Passkey.php index a9ff16f..d4dc4e5 100644 --- a/src/Models/Components/Passkey.php +++ b/src/Models/Components/Passkey.php @@ -15,51 +15,51 @@ class Passkey * * @var PasskeyVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PasskeyVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PasskeyVerificationStatus')] public PasskeyVerificationStatus $status; /** * * @var PasskeyVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PasskeyVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PasskeyVerificationStrategy')] public PasskeyVerificationStrategy $strategy; /** * * @var ?VerificationNonce $nonce */ - #[\JMS\Serializer\Annotation\SerializedName('nonce')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationNonce|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('nonce')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationNonce|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?VerificationNonce $nonce = null; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?PasskeyVerificationStatus $status - * @param ?PasskeyVerificationStrategy $strategy + * @param PasskeyVerificationStatus $status + * @param PasskeyVerificationStrategy $strategy * @param ?VerificationNonce $nonce * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?PasskeyVerificationStatus $status = null, ?PasskeyVerificationStrategy $strategy = null, ?VerificationNonce $nonce = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(PasskeyVerificationStatus $status, PasskeyVerificationStrategy $strategy, ?VerificationNonce $nonce = null, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/PhoneNumber.php b/src/Models/Components/PhoneNumber.php index eff94fb..fd30524 100644 --- a/src/Models/Components/PhoneNumber.php +++ b/src/Models/Components/PhoneNumber.php @@ -9,14 +9,15 @@ namespace Clerk\Backend\Models\Components; +/** PhoneNumber - Success */ class PhoneNumber { /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,55 +27,55 @@ class PhoneNumber * * @var PhoneNumberObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PhoneNumberObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PhoneNumberObject')] public PhoneNumberObject $object; /** * * @var string $phoneNumber */ - #[\JMS\Serializer\Annotation\SerializedName('phone_number')] + #[\Speakeasy\Serializer\Annotation\SerializedName('phone_number')] public string $phoneNumber; /** * * @var ?bool $reservedForSecondFactor */ - #[\JMS\Serializer\Annotation\SerializedName('reserved_for_second_factor')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reserved_for_second_factor')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $reservedForSecondFactor = null; /** * * @var ?bool $defaultSecondFactor */ - #[\JMS\Serializer\Annotation\SerializedName('default_second_factor')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('default_second_factor')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $defaultSecondFactor = null; /** * * @var bool $reserved */ - #[\JMS\Serializer\Annotation\SerializedName('reserved')] + #[\Speakeasy\Serializer\Annotation\SerializedName('reserved')] public bool $reserved; /** * - * @var VerificationOTP|VerificationAdmin $verification + * @var VerificationOTP|VerificationAdmin|null $verification */ - #[\JMS\Serializer\Annotation\SerializedName('verification')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationOTP|\Clerk\Backend\Models\Components\VerificationAdmin')] - public VerificationOTP|VerificationAdmin $verification; + #[\Speakeasy\Serializer\Annotation\SerializedName('verification')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\VerificationOTP|\Clerk\Backend\Models\Components\VerificationAdmin')] + public VerificationOTP|VerificationAdmin|null $verification; /** * $linkedTo * * @var array $linkedTo */ - #[\JMS\Serializer\Annotation\SerializedName('linked_to')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\IdentificationLink>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('linked_to')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\IdentificationLink>')] public array $linkedTo; /** @@ -82,9 +83,9 @@ class PhoneNumber * * @var ?array $backupCodes */ - #[\JMS\Serializer\Annotation\SerializedName('backup_codes')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('backup_codes')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $backupCodes = null; /** @@ -94,7 +95,7 @@ class PhoneNumber * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -104,34 +105,34 @@ class PhoneNumber * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?PhoneNumberObject $object - * @param ?string $phoneNumber - * @param ?bool $reserved - * @param VerificationOTP|VerificationAdmin|null $verification - * @param ?array $linkedTo - * @param ?int $createdAt - * @param ?int $updatedAt + * @param PhoneNumberObject $object + * @param string $phoneNumber + * @param bool $reserved + * @param array $linkedTo + * @param int $createdAt + * @param int $updatedAt * @param ?string $id * @param ?bool $reservedForSecondFactor * @param ?bool $defaultSecondFactor + * @param VerificationOTP|VerificationAdmin|null $verification * @param ?array $backupCodes */ - public function __construct(?PhoneNumberObject $object = null, ?string $phoneNumber = null, ?bool $reserved = null, VerificationOTP|VerificationAdmin|null $verification = null, ?array $linkedTo = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $id = null, ?bool $reservedForSecondFactor = null, ?bool $defaultSecondFactor = null, ?array $backupCodes = null) + public function __construct(PhoneNumberObject $object, string $phoneNumber, bool $reserved, array $linkedTo, int $createdAt, int $updatedAt, ?string $id = null, ?bool $reservedForSecondFactor = null, ?bool $defaultSecondFactor = null, VerificationOTP|VerificationAdmin|null $verification = null, ?array $backupCodes = null) { $this->object = $object; $this->phoneNumber = $phoneNumber; $this->reserved = $reserved; - $this->verification = $verification; $this->linkedTo = $linkedTo; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; $this->id = $id; $this->reservedForSecondFactor = $reservedForSecondFactor; $this->defaultSecondFactor = $defaultSecondFactor; + $this->verification = $verification; $this->backupCodes = $backupCodes; } } \ No newline at end of file diff --git a/src/Models/Components/ProxyCheck.php b/src/Models/Components/ProxyCheck.php index aefaef6..0a6d3d4 100644 --- a/src/Models/Components/ProxyCheck.php +++ b/src/Models/Components/ProxyCheck.php @@ -9,76 +9,77 @@ namespace Clerk\Backend\Models\Components; +/** ProxyCheck - Health check information about a domain's proxy configuration validation attempt. */ class ProxyCheck { /** * * @var ProxyCheckObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ProxyCheckObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ProxyCheckObject')] public ProxyCheckObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $domainId */ - #[\JMS\Serializer\Annotation\SerializedName('domain_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domain_id')] public string $domainId; /** * * @var int $lastRunAt */ - #[\JMS\Serializer\Annotation\SerializedName('last_run_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_run_at')] public int $lastRunAt; /** * * @var string $proxyUrl */ - #[\JMS\Serializer\Annotation\SerializedName('proxy_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('proxy_url')] public string $proxyUrl; /** * * @var bool $successful */ - #[\JMS\Serializer\Annotation\SerializedName('successful')] + #[\Speakeasy\Serializer\Annotation\SerializedName('successful')] public bool $successful; /** * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?ProxyCheckObject $object - * @param ?string $id - * @param ?string $domainId - * @param ?int $lastRunAt - * @param ?string $proxyUrl - * @param ?bool $successful - * @param ?int $createdAt - * @param ?int $updatedAt + * @param ProxyCheckObject $object + * @param string $id + * @param string $domainId + * @param int $lastRunAt + * @param string $proxyUrl + * @param bool $successful + * @param int $createdAt + * @param int $updatedAt */ - public function __construct(?ProxyCheckObject $object = null, ?string $id = null, ?string $domainId = null, ?int $lastRunAt = null, ?string $proxyUrl = null, ?bool $successful = null, ?int $createdAt = null, ?int $updatedAt = null) + public function __construct(ProxyCheckObject $object, string $id, string $domainId, int $lastRunAt, string $proxyUrl, bool $successful, int $createdAt, int $updatedAt) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/PublicUserData.php b/src/Models/Components/PublicUserData.php index 228032e..45ddb4b 100644 --- a/src/Models/Components/PublicUserData.php +++ b/src/Models/Components/PublicUserData.php @@ -15,24 +15,24 @@ class PublicUserData * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** @@ -40,51 +40,51 @@ class PublicUserData * @var ?string $profileImageUrl * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ - #[\JMS\Serializer\Annotation\SerializedName('profile_image_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('profile_image_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $profileImageUrl = null; /** * * @var ?string $imageUrl */ - #[\JMS\Serializer\Annotation\SerializedName('image_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('image_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $imageUrl = null; /** * * @var ?bool $hasImage */ - #[\JMS\Serializer\Annotation\SerializedName('has_image')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('has_image')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $hasImage = null; /** * * @var ?string $identifier */ - #[\JMS\Serializer\Annotation\SerializedName('identifier')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $identifier = null; /** * @param ?string $userId + * @param ?string $imageUrl + * @param ?bool $hasImage * @param ?string $firstName * @param ?string $lastName * @param ?string $profileImageUrl - * @param ?string $imageUrl - * @param ?bool $hasImage * @param ?string $identifier */ - public function __construct(?string $userId = null, ?string $firstName = null, ?string $lastName = null, ?string $profileImageUrl = null, ?string $imageUrl = null, ?bool $hasImage = null, ?string $identifier = null) + public function __construct(?string $userId = null, ?string $imageUrl = null, ?bool $hasImage = null, ?string $firstName = null, ?string $lastName = null, ?string $profileImageUrl = null, ?string $identifier = null) { $this->userId = $userId; + $this->imageUrl = $imageUrl; + $this->hasImage = $hasImage; $this->firstName = $firstName; $this->lastName = $lastName; $this->profileImageUrl = $profileImageUrl; - $this->imageUrl = $imageUrl; - $this->hasImage = $hasImage; $this->identifier = $identifier; } } \ No newline at end of file diff --git a/src/Models/Components/RedirectURL.php b/src/Models/Components/RedirectURL.php index b36443c..4315905 100644 --- a/src/Models/Components/RedirectURL.php +++ b/src/Models/Components/RedirectURL.php @@ -9,28 +9,29 @@ namespace Clerk\Backend\Models\Components; +/** RedirectURL - List of Redirect URLs */ class RedirectURL { /** * * @var RedirectURLObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\RedirectURLObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\RedirectURLObject')] public RedirectURLObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] public string $url; /** @@ -40,7 +41,7 @@ class RedirectURL * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -50,17 +51,17 @@ class RedirectURL * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?RedirectURLObject $object - * @param ?string $id - * @param ?string $url - * @param ?int $createdAt - * @param ?int $updatedAt + * @param RedirectURLObject $object + * @param string $id + * @param string $url + * @param int $createdAt + * @param int $updatedAt */ - public function __construct(?RedirectURLObject $object = null, ?string $id = null, ?string $url = null, ?int $createdAt = null, ?int $updatedAt = null) + public function __construct(RedirectURLObject $object, string $id, string $url, int $createdAt, int $updatedAt) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/SAMLAccount.php b/src/Models/Components/SAMLAccount.php index 2229436..6504f99 100644 --- a/src/Models/Components/SAMLAccount.php +++ b/src/Models/Components/SAMLAccount.php @@ -15,7 +15,7 @@ class SAMLAccount * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** @@ -25,95 +25,95 @@ class SAMLAccount * * @var SAMLAccountObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLAccountObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLAccountObject')] public SAMLAccountObject $object; /** * * @var string $provider */ - #[\JMS\Serializer\Annotation\SerializedName('provider')] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider')] public string $provider; /** * * @var bool $active */ - #[\JMS\Serializer\Annotation\SerializedName('active')] + #[\Speakeasy\Serializer\Annotation\SerializedName('active')] public bool $active; /** * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** * * @var ?string $providerUserId */ - #[\JMS\Serializer\Annotation\SerializedName('provider_user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider_user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $providerUserId = null; /** * * @var ?SAMLAccountPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLAccountPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLAccountPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?SAMLAccountPublicMetadata $publicMetadata = null; /** * - * @var Saml|Ticket $verification + * @var Saml|Ticket|null $verification */ - #[\JMS\Serializer\Annotation\SerializedName('verification')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Saml|\Clerk\Backend\Models\Components\Ticket')] - public Saml|Ticket $verification; + #[\Speakeasy\Serializer\Annotation\SerializedName('verification')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Saml|\Clerk\Backend\Models\Components\Ticket')] + public Saml|Ticket|null $verification; /** - * @param ?string $id - * @param ?SAMLAccountObject $object - * @param ?string $provider - * @param ?bool $active - * @param ?string $emailAddress + * @param string $id + * @param SAMLAccountObject $object + * @param string $provider + * @param bool $active + * @param string $emailAddress + * @param ?SAMLAccountPublicMetadata $publicMetadata * @param Saml|Ticket|null $verification * @param ?string $firstName * @param ?string $lastName * @param ?string $providerUserId - * @param ?SAMLAccountPublicMetadata $publicMetadata */ - public function __construct(?string $id = null, ?SAMLAccountObject $object = null, ?string $provider = null, ?bool $active = null, ?string $emailAddress = null, Saml|Ticket|null $verification = null, ?string $firstName = null, ?string $lastName = null, ?string $providerUserId = null, ?SAMLAccountPublicMetadata $publicMetadata = null) + public function __construct(string $id, SAMLAccountObject $object, string $provider, bool $active, string $emailAddress, ?SAMLAccountPublicMetadata $publicMetadata = null, Saml|Ticket|null $verification = null, ?string $firstName = null, ?string $lastName = null, ?string $providerUserId = null) { $this->id = $id; $this->object = $object; $this->provider = $provider; $this->active = $active; $this->emailAddress = $emailAddress; + $this->publicMetadata = $publicMetadata; $this->verification = $verification; $this->firstName = $firstName; $this->lastName = $lastName; $this->providerUserId = $providerUserId; - $this->publicMetadata = $publicMetadata; } } \ No newline at end of file diff --git a/src/Models/Components/SAMLConnection.php b/src/Models/Components/SAMLConnection.php index d3cc64d..edf18a4 100644 --- a/src/Models/Components/SAMLConnection.php +++ b/src/Models/Components/SAMLConnection.php @@ -15,140 +15,140 @@ class SAMLConnection * * @var SAMLConnectionObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLConnectionObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLConnectionObject')] public SAMLConnectionObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** * * @var string $domain */ - #[\JMS\Serializer\Annotation\SerializedName('domain')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domain')] public string $domain; /** * - * @var string $idpEntityId + * @var ?string $idpEntityId */ - #[\JMS\Serializer\Annotation\SerializedName('idp_entity_id')] - public string $idpEntityId; + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_entity_id')] + public ?string $idpEntityId; /** * - * @var string $idpSsoUrl + * @var ?string $idpSsoUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_sso_url')] - public string $idpSsoUrl; + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_sso_url')] + public ?string $idpSsoUrl; /** * - * @var string $idpCertificate + * @var ?string $idpCertificate */ - #[\JMS\Serializer\Annotation\SerializedName('idp_certificate')] - public string $idpCertificate; + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_certificate')] + public ?string $idpCertificate; /** * * @var ?string $idpMetadataUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadataUrl = null; /** * * @var ?string $idpMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadata = null; /** * * @var string $acsUrl */ - #[\JMS\Serializer\Annotation\SerializedName('acs_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('acs_url')] public string $acsUrl; /** * * @var string $spEntityId */ - #[\JMS\Serializer\Annotation\SerializedName('sp_entity_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('sp_entity_id')] public string $spEntityId; /** * * @var string $spMetadataUrl */ - #[\JMS\Serializer\Annotation\SerializedName('sp_metadata_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('sp_metadata_url')] public string $spMetadataUrl; /** * * @var ?AttributeMapping $attributeMapping */ - #[\JMS\Serializer\Annotation\SerializedName('attribute_mapping')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AttributeMapping|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attribute_mapping')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AttributeMapping|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?AttributeMapping $attributeMapping = null; /** * * @var bool $active */ - #[\JMS\Serializer\Annotation\SerializedName('active')] + #[\Speakeasy\Serializer\Annotation\SerializedName('active')] public bool $active; /** * * @var string $provider */ - #[\JMS\Serializer\Annotation\SerializedName('provider')] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider')] public string $provider; /** * * @var int $userCount */ - #[\JMS\Serializer\Annotation\SerializedName('user_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_count')] public int $userCount; /** * * @var bool $syncUserAttributes */ - #[\JMS\Serializer\Annotation\SerializedName('sync_user_attributes')] + #[\Speakeasy\Serializer\Annotation\SerializedName('sync_user_attributes')] public bool $syncUserAttributes; /** * * @var ?bool $allowSubdomains */ - #[\JMS\Serializer\Annotation\SerializedName('allow_subdomains')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allow_subdomains')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowSubdomains = null; /** * * @var ?bool $allowIdpInitiated */ - #[\JMS\Serializer\Annotation\SerializedName('allow_idp_initiated')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allow_idp_initiated')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowIdpInitiated = null; /** @@ -158,7 +158,7 @@ class SAMLConnection * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -168,41 +168,38 @@ class SAMLConnection * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?SAMLConnectionObject $object - * @param ?string $id - * @param ?string $name - * @param ?string $domain + * @param SAMLConnectionObject $object + * @param string $id + * @param string $name + * @param string $domain + * @param string $acsUrl + * @param string $spEntityId + * @param string $spMetadataUrl + * @param bool $active + * @param string $provider + * @param int $userCount + * @param bool $syncUserAttributes + * @param int $createdAt + * @param int $updatedAt * @param ?string $idpEntityId * @param ?string $idpSsoUrl * @param ?string $idpCertificate - * @param ?string $acsUrl - * @param ?string $spEntityId - * @param ?string $spMetadataUrl - * @param ?bool $active - * @param ?string $provider - * @param ?int $userCount - * @param ?bool $syncUserAttributes - * @param ?int $createdAt - * @param ?int $updatedAt - * @param ?string $idpMetadataUrl - * @param ?string $idpMetadata * @param ?AttributeMapping $attributeMapping * @param ?bool $allowSubdomains * @param ?bool $allowIdpInitiated + * @param ?string $idpMetadataUrl + * @param ?string $idpMetadata */ - public function __construct(?SAMLConnectionObject $object = null, ?string $id = null, ?string $name = null, ?string $domain = null, ?string $idpEntityId = null, ?string $idpSsoUrl = null, ?string $idpCertificate = null, ?string $acsUrl = null, ?string $spEntityId = null, ?string $spMetadataUrl = null, ?bool $active = null, ?string $provider = null, ?int $userCount = null, ?bool $syncUserAttributes = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $idpMetadataUrl = null, ?string $idpMetadata = null, ?AttributeMapping $attributeMapping = null, ?bool $allowSubdomains = null, ?bool $allowIdpInitiated = null) + public function __construct(SAMLConnectionObject $object, string $id, string $name, string $domain, string $acsUrl, string $spEntityId, string $spMetadataUrl, bool $active, string $provider, int $userCount, bool $syncUserAttributes, int $createdAt, int $updatedAt, ?string $idpEntityId = null, ?string $idpSsoUrl = null, ?string $idpCertificate = null, ?AttributeMapping $attributeMapping = null, ?bool $allowSubdomains = null, ?bool $allowIdpInitiated = null, ?string $idpMetadataUrl = null, ?string $idpMetadata = null) { $this->object = $object; $this->id = $id; $this->name = $name; $this->domain = $domain; - $this->idpEntityId = $idpEntityId; - $this->idpSsoUrl = $idpSsoUrl; - $this->idpCertificate = $idpCertificate; $this->acsUrl = $acsUrl; $this->spEntityId = $spEntityId; $this->spMetadataUrl = $spMetadataUrl; @@ -212,10 +209,13 @@ public function __construct(?SAMLConnectionObject $object = null, ?string $id = $this->syncUserAttributes = $syncUserAttributes; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; - $this->idpMetadataUrl = $idpMetadataUrl; - $this->idpMetadata = $idpMetadata; + $this->idpEntityId = $idpEntityId; + $this->idpSsoUrl = $idpSsoUrl; + $this->idpCertificate = $idpCertificate; $this->attributeMapping = $attributeMapping; $this->allowSubdomains = $allowSubdomains; $this->allowIdpInitiated = $allowIdpInitiated; + $this->idpMetadataUrl = $idpMetadataUrl; + $this->idpMetadata = $idpMetadata; } } \ No newline at end of file diff --git a/src/Models/Components/SAMLConnections.php b/src/Models/Components/SAMLConnections.php index 459a79e..1702228 100644 --- a/src/Models/Components/SAMLConnections.php +++ b/src/Models/Components/SAMLConnections.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** SAMLConnections - A list of SAML Connections */ class SAMLConnections { /** @@ -16,8 +17,8 @@ class SAMLConnections * * @var array $data */ - #[\JMS\Serializer\Annotation\SerializedName('data')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SAMLConnection>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('data')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SAMLConnection>')] public array $data; /** @@ -27,14 +28,14 @@ class SAMLConnections * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?array $data - * @param ?int $totalCount + * @param array $data + * @param int $totalCount */ - public function __construct(?array $data = null, ?int $totalCount = null) + public function __construct(array $data, int $totalCount) { $this->data = $data; $this->totalCount = $totalCount; diff --git a/src/Models/Components/SAMLErrorClerkError.php b/src/Models/Components/SAMLErrorClerkError.php index 47eda54..396f1f0 100644 --- a/src/Models/Components/SAMLErrorClerkError.php +++ b/src/Models/Components/SAMLErrorClerkError.php @@ -15,48 +15,48 @@ class SAMLErrorClerkError * * @var string $message */ - #[\JMS\Serializer\Annotation\SerializedName('message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('message')] public string $message; /** * * @var string $longMessage */ - #[\JMS\Serializer\Annotation\SerializedName('long_message')] + #[\Speakeasy\Serializer\Annotation\SerializedName('long_message')] public string $longMessage; /** * * @var string $code */ - #[\JMS\Serializer\Annotation\SerializedName('code')] + #[\Speakeasy\Serializer\Annotation\SerializedName('code')] public string $code; /** * * @var ?ClerkErrorErrorMeta $meta */ - #[\JMS\Serializer\Annotation\SerializedName('meta')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ClerkErrorErrorMeta|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ClerkErrorErrorMeta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?ClerkErrorErrorMeta $meta = null; /** * * @var ?string $clerkTraceId */ - #[\JMS\Serializer\Annotation\SerializedName('clerk_trace_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('clerk_trace_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $clerkTraceId = null; /** - * @param ?string $message - * @param ?string $longMessage - * @param ?string $code + * @param string $message + * @param string $longMessage + * @param string $code * @param ?ClerkErrorErrorMeta $meta * @param ?string $clerkTraceId */ - public function __construct(?string $message = null, ?string $longMessage = null, ?string $code = null, ?ClerkErrorErrorMeta $meta = null, ?string $clerkTraceId = null) + public function __construct(string $message, string $longMessage, string $code, ?ClerkErrorErrorMeta $meta = null, ?string $clerkTraceId = null) { $this->message = $message; $this->longMessage = $longMessage; diff --git a/src/Models/Components/Saml.php b/src/Models/Components/Saml.php index 93b0970..be9818b 100644 --- a/src/Models/Components/Saml.php +++ b/src/Models/Components/Saml.php @@ -15,63 +15,63 @@ class Saml * * @var SAMLVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLVerificationStatus')] public SAMLVerificationStatus $status; /** * * @var SAMLVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLVerificationStrategy')] public SAMLVerificationStrategy $strategy; /** * - * @var string $externalVerificationRedirectUrl + * @var ?string $externalVerificationRedirectUrl */ - #[\JMS\Serializer\Annotation\SerializedName('external_verification_redirect_url')] - public string $externalVerificationRedirectUrl; + #[\Speakeasy\Serializer\Annotation\SerializedName('external_verification_redirect_url')] + public ?string $externalVerificationRedirectUrl; /** * * @var ?SAMLErrorClerkError $error */ - #[\JMS\Serializer\Annotation\SerializedName('error')] - #[\JMS\Serializer\Annotation\Type('?\Clerk\Backend\Models\Components\SAMLErrorClerkError')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('error')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SAMLErrorClerkError')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?SAMLErrorClerkError $error = null; /** * * @var int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] public int $expireAt; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** - * @param ?SAMLVerificationStatus $status - * @param ?SAMLVerificationStrategy $strategy + * @param SAMLVerificationStatus $status + * @param SAMLVerificationStrategy $strategy + * @param int $expireAt * @param ?string $externalVerificationRedirectUrl - * @param ?int $expireAt * @param ?SAMLErrorClerkError $error * @param ?int $attempts */ - public function __construct(?SAMLVerificationStatus $status = null, ?SAMLVerificationStrategy $strategy = null, ?string $externalVerificationRedirectUrl = null, ?int $expireAt = null, ?SAMLErrorClerkError $error = null, ?int $attempts = null) + public function __construct(SAMLVerificationStatus $status, SAMLVerificationStrategy $strategy, int $expireAt, ?string $externalVerificationRedirectUrl = null, ?SAMLErrorClerkError $error = null, ?int $attempts = null) { $this->status = $status; $this->strategy = $strategy; - $this->externalVerificationRedirectUrl = $externalVerificationRedirectUrl; $this->expireAt = $expireAt; + $this->externalVerificationRedirectUrl = $externalVerificationRedirectUrl; $this->error = $error; $this->attempts = $attempts; } diff --git a/src/Models/Components/SchemasPasskey.php b/src/Models/Components/SchemasPasskey.php index 268e722..cf11ea0 100644 --- a/src/Models/Components/SchemasPasskey.php +++ b/src/Models/Components/SchemasPasskey.php @@ -15,8 +15,8 @@ class SchemasPasskey * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,15 +26,15 @@ class SchemasPasskey * * @var SchemasPasskeyObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SchemasPasskeyObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SchemasPasskeyObject')] public SchemasPasskeyObject $object; /** * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** @@ -44,30 +44,30 @@ class SchemasPasskey * * @var int $lastUsedAt */ - #[\JMS\Serializer\Annotation\SerializedName('last_used_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_used_at')] public int $lastUsedAt; /** * - * @var Passkey $verification + * @var ?Passkey $verification */ - #[\JMS\Serializer\Annotation\SerializedName('verification')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Passkey')] - public Passkey $verification; + #[\Speakeasy\Serializer\Annotation\SerializedName('verification')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Passkey')] + public ?Passkey $verification; /** - * @param ?SchemasPasskeyObject $object - * @param ?string $name - * @param ?int $lastUsedAt - * @param ?Passkey $verification + * @param SchemasPasskeyObject $object + * @param string $name + * @param int $lastUsedAt * @param ?string $id + * @param ?Passkey $verification */ - public function __construct(?SchemasPasskeyObject $object = null, ?string $name = null, ?int $lastUsedAt = null, ?Passkey $verification = null, ?string $id = null) + public function __construct(SchemasPasskeyObject $object, string $name, int $lastUsedAt, ?string $id = null, ?Passkey $verification = null) { $this->object = $object; $this->name = $name; $this->lastUsedAt = $lastUsedAt; - $this->verification = $verification; $this->id = $id; + $this->verification = $verification; } } \ No newline at end of file diff --git a/src/Models/Components/Session.php b/src/Models/Components/Session.php index 6aea967..37dcee1 100644 --- a/src/Models/Components/Session.php +++ b/src/Models/Components/Session.php @@ -18,75 +18,75 @@ class Session * * @var SessionObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SessionObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SessionObject')] public SessionObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] public string $userId; /** * * @var string $clientId */ - #[\JMS\Serializer\Annotation\SerializedName('client_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('client_id')] public string $clientId; /** * * @var ?Actor $actor */ - #[\JMS\Serializer\Annotation\SerializedName('actor')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Actor|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('actor')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Actor|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?Actor $actor = null; /** * * @var Status $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Status')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Status')] public Status $status; /** * * @var ?string $lastActiveOrganizationId */ - #[\JMS\Serializer\Annotation\SerializedName('last_active_organization_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_active_organization_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastActiveOrganizationId = null; /** * * @var int $lastActiveAt */ - #[\JMS\Serializer\Annotation\SerializedName('last_active_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_active_at')] public int $lastActiveAt; /** * * @var int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] public int $expireAt; /** * * @var int $abandonAt */ - #[\JMS\Serializer\Annotation\SerializedName('abandon_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('abandon_at')] public int $abandonAt; /** @@ -96,7 +96,7 @@ class Session * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** @@ -106,24 +106,24 @@ class Session * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** - * @param ?SessionObject $object - * @param ?string $id - * @param ?string $userId - * @param ?string $clientId - * @param ?Status $status - * @param ?int $lastActiveAt - * @param ?int $expireAt - * @param ?int $abandonAt - * @param ?int $updatedAt - * @param ?int $createdAt + * @param SessionObject $object + * @param string $id + * @param string $userId + * @param string $clientId + * @param Status $status + * @param int $lastActiveAt + * @param int $expireAt + * @param int $abandonAt + * @param int $updatedAt + * @param int $createdAt * @param ?Actor $actor * @param ?string $lastActiveOrganizationId */ - public function __construct(?SessionObject $object = null, ?string $id = null, ?string $userId = null, ?string $clientId = null, ?Status $status = null, ?int $lastActiveAt = null, ?int $expireAt = null, ?int $abandonAt = null, ?int $updatedAt = null, ?int $createdAt = null, ?Actor $actor = null, ?string $lastActiveOrganizationId = null) + public function __construct(SessionObject $object, string $id, string $userId, string $clientId, Status $status, int $lastActiveAt, int $expireAt, int $abandonAt, int $updatedAt, int $createdAt, ?Actor $actor = null, ?string $lastActiveOrganizationId = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/SignInToken.php b/src/Models/Components/SignInToken.php index 7fd6fea..3ef059d 100644 --- a/src/Models/Components/SignInToken.php +++ b/src/Models/Components/SignInToken.php @@ -9,52 +9,53 @@ namespace Clerk\Backend\Models\Components; +/** SignInToken - Success */ class SignInToken { /** * * @var SignInTokenObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignInTokenObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignInTokenObject')] public SignInTokenObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var SignInTokenStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignInTokenStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignInTokenStatus')] public SignInTokenStatus $status; /** * * @var string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] public string $userId; /** * * @var ?string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $token = null; /** * * @var ?string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $url = null; /** @@ -64,7 +65,7 @@ class SignInToken * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -74,20 +75,20 @@ class SignInToken * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?SignInTokenObject $object - * @param ?string $id - * @param ?SignInTokenStatus $status - * @param ?string $userId - * @param ?int $createdAt - * @param ?int $updatedAt + * @param SignInTokenObject $object + * @param string $id + * @param SignInTokenStatus $status + * @param string $userId + * @param int $createdAt + * @param int $updatedAt * @param ?string $token * @param ?string $url */ - public function __construct(?SignInTokenObject $object = null, ?string $id = null, ?SignInTokenStatus $status = null, ?string $userId = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $token = null, ?string $url = null) + public function __construct(SignInTokenObject $object, string $id, SignInTokenStatus $status, string $userId, int $createdAt, int $updatedAt, ?string $token = null, ?string $url = null) { $this->object = $object; $this->id = $id; diff --git a/src/Models/Components/SignUp.php b/src/Models/Components/SignUp.php index af9f73f..e3b6b16 100644 --- a/src/Models/Components/SignUp.php +++ b/src/Models/Components/SignUp.php @@ -9,29 +9,30 @@ namespace Clerk\Backend\Models\Components; +/** SignUp - Success */ class SignUp { /** * * @var SignUpObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpObject')] public SignUpObject $object; /** * * @var string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; /** * * @var SignUpStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpStatus')] public SignUpStatus $status; /** @@ -39,9 +40,9 @@ class SignUp * * @var ?array $requiredFields */ - #[\JMS\Serializer\Annotation\SerializedName('required_fields')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('required_fields')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $requiredFields = null; /** @@ -49,9 +50,9 @@ class SignUp * * @var ?array $optionalFields */ - #[\JMS\Serializer\Annotation\SerializedName('optional_fields')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('optional_fields')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $optionalFields = null; /** @@ -59,9 +60,9 @@ class SignUp * * @var ?array $missingFields */ - #[\JMS\Serializer\Annotation\SerializedName('missing_fields')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('missing_fields')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $missingFields = null; /** @@ -69,166 +70,166 @@ class SignUp * * @var ?array $unverifiedFields */ - #[\JMS\Serializer\Annotation\SerializedName('unverified_fields')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unverified_fields')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $unverifiedFields = null; /** * * @var ?Verifications $verifications */ - #[\JMS\Serializer\Annotation\SerializedName('verifications')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Verifications|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verifications')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Verifications|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?Verifications $verifications = null; /** * * @var ?string $username */ - #[\JMS\Serializer\Annotation\SerializedName('username')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('username')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $username = null; /** * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** * * @var ?string $phoneNumber */ - #[\JMS\Serializer\Annotation\SerializedName('phone_number')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('phone_number')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $phoneNumber = null; /** * * @var ?string $web3Wallet */ - #[\JMS\Serializer\Annotation\SerializedName('web3_wallet')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('web3_wallet')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $web3Wallet = null; /** * * @var bool $passwordEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('password_enabled')] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_enabled')] public bool $passwordEnabled; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** * * @var ?SignUpUnsafeMetadata $unsafeMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('unsafe_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpUnsafeMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unsafe_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpUnsafeMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?SignUpUnsafeMetadata $unsafeMetadata = null; /** * * @var ?SignUpPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\SignUpPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?SignUpPublicMetadata $publicMetadata = null; /** * * @var bool $customAction */ - #[\JMS\Serializer\Annotation\SerializedName('custom_action')] + #[\Speakeasy\Serializer\Annotation\SerializedName('custom_action')] public bool $customAction; /** * * @var ?string $externalId */ - #[\JMS\Serializer\Annotation\SerializedName('external_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalId = null; /** * * @var ?string $createdSessionId */ - #[\JMS\Serializer\Annotation\SerializedName('created_session_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_session_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdSessionId = null; /** * * @var ?string $createdUserId */ - #[\JMS\Serializer\Annotation\SerializedName('created_user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdUserId = null; /** * * @var int $abandonAt */ - #[\JMS\Serializer\Annotation\SerializedName('abandon_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('abandon_at')] public int $abandonAt; /** * * @var ?ExternalAccount $externalAccount */ - #[\JMS\Serializer\Annotation\SerializedName('external_account')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ExternalAccount|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_account')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\ExternalAccount|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?ExternalAccount $externalAccount = null; /** - * @param ?SignUpObject $object - * @param ?string $id - * @param ?SignUpStatus $status - * @param ?bool $passwordEnabled - * @param ?bool $customAction - * @param ?int $abandonAt + * @param SignUpObject $object + * @param string $id + * @param SignUpStatus $status + * @param bool $passwordEnabled + * @param bool $customAction + * @param int $abandonAt * @param ?array $requiredFields * @param ?array $optionalFields * @param ?array $missingFields * @param ?array $unverifiedFields * @param ?Verifications $verifications + * @param ?SignUpUnsafeMetadata $unsafeMetadata + * @param ?SignUpPublicMetadata $publicMetadata + * @param ?ExternalAccount $externalAccount * @param ?string $username * @param ?string $emailAddress * @param ?string $phoneNumber * @param ?string $web3Wallet * @param ?string $firstName * @param ?string $lastName - * @param ?SignUpUnsafeMetadata $unsafeMetadata - * @param ?SignUpPublicMetadata $publicMetadata * @param ?string $externalId * @param ?string $createdSessionId * @param ?string $createdUserId - * @param ?ExternalAccount $externalAccount */ - public function __construct(?SignUpObject $object = null, ?string $id = null, ?SignUpStatus $status = null, ?bool $passwordEnabled = null, ?bool $customAction = null, ?int $abandonAt = null, ?array $requiredFields = null, ?array $optionalFields = null, ?array $missingFields = null, ?array $unverifiedFields = null, ?Verifications $verifications = null, ?string $username = null, ?string $emailAddress = null, ?string $phoneNumber = null, ?string $web3Wallet = null, ?string $firstName = null, ?string $lastName = null, ?SignUpUnsafeMetadata $unsafeMetadata = null, ?SignUpPublicMetadata $publicMetadata = null, ?string $externalId = null, ?string $createdSessionId = null, ?string $createdUserId = null, ?ExternalAccount $externalAccount = null) + public function __construct(SignUpObject $object, string $id, SignUpStatus $status, bool $passwordEnabled, bool $customAction, int $abandonAt, ?array $requiredFields = null, ?array $optionalFields = null, ?array $missingFields = null, ?array $unverifiedFields = null, ?Verifications $verifications = null, ?SignUpUnsafeMetadata $unsafeMetadata = null, ?SignUpPublicMetadata $publicMetadata = null, ?ExternalAccount $externalAccount = null, ?string $username = null, ?string $emailAddress = null, ?string $phoneNumber = null, ?string $web3Wallet = null, ?string $firstName = null, ?string $lastName = null, ?string $externalId = null, ?string $createdSessionId = null, ?string $createdUserId = null) { $this->object = $object; $this->id = $id; @@ -241,17 +242,17 @@ public function __construct(?SignUpObject $object = null, ?string $id = null, ?S $this->missingFields = $missingFields; $this->unverifiedFields = $unverifiedFields; $this->verifications = $verifications; + $this->unsafeMetadata = $unsafeMetadata; + $this->publicMetadata = $publicMetadata; + $this->externalAccount = $externalAccount; $this->username = $username; $this->emailAddress = $emailAddress; $this->phoneNumber = $phoneNumber; $this->web3Wallet = $web3Wallet; $this->firstName = $firstName; $this->lastName = $lastName; - $this->unsafeMetadata = $unsafeMetadata; - $this->publicMetadata = $publicMetadata; $this->externalId = $externalId; $this->createdSessionId = $createdSessionId; $this->createdUserId = $createdUserId; - $this->externalAccount = $externalAccount; } } \ No newline at end of file diff --git a/src/Models/Components/SvixURL.php b/src/Models/Components/SvixURL.php index 7d9fb2b..b71a2a8 100644 --- a/src/Models/Components/SvixURL.php +++ b/src/Models/Components/SvixURL.php @@ -9,19 +9,20 @@ namespace Clerk\Backend\Models\Components; +/** SvixURL - Response that contains a temporary Svix URL to access management dashboard */ class SvixURL { /** * * @var string $svixUrl */ - #[\JMS\Serializer\Annotation\SerializedName('svix_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('svix_url')] public string $svixUrl; /** - * @param ?string $svixUrl + * @param string $svixUrl */ - public function __construct(?string $svixUrl = null) + public function __construct(string $svixUrl) { $this->svixUrl = $svixUrl; } diff --git a/src/Models/Components/Template.php b/src/Models/Components/Template.php index 9defdeb..8f8bb8b 100644 --- a/src/Models/Components/Template.php +++ b/src/Models/Components/Template.php @@ -9,14 +9,15 @@ namespace Clerk\Backend\Models\Components; +/** Template - Success */ class Template { /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,9 +27,9 @@ class Template * * @var ?TemplateObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TemplateObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TemplateObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?TemplateObject $object = null; /** @@ -36,8 +37,8 @@ class Template * * @var ?string $instanceId */ - #[\JMS\Serializer\Annotation\SerializedName('instance_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('instance_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $instanceId = null; /** @@ -45,8 +46,8 @@ class Template * * @var ?string $resourceType */ - #[\JMS\Serializer\Annotation\SerializedName('resource_type')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('resource_type')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $resourceType = null; /** @@ -54,8 +55,8 @@ class Template * * @var ?string $templateType */ - #[\JMS\Serializer\Annotation\SerializedName('template_type')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('template_type')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $templateType = null; /** @@ -63,8 +64,8 @@ class Template * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -72,8 +73,8 @@ class Template * * @var ?string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $slug = null; /** @@ -81,8 +82,8 @@ class Template * * @var ?int $position */ - #[\JMS\Serializer\Annotation\SerializedName('position')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('position')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $position = null; /** @@ -90,8 +91,8 @@ class Template * * @var ?bool $canRevert */ - #[\JMS\Serializer\Annotation\SerializedName('can_revert')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('can_revert')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $canRevert = null; /** @@ -99,8 +100,8 @@ class Template * * @var ?bool $canDelete */ - #[\JMS\Serializer\Annotation\SerializedName('can_delete')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('can_delete')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $canDelete = null; /** @@ -108,8 +109,8 @@ class Template * * @var ?bool $canToggle */ - #[\JMS\Serializer\Annotation\SerializedName('can_toggle')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('can_toggle')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $canToggle = null; /** @@ -117,8 +118,8 @@ class Template * * @var ?string $subject */ - #[\JMS\Serializer\Annotation\SerializedName('subject')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('subject')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $subject = null; /** @@ -126,8 +127,8 @@ class Template * * @var ?string $markup */ - #[\JMS\Serializer\Annotation\SerializedName('markup')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('markup')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $markup = null; /** @@ -135,8 +136,8 @@ class Template * * @var ?string $body */ - #[\JMS\Serializer\Annotation\SerializedName('body')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('body')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $body = null; /** @@ -144,9 +145,9 @@ class Template * * @var ?array $availableVariables */ - #[\JMS\Serializer\Annotation\SerializedName('available_variables')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('available_variables')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $availableVariables = null; /** @@ -154,41 +155,41 @@ class Template * * @var ?array $requiredVariables */ - #[\JMS\Serializer\Annotation\SerializedName('required_variables')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('required_variables')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $requiredVariables = null; /** * * @var ?string $fromEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('from_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('from_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $fromEmailName = null; /** * * @var ?string $replyToEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('reply_to_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reply_to_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $replyToEmailName = null; /** * * @var ?bool $deliveredByClerk */ - #[\JMS\Serializer\Annotation\SerializedName('delivered_by_clerk')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('delivered_by_clerk')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $deliveredByClerk = null; /** * * @var ?bool $enabled */ - #[\JMS\Serializer\Annotation\SerializedName('enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $enabled = null; /** @@ -198,8 +199,8 @@ class Template * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** @@ -209,14 +210,13 @@ class Template * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** * @param ?string $id * @param ?TemplateObject $object - * @param ?string $instanceId * @param ?string $resourceType * @param ?string $templateType * @param ?string $name @@ -225,7 +225,6 @@ class Template * @param ?bool $canRevert * @param ?bool $canDelete * @param ?bool $canToggle - * @param ?string $subject * @param ?string $markup * @param ?string $body * @param ?array $availableVariables @@ -236,12 +235,13 @@ class Template * @param ?bool $enabled * @param ?int $updatedAt * @param ?int $createdAt + * @param ?string $instanceId + * @param ?string $subject */ - public function __construct(?string $id = null, ?TemplateObject $object = null, ?string $instanceId = null, ?string $resourceType = null, ?string $templateType = null, ?string $name = null, ?string $slug = null, ?int $position = null, ?bool $canRevert = null, ?bool $canDelete = null, ?bool $canToggle = null, ?string $subject = null, ?string $markup = null, ?string $body = null, ?array $availableVariables = null, ?array $requiredVariables = null, ?string $fromEmailName = null, ?string $replyToEmailName = null, ?bool $deliveredByClerk = null, ?bool $enabled = null, ?int $updatedAt = null, ?int $createdAt = null) + public function __construct(?string $id = null, ?TemplateObject $object = null, ?string $resourceType = null, ?string $templateType = null, ?string $name = null, ?string $slug = null, ?int $position = null, ?bool $canRevert = null, ?bool $canDelete = null, ?bool $canToggle = null, ?string $markup = null, ?string $body = null, ?array $availableVariables = null, ?array $requiredVariables = null, ?string $fromEmailName = null, ?string $replyToEmailName = null, ?bool $deliveredByClerk = null, ?bool $enabled = null, ?int $updatedAt = null, ?int $createdAt = null, ?string $instanceId = null, ?string $subject = null) { $this->id = $id; $this->object = $object; - $this->instanceId = $instanceId; $this->resourceType = $resourceType; $this->templateType = $templateType; $this->name = $name; @@ -250,7 +250,6 @@ public function __construct(?string $id = null, ?TemplateObject $object = null, $this->canRevert = $canRevert; $this->canDelete = $canDelete; $this->canToggle = $canToggle; - $this->subject = $subject; $this->markup = $markup; $this->body = $body; $this->availableVariables = $availableVariables; @@ -261,5 +260,7 @@ public function __construct(?string $id = null, ?TemplateObject $object = null, $this->enabled = $enabled; $this->updatedAt = $updatedAt; $this->createdAt = $createdAt; + $this->instanceId = $instanceId; + $this->subject = $subject; } } \ No newline at end of file diff --git a/src/Models/Components/TestingToken.php b/src/Models/Components/TestingToken.php index 5a34663..aa9bdef 100644 --- a/src/Models/Components/TestingToken.php +++ b/src/Models/Components/TestingToken.php @@ -9,14 +9,15 @@ namespace Clerk\Backend\Models\Components; +/** TestingToken - A Testing Token */ class TestingToken { /** * * @var TestingTokenObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TestingTokenObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TestingTokenObject')] public TestingTokenObject $object; /** @@ -24,7 +25,7 @@ class TestingToken * * @var string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] public string $token; /** @@ -34,15 +35,15 @@ class TestingToken * * @var int $expiresAt */ - #[\JMS\Serializer\Annotation\SerializedName('expires_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expires_at')] public int $expiresAt; /** - * @param ?TestingTokenObject $object - * @param ?string $token - * @param ?int $expiresAt + * @param TestingTokenObject $object + * @param string $token + * @param int $expiresAt */ - public function __construct(?TestingTokenObject $object = null, ?string $token = null, ?int $expiresAt = null) + public function __construct(TestingTokenObject $object, string $token, int $expiresAt) { $this->object = $object; $this->token = $token; diff --git a/src/Models/Components/Ticket.php b/src/Models/Components/Ticket.php index 86ef3bc..25bc00e 100644 --- a/src/Models/Components/Ticket.php +++ b/src/Models/Components/Ticket.php @@ -15,41 +15,41 @@ class Ticket * * @var TicketVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TicketVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TicketVerificationStatus')] public TicketVerificationStatus $status; /** * * @var TicketVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TicketVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TicketVerificationStrategy')] public TicketVerificationStrategy $strategy; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?TicketVerificationStatus $status - * @param ?TicketVerificationStrategy $strategy + * @param TicketVerificationStatus $status + * @param TicketVerificationStrategy $strategy * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?TicketVerificationStatus $status = null, ?TicketVerificationStrategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(TicketVerificationStatus $status, TicketVerificationStrategy $strategy, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/TotalCount.php b/src/Models/Components/TotalCount.php index 7d1c73f..7a89594 100644 --- a/src/Models/Components/TotalCount.php +++ b/src/Models/Components/TotalCount.php @@ -9,6 +9,7 @@ namespace Clerk\Backend\Models\Components; +/** TotalCount - Success */ class TotalCount { /** @@ -18,22 +19,22 @@ class TotalCount * * @var TotalCountObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TotalCountObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\TotalCountObject')] public TotalCountObject $object; /** * * @var int $totalCount */ - #[\JMS\Serializer\Annotation\SerializedName('total_count')] + #[\Speakeasy\Serializer\Annotation\SerializedName('total_count')] public int $totalCount; /** - * @param ?TotalCountObject $object - * @param ?int $totalCount + * @param TotalCountObject $object + * @param int $totalCount */ - public function __construct(?TotalCountObject $object = null, ?int $totalCount = null) + public function __construct(TotalCountObject $object, int $totalCount) { $this->object = $object; $this->totalCount = $totalCount; diff --git a/src/Models/Components/User.php b/src/Models/Components/User.php index 57c3aea..fdc73db 100644 --- a/src/Models/Components/User.php +++ b/src/Models/Components/User.php @@ -9,14 +9,15 @@ namespace Clerk\Backend\Models\Components; +/** User - Success */ class User { /** * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,65 +27,65 @@ class User * * @var ?UserObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\UserObject|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\UserObject|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UserObject $object = null; /** * * @var ?string $externalId */ - #[\JMS\Serializer\Annotation\SerializedName('external_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalId = null; /** * * @var ?string $primaryEmailAddressId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_email_address_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_email_address_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryEmailAddressId = null; /** * * @var ?string $primaryPhoneNumberId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_phone_number_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_phone_number_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryPhoneNumberId = null; /** * * @var ?string $primaryWeb3WalletId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_web3_wallet_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_web3_wallet_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryWeb3WalletId = null; /** * * @var ?string $username */ - #[\JMS\Serializer\Annotation\SerializedName('username')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('username')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $username = null; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** @@ -92,51 +93,51 @@ class User * @var ?string $profileImageUrl * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ - #[\JMS\Serializer\Annotation\SerializedName('profile_image_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('profile_image_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $profileImageUrl = null; /** * * @var ?string $imageUrl */ - #[\JMS\Serializer\Annotation\SerializedName('image_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('image_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $imageUrl = null; /** * * @var ?bool $hasImage */ - #[\JMS\Serializer\Annotation\SerializedName('has_image')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('has_image')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $hasImage = null; /** * * @var ?PublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PublicMetadata $publicMetadata = null; /** * * @var ?PrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\PrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PrivateMetadata $privateMetadata = null; /** * * @var ?UnsafeMetadata $unsafeMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('unsafe_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\UnsafeMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unsafe_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\UnsafeMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UnsafeMetadata $unsafeMetadata = null; /** @@ -144,9 +145,9 @@ class User * * @var ?array $emailAddresses */ - #[\JMS\Serializer\Annotation\SerializedName('email_addresses')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\EmailAddress>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_addresses')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\EmailAddress>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $emailAddresses = null; /** @@ -154,9 +155,9 @@ class User * * @var ?array $phoneNumbers */ - #[\JMS\Serializer\Annotation\SerializedName('phone_numbers')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\PhoneNumber>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('phone_numbers')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\PhoneNumber>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $phoneNumbers = null; /** @@ -164,9 +165,9 @@ class User * * @var ?array $web3Wallets */ - #[\JMS\Serializer\Annotation\SerializedName('web3_wallets')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Web3Wallet>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('web3_wallets')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\Web3Wallet>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $web3Wallets = null; /** @@ -174,41 +175,41 @@ class User * * @var ?array $passkeys */ - #[\JMS\Serializer\Annotation\SerializedName('passkeys')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SchemasPasskey>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('passkeys')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SchemasPasskey>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $passkeys = null; /** * * @var ?bool $passwordEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('password_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $passwordEnabled = null; /** * * @var ?bool $twoFactorEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('two_factor_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('two_factor_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $twoFactorEnabled = null; /** * * @var ?bool $totpEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('totp_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('totp_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $totpEnabled = null; /** * * @var ?bool $backupCodeEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('backup_code_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('backup_code_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $backupCodeEnabled = null; /** @@ -218,8 +219,8 @@ class User * * @var ?int $mfaEnabledAt */ - #[\JMS\Serializer\Annotation\SerializedName('mfa_enabled_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('mfa_enabled_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $mfaEnabledAt = null; /** @@ -229,8 +230,8 @@ class User * * @var ?int $mfaDisabledAt */ - #[\JMS\Serializer\Annotation\SerializedName('mfa_disabled_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('mfa_disabled_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $mfaDisabledAt = null; /** @@ -238,9 +239,9 @@ class User * * @var ?array $externalAccounts */ - #[\JMS\Serializer\Annotation\SerializedName('external_accounts')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ExternalAccounts>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_accounts')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ExternalAccounts>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $externalAccounts = null; /** @@ -248,9 +249,9 @@ class User * * @var ?array $samlAccounts */ - #[\JMS\Serializer\Annotation\SerializedName('saml_accounts')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SAMLAccount>|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('saml_accounts')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\SAMLAccount>|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $samlAccounts = null; /** @@ -260,8 +261,8 @@ class User * * @var ?int $lastSignInAt */ - #[\JMS\Serializer\Annotation\SerializedName('last_sign_in_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_sign_in_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $lastSignInAt = null; /** @@ -271,8 +272,8 @@ class User * * @var ?bool $banned */ - #[\JMS\Serializer\Annotation\SerializedName('banned')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('banned')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $banned = null; /** @@ -282,8 +283,8 @@ class User * * @var ?bool $locked */ - #[\JMS\Serializer\Annotation\SerializedName('locked')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('locked')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $locked = null; /** @@ -293,8 +294,8 @@ class User * * @var ?int $lockoutExpiresInSeconds */ - #[\JMS\Serializer\Annotation\SerializedName('lockout_expires_in_seconds')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('lockout_expires_in_seconds')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $lockoutExpiresInSeconds = null; /** @@ -304,8 +305,8 @@ class User * * @var ?int $verificationAttemptsRemaining */ - #[\JMS\Serializer\Annotation\SerializedName('verification_attempts_remaining')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verification_attempts_remaining')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $verificationAttemptsRemaining = null; /** @@ -315,8 +316,8 @@ class User * * @var ?int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $updatedAt = null; /** @@ -326,8 +327,8 @@ class User * * @var ?int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $createdAt = null; /** @@ -337,8 +338,8 @@ class User * * @var ?bool $deleteSelfEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('delete_self_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('delete_self_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $deleteSelfEnabled = null; /** @@ -348,8 +349,8 @@ class User * * @var ?bool $createOrganizationEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('create_organization_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('create_organization_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $createOrganizationEnabled = null; /** @@ -359,25 +360,17 @@ class User * * @var ?int $lastActiveAt */ - #[\JMS\Serializer\Annotation\SerializedName('last_active_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_active_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $lastActiveAt = null; /** * @param ?string $id * @param ?UserObject $object - * @param ?string $externalId - * @param ?string $primaryEmailAddressId - * @param ?string $primaryPhoneNumberId - * @param ?string $primaryWeb3WalletId - * @param ?string $username - * @param ?string $firstName - * @param ?string $lastName * @param ?string $profileImageUrl * @param ?string $imageUrl * @param ?bool $hasImage * @param ?PublicMetadata $publicMetadata - * @param ?PrivateMetadata $privateMetadata * @param ?UnsafeMetadata $unsafeMetadata * @param ?array $emailAddresses * @param ?array $phoneNumbers @@ -387,37 +380,37 @@ class User * @param ?bool $twoFactorEnabled * @param ?bool $totpEnabled * @param ?bool $backupCodeEnabled - * @param ?int $mfaEnabledAt - * @param ?int $mfaDisabledAt * @param ?array $externalAccounts * @param ?array $samlAccounts - * @param ?int $lastSignInAt * @param ?bool $banned * @param ?bool $locked - * @param ?int $lockoutExpiresInSeconds - * @param ?int $verificationAttemptsRemaining * @param ?int $updatedAt * @param ?int $createdAt * @param ?bool $deleteSelfEnabled * @param ?bool $createOrganizationEnabled + * @param ?string $externalId + * @param ?string $primaryEmailAddressId + * @param ?string $primaryPhoneNumberId + * @param ?string $primaryWeb3WalletId + * @param ?string $username + * @param ?string $firstName + * @param ?string $lastName + * @param ?PrivateMetadata $privateMetadata + * @param ?int $mfaEnabledAt + * @param ?int $mfaDisabledAt + * @param ?int $lastSignInAt + * @param ?int $lockoutExpiresInSeconds + * @param ?int $verificationAttemptsRemaining * @param ?int $lastActiveAt */ - public function __construct(?string $id = null, ?UserObject $object = null, ?string $externalId = null, ?string $primaryEmailAddressId = null, ?string $primaryPhoneNumberId = null, ?string $primaryWeb3WalletId = null, ?string $username = null, ?string $firstName = null, ?string $lastName = null, ?string $profileImageUrl = null, ?string $imageUrl = null, ?bool $hasImage = null, ?PublicMetadata $publicMetadata = null, ?PrivateMetadata $privateMetadata = null, ?UnsafeMetadata $unsafeMetadata = null, ?array $emailAddresses = null, ?array $phoneNumbers = null, ?array $web3Wallets = null, ?array $passkeys = null, ?bool $passwordEnabled = null, ?bool $twoFactorEnabled = null, ?bool $totpEnabled = null, ?bool $backupCodeEnabled = null, ?int $mfaEnabledAt = null, ?int $mfaDisabledAt = null, ?array $externalAccounts = null, ?array $samlAccounts = null, ?int $lastSignInAt = null, ?bool $banned = null, ?bool $locked = null, ?int $lockoutExpiresInSeconds = null, ?int $verificationAttemptsRemaining = null, ?int $updatedAt = null, ?int $createdAt = null, ?bool $deleteSelfEnabled = null, ?bool $createOrganizationEnabled = null, ?int $lastActiveAt = null) + public function __construct(?string $id = null, ?UserObject $object = null, ?string $profileImageUrl = null, ?string $imageUrl = null, ?bool $hasImage = null, ?PublicMetadata $publicMetadata = null, ?UnsafeMetadata $unsafeMetadata = null, ?array $emailAddresses = null, ?array $phoneNumbers = null, ?array $web3Wallets = null, ?array $passkeys = null, ?bool $passwordEnabled = null, ?bool $twoFactorEnabled = null, ?bool $totpEnabled = null, ?bool $backupCodeEnabled = null, ?array $externalAccounts = null, ?array $samlAccounts = null, ?bool $banned = null, ?bool $locked = null, ?int $updatedAt = null, ?int $createdAt = null, ?bool $deleteSelfEnabled = null, ?bool $createOrganizationEnabled = null, ?string $externalId = null, ?string $primaryEmailAddressId = null, ?string $primaryPhoneNumberId = null, ?string $primaryWeb3WalletId = null, ?string $username = null, ?string $firstName = null, ?string $lastName = null, ?PrivateMetadata $privateMetadata = null, ?int $mfaEnabledAt = null, ?int $mfaDisabledAt = null, ?int $lastSignInAt = null, ?int $lockoutExpiresInSeconds = null, ?int $verificationAttemptsRemaining = null, ?int $lastActiveAt = null) { $this->id = $id; $this->object = $object; - $this->externalId = $externalId; - $this->primaryEmailAddressId = $primaryEmailAddressId; - $this->primaryPhoneNumberId = $primaryPhoneNumberId; - $this->primaryWeb3WalletId = $primaryWeb3WalletId; - $this->username = $username; - $this->firstName = $firstName; - $this->lastName = $lastName; $this->profileImageUrl = $profileImageUrl; $this->imageUrl = $imageUrl; $this->hasImage = $hasImage; $this->publicMetadata = $publicMetadata; - $this->privateMetadata = $privateMetadata; $this->unsafeMetadata = $unsafeMetadata; $this->emailAddresses = $emailAddresses; $this->phoneNumbers = $phoneNumbers; @@ -427,19 +420,27 @@ public function __construct(?string $id = null, ?UserObject $object = null, ?str $this->twoFactorEnabled = $twoFactorEnabled; $this->totpEnabled = $totpEnabled; $this->backupCodeEnabled = $backupCodeEnabled; - $this->mfaEnabledAt = $mfaEnabledAt; - $this->mfaDisabledAt = $mfaDisabledAt; $this->externalAccounts = $externalAccounts; $this->samlAccounts = $samlAccounts; - $this->lastSignInAt = $lastSignInAt; $this->banned = $banned; $this->locked = $locked; - $this->lockoutExpiresInSeconds = $lockoutExpiresInSeconds; - $this->verificationAttemptsRemaining = $verificationAttemptsRemaining; $this->updatedAt = $updatedAt; $this->createdAt = $createdAt; $this->deleteSelfEnabled = $deleteSelfEnabled; $this->createOrganizationEnabled = $createOrganizationEnabled; + $this->externalId = $externalId; + $this->primaryEmailAddressId = $primaryEmailAddressId; + $this->primaryPhoneNumberId = $primaryPhoneNumberId; + $this->primaryWeb3WalletId = $primaryWeb3WalletId; + $this->username = $username; + $this->firstName = $firstName; + $this->lastName = $lastName; + $this->privateMetadata = $privateMetadata; + $this->mfaEnabledAt = $mfaEnabledAt; + $this->mfaDisabledAt = $mfaDisabledAt; + $this->lastSignInAt = $lastSignInAt; + $this->lockoutExpiresInSeconds = $lockoutExpiresInSeconds; + $this->verificationAttemptsRemaining = $verificationAttemptsRemaining; $this->lastActiveAt = $lastActiveAt; } } \ No newline at end of file diff --git a/src/Models/Components/VerificationAdmin.php b/src/Models/Components/VerificationAdmin.php index 9f949dd..6ea39a6 100644 --- a/src/Models/Components/VerificationAdmin.php +++ b/src/Models/Components/VerificationAdmin.php @@ -15,41 +15,41 @@ class VerificationAdmin * * @var AdminVerificationPhoneNumberStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationPhoneNumberStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationPhoneNumberStatus')] public AdminVerificationPhoneNumberStatus $status; /** * * @var AdminVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationStrategy')] public AdminVerificationStrategy $strategy; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?AdminVerificationPhoneNumberStatus $status - * @param ?AdminVerificationStrategy $strategy + * @param AdminVerificationPhoneNumberStatus $status + * @param AdminVerificationStrategy $strategy * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?AdminVerificationPhoneNumberStatus $status = null, ?AdminVerificationStrategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(AdminVerificationPhoneNumberStatus $status, AdminVerificationStrategy $strategy, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/VerificationOTP.php b/src/Models/Components/VerificationOTP.php index 13fb7bc..ee9bfdf 100644 --- a/src/Models/Components/VerificationOTP.php +++ b/src/Models/Components/VerificationOTP.php @@ -15,39 +15,39 @@ class VerificationOTP * * @var OTPVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OTPVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OTPVerificationStatus')] public OTPVerificationStatus $status; /** * * @var OTPVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OTPVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\OTPVerificationStrategy')] public OTPVerificationStrategy $strategy; /** * * @var int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] public int $attempts; /** * * @var int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] public int $expireAt; /** - * @param ?OTPVerificationStatus $status - * @param ?OTPVerificationStrategy $strategy - * @param ?int $attempts - * @param ?int $expireAt + * @param OTPVerificationStatus $status + * @param OTPVerificationStrategy $strategy + * @param int $attempts + * @param int $expireAt */ - public function __construct(?OTPVerificationStatus $status = null, ?OTPVerificationStrategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(OTPVerificationStatus $status, OTPVerificationStrategy $strategy, int $attempts, int $expireAt) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/Web3Signature.php b/src/Models/Components/Web3Signature.php index 2008776..d16942c 100644 --- a/src/Models/Components/Web3Signature.php +++ b/src/Models/Components/Web3Signature.php @@ -15,50 +15,50 @@ class Web3Signature * * @var Web3SignatureVerificationStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3SignatureVerificationStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3SignatureVerificationStatus')] public Web3SignatureVerificationStatus $status; /** * * @var Web3SignatureVerificationStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3SignatureVerificationStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3SignatureVerificationStrategy')] public Web3SignatureVerificationStrategy $strategy; /** * * @var Nonce $nonce */ - #[\JMS\Serializer\Annotation\SerializedName('nonce')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Nonce')] + #[\Speakeasy\Serializer\Annotation\SerializedName('nonce')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Nonce')] public Nonce $nonce; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?Web3SignatureVerificationStatus $status - * @param ?Web3SignatureVerificationStrategy $strategy - * @param ?Nonce $nonce + * @param Web3SignatureVerificationStatus $status + * @param Web3SignatureVerificationStrategy $strategy + * @param Nonce $nonce * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?Web3SignatureVerificationStatus $status = null, ?Web3SignatureVerificationStrategy $strategy = null, ?Nonce $nonce = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(Web3SignatureVerificationStatus $status, Web3SignatureVerificationStrategy $strategy, Nonce $nonce, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Components/Web3Wallet.php b/src/Models/Components/Web3Wallet.php index 2cb5104..0bfada4 100644 --- a/src/Models/Components/Web3Wallet.php +++ b/src/Models/Components/Web3Wallet.php @@ -15,8 +15,8 @@ class Web3Wallet * * @var ?string $id */ - #[\JMS\Serializer\Annotation\SerializedName('id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $id = null; /** @@ -26,24 +26,24 @@ class Web3Wallet * * @var Web3WalletObject $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3WalletObject')] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3WalletObject')] public Web3WalletObject $object; /** * * @var string $web3Wallet */ - #[\JMS\Serializer\Annotation\SerializedName('web3_wallet')] + #[\Speakeasy\Serializer\Annotation\SerializedName('web3_wallet')] public string $web3Wallet; /** * - * @var Web3Signature|Web3WalletVerificationAdmin $verification + * @var Web3Signature|Web3WalletVerificationAdmin|null $verification */ - #[\JMS\Serializer\Annotation\SerializedName('verification')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3Signature|\Clerk\Backend\Models\Components\Web3WalletVerificationAdmin')] - public Web3Signature|Web3WalletVerificationAdmin $verification; + #[\Speakeasy\Serializer\Annotation\SerializedName('verification')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\Web3Signature|\Clerk\Backend\Models\Components\Web3WalletVerificationAdmin')] + public Web3Signature|Web3WalletVerificationAdmin|null $verification; /** * Unix timestamp of creation @@ -52,7 +52,7 @@ class Web3Wallet * * @var int $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] public int $createdAt; /** @@ -62,24 +62,24 @@ class Web3Wallet * * @var int $updatedAt */ - #[\JMS\Serializer\Annotation\SerializedName('updated_at')] + #[\Speakeasy\Serializer\Annotation\SerializedName('updated_at')] public int $updatedAt; /** - * @param ?Web3WalletObject $object - * @param ?string $web3Wallet - * @param Web3Signature|Web3WalletVerificationAdmin|null $verification - * @param ?int $createdAt - * @param ?int $updatedAt + * @param Web3WalletObject $object + * @param string $web3Wallet + * @param int $createdAt + * @param int $updatedAt * @param ?string $id + * @param Web3Signature|Web3WalletVerificationAdmin|null $verification */ - public function __construct(?Web3WalletObject $object = null, ?string $web3Wallet = null, Web3Signature|Web3WalletVerificationAdmin|null $verification = null, ?int $createdAt = null, ?int $updatedAt = null, ?string $id = null) + public function __construct(Web3WalletObject $object, string $web3Wallet, int $createdAt, int $updatedAt, ?string $id = null, Web3Signature|Web3WalletVerificationAdmin|null $verification = null) { $this->object = $object; $this->web3Wallet = $web3Wallet; - $this->verification = $verification; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; $this->id = $id; + $this->verification = $verification; } } \ No newline at end of file diff --git a/src/Models/Components/Web3WalletVerificationAdmin.php b/src/Models/Components/Web3WalletVerificationAdmin.php index 5a84d0e..0f4c0ca 100644 --- a/src/Models/Components/Web3WalletVerificationAdmin.php +++ b/src/Models/Components/Web3WalletVerificationAdmin.php @@ -15,41 +15,41 @@ class Web3WalletVerificationAdmin * * @var AdminVerificationWeb3WalletStatus $status */ - #[\JMS\Serializer\Annotation\SerializedName('status')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationWeb3WalletStatus')] + #[\Speakeasy\Serializer\Annotation\SerializedName('status')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationWeb3WalletStatus')] public AdminVerificationWeb3WalletStatus $status; /** * * @var AdminVerificationWeb3WalletStrategy $strategy */ - #[\JMS\Serializer\Annotation\SerializedName('strategy')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationWeb3WalletStrategy')] + #[\Speakeasy\Serializer\Annotation\SerializedName('strategy')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Components\AdminVerificationWeb3WalletStrategy')] public AdminVerificationWeb3WalletStrategy $strategy; /** * * @var ?int $attempts */ - #[\JMS\Serializer\Annotation\SerializedName('attempts')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attempts')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $attempts = null; /** * * @var ?int $expireAt */ - #[\JMS\Serializer\Annotation\SerializedName('expire_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expire_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expireAt = null; /** - * @param ?AdminVerificationWeb3WalletStatus $status - * @param ?AdminVerificationWeb3WalletStrategy $strategy + * @param AdminVerificationWeb3WalletStatus $status + * @param AdminVerificationWeb3WalletStrategy $strategy * @param ?int $attempts * @param ?int $expireAt */ - public function __construct(?AdminVerificationWeb3WalletStatus $status = null, ?AdminVerificationWeb3WalletStrategy $strategy = null, ?int $attempts = null, ?int $expireAt = null) + public function __construct(AdminVerificationWeb3WalletStatus $status, AdminVerificationWeb3WalletStrategy $strategy, ?int $attempts = null, ?int $expireAt = null) { $this->status = $status; $this->strategy = $strategy; diff --git a/src/Models/Errors/ClerkErrors.php b/src/Models/Errors/ClerkErrors.php index beb527f..fb5907a 100644 --- a/src/Models/Errors/ClerkErrors.php +++ b/src/Models/Errors/ClerkErrors.php @@ -18,24 +18,24 @@ class ClerkErrors * * @var array $errors */ - #[\JMS\Serializer\Annotation\SerializedName('errors')] - #[\JMS\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] public array $errors; /** * * @var ?Meta $meta */ - #[\JMS\Serializer\Annotation\SerializedName('meta')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?Meta $meta = null; /** - * @param ?array $errors + * @param array $errors * @param ?Meta $meta */ - public function __construct(?array $errors = null, ?Meta $meta = null) + public function __construct(array $errors, ?Meta $meta = null) { $this->errors = $errors; $this->meta = $meta; diff --git a/src/Models/Errors/ClerkErrors1.php b/src/Models/Errors/ClerkErrors1.php new file mode 100644 index 0000000..48d53c7 --- /dev/null +++ b/src/Models/Errors/ClerkErrors1.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors1Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors1Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors10.php b/src/Models/Errors/ClerkErrors10.php new file mode 100644 index 0000000..e4beaa3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors10.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors10Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors10Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors10Throwable.php b/src/Models/Errors/ClerkErrors10Throwable.php new file mode 100644 index 0000000..8321f11 --- /dev/null +++ b/src/Models/Errors/ClerkErrors10Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors11.php b/src/Models/Errors/ClerkErrors11.php new file mode 100644 index 0000000..67b2514 --- /dev/null +++ b/src/Models/Errors/ClerkErrors11.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors11Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors11Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors11Throwable.php b/src/Models/Errors/ClerkErrors11Throwable.php new file mode 100644 index 0000000..8c4dc50 --- /dev/null +++ b/src/Models/Errors/ClerkErrors11Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors12.php b/src/Models/Errors/ClerkErrors12.php new file mode 100644 index 0000000..93ac73b --- /dev/null +++ b/src/Models/Errors/ClerkErrors12.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors12Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors12Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors12Throwable.php b/src/Models/Errors/ClerkErrors12Throwable.php new file mode 100644 index 0000000..c3b652a --- /dev/null +++ b/src/Models/Errors/ClerkErrors12Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors13.php b/src/Models/Errors/ClerkErrors13.php new file mode 100644 index 0000000..2fd7eef --- /dev/null +++ b/src/Models/Errors/ClerkErrors13.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors13Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors13Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors13Throwable.php b/src/Models/Errors/ClerkErrors13Throwable.php new file mode 100644 index 0000000..b9faf4d --- /dev/null +++ b/src/Models/Errors/ClerkErrors13Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors14.php b/src/Models/Errors/ClerkErrors14.php new file mode 100644 index 0000000..35f3fc0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors14.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors14Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors14Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors14Throwable.php b/src/Models/Errors/ClerkErrors14Throwable.php new file mode 100644 index 0000000..678e51c --- /dev/null +++ b/src/Models/Errors/ClerkErrors14Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors15.php b/src/Models/Errors/ClerkErrors15.php new file mode 100644 index 0000000..6d8d6e5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors15.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors15Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors15Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors15Throwable.php b/src/Models/Errors/ClerkErrors15Throwable.php new file mode 100644 index 0000000..dae402d --- /dev/null +++ b/src/Models/Errors/ClerkErrors15Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors16.php b/src/Models/Errors/ClerkErrors16.php new file mode 100644 index 0000000..3c8a80d --- /dev/null +++ b/src/Models/Errors/ClerkErrors16.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors16Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors16Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors16Throwable.php b/src/Models/Errors/ClerkErrors16Throwable.php new file mode 100644 index 0000000..36ec6bc --- /dev/null +++ b/src/Models/Errors/ClerkErrors16Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors17.php b/src/Models/Errors/ClerkErrors17.php new file mode 100644 index 0000000..729fd19 --- /dev/null +++ b/src/Models/Errors/ClerkErrors17.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors17Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors17Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors17Throwable.php b/src/Models/Errors/ClerkErrors17Throwable.php new file mode 100644 index 0000000..92a4774 --- /dev/null +++ b/src/Models/Errors/ClerkErrors17Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors18.php b/src/Models/Errors/ClerkErrors18.php new file mode 100644 index 0000000..38438b1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors18.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors18Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors18Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors18Throwable.php b/src/Models/Errors/ClerkErrors18Throwable.php new file mode 100644 index 0000000..0351fb5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors18Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors19.php b/src/Models/Errors/ClerkErrors19.php new file mode 100644 index 0000000..4714f8d --- /dev/null +++ b/src/Models/Errors/ClerkErrors19.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors19Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors19Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors19Throwable.php b/src/Models/Errors/ClerkErrors19Throwable.php new file mode 100644 index 0000000..1e9c0d8 --- /dev/null +++ b/src/Models/Errors/ClerkErrors19Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors1Throwable.php b/src/Models/Errors/ClerkErrors1Throwable.php new file mode 100644 index 0000000..f12fcbd --- /dev/null +++ b/src/Models/Errors/ClerkErrors1Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors2.php b/src/Models/Errors/ClerkErrors2.php new file mode 100644 index 0000000..24e30e8 --- /dev/null +++ b/src/Models/Errors/ClerkErrors2.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors2Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors2Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors20.php b/src/Models/Errors/ClerkErrors20.php new file mode 100644 index 0000000..6446821 --- /dev/null +++ b/src/Models/Errors/ClerkErrors20.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors20Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors20Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors20Throwable.php b/src/Models/Errors/ClerkErrors20Throwable.php new file mode 100644 index 0000000..8438531 --- /dev/null +++ b/src/Models/Errors/ClerkErrors20Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors21.php b/src/Models/Errors/ClerkErrors21.php new file mode 100644 index 0000000..00f42a0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors21.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors21Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors21Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors21Throwable.php b/src/Models/Errors/ClerkErrors21Throwable.php new file mode 100644 index 0000000..2a09082 --- /dev/null +++ b/src/Models/Errors/ClerkErrors21Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors22.php b/src/Models/Errors/ClerkErrors22.php new file mode 100644 index 0000000..6cb4d8d --- /dev/null +++ b/src/Models/Errors/ClerkErrors22.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors22Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors22Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors22Throwable.php b/src/Models/Errors/ClerkErrors22Throwable.php new file mode 100644 index 0000000..be10e3f --- /dev/null +++ b/src/Models/Errors/ClerkErrors22Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors23.php b/src/Models/Errors/ClerkErrors23.php new file mode 100644 index 0000000..7592ec5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors23.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors23Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors23Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors23Throwable.php b/src/Models/Errors/ClerkErrors23Throwable.php new file mode 100644 index 0000000..6c1e3a0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors23Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors24.php b/src/Models/Errors/ClerkErrors24.php new file mode 100644 index 0000000..c53d453 --- /dev/null +++ b/src/Models/Errors/ClerkErrors24.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors24Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors24Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors24Throwable.php b/src/Models/Errors/ClerkErrors24Throwable.php new file mode 100644 index 0000000..0937b5d --- /dev/null +++ b/src/Models/Errors/ClerkErrors24Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors25.php b/src/Models/Errors/ClerkErrors25.php new file mode 100644 index 0000000..3c9f04b --- /dev/null +++ b/src/Models/Errors/ClerkErrors25.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors25Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors25Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors25Throwable.php b/src/Models/Errors/ClerkErrors25Throwable.php new file mode 100644 index 0000000..937154b --- /dev/null +++ b/src/Models/Errors/ClerkErrors25Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors26.php b/src/Models/Errors/ClerkErrors26.php new file mode 100644 index 0000000..7c1d987 --- /dev/null +++ b/src/Models/Errors/ClerkErrors26.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors26Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors26Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors26Throwable.php b/src/Models/Errors/ClerkErrors26Throwable.php new file mode 100644 index 0000000..e91a3fc --- /dev/null +++ b/src/Models/Errors/ClerkErrors26Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors27.php b/src/Models/Errors/ClerkErrors27.php new file mode 100644 index 0000000..82bf9ad --- /dev/null +++ b/src/Models/Errors/ClerkErrors27.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors27Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors27Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors27Throwable.php b/src/Models/Errors/ClerkErrors27Throwable.php new file mode 100644 index 0000000..f474b80 --- /dev/null +++ b/src/Models/Errors/ClerkErrors27Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors28.php b/src/Models/Errors/ClerkErrors28.php new file mode 100644 index 0000000..b1ab1da --- /dev/null +++ b/src/Models/Errors/ClerkErrors28.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors28Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors28Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors28Throwable.php b/src/Models/Errors/ClerkErrors28Throwable.php new file mode 100644 index 0000000..691d593 --- /dev/null +++ b/src/Models/Errors/ClerkErrors28Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors29.php b/src/Models/Errors/ClerkErrors29.php new file mode 100644 index 0000000..4cde50d --- /dev/null +++ b/src/Models/Errors/ClerkErrors29.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors29Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors29Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors29Throwable.php b/src/Models/Errors/ClerkErrors29Throwable.php new file mode 100644 index 0000000..65d911b --- /dev/null +++ b/src/Models/Errors/ClerkErrors29Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors2Throwable.php b/src/Models/Errors/ClerkErrors2Throwable.php new file mode 100644 index 0000000..67bd71a --- /dev/null +++ b/src/Models/Errors/ClerkErrors2Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors3.php b/src/Models/Errors/ClerkErrors3.php new file mode 100644 index 0000000..c765d7c --- /dev/null +++ b/src/Models/Errors/ClerkErrors3.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors3Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors3Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors30.php b/src/Models/Errors/ClerkErrors30.php new file mode 100644 index 0000000..bfc5ac9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors30.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors30Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors30Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors30Throwable.php b/src/Models/Errors/ClerkErrors30Throwable.php new file mode 100644 index 0000000..a1e4d98 --- /dev/null +++ b/src/Models/Errors/ClerkErrors30Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors31.php b/src/Models/Errors/ClerkErrors31.php new file mode 100644 index 0000000..e8f90c3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors31.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors31Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors31Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors31Throwable.php b/src/Models/Errors/ClerkErrors31Throwable.php new file mode 100644 index 0000000..37983c9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors31Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors32.php b/src/Models/Errors/ClerkErrors32.php new file mode 100644 index 0000000..5b5dc93 --- /dev/null +++ b/src/Models/Errors/ClerkErrors32.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors32Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors32Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors32Throwable.php b/src/Models/Errors/ClerkErrors32Throwable.php new file mode 100644 index 0000000..5fe45be --- /dev/null +++ b/src/Models/Errors/ClerkErrors32Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors33.php b/src/Models/Errors/ClerkErrors33.php new file mode 100644 index 0000000..1565d71 --- /dev/null +++ b/src/Models/Errors/ClerkErrors33.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors33Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors33Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors33Throwable.php b/src/Models/Errors/ClerkErrors33Throwable.php new file mode 100644 index 0000000..5a80a51 --- /dev/null +++ b/src/Models/Errors/ClerkErrors33Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors34.php b/src/Models/Errors/ClerkErrors34.php new file mode 100644 index 0000000..3929413 --- /dev/null +++ b/src/Models/Errors/ClerkErrors34.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors34Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors34Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors34Throwable.php b/src/Models/Errors/ClerkErrors34Throwable.php new file mode 100644 index 0000000..3a3a283 --- /dev/null +++ b/src/Models/Errors/ClerkErrors34Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors35.php b/src/Models/Errors/ClerkErrors35.php new file mode 100644 index 0000000..b1e41b0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors35.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors35Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors35Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors35Throwable.php b/src/Models/Errors/ClerkErrors35Throwable.php new file mode 100644 index 0000000..b8c86d1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors35Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors36.php b/src/Models/Errors/ClerkErrors36.php new file mode 100644 index 0000000..203d8f3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors36.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors36Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors36Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors36Throwable.php b/src/Models/Errors/ClerkErrors36Throwable.php new file mode 100644 index 0000000..02a4300 --- /dev/null +++ b/src/Models/Errors/ClerkErrors36Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors37.php b/src/Models/Errors/ClerkErrors37.php new file mode 100644 index 0000000..fce3fe2 --- /dev/null +++ b/src/Models/Errors/ClerkErrors37.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors37Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors37Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors37Throwable.php b/src/Models/Errors/ClerkErrors37Throwable.php new file mode 100644 index 0000000..c3c73d3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors37Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors38.php b/src/Models/Errors/ClerkErrors38.php new file mode 100644 index 0000000..e7f1d13 --- /dev/null +++ b/src/Models/Errors/ClerkErrors38.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors38Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors38Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors38Throwable.php b/src/Models/Errors/ClerkErrors38Throwable.php new file mode 100644 index 0000000..ab00d26 --- /dev/null +++ b/src/Models/Errors/ClerkErrors38Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors39.php b/src/Models/Errors/ClerkErrors39.php new file mode 100644 index 0000000..cfac3ce --- /dev/null +++ b/src/Models/Errors/ClerkErrors39.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors39Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors39Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors39Throwable.php b/src/Models/Errors/ClerkErrors39Throwable.php new file mode 100644 index 0000000..241428b --- /dev/null +++ b/src/Models/Errors/ClerkErrors39Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors3Throwable.php b/src/Models/Errors/ClerkErrors3Throwable.php new file mode 100644 index 0000000..43e020d --- /dev/null +++ b/src/Models/Errors/ClerkErrors3Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors4.php b/src/Models/Errors/ClerkErrors4.php new file mode 100644 index 0000000..a471141 --- /dev/null +++ b/src/Models/Errors/ClerkErrors4.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors4Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors4Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors40.php b/src/Models/Errors/ClerkErrors40.php new file mode 100644 index 0000000..d0bb31b --- /dev/null +++ b/src/Models/Errors/ClerkErrors40.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors40Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors40Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors40Throwable.php b/src/Models/Errors/ClerkErrors40Throwable.php new file mode 100644 index 0000000..25b5dd9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors40Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors41.php b/src/Models/Errors/ClerkErrors41.php new file mode 100644 index 0000000..9a60443 --- /dev/null +++ b/src/Models/Errors/ClerkErrors41.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors41Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors41Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors41Throwable.php b/src/Models/Errors/ClerkErrors41Throwable.php new file mode 100644 index 0000000..c364d33 --- /dev/null +++ b/src/Models/Errors/ClerkErrors41Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors42.php b/src/Models/Errors/ClerkErrors42.php new file mode 100644 index 0000000..6c46c3e --- /dev/null +++ b/src/Models/Errors/ClerkErrors42.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors42Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors42Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors42Throwable.php b/src/Models/Errors/ClerkErrors42Throwable.php new file mode 100644 index 0000000..7eea8d1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors42Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors43.php b/src/Models/Errors/ClerkErrors43.php new file mode 100644 index 0000000..23faafb --- /dev/null +++ b/src/Models/Errors/ClerkErrors43.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors43Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors43Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors43Throwable.php b/src/Models/Errors/ClerkErrors43Throwable.php new file mode 100644 index 0000000..b406b62 --- /dev/null +++ b/src/Models/Errors/ClerkErrors43Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors44.php b/src/Models/Errors/ClerkErrors44.php new file mode 100644 index 0000000..c1d4680 --- /dev/null +++ b/src/Models/Errors/ClerkErrors44.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors44Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors44Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors44Throwable.php b/src/Models/Errors/ClerkErrors44Throwable.php new file mode 100644 index 0000000..1ea8ac4 --- /dev/null +++ b/src/Models/Errors/ClerkErrors44Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors45.php b/src/Models/Errors/ClerkErrors45.php new file mode 100644 index 0000000..17175d7 --- /dev/null +++ b/src/Models/Errors/ClerkErrors45.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors45Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors45Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors45Throwable.php b/src/Models/Errors/ClerkErrors45Throwable.php new file mode 100644 index 0000000..75b7071 --- /dev/null +++ b/src/Models/Errors/ClerkErrors45Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors46.php b/src/Models/Errors/ClerkErrors46.php new file mode 100644 index 0000000..615e83b --- /dev/null +++ b/src/Models/Errors/ClerkErrors46.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors46Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors46Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors46Throwable.php b/src/Models/Errors/ClerkErrors46Throwable.php new file mode 100644 index 0000000..c9c22f1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors46Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors47.php b/src/Models/Errors/ClerkErrors47.php new file mode 100644 index 0000000..4aaeb24 --- /dev/null +++ b/src/Models/Errors/ClerkErrors47.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors47Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors47Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors47Throwable.php b/src/Models/Errors/ClerkErrors47Throwable.php new file mode 100644 index 0000000..98a851f --- /dev/null +++ b/src/Models/Errors/ClerkErrors47Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors48.php b/src/Models/Errors/ClerkErrors48.php new file mode 100644 index 0000000..62318c1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors48.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors48Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors48Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors48Throwable.php b/src/Models/Errors/ClerkErrors48Throwable.php new file mode 100644 index 0000000..8a3abd5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors48Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors49.php b/src/Models/Errors/ClerkErrors49.php new file mode 100644 index 0000000..6796662 --- /dev/null +++ b/src/Models/Errors/ClerkErrors49.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors49Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors49Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors49Throwable.php b/src/Models/Errors/ClerkErrors49Throwable.php new file mode 100644 index 0000000..c1bed2a --- /dev/null +++ b/src/Models/Errors/ClerkErrors49Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors4Throwable.php b/src/Models/Errors/ClerkErrors4Throwable.php new file mode 100644 index 0000000..f2be0b2 --- /dev/null +++ b/src/Models/Errors/ClerkErrors4Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors5.php b/src/Models/Errors/ClerkErrors5.php new file mode 100644 index 0000000..528962e --- /dev/null +++ b/src/Models/Errors/ClerkErrors5.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors5Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors5Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors50.php b/src/Models/Errors/ClerkErrors50.php new file mode 100644 index 0000000..93b6fba --- /dev/null +++ b/src/Models/Errors/ClerkErrors50.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors50Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors50Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors50Throwable.php b/src/Models/Errors/ClerkErrors50Throwable.php new file mode 100644 index 0000000..d455f58 --- /dev/null +++ b/src/Models/Errors/ClerkErrors50Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors51.php b/src/Models/Errors/ClerkErrors51.php new file mode 100644 index 0000000..29cc471 --- /dev/null +++ b/src/Models/Errors/ClerkErrors51.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors51Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors51Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors51Throwable.php b/src/Models/Errors/ClerkErrors51Throwable.php new file mode 100644 index 0000000..c9d20da --- /dev/null +++ b/src/Models/Errors/ClerkErrors51Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors52.php b/src/Models/Errors/ClerkErrors52.php new file mode 100644 index 0000000..2986123 --- /dev/null +++ b/src/Models/Errors/ClerkErrors52.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors52Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors52Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors52Throwable.php b/src/Models/Errors/ClerkErrors52Throwable.php new file mode 100644 index 0000000..f531ab6 --- /dev/null +++ b/src/Models/Errors/ClerkErrors52Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors53.php b/src/Models/Errors/ClerkErrors53.php new file mode 100644 index 0000000..9589f9b --- /dev/null +++ b/src/Models/Errors/ClerkErrors53.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors53Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors53Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors53Throwable.php b/src/Models/Errors/ClerkErrors53Throwable.php new file mode 100644 index 0000000..f93a05a --- /dev/null +++ b/src/Models/Errors/ClerkErrors53Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors54.php b/src/Models/Errors/ClerkErrors54.php new file mode 100644 index 0000000..bc66b34 --- /dev/null +++ b/src/Models/Errors/ClerkErrors54.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors54Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors54Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors54Throwable.php b/src/Models/Errors/ClerkErrors54Throwable.php new file mode 100644 index 0000000..a1dbb8d --- /dev/null +++ b/src/Models/Errors/ClerkErrors54Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors55.php b/src/Models/Errors/ClerkErrors55.php new file mode 100644 index 0000000..3a7d6bb --- /dev/null +++ b/src/Models/Errors/ClerkErrors55.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors55Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors55Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors55Throwable.php b/src/Models/Errors/ClerkErrors55Throwable.php new file mode 100644 index 0000000..a9a944d --- /dev/null +++ b/src/Models/Errors/ClerkErrors55Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors56.php b/src/Models/Errors/ClerkErrors56.php new file mode 100644 index 0000000..2d35c60 --- /dev/null +++ b/src/Models/Errors/ClerkErrors56.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors56Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors56Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors56Throwable.php b/src/Models/Errors/ClerkErrors56Throwable.php new file mode 100644 index 0000000..601e094 --- /dev/null +++ b/src/Models/Errors/ClerkErrors56Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors57.php b/src/Models/Errors/ClerkErrors57.php new file mode 100644 index 0000000..22fa0f0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors57.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors57Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors57Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors57Throwable.php b/src/Models/Errors/ClerkErrors57Throwable.php new file mode 100644 index 0000000..821946c --- /dev/null +++ b/src/Models/Errors/ClerkErrors57Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors58.php b/src/Models/Errors/ClerkErrors58.php new file mode 100644 index 0000000..e0cd4e3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors58.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors58Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors58Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors58Throwable.php b/src/Models/Errors/ClerkErrors58Throwable.php new file mode 100644 index 0000000..6a6551a --- /dev/null +++ b/src/Models/Errors/ClerkErrors58Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors59.php b/src/Models/Errors/ClerkErrors59.php new file mode 100644 index 0000000..cba3d4b --- /dev/null +++ b/src/Models/Errors/ClerkErrors59.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors59Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors59Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors59Throwable.php b/src/Models/Errors/ClerkErrors59Throwable.php new file mode 100644 index 0000000..0c9a1c2 --- /dev/null +++ b/src/Models/Errors/ClerkErrors59Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors5Throwable.php b/src/Models/Errors/ClerkErrors5Throwable.php new file mode 100644 index 0000000..2bd29d8 --- /dev/null +++ b/src/Models/Errors/ClerkErrors5Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors6.php b/src/Models/Errors/ClerkErrors6.php new file mode 100644 index 0000000..33e848a --- /dev/null +++ b/src/Models/Errors/ClerkErrors6.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors6Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors6Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors60.php b/src/Models/Errors/ClerkErrors60.php new file mode 100644 index 0000000..3fadcb1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors60.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors60Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors60Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors60Throwable.php b/src/Models/Errors/ClerkErrors60Throwable.php new file mode 100644 index 0000000..6f3b49a --- /dev/null +++ b/src/Models/Errors/ClerkErrors60Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors61.php b/src/Models/Errors/ClerkErrors61.php new file mode 100644 index 0000000..a19d716 --- /dev/null +++ b/src/Models/Errors/ClerkErrors61.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors61Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors61Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors61Throwable.php b/src/Models/Errors/ClerkErrors61Throwable.php new file mode 100644 index 0000000..ece953d --- /dev/null +++ b/src/Models/Errors/ClerkErrors61Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors62.php b/src/Models/Errors/ClerkErrors62.php new file mode 100644 index 0000000..3fbdf77 --- /dev/null +++ b/src/Models/Errors/ClerkErrors62.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors62Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors62Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors62Throwable.php b/src/Models/Errors/ClerkErrors62Throwable.php new file mode 100644 index 0000000..ff7fd35 --- /dev/null +++ b/src/Models/Errors/ClerkErrors62Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors63.php b/src/Models/Errors/ClerkErrors63.php new file mode 100644 index 0000000..338f38b --- /dev/null +++ b/src/Models/Errors/ClerkErrors63.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors63Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors63Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors63Throwable.php b/src/Models/Errors/ClerkErrors63Throwable.php new file mode 100644 index 0000000..8f8de5e --- /dev/null +++ b/src/Models/Errors/ClerkErrors63Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors64.php b/src/Models/Errors/ClerkErrors64.php new file mode 100644 index 0000000..4629bf6 --- /dev/null +++ b/src/Models/Errors/ClerkErrors64.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors64Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors64Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors64Throwable.php b/src/Models/Errors/ClerkErrors64Throwable.php new file mode 100644 index 0000000..ae367d6 --- /dev/null +++ b/src/Models/Errors/ClerkErrors64Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors65.php b/src/Models/Errors/ClerkErrors65.php new file mode 100644 index 0000000..bd20ce9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors65.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors65Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors65Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors65Throwable.php b/src/Models/Errors/ClerkErrors65Throwable.php new file mode 100644 index 0000000..29f1a89 --- /dev/null +++ b/src/Models/Errors/ClerkErrors65Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors66.php b/src/Models/Errors/ClerkErrors66.php new file mode 100644 index 0000000..9b8589c --- /dev/null +++ b/src/Models/Errors/ClerkErrors66.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors66Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors66Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors66Throwable.php b/src/Models/Errors/ClerkErrors66Throwable.php new file mode 100644 index 0000000..47815e6 --- /dev/null +++ b/src/Models/Errors/ClerkErrors66Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors67.php b/src/Models/Errors/ClerkErrors67.php new file mode 100644 index 0000000..44ce0be --- /dev/null +++ b/src/Models/Errors/ClerkErrors67.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors67Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors67Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors67Throwable.php b/src/Models/Errors/ClerkErrors67Throwable.php new file mode 100644 index 0000000..c1a0de7 --- /dev/null +++ b/src/Models/Errors/ClerkErrors67Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors68.php b/src/Models/Errors/ClerkErrors68.php new file mode 100644 index 0000000..cfc99ec --- /dev/null +++ b/src/Models/Errors/ClerkErrors68.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors68Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors68Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors68Throwable.php b/src/Models/Errors/ClerkErrors68Throwable.php new file mode 100644 index 0000000..36285f8 --- /dev/null +++ b/src/Models/Errors/ClerkErrors68Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors69.php b/src/Models/Errors/ClerkErrors69.php new file mode 100644 index 0000000..c07e0e3 --- /dev/null +++ b/src/Models/Errors/ClerkErrors69.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors69Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors69Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors69Throwable.php b/src/Models/Errors/ClerkErrors69Throwable.php new file mode 100644 index 0000000..8f795b4 --- /dev/null +++ b/src/Models/Errors/ClerkErrors69Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors6Throwable.php b/src/Models/Errors/ClerkErrors6Throwable.php new file mode 100644 index 0000000..302d68e --- /dev/null +++ b/src/Models/Errors/ClerkErrors6Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors7.php b/src/Models/Errors/ClerkErrors7.php new file mode 100644 index 0000000..38f8ac1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors7.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors7Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors7Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors70.php b/src/Models/Errors/ClerkErrors70.php new file mode 100644 index 0000000..10a6f46 --- /dev/null +++ b/src/Models/Errors/ClerkErrors70.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors70Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors70Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors70Throwable.php b/src/Models/Errors/ClerkErrors70Throwable.php new file mode 100644 index 0000000..22f375b --- /dev/null +++ b/src/Models/Errors/ClerkErrors70Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors71.php b/src/Models/Errors/ClerkErrors71.php new file mode 100644 index 0000000..7c7f989 --- /dev/null +++ b/src/Models/Errors/ClerkErrors71.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors71Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors71Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors71Throwable.php b/src/Models/Errors/ClerkErrors71Throwable.php new file mode 100644 index 0000000..c04283b --- /dev/null +++ b/src/Models/Errors/ClerkErrors71Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors72.php b/src/Models/Errors/ClerkErrors72.php new file mode 100644 index 0000000..2631d92 --- /dev/null +++ b/src/Models/Errors/ClerkErrors72.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors72Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors72Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors72Throwable.php b/src/Models/Errors/ClerkErrors72Throwable.php new file mode 100644 index 0000000..3ed7b5b --- /dev/null +++ b/src/Models/Errors/ClerkErrors72Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors73.php b/src/Models/Errors/ClerkErrors73.php new file mode 100644 index 0000000..ed4e11a --- /dev/null +++ b/src/Models/Errors/ClerkErrors73.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors73Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors73Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors73Throwable.php b/src/Models/Errors/ClerkErrors73Throwable.php new file mode 100644 index 0000000..cbde843 --- /dev/null +++ b/src/Models/Errors/ClerkErrors73Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors74.php b/src/Models/Errors/ClerkErrors74.php new file mode 100644 index 0000000..ee72ebb --- /dev/null +++ b/src/Models/Errors/ClerkErrors74.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors74Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors74Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors74Throwable.php b/src/Models/Errors/ClerkErrors74Throwable.php new file mode 100644 index 0000000..b84378f --- /dev/null +++ b/src/Models/Errors/ClerkErrors74Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors75.php b/src/Models/Errors/ClerkErrors75.php new file mode 100644 index 0000000..ec9c564 --- /dev/null +++ b/src/Models/Errors/ClerkErrors75.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors75Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors75Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors75Throwable.php b/src/Models/Errors/ClerkErrors75Throwable.php new file mode 100644 index 0000000..680dc95 --- /dev/null +++ b/src/Models/Errors/ClerkErrors75Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors76.php b/src/Models/Errors/ClerkErrors76.php new file mode 100644 index 0000000..69a3e90 --- /dev/null +++ b/src/Models/Errors/ClerkErrors76.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors76Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors76Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors76Throwable.php b/src/Models/Errors/ClerkErrors76Throwable.php new file mode 100644 index 0000000..a5250b8 --- /dev/null +++ b/src/Models/Errors/ClerkErrors76Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors77.php b/src/Models/Errors/ClerkErrors77.php new file mode 100644 index 0000000..fa73e77 --- /dev/null +++ b/src/Models/Errors/ClerkErrors77.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors77Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors77Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors77Throwable.php b/src/Models/Errors/ClerkErrors77Throwable.php new file mode 100644 index 0000000..246dc17 --- /dev/null +++ b/src/Models/Errors/ClerkErrors77Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors78.php b/src/Models/Errors/ClerkErrors78.php new file mode 100644 index 0000000..683db8d --- /dev/null +++ b/src/Models/Errors/ClerkErrors78.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors78Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors78Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors78Throwable.php b/src/Models/Errors/ClerkErrors78Throwable.php new file mode 100644 index 0000000..bbc5dba --- /dev/null +++ b/src/Models/Errors/ClerkErrors78Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors79.php b/src/Models/Errors/ClerkErrors79.php new file mode 100644 index 0000000..130917f --- /dev/null +++ b/src/Models/Errors/ClerkErrors79.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors79Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors79Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors79Throwable.php b/src/Models/Errors/ClerkErrors79Throwable.php new file mode 100644 index 0000000..25ded6c --- /dev/null +++ b/src/Models/Errors/ClerkErrors79Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors7Throwable.php b/src/Models/Errors/ClerkErrors7Throwable.php new file mode 100644 index 0000000..131e8df --- /dev/null +++ b/src/Models/Errors/ClerkErrors7Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors8.php b/src/Models/Errors/ClerkErrors8.php new file mode 100644 index 0000000..00b23a9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors8.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors8Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors8Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors80.php b/src/Models/Errors/ClerkErrors80.php new file mode 100644 index 0000000..0fe193a --- /dev/null +++ b/src/Models/Errors/ClerkErrors80.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors80Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors80Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors80Throwable.php b/src/Models/Errors/ClerkErrors80Throwable.php new file mode 100644 index 0000000..00a0dc7 --- /dev/null +++ b/src/Models/Errors/ClerkErrors80Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors81.php b/src/Models/Errors/ClerkErrors81.php new file mode 100644 index 0000000..1690152 --- /dev/null +++ b/src/Models/Errors/ClerkErrors81.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors81Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors81Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors81Throwable.php b/src/Models/Errors/ClerkErrors81Throwable.php new file mode 100644 index 0000000..ffc36a9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors81Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors82.php b/src/Models/Errors/ClerkErrors82.php new file mode 100644 index 0000000..bde0f1b --- /dev/null +++ b/src/Models/Errors/ClerkErrors82.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors82Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors82Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors82Throwable.php b/src/Models/Errors/ClerkErrors82Throwable.php new file mode 100644 index 0000000..0e87cb0 --- /dev/null +++ b/src/Models/Errors/ClerkErrors82Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors83.php b/src/Models/Errors/ClerkErrors83.php new file mode 100644 index 0000000..2b44024 --- /dev/null +++ b/src/Models/Errors/ClerkErrors83.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors83Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors83Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors83Throwable.php b/src/Models/Errors/ClerkErrors83Throwable.php new file mode 100644 index 0000000..039b156 --- /dev/null +++ b/src/Models/Errors/ClerkErrors83Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors84.php b/src/Models/Errors/ClerkErrors84.php new file mode 100644 index 0000000..420d71e --- /dev/null +++ b/src/Models/Errors/ClerkErrors84.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors84Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors84Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors84Throwable.php b/src/Models/Errors/ClerkErrors84Throwable.php new file mode 100644 index 0000000..3a50006 --- /dev/null +++ b/src/Models/Errors/ClerkErrors84Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors85.php b/src/Models/Errors/ClerkErrors85.php new file mode 100644 index 0000000..568e74c --- /dev/null +++ b/src/Models/Errors/ClerkErrors85.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors85Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors85Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors85Throwable.php b/src/Models/Errors/ClerkErrors85Throwable.php new file mode 100644 index 0000000..3b04e26 --- /dev/null +++ b/src/Models/Errors/ClerkErrors85Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors86.php b/src/Models/Errors/ClerkErrors86.php new file mode 100644 index 0000000..83b82c7 --- /dev/null +++ b/src/Models/Errors/ClerkErrors86.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors86Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors86Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors86Throwable.php b/src/Models/Errors/ClerkErrors86Throwable.php new file mode 100644 index 0000000..7b052a1 --- /dev/null +++ b/src/Models/Errors/ClerkErrors86Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors87.php b/src/Models/Errors/ClerkErrors87.php new file mode 100644 index 0000000..03fa0f9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors87.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors87Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors87Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors87Throwable.php b/src/Models/Errors/ClerkErrors87Throwable.php new file mode 100644 index 0000000..61337d5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors87Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors88.php b/src/Models/Errors/ClerkErrors88.php new file mode 100644 index 0000000..9595f14 --- /dev/null +++ b/src/Models/Errors/ClerkErrors88.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors88Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors88Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors88Throwable.php b/src/Models/Errors/ClerkErrors88Throwable.php new file mode 100644 index 0000000..401036e --- /dev/null +++ b/src/Models/Errors/ClerkErrors88Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors89.php b/src/Models/Errors/ClerkErrors89.php new file mode 100644 index 0000000..2f88803 --- /dev/null +++ b/src/Models/Errors/ClerkErrors89.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors89Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors89Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors89Throwable.php b/src/Models/Errors/ClerkErrors89Throwable.php new file mode 100644 index 0000000..c7799c9 --- /dev/null +++ b/src/Models/Errors/ClerkErrors89Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors8Throwable.php b/src/Models/Errors/ClerkErrors8Throwable.php new file mode 100644 index 0000000..2ae2c39 --- /dev/null +++ b/src/Models/Errors/ClerkErrors8Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors9.php b/src/Models/Errors/ClerkErrors9.php new file mode 100644 index 0000000..b66d2d5 --- /dev/null +++ b/src/Models/Errors/ClerkErrors9.php @@ -0,0 +1,52 @@ + $errors + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('errors')] + #[\Speakeasy\Serializer\Annotation\Type('array<\Clerk\Backend\Models\Components\ClerkError>')] + public array $errors; + + /** + * + * @var ?Meta $meta + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('meta')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Errors\Meta|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] + public ?Meta $meta = null; + + /** + * @param array $errors + * @param ?Meta $meta + */ + public function __construct(array $errors, ?Meta $meta = null) + { + $this->errors = $errors; + $this->meta = $meta; + } + + public function toException(): ClerkErrors9Throwable + { + $serializer = Utils\JSON::createSerializer(); + $message = $serializer->serialize($this, 'json'); + $code = -1; + + return new ClerkErrors9Throwable($message, (int) $code, $this); + } +} \ No newline at end of file diff --git a/src/Models/Errors/ClerkErrors9Throwable.php b/src/Models/Errors/ClerkErrors9Throwable.php new file mode 100644 index 0000000..c7b19df --- /dev/null +++ b/src/Models/Errors/ClerkErrors9Throwable.php @@ -0,0 +1,20 @@ +container = $container; + } +} \ No newline at end of file diff --git a/src/Models/Operations/AddDomainRequestBody.php b/src/Models/Operations/AddDomainRequestBody.php index 4b0b2fd..7ce9e24 100644 --- a/src/Models/Operations/AddDomainRequestBody.php +++ b/src/Models/Operations/AddDomainRequestBody.php @@ -16,7 +16,7 @@ class AddDomainRequestBody * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** @@ -24,7 +24,7 @@ class AddDomainRequestBody * * @var bool $isSatellite */ - #[\JMS\Serializer\Annotation\SerializedName('is_satellite')] + #[\Speakeasy\Serializer\Annotation\SerializedName('is_satellite')] public bool $isSatellite; /** @@ -32,16 +32,16 @@ class AddDomainRequestBody * * @var ?string $proxyUrl */ - #[\JMS\Serializer\Annotation\SerializedName('proxy_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('proxy_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $proxyUrl = null; /** - * @param ?string $name - * @param ?bool $isSatellite + * @param string $name + * @param bool $isSatellite * @param ?string $proxyUrl */ - public function __construct(?string $name = null, ?bool $isSatellite = null, ?string $proxyUrl = null) + public function __construct(string $name, bool $isSatellite, ?string $proxyUrl = null) { $this->name = $name; $this->isSatellite = $isSatellite; diff --git a/src/Models/Operations/AddDomainResponse.php b/src/Models/Operations/AddDomainResponse.php index 83a7002..e3fcd83 100644 --- a/src/Models/Operations/AddDomainResponse.php +++ b/src/Models/Operations/AddDomainResponse.php @@ -40,12 +40,12 @@ class AddDomainResponse public ?Components\Domain $domain = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Domain $domain */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Domain $domain = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Domain $domain = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/AttributeMapping.php b/src/Models/Operations/AttributeMapping.php index 378351b..0711726 100644 --- a/src/Models/Operations/AttributeMapping.php +++ b/src/Models/Operations/AttributeMapping.php @@ -16,32 +16,32 @@ class AttributeMapping * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** diff --git a/src/Models/Operations/BanUserRequest.php b/src/Models/Operations/BanUserRequest.php index f9184d6..ff76e83 100644 --- a/src/Models/Operations/BanUserRequest.php +++ b/src/Models/Operations/BanUserRequest.php @@ -20,9 +20,9 @@ class BanUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/BanUserResponse.php b/src/Models/Operations/BanUserResponse.php index 7ffa091..e58cb1e 100644 --- a/src/Models/Operations/BanUserResponse.php +++ b/src/Models/Operations/BanUserResponse.php @@ -40,12 +40,12 @@ class BanUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php b/src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php index d09ced6..ebb3198 100644 --- a/src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php +++ b/src/Models/Operations/ChangeProductionInstanceDomainRequestBody.php @@ -16,8 +16,8 @@ class ChangeProductionInstanceDomainRequestBody * * @var ?string $homeUrl */ - #[\JMS\Serializer\Annotation\SerializedName('home_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('home_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $homeUrl = null; /** diff --git a/src/Models/Operations/ChangeProductionInstanceDomainResponse.php b/src/Models/Operations/ChangeProductionInstanceDomainResponse.php index fdc7eee..2faac3c 100644 --- a/src/Models/Operations/ChangeProductionInstanceDomainResponse.php +++ b/src/Models/Operations/ChangeProductionInstanceDomainResponse.php @@ -33,11 +33,11 @@ class ChangeProductionInstanceDomainResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateActorTokenRequestBody.php b/src/Models/Operations/CreateActorTokenRequestBody.php index d5562ad..4c0929b 100644 --- a/src/Models/Operations/CreateActorTokenRequestBody.php +++ b/src/Models/Operations/CreateActorTokenRequestBody.php @@ -16,7 +16,7 @@ class CreateActorTokenRequestBody * * @var string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] public string $userId; /** @@ -26,8 +26,8 @@ class CreateActorTokenRequestBody * * @var Actor $actor */ - #[\JMS\Serializer\Annotation\SerializedName('actor')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Actor')] + #[\Speakeasy\Serializer\Annotation\SerializedName('actor')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Actor')] public Actor $actor; /** @@ -37,8 +37,8 @@ class CreateActorTokenRequestBody * * @var ?int $expiresInSeconds */ - #[\JMS\Serializer\Annotation\SerializedName('expires_in_seconds')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expires_in_seconds')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expiresInSeconds = null; /** @@ -48,17 +48,17 @@ class CreateActorTokenRequestBody * * @var ?int $sessionMaxDurationInSeconds */ - #[\JMS\Serializer\Annotation\SerializedName('session_max_duration_in_seconds')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('session_max_duration_in_seconds')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $sessionMaxDurationInSeconds = null; /** - * @param ?string $userId - * @param ?Actor $actor + * @param string $userId + * @param Actor $actor * @param ?int $expiresInSeconds * @param ?int $sessionMaxDurationInSeconds */ - public function __construct(?string $userId = null, ?Actor $actor = null, ?int $expiresInSeconds = null, ?int $sessionMaxDurationInSeconds = null) + public function __construct(string $userId, Actor $actor, ?int $expiresInSeconds = 3600, ?int $sessionMaxDurationInSeconds = 1800) { $this->userId = $userId; $this->actor = $actor; diff --git a/src/Models/Operations/CreateActorTokenResponse.php b/src/Models/Operations/CreateActorTokenResponse.php index cff0ee0..31c47e7 100644 --- a/src/Models/Operations/CreateActorTokenResponse.php +++ b/src/Models/Operations/CreateActorTokenResponse.php @@ -40,12 +40,12 @@ class CreateActorTokenResponse public ?Components\ActorToken $actorToken = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\ActorToken $actorToken */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\ActorToken $actorToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActorToken $actorToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateAllowlistIdentifierRequestBody.php b/src/Models/Operations/CreateAllowlistIdentifierRequestBody.php index ae1ae8d..d93f2fc 100644 --- a/src/Models/Operations/CreateAllowlistIdentifierRequestBody.php +++ b/src/Models/Operations/CreateAllowlistIdentifierRequestBody.php @@ -18,7 +18,7 @@ class CreateAllowlistIdentifierRequestBody * * @var string $identifier */ - #[\JMS\Serializer\Annotation\SerializedName('identifier')] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier')] public string $identifier; /** @@ -28,15 +28,15 @@ class CreateAllowlistIdentifierRequestBody * * @var ?bool $notify */ - #[\JMS\Serializer\Annotation\SerializedName('notify')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('notify')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $notify = null; /** - * @param ?string $identifier + * @param string $identifier * @param ?bool $notify */ - public function __construct(?string $identifier = null, ?bool $notify = null) + public function __construct(string $identifier, ?bool $notify = false) { $this->identifier = $identifier; $this->notify = $notify; diff --git a/src/Models/Operations/CreateAllowlistIdentifierResponse.php b/src/Models/Operations/CreateAllowlistIdentifierResponse.php index 4f0baf7..e1751a7 100644 --- a/src/Models/Operations/CreateAllowlistIdentifierResponse.php +++ b/src/Models/Operations/CreateAllowlistIdentifierResponse.php @@ -40,12 +40,12 @@ class CreateAllowlistIdentifierResponse public ?Components\AllowlistIdentifier $allowlistIdentifier = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\AllowlistIdentifier $allowlistIdentifier */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\AllowlistIdentifier $allowlistIdentifier = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\AllowlistIdentifier $allowlistIdentifier = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateBlocklistIdentifierRequestBody.php b/src/Models/Operations/CreateBlocklistIdentifierRequestBody.php index 8c9d5d9..a1958cd 100644 --- a/src/Models/Operations/CreateBlocklistIdentifierRequestBody.php +++ b/src/Models/Operations/CreateBlocklistIdentifierRequestBody.php @@ -18,13 +18,13 @@ class CreateBlocklistIdentifierRequestBody * * @var string $identifier */ - #[\JMS\Serializer\Annotation\SerializedName('identifier')] + #[\Speakeasy\Serializer\Annotation\SerializedName('identifier')] public string $identifier; /** - * @param ?string $identifier + * @param string $identifier */ - public function __construct(?string $identifier = null) + public function __construct(string $identifier) { $this->identifier = $identifier; } diff --git a/src/Models/Operations/CreateBlocklistIdentifierResponse.php b/src/Models/Operations/CreateBlocklistIdentifierResponse.php index 039a3c0..9627367 100644 --- a/src/Models/Operations/CreateBlocklistIdentifierResponse.php +++ b/src/Models/Operations/CreateBlocklistIdentifierResponse.php @@ -40,12 +40,12 @@ class CreateBlocklistIdentifierResponse public ?Components\BlocklistIdentifier $blocklistIdentifier = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\BlocklistIdentifier $blocklistIdentifier */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\BlocklistIdentifier $blocklistIdentifier = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\BlocklistIdentifier $blocklistIdentifier = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateEmailAddressRequestBody.php b/src/Models/Operations/CreateEmailAddressRequestBody.php index 1bef23e..7c33ebc 100644 --- a/src/Models/Operations/CreateEmailAddressRequestBody.php +++ b/src/Models/Operations/CreateEmailAddressRequestBody.php @@ -16,8 +16,8 @@ class CreateEmailAddressRequestBody * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** @@ -25,8 +25,8 @@ class CreateEmailAddressRequestBody * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** @@ -34,8 +34,8 @@ class CreateEmailAddressRequestBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** @@ -45,8 +45,8 @@ class CreateEmailAddressRequestBody * * @var ?bool $primary */ - #[\JMS\Serializer\Annotation\SerializedName('primary')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $primary = null; /** diff --git a/src/Models/Operations/CreateEmailAddressResponse.php b/src/Models/Operations/CreateEmailAddressResponse.php index 1f24319..0f6738e 100644 --- a/src/Models/Operations/CreateEmailAddressResponse.php +++ b/src/Models/Operations/CreateEmailAddressResponse.php @@ -40,12 +40,12 @@ class CreateEmailAddressResponse public ?Components\EmailAddress $emailAddress = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\EmailAddress $emailAddress */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\EmailAddress $emailAddress = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\EmailAddress $emailAddress = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateInvitationRequestBody.php b/src/Models/Operations/CreateInvitationRequestBody.php index dd58a64..8916bd6 100644 --- a/src/Models/Operations/CreateInvitationRequestBody.php +++ b/src/Models/Operations/CreateInvitationRequestBody.php @@ -17,7 +17,7 @@ class CreateInvitationRequestBody * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** @@ -28,9 +28,9 @@ class CreateInvitationRequestBody * * @var ?CreateInvitationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateInvitationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateInvitationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateInvitationPublicMetadata $publicMetadata = null; /** @@ -40,8 +40,8 @@ class CreateInvitationRequestBody * * @var ?string $redirectUrl */ - #[\JMS\Serializer\Annotation\SerializedName('redirect_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('redirect_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $redirectUrl = null; /** @@ -51,8 +51,8 @@ class CreateInvitationRequestBody * * @var ?bool $notify */ - #[\JMS\Serializer\Annotation\SerializedName('notify')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('notify')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $notify = null; /** @@ -60,18 +60,18 @@ class CreateInvitationRequestBody * * @var ?bool $ignoreExisting */ - #[\JMS\Serializer\Annotation\SerializedName('ignore_existing')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('ignore_existing')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $ignoreExisting = null; /** - * @param ?string $emailAddress + * @param string $emailAddress * @param ?CreateInvitationPublicMetadata $publicMetadata * @param ?string $redirectUrl * @param ?bool $notify * @param ?bool $ignoreExisting */ - public function __construct(?string $emailAddress = null, ?CreateInvitationPublicMetadata $publicMetadata = null, ?string $redirectUrl = null, ?bool $notify = null, ?bool $ignoreExisting = null) + public function __construct(string $emailAddress, ?CreateInvitationPublicMetadata $publicMetadata = null, ?string $redirectUrl = null, ?bool $notify = true, ?bool $ignoreExisting = false) { $this->emailAddress = $emailAddress; $this->publicMetadata = $publicMetadata; diff --git a/src/Models/Operations/CreateInvitationResponse.php b/src/Models/Operations/CreateInvitationResponse.php index cdfa4f9..cebee43 100644 --- a/src/Models/Operations/CreateInvitationResponse.php +++ b/src/Models/Operations/CreateInvitationResponse.php @@ -40,12 +40,12 @@ class CreateInvitationResponse public ?Components\Invitation $invitation = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Invitation $invitation */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Invitation $invitation = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Invitation $invitation = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateJWTTemplateRequestBody.php b/src/Models/Operations/CreateJWTTemplateRequestBody.php index e8a308e..9d02ef4 100644 --- a/src/Models/Operations/CreateJWTTemplateRequestBody.php +++ b/src/Models/Operations/CreateJWTTemplateRequestBody.php @@ -16,8 +16,8 @@ class CreateJWTTemplateRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -25,9 +25,9 @@ class CreateJWTTemplateRequestBody * * @var ?Claims $claims */ - #[\JMS\Serializer\Annotation\SerializedName('claims')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Claims|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('claims')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Claims|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?Claims $claims = null; /** @@ -35,8 +35,8 @@ class CreateJWTTemplateRequestBody * * @var ?float $lifetime */ - #[\JMS\Serializer\Annotation\SerializedName('lifetime')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('lifetime')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?float $lifetime = null; /** @@ -44,8 +44,8 @@ class CreateJWTTemplateRequestBody * * @var ?float $allowedClockSkew */ - #[\JMS\Serializer\Annotation\SerializedName('allowed_clock_skew')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowed_clock_skew')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?float $allowedClockSkew = null; /** @@ -53,8 +53,8 @@ class CreateJWTTemplateRequestBody * * @var ?bool $customSigningKey */ - #[\JMS\Serializer\Annotation\SerializedName('custom_signing_key')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('custom_signing_key')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $customSigningKey = null; /** @@ -62,8 +62,8 @@ class CreateJWTTemplateRequestBody * * @var ?string $signingAlgorithm */ - #[\JMS\Serializer\Annotation\SerializedName('signing_algorithm')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('signing_algorithm')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $signingAlgorithm = null; /** @@ -71,26 +71,26 @@ class CreateJWTTemplateRequestBody * * @var ?string $signingKey */ - #[\JMS\Serializer\Annotation\SerializedName('signing_key')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('signing_key')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $signingKey = null; /** * @param ?string $name * @param ?Claims $claims + * @param ?bool $customSigningKey * @param ?float $lifetime * @param ?float $allowedClockSkew - * @param ?bool $customSigningKey * @param ?string $signingAlgorithm * @param ?string $signingKey */ - public function __construct(?string $name = null, ?Claims $claims = null, ?float $lifetime = null, ?float $allowedClockSkew = null, ?bool $customSigningKey = null, ?string $signingAlgorithm = null, ?string $signingKey = null) + public function __construct(?string $name = null, ?Claims $claims = null, ?bool $customSigningKey = null, ?float $lifetime = null, ?float $allowedClockSkew = null, ?string $signingAlgorithm = null, ?string $signingKey = null) { $this->name = $name; $this->claims = $claims; + $this->customSigningKey = $customSigningKey; $this->lifetime = $lifetime; $this->allowedClockSkew = $allowedClockSkew; - $this->customSigningKey = $customSigningKey; $this->signingAlgorithm = $signingAlgorithm; $this->signingKey = $signingKey; } diff --git a/src/Models/Operations/CreateJWTTemplateResponse.php b/src/Models/Operations/CreateJWTTemplateResponse.php index b5519e2..793f9ef 100644 --- a/src/Models/Operations/CreateJWTTemplateResponse.php +++ b/src/Models/Operations/CreateJWTTemplateResponse.php @@ -40,12 +40,12 @@ class CreateJWTTemplateResponse public ?Components\JWTTemplate $jwtTemplate = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\JWTTemplate $jwtTemplate */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\JWTTemplate $jwtTemplate = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\JWTTemplate $jwtTemplate = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateOAuthApplicationRequestBody.php b/src/Models/Operations/CreateOAuthApplicationRequestBody.php index e2814fb..3d2ba4c 100644 --- a/src/Models/Operations/CreateOAuthApplicationRequestBody.php +++ b/src/Models/Operations/CreateOAuthApplicationRequestBody.php @@ -16,7 +16,7 @@ class CreateOAuthApplicationRequestBody * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** @@ -24,7 +24,7 @@ class CreateOAuthApplicationRequestBody * * @var string $callbackUrl */ - #[\JMS\Serializer\Annotation\SerializedName('callback_url')] + #[\Speakeasy\Serializer\Annotation\SerializedName('callback_url')] public string $callbackUrl; /** @@ -32,8 +32,8 @@ class CreateOAuthApplicationRequestBody * * @var ?string $scopes */ - #[\JMS\Serializer\Annotation\SerializedName('scopes')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('scopes')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $scopes = null; /** @@ -44,17 +44,17 @@ class CreateOAuthApplicationRequestBody * * @var ?bool $public */ - #[\JMS\Serializer\Annotation\SerializedName('public')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $public = null; /** - * @param ?string $name - * @param ?string $callbackUrl + * @param string $name + * @param string $callbackUrl * @param ?string $scopes * @param ?bool $public */ - public function __construct(?string $name = null, ?string $callbackUrl = null, ?string $scopes = null, ?bool $public = null) + public function __construct(string $name, string $callbackUrl, ?bool $public = null, ?string $scopes = 'profile email') { $this->name = $name; $this->callbackUrl = $callbackUrl; diff --git a/src/Models/Operations/CreateOAuthApplicationResponse.php b/src/Models/Operations/CreateOAuthApplicationResponse.php index 5bd27e6..fbe55de 100644 --- a/src/Models/Operations/CreateOAuthApplicationResponse.php +++ b/src/Models/Operations/CreateOAuthApplicationResponse.php @@ -40,12 +40,12 @@ class CreateOAuthApplicationResponse public ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateOrganizationInvitationBulkRequest.php b/src/Models/Operations/CreateOrganizationInvitationBulkRequest.php index c0c51bb..82d1cb0 100644 --- a/src/Models/Operations/CreateOrganizationInvitationBulkRequest.php +++ b/src/Models/Operations/CreateOrganizationInvitationBulkRequest.php @@ -28,10 +28,10 @@ class CreateOrganizationInvitationBulkRequest public array $requestBody; /** - * @param ?string $organizationId - * @param ?array $requestBody + * @param string $organizationId + * @param array $requestBody */ - public function __construct(?string $organizationId = null, ?array $requestBody = null) + public function __construct(string $organizationId, array $requestBody) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/CreateOrganizationInvitationBulkResponse.php b/src/Models/Operations/CreateOrganizationInvitationBulkResponse.php index 38b084d..46fa955 100644 --- a/src/Models/Operations/CreateOrganizationInvitationBulkResponse.php +++ b/src/Models/Operations/CreateOrganizationInvitationBulkResponse.php @@ -40,12 +40,12 @@ class CreateOrganizationInvitationBulkResponse public ?Components\OrganizationInvitations $organizationInvitations = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitations $organizationInvitations */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitations $organizationInvitations = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitations $organizationInvitations = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateOrganizationInvitationRequest.php b/src/Models/Operations/CreateOrganizationInvitationRequest.php index f0ca437..50601e8 100644 --- a/src/Models/Operations/CreateOrganizationInvitationRequest.php +++ b/src/Models/Operations/CreateOrganizationInvitationRequest.php @@ -27,10 +27,10 @@ class CreateOrganizationInvitationRequest public CreateOrganizationInvitationRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?CreateOrganizationInvitationRequestBody $requestBody + * @param string $organizationId + * @param CreateOrganizationInvitationRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?CreateOrganizationInvitationRequestBody $requestBody = null) + public function __construct(string $organizationId, CreateOrganizationInvitationRequestBody $requestBody) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/CreateOrganizationInvitationRequestBody.php b/src/Models/Operations/CreateOrganizationInvitationRequestBody.php index cda26d9..3c0341e 100644 --- a/src/Models/Operations/CreateOrganizationInvitationRequestBody.php +++ b/src/Models/Operations/CreateOrganizationInvitationRequestBody.php @@ -16,7 +16,7 @@ class CreateOrganizationInvitationRequestBody * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** @@ -26,7 +26,7 @@ class CreateOrganizationInvitationRequestBody * * @var string $inviterUserId */ - #[\JMS\Serializer\Annotation\SerializedName('inviter_user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('inviter_user_id')] public string $inviterUserId; /** @@ -34,7 +34,7 @@ class CreateOrganizationInvitationRequestBody * * @var string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] public string $role; /** @@ -42,9 +42,9 @@ class CreateOrganizationInvitationRequestBody * * @var ?CreateOrganizationInvitationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationInvitationPublicMetadata $publicMetadata = null; /** @@ -52,9 +52,9 @@ class CreateOrganizationInvitationRequestBody * * @var ?CreateOrganizationInvitationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationInvitationPrivateMetadata $privateMetadata = null; /** @@ -62,19 +62,19 @@ class CreateOrganizationInvitationRequestBody * * @var ?string $redirectUrl */ - #[\JMS\Serializer\Annotation\SerializedName('redirect_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('redirect_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $redirectUrl = null; /** - * @param ?string $emailAddress - * @param ?string $inviterUserId - * @param ?string $role + * @param string $emailAddress + * @param string $inviterUserId + * @param string $role * @param ?CreateOrganizationInvitationPublicMetadata $publicMetadata * @param ?CreateOrganizationInvitationPrivateMetadata $privateMetadata * @param ?string $redirectUrl */ - public function __construct(?string $emailAddress = null, ?string $inviterUserId = null, ?string $role = null, ?CreateOrganizationInvitationPublicMetadata $publicMetadata = null, ?CreateOrganizationInvitationPrivateMetadata $privateMetadata = null, ?string $redirectUrl = null) + public function __construct(string $emailAddress, string $inviterUserId, string $role, ?CreateOrganizationInvitationPublicMetadata $publicMetadata = null, ?CreateOrganizationInvitationPrivateMetadata $privateMetadata = null, ?string $redirectUrl = null) { $this->emailAddress = $emailAddress; $this->inviterUserId = $inviterUserId; diff --git a/src/Models/Operations/CreateOrganizationInvitationResponse.php b/src/Models/Operations/CreateOrganizationInvitationResponse.php index 58181e9..7beb876 100644 --- a/src/Models/Operations/CreateOrganizationInvitationResponse.php +++ b/src/Models/Operations/CreateOrganizationInvitationResponse.php @@ -40,12 +40,12 @@ class CreateOrganizationInvitationResponse public ?Components\OrganizationInvitation $organizationInvitation = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitation $organizationInvitation */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitation $organizationInvitation = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitation $organizationInvitation = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateOrganizationMembershipRequest.php b/src/Models/Operations/CreateOrganizationMembershipRequest.php index 7d16166..9a9fda7 100644 --- a/src/Models/Operations/CreateOrganizationMembershipRequest.php +++ b/src/Models/Operations/CreateOrganizationMembershipRequest.php @@ -27,10 +27,10 @@ class CreateOrganizationMembershipRequest public CreateOrganizationMembershipRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?CreateOrganizationMembershipRequestBody $requestBody + * @param string $organizationId + * @param CreateOrganizationMembershipRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?CreateOrganizationMembershipRequestBody $requestBody = null) + public function __construct(string $organizationId, CreateOrganizationMembershipRequestBody $requestBody) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/CreateOrganizationMembershipRequestBody.php b/src/Models/Operations/CreateOrganizationMembershipRequestBody.php index e988818..4da5d1d 100644 --- a/src/Models/Operations/CreateOrganizationMembershipRequestBody.php +++ b/src/Models/Operations/CreateOrganizationMembershipRequestBody.php @@ -18,7 +18,7 @@ class CreateOrganizationMembershipRequestBody * * @var string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] public string $userId; /** @@ -26,14 +26,14 @@ class CreateOrganizationMembershipRequestBody * * @var string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] public string $role; /** - * @param ?string $userId - * @param ?string $role + * @param string $userId + * @param string $role */ - public function __construct(?string $userId = null, ?string $role = null) + public function __construct(string $userId, string $role) { $this->userId = $userId; $this->role = $role; diff --git a/src/Models/Operations/CreateOrganizationMembershipResponse.php b/src/Models/Operations/CreateOrganizationMembershipResponse.php index 528857e..d2459c6 100644 --- a/src/Models/Operations/CreateOrganizationMembershipResponse.php +++ b/src/Models/Operations/CreateOrganizationMembershipResponse.php @@ -40,12 +40,12 @@ class CreateOrganizationMembershipResponse public ?Components\OrganizationMembership $organizationMembership = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMembership $organizationMembership */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMembership $organizationMembership = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMembership $organizationMembership = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateOrganizationRequestBody.php b/src/Models/Operations/CreateOrganizationRequestBody.php index 0b643ff..27a3677 100644 --- a/src/Models/Operations/CreateOrganizationRequestBody.php +++ b/src/Models/Operations/CreateOrganizationRequestBody.php @@ -16,7 +16,7 @@ class CreateOrganizationRequestBody * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** @@ -24,7 +24,7 @@ class CreateOrganizationRequestBody * * @var string $createdBy */ - #[\JMS\Serializer\Annotation\SerializedName('created_by')] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_by')] public string $createdBy; /** @@ -32,9 +32,9 @@ class CreateOrganizationRequestBody * * @var ?CreateOrganizationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationPrivateMetadata $privateMetadata = null; /** @@ -42,9 +42,9 @@ class CreateOrganizationRequestBody * * @var ?CreateOrganizationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationPublicMetadata $publicMetadata = null; /** @@ -55,8 +55,8 @@ class CreateOrganizationRequestBody * * @var ?string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $slug = null; /** @@ -64,19 +64,19 @@ class CreateOrganizationRequestBody * * @var ?int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $maxAllowedMemberships = null; /** - * @param ?string $name - * @param ?string $createdBy + * @param string $name + * @param string $createdBy * @param ?CreateOrganizationPrivateMetadata $privateMetadata * @param ?CreateOrganizationPublicMetadata $publicMetadata * @param ?string $slug * @param ?int $maxAllowedMemberships */ - public function __construct(?string $name = null, ?string $createdBy = null, ?CreateOrganizationPrivateMetadata $privateMetadata = null, ?CreateOrganizationPublicMetadata $publicMetadata = null, ?string $slug = null, ?int $maxAllowedMemberships = null) + public function __construct(string $name, string $createdBy, ?CreateOrganizationPrivateMetadata $privateMetadata = null, ?CreateOrganizationPublicMetadata $publicMetadata = null, ?string $slug = null, ?int $maxAllowedMemberships = null) { $this->name = $name; $this->createdBy = $createdBy; diff --git a/src/Models/Operations/CreateOrganizationResponse.php b/src/Models/Operations/CreateOrganizationResponse.php index 956bec0..bb5f023 100644 --- a/src/Models/Operations/CreateOrganizationResponse.php +++ b/src/Models/Operations/CreateOrganizationResponse.php @@ -40,12 +40,12 @@ class CreateOrganizationResponse public ?Components\Organization $organization = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organization $organization */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreatePhoneNumberRequestBody.php b/src/Models/Operations/CreatePhoneNumberRequestBody.php index 473ccfa..028cd68 100644 --- a/src/Models/Operations/CreatePhoneNumberRequestBody.php +++ b/src/Models/Operations/CreatePhoneNumberRequestBody.php @@ -16,8 +16,8 @@ class CreatePhoneNumberRequestBody * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** @@ -25,8 +25,8 @@ class CreatePhoneNumberRequestBody * * @var ?string $phoneNumber */ - #[\JMS\Serializer\Annotation\SerializedName('phone_number')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('phone_number')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $phoneNumber = null; /** @@ -34,8 +34,8 @@ class CreatePhoneNumberRequestBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** @@ -45,8 +45,8 @@ class CreatePhoneNumberRequestBody * * @var ?bool $primary */ - #[\JMS\Serializer\Annotation\SerializedName('primary')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $primary = null; /** @@ -57,8 +57,8 @@ class CreatePhoneNumberRequestBody * * @var ?bool $reservedForSecondFactor */ - #[\JMS\Serializer\Annotation\SerializedName('reserved_for_second_factor')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reserved_for_second_factor')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $reservedForSecondFactor = null; /** diff --git a/src/Models/Operations/CreatePhoneNumberResponse.php b/src/Models/Operations/CreatePhoneNumberResponse.php index 8264e5a..43d7c9e 100644 --- a/src/Models/Operations/CreatePhoneNumberResponse.php +++ b/src/Models/Operations/CreatePhoneNumberResponse.php @@ -40,12 +40,12 @@ class CreatePhoneNumberResponse public ?Components\PhoneNumber $phoneNumber = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\PhoneNumber $phoneNumber */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\PhoneNumber $phoneNumber = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\PhoneNumber $phoneNumber = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateRedirectURLRequestBody.php b/src/Models/Operations/CreateRedirectURLRequestBody.php index 5e5d327..87e8fad 100644 --- a/src/Models/Operations/CreateRedirectURLRequestBody.php +++ b/src/Models/Operations/CreateRedirectURLRequestBody.php @@ -16,8 +16,8 @@ class CreateRedirectURLRequestBody * * @var ?string $url */ - #[\JMS\Serializer\Annotation\SerializedName('url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $url = null; /** diff --git a/src/Models/Operations/CreateRedirectURLResponse.php b/src/Models/Operations/CreateRedirectURLResponse.php index 54f1fe4..8f40c56 100644 --- a/src/Models/Operations/CreateRedirectURLResponse.php +++ b/src/Models/Operations/CreateRedirectURLResponse.php @@ -40,12 +40,12 @@ class CreateRedirectURLResponse public ?Components\RedirectURL $redirectURL = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\RedirectURL $redirectURL */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\RedirectURL $redirectURL = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\RedirectURL $redirectURL = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateSAMLConnectionRequestBody.php b/src/Models/Operations/CreateSAMLConnectionRequestBody.php index 155c955..d6bbd88 100644 --- a/src/Models/Operations/CreateSAMLConnectionRequestBody.php +++ b/src/Models/Operations/CreateSAMLConnectionRequestBody.php @@ -16,7 +16,7 @@ class CreateSAMLConnectionRequestBody * * @var string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] public string $name; /** @@ -24,7 +24,7 @@ class CreateSAMLConnectionRequestBody * * @var string $domain */ - #[\JMS\Serializer\Annotation\SerializedName('domain')] + #[\Speakeasy\Serializer\Annotation\SerializedName('domain')] public string $domain; /** @@ -32,8 +32,8 @@ class CreateSAMLConnectionRequestBody * * @var Provider $provider */ - #[\JMS\Serializer\Annotation\SerializedName('provider')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Provider')] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\Provider')] public Provider $provider; /** @@ -41,8 +41,8 @@ class CreateSAMLConnectionRequestBody * * @var ?string $idpEntityId */ - #[\JMS\Serializer\Annotation\SerializedName('idp_entity_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_entity_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpEntityId = null; /** @@ -50,8 +50,8 @@ class CreateSAMLConnectionRequestBody * * @var ?string $idpSsoUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_sso_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_sso_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpSsoUrl = null; /** @@ -59,8 +59,8 @@ class CreateSAMLConnectionRequestBody * * @var ?string $idpCertificate */ - #[\JMS\Serializer\Annotation\SerializedName('idp_certificate')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_certificate')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpCertificate = null; /** @@ -68,8 +68,8 @@ class CreateSAMLConnectionRequestBody * * @var ?string $idpMetadataUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadataUrl = null; /** @@ -77,8 +77,8 @@ class CreateSAMLConnectionRequestBody * * @var ?string $idpMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadata = null; /** @@ -86,15 +86,15 @@ class CreateSAMLConnectionRequestBody * * @var ?AttributeMapping $attributeMapping */ - #[\JMS\Serializer\Annotation\SerializedName('attribute_mapping')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\AttributeMapping|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attribute_mapping')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\AttributeMapping|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?AttributeMapping $attributeMapping = null; /** - * @param ?string $name - * @param ?string $domain - * @param ?Provider $provider + * @param string $name + * @param string $domain + * @param Provider $provider * @param ?string $idpEntityId * @param ?string $idpSsoUrl * @param ?string $idpCertificate @@ -102,7 +102,7 @@ class CreateSAMLConnectionRequestBody * @param ?string $idpMetadata * @param ?AttributeMapping $attributeMapping */ - public function __construct(?string $name = null, ?string $domain = null, ?Provider $provider = null, ?string $idpEntityId = null, ?string $idpSsoUrl = null, ?string $idpCertificate = null, ?string $idpMetadataUrl = null, ?string $idpMetadata = null, ?AttributeMapping $attributeMapping = null) + public function __construct(string $name, string $domain, Provider $provider, ?string $idpEntityId = null, ?string $idpSsoUrl = null, ?string $idpCertificate = null, ?string $idpMetadataUrl = null, ?string $idpMetadata = null, ?AttributeMapping $attributeMapping = null) { $this->name = $name; $this->domain = $domain; diff --git a/src/Models/Operations/CreateSAMLConnectionResponse.php b/src/Models/Operations/CreateSAMLConnectionResponse.php index 78a1bfd..13d64c7 100644 --- a/src/Models/Operations/CreateSAMLConnectionResponse.php +++ b/src/Models/Operations/CreateSAMLConnectionResponse.php @@ -40,12 +40,12 @@ class CreateSAMLConnectionResponse public ?Components\SAMLConnection $samlConnection = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SAMLConnection $samlConnection */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SAMLConnection $samlConnection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SAMLConnection $samlConnection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateSessionTokenFromTemplateRequest.php b/src/Models/Operations/CreateSessionTokenFromTemplateRequest.php index 84a9623..e4bf8b1 100644 --- a/src/Models/Operations/CreateSessionTokenFromTemplateRequest.php +++ b/src/Models/Operations/CreateSessionTokenFromTemplateRequest.php @@ -28,10 +28,10 @@ class CreateSessionTokenFromTemplateRequest public string $templateName; /** - * @param ?string $sessionId - * @param ?string $templateName + * @param string $sessionId + * @param string $templateName */ - public function __construct(?string $sessionId = null, ?string $templateName = null) + public function __construct(string $sessionId, string $templateName) { $this->sessionId = $sessionId; $this->templateName = $templateName; diff --git a/src/Models/Operations/CreateSessionTokenFromTemplateResponse.php b/src/Models/Operations/CreateSessionTokenFromTemplateResponse.php index c2c0873..59f9db6 100644 --- a/src/Models/Operations/CreateSessionTokenFromTemplateResponse.php +++ b/src/Models/Operations/CreateSessionTokenFromTemplateResponse.php @@ -40,12 +40,12 @@ class CreateSessionTokenFromTemplateResponse public ?CreateSessionTokenFromTemplateResponseBody $object = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?CreateSessionTokenFromTemplateResponseBody $object */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?CreateSessionTokenFromTemplateResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?CreateSessionTokenFromTemplateResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php b/src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php index 0228106..2888f76 100644 --- a/src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php +++ b/src/Models/Operations/CreateSessionTokenFromTemplateResponseBody.php @@ -16,17 +16,17 @@ class CreateSessionTokenFromTemplateResponseBody * * @var ?ObjectT $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\ObjectT|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\ObjectT|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?ObjectT $object = null; /** * * @var ?string $jwt */ - #[\JMS\Serializer\Annotation\SerializedName('jwt')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('jwt')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $jwt = null; /** diff --git a/src/Models/Operations/CreateSignInTokenRequestBody.php b/src/Models/Operations/CreateSignInTokenRequestBody.php index a55ad5f..f3179ff 100644 --- a/src/Models/Operations/CreateSignInTokenRequestBody.php +++ b/src/Models/Operations/CreateSignInTokenRequestBody.php @@ -16,8 +16,8 @@ class CreateSignInTokenRequestBody * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** @@ -27,15 +27,15 @@ class CreateSignInTokenRequestBody * * @var ?int $expiresInSeconds */ - #[\JMS\Serializer\Annotation\SerializedName('expires_in_seconds')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('expires_in_seconds')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $expiresInSeconds = null; /** * @param ?string $userId * @param ?int $expiresInSeconds */ - public function __construct(?string $userId = null, ?int $expiresInSeconds = null) + public function __construct(?string $userId = null, ?int $expiresInSeconds = 2592000) { $this->userId = $userId; $this->expiresInSeconds = $expiresInSeconds; diff --git a/src/Models/Operations/CreateSignInTokenResponse.php b/src/Models/Operations/CreateSignInTokenResponse.php index 05d1700..b7d6f6c 100644 --- a/src/Models/Operations/CreateSignInTokenResponse.php +++ b/src/Models/Operations/CreateSignInTokenResponse.php @@ -40,12 +40,12 @@ class CreateSignInTokenResponse public ?Components\SignInToken $signInToken = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SignInToken $signInToken */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SignInToken $signInToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SignInToken $signInToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateSvixAppResponse.php b/src/Models/Operations/CreateSvixAppResponse.php index 07a996f..30bcef0 100644 --- a/src/Models/Operations/CreateSvixAppResponse.php +++ b/src/Models/Operations/CreateSvixAppResponse.php @@ -40,12 +40,12 @@ class CreateSvixAppResponse public ?Components\SvixURL $svixURL = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SvixURL $svixURL */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SvixURL $svixURL = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SvixURL $svixURL = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateTestingTokenResponse.php b/src/Models/Operations/CreateTestingTokenResponse.php index 7560ecb..609d428 100644 --- a/src/Models/Operations/CreateTestingTokenResponse.php +++ b/src/Models/Operations/CreateTestingTokenResponse.php @@ -40,12 +40,12 @@ class CreateTestingTokenResponse public ?Components\TestingToken $testingToken = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\TestingToken $testingToken */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\TestingToken $testingToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TestingToken $testingToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/CreateUserRequestBody.php b/src/Models/Operations/CreateUserRequestBody.php index 8e9e34c..7e2d5d3 100644 --- a/src/Models/Operations/CreateUserRequestBody.php +++ b/src/Models/Operations/CreateUserRequestBody.php @@ -18,8 +18,8 @@ class CreateUserRequestBody * * @var ?string $externalId */ - #[\JMS\Serializer\Annotation\SerializedName('external_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalId = null; /** @@ -27,8 +27,8 @@ class CreateUserRequestBody * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** @@ -36,8 +36,8 @@ class CreateUserRequestBody * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** @@ -48,9 +48,9 @@ class CreateUserRequestBody * * @var ?array $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $emailAddress = null; /** @@ -61,9 +61,9 @@ class CreateUserRequestBody * * @var ?array $phoneNumber */ - #[\JMS\Serializer\Annotation\SerializedName('phone_number')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('phone_number')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $phoneNumber = null; /** @@ -74,9 +74,9 @@ class CreateUserRequestBody * * @var ?array $web3Wallet */ - #[\JMS\Serializer\Annotation\SerializedName('web3_wallet')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('web3_wallet')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $web3Wallet = null; /** @@ -86,8 +86,8 @@ class CreateUserRequestBody * * @var ?string $username */ - #[\JMS\Serializer\Annotation\SerializedName('username')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('username')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $username = null; /** @@ -97,8 +97,8 @@ class CreateUserRequestBody * * @var ?string $password */ - #[\JMS\Serializer\Annotation\SerializedName('password')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $password = null; /** @@ -109,8 +109,8 @@ class CreateUserRequestBody * * @var ?string $passwordDigest */ - #[\JMS\Serializer\Annotation\SerializedName('password_digest')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_digest')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $passwordDigest = null; /** @@ -241,9 +241,9 @@ class CreateUserRequestBody * * @var ?PasswordHasher $passwordHasher */ - #[\JMS\Serializer\Annotation\SerializedName('password_hasher')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PasswordHasher|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_hasher')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PasswordHasher|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PasswordHasher $passwordHasher = null; /** @@ -254,8 +254,8 @@ class CreateUserRequestBody * * @var ?bool $skipPasswordChecks */ - #[\JMS\Serializer\Annotation\SerializedName('skip_password_checks')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('skip_password_checks')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $skipPasswordChecks = null; /** @@ -266,8 +266,8 @@ class CreateUserRequestBody * * @var ?bool $skipPasswordRequirement */ - #[\JMS\Serializer\Annotation\SerializedName('skip_password_requirement')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('skip_password_requirement')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $skipPasswordRequirement = null; /** @@ -280,8 +280,8 @@ class CreateUserRequestBody * * @var ?string $totpSecret */ - #[\JMS\Serializer\Annotation\SerializedName('totp_secret')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('totp_secret')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $totpSecret = null; /** @@ -291,9 +291,9 @@ class CreateUserRequestBody * * @var ?array $backupCodes */ - #[\JMS\Serializer\Annotation\SerializedName('backup_codes')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('backup_codes')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $backupCodes = null; /** @@ -301,9 +301,9 @@ class CreateUserRequestBody * * @var ?PublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PublicMetadata $publicMetadata = null; /** @@ -311,9 +311,9 @@ class CreateUserRequestBody * * @var ?PrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\PrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?PrivateMetadata $privateMetadata = null; /** @@ -323,9 +323,9 @@ class CreateUserRequestBody * * @var ?UnsafeMetadata $unsafeMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('unsafe_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UnsafeMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unsafe_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UnsafeMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UnsafeMetadata $unsafeMetadata = null; /** @@ -333,19 +333,14 @@ class CreateUserRequestBody * * @var ?string $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdAt = null; /** - * @param ?string $externalId - * @param ?string $firstName - * @param ?string $lastName * @param ?array $emailAddress * @param ?array $phoneNumber * @param ?array $web3Wallet - * @param ?string $username - * @param ?string $password * @param ?string $passwordDigest * @param ?PasswordHasher $passwordHasher * @param ?bool $skipPasswordChecks @@ -356,17 +351,17 @@ class CreateUserRequestBody * @param ?PrivateMetadata $privateMetadata * @param ?UnsafeMetadata $unsafeMetadata * @param ?string $createdAt + * @param ?string $externalId + * @param ?string $firstName + * @param ?string $lastName + * @param ?string $username + * @param ?string $password */ - public function __construct(?string $externalId = null, ?string $firstName = null, ?string $lastName = null, ?array $emailAddress = null, ?array $phoneNumber = null, ?array $web3Wallet = null, ?string $username = null, ?string $password = null, ?string $passwordDigest = null, ?PasswordHasher $passwordHasher = null, ?bool $skipPasswordChecks = null, ?bool $skipPasswordRequirement = null, ?string $totpSecret = null, ?array $backupCodes = null, ?PublicMetadata $publicMetadata = null, ?PrivateMetadata $privateMetadata = null, ?UnsafeMetadata $unsafeMetadata = null, ?string $createdAt = null) + public function __construct(?array $emailAddress = null, ?array $phoneNumber = null, ?array $web3Wallet = null, ?string $passwordDigest = null, ?PasswordHasher $passwordHasher = null, ?bool $skipPasswordChecks = null, ?bool $skipPasswordRequirement = null, ?string $totpSecret = null, ?array $backupCodes = null, ?PublicMetadata $publicMetadata = null, ?PrivateMetadata $privateMetadata = null, ?UnsafeMetadata $unsafeMetadata = null, ?string $createdAt = null, ?string $externalId = null, ?string $firstName = null, ?string $lastName = null, ?string $username = null, ?string $password = null) { - $this->externalId = $externalId; - $this->firstName = $firstName; - $this->lastName = $lastName; $this->emailAddress = $emailAddress; $this->phoneNumber = $phoneNumber; $this->web3Wallet = $web3Wallet; - $this->username = $username; - $this->password = $password; $this->passwordDigest = $passwordDigest; $this->passwordHasher = $passwordHasher; $this->skipPasswordChecks = $skipPasswordChecks; @@ -377,5 +372,10 @@ public function __construct(?string $externalId = null, ?string $firstName = nul $this->privateMetadata = $privateMetadata; $this->unsafeMetadata = $unsafeMetadata; $this->createdAt = $createdAt; + $this->externalId = $externalId; + $this->firstName = $firstName; + $this->lastName = $lastName; + $this->username = $username; + $this->password = $password; } } \ No newline at end of file diff --git a/src/Models/Operations/CreateUserResponse.php b/src/Models/Operations/CreateUserResponse.php index e554d1b..c3fac85 100644 --- a/src/Models/Operations/CreateUserResponse.php +++ b/src/Models/Operations/CreateUserResponse.php @@ -40,12 +40,12 @@ class CreateUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteAllowlistIdentifierRequest.php b/src/Models/Operations/DeleteAllowlistIdentifierRequest.php index 7e2a506..39f353f 100644 --- a/src/Models/Operations/DeleteAllowlistIdentifierRequest.php +++ b/src/Models/Operations/DeleteAllowlistIdentifierRequest.php @@ -20,9 +20,9 @@ class DeleteAllowlistIdentifierRequest public string $identifierId; /** - * @param ?string $identifierId + * @param string $identifierId */ - public function __construct(?string $identifierId = null) + public function __construct(string $identifierId) { $this->identifierId = $identifierId; } diff --git a/src/Models/Operations/DeleteAllowlistIdentifierResponse.php b/src/Models/Operations/DeleteAllowlistIdentifierResponse.php index 05a8a71..d1dad07 100644 --- a/src/Models/Operations/DeleteAllowlistIdentifierResponse.php +++ b/src/Models/Operations/DeleteAllowlistIdentifierResponse.php @@ -40,12 +40,12 @@ class DeleteAllowlistIdentifierResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteBlocklistIdentifierRequest.php b/src/Models/Operations/DeleteBlocklistIdentifierRequest.php index 4d34de6..f4ee77c 100644 --- a/src/Models/Operations/DeleteBlocklistIdentifierRequest.php +++ b/src/Models/Operations/DeleteBlocklistIdentifierRequest.php @@ -20,9 +20,9 @@ class DeleteBlocklistIdentifierRequest public string $identifierId; /** - * @param ?string $identifierId + * @param string $identifierId */ - public function __construct(?string $identifierId = null) + public function __construct(string $identifierId) { $this->identifierId = $identifierId; } diff --git a/src/Models/Operations/DeleteBlocklistIdentifierResponse.php b/src/Models/Operations/DeleteBlocklistIdentifierResponse.php index 1e5cb3d..dbc37d6 100644 --- a/src/Models/Operations/DeleteBlocklistIdentifierResponse.php +++ b/src/Models/Operations/DeleteBlocklistIdentifierResponse.php @@ -40,12 +40,12 @@ class DeleteBlocklistIdentifierResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteDomainRequest.php b/src/Models/Operations/DeleteDomainRequest.php index f7f19bd..334c60e 100644 --- a/src/Models/Operations/DeleteDomainRequest.php +++ b/src/Models/Operations/DeleteDomainRequest.php @@ -20,9 +20,9 @@ class DeleteDomainRequest public string $domainId; /** - * @param ?string $domainId + * @param string $domainId */ - public function __construct(?string $domainId = null) + public function __construct(string $domainId) { $this->domainId = $domainId; } diff --git a/src/Models/Operations/DeleteDomainResponse.php b/src/Models/Operations/DeleteDomainResponse.php index 1edb721..bb07fb9 100644 --- a/src/Models/Operations/DeleteDomainResponse.php +++ b/src/Models/Operations/DeleteDomainResponse.php @@ -40,12 +40,12 @@ class DeleteDomainResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteEmailAddressRequest.php b/src/Models/Operations/DeleteEmailAddressRequest.php index 20072a4..7175e87 100644 --- a/src/Models/Operations/DeleteEmailAddressRequest.php +++ b/src/Models/Operations/DeleteEmailAddressRequest.php @@ -20,9 +20,9 @@ class DeleteEmailAddressRequest public string $emailAddressId; /** - * @param ?string $emailAddressId + * @param string $emailAddressId */ - public function __construct(?string $emailAddressId = null) + public function __construct(string $emailAddressId) { $this->emailAddressId = $emailAddressId; } diff --git a/src/Models/Operations/DeleteEmailAddressResponse.php b/src/Models/Operations/DeleteEmailAddressResponse.php index 0a9dfb0..04ee763 100644 --- a/src/Models/Operations/DeleteEmailAddressResponse.php +++ b/src/Models/Operations/DeleteEmailAddressResponse.php @@ -40,12 +40,12 @@ class DeleteEmailAddressResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteJWTTemplateRequest.php b/src/Models/Operations/DeleteJWTTemplateRequest.php index 4e17557..3edd0bf 100644 --- a/src/Models/Operations/DeleteJWTTemplateRequest.php +++ b/src/Models/Operations/DeleteJWTTemplateRequest.php @@ -20,9 +20,9 @@ class DeleteJWTTemplateRequest public string $templateId; /** - * @param ?string $templateId + * @param string $templateId */ - public function __construct(?string $templateId = null) + public function __construct(string $templateId) { $this->templateId = $templateId; } diff --git a/src/Models/Operations/DeleteJWTTemplateResponse.php b/src/Models/Operations/DeleteJWTTemplateResponse.php index 0920d84..f509140 100644 --- a/src/Models/Operations/DeleteJWTTemplateResponse.php +++ b/src/Models/Operations/DeleteJWTTemplateResponse.php @@ -40,12 +40,12 @@ class DeleteJWTTemplateResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteOAuthApplicationRequest.php b/src/Models/Operations/DeleteOAuthApplicationRequest.php index 4fbf110..84badd2 100644 --- a/src/Models/Operations/DeleteOAuthApplicationRequest.php +++ b/src/Models/Operations/DeleteOAuthApplicationRequest.php @@ -20,9 +20,9 @@ class DeleteOAuthApplicationRequest public string $oauthApplicationId; /** - * @param ?string $oauthApplicationId + * @param string $oauthApplicationId */ - public function __construct(?string $oauthApplicationId = null) + public function __construct(string $oauthApplicationId) { $this->oauthApplicationId = $oauthApplicationId; } diff --git a/src/Models/Operations/DeleteOAuthApplicationResponse.php b/src/Models/Operations/DeleteOAuthApplicationResponse.php index 5ed49ec..fda77e7 100644 --- a/src/Models/Operations/DeleteOAuthApplicationResponse.php +++ b/src/Models/Operations/DeleteOAuthApplicationResponse.php @@ -40,12 +40,12 @@ class DeleteOAuthApplicationResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteOrganizationLogoRequest.php b/src/Models/Operations/DeleteOrganizationLogoRequest.php index b44d3e2..8195432 100644 --- a/src/Models/Operations/DeleteOrganizationLogoRequest.php +++ b/src/Models/Operations/DeleteOrganizationLogoRequest.php @@ -20,9 +20,9 @@ class DeleteOrganizationLogoRequest public string $organizationId; /** - * @param ?string $organizationId + * @param string $organizationId */ - public function __construct(?string $organizationId = null) + public function __construct(string $organizationId) { $this->organizationId = $organizationId; } diff --git a/src/Models/Operations/DeleteOrganizationLogoResponse.php b/src/Models/Operations/DeleteOrganizationLogoResponse.php index 0108b0b..96b8168 100644 --- a/src/Models/Operations/DeleteOrganizationLogoResponse.php +++ b/src/Models/Operations/DeleteOrganizationLogoResponse.php @@ -40,12 +40,12 @@ class DeleteOrganizationLogoResponse public ?Components\Organization $organization = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organization $organization */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteOrganizationMembershipRequest.php b/src/Models/Operations/DeleteOrganizationMembershipRequest.php index 7b37af2..5f25988 100644 --- a/src/Models/Operations/DeleteOrganizationMembershipRequest.php +++ b/src/Models/Operations/DeleteOrganizationMembershipRequest.php @@ -28,10 +28,10 @@ class DeleteOrganizationMembershipRequest public string $userId; /** - * @param ?string $organizationId - * @param ?string $userId + * @param string $organizationId + * @param string $userId */ - public function __construct(?string $organizationId = null, ?string $userId = null) + public function __construct(string $organizationId, string $userId) { $this->organizationId = $organizationId; $this->userId = $userId; diff --git a/src/Models/Operations/DeleteOrganizationMembershipResponse.php b/src/Models/Operations/DeleteOrganizationMembershipResponse.php index 0917f57..f278fa7 100644 --- a/src/Models/Operations/DeleteOrganizationMembershipResponse.php +++ b/src/Models/Operations/DeleteOrganizationMembershipResponse.php @@ -40,12 +40,12 @@ class DeleteOrganizationMembershipResponse public ?Components\OrganizationMembership $organizationMembership = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMembership $organizationMembership */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMembership $organizationMembership = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMembership $organizationMembership = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteOrganizationRequest.php b/src/Models/Operations/DeleteOrganizationRequest.php index 5b9d7ea..daf1e82 100644 --- a/src/Models/Operations/DeleteOrganizationRequest.php +++ b/src/Models/Operations/DeleteOrganizationRequest.php @@ -20,9 +20,9 @@ class DeleteOrganizationRequest public string $organizationId; /** - * @param ?string $organizationId + * @param string $organizationId */ - public function __construct(?string $organizationId = null) + public function __construct(string $organizationId) { $this->organizationId = $organizationId; } diff --git a/src/Models/Operations/DeleteOrganizationResponse.php b/src/Models/Operations/DeleteOrganizationResponse.php index 319ecf8..7565d3a 100644 --- a/src/Models/Operations/DeleteOrganizationResponse.php +++ b/src/Models/Operations/DeleteOrganizationResponse.php @@ -40,12 +40,12 @@ class DeleteOrganizationResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeletePhoneNumberRequest.php b/src/Models/Operations/DeletePhoneNumberRequest.php index df91db8..0efd5f0 100644 --- a/src/Models/Operations/DeletePhoneNumberRequest.php +++ b/src/Models/Operations/DeletePhoneNumberRequest.php @@ -20,9 +20,9 @@ class DeletePhoneNumberRequest public string $phoneNumberId; /** - * @param ?string $phoneNumberId + * @param string $phoneNumberId */ - public function __construct(?string $phoneNumberId = null) + public function __construct(string $phoneNumberId) { $this->phoneNumberId = $phoneNumberId; } diff --git a/src/Models/Operations/DeletePhoneNumberResponse.php b/src/Models/Operations/DeletePhoneNumberResponse.php index 03f8602..346aa65 100644 --- a/src/Models/Operations/DeletePhoneNumberResponse.php +++ b/src/Models/Operations/DeletePhoneNumberResponse.php @@ -40,12 +40,12 @@ class DeletePhoneNumberResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteRedirectURLRequest.php b/src/Models/Operations/DeleteRedirectURLRequest.php index 6095a75..b1eb8a0 100644 --- a/src/Models/Operations/DeleteRedirectURLRequest.php +++ b/src/Models/Operations/DeleteRedirectURLRequest.php @@ -20,9 +20,9 @@ class DeleteRedirectURLRequest public string $id; /** - * @param ?string $id + * @param string $id */ - public function __construct(?string $id = null) + public function __construct(string $id) { $this->id = $id; } diff --git a/src/Models/Operations/DeleteRedirectURLResponse.php b/src/Models/Operations/DeleteRedirectURLResponse.php index eb35807..ccc8c7a 100644 --- a/src/Models/Operations/DeleteRedirectURLResponse.php +++ b/src/Models/Operations/DeleteRedirectURLResponse.php @@ -40,12 +40,12 @@ class DeleteRedirectURLResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteSAMLConnectionRequest.php b/src/Models/Operations/DeleteSAMLConnectionRequest.php index 442cbb5..07d6650 100644 --- a/src/Models/Operations/DeleteSAMLConnectionRequest.php +++ b/src/Models/Operations/DeleteSAMLConnectionRequest.php @@ -20,9 +20,9 @@ class DeleteSAMLConnectionRequest public string $samlConnectionId; /** - * @param ?string $samlConnectionId + * @param string $samlConnectionId */ - public function __construct(?string $samlConnectionId = null) + public function __construct(string $samlConnectionId) { $this->samlConnectionId = $samlConnectionId; } diff --git a/src/Models/Operations/DeleteSAMLConnectionResponse.php b/src/Models/Operations/DeleteSAMLConnectionResponse.php index 4e28181..430baf5 100644 --- a/src/Models/Operations/DeleteSAMLConnectionResponse.php +++ b/src/Models/Operations/DeleteSAMLConnectionResponse.php @@ -40,12 +40,12 @@ class DeleteSAMLConnectionResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteSvixAppResponse.php b/src/Models/Operations/DeleteSvixAppResponse.php index 587d9f0..cf97c42 100644 --- a/src/Models/Operations/DeleteSvixAppResponse.php +++ b/src/Models/Operations/DeleteSvixAppResponse.php @@ -33,11 +33,11 @@ class DeleteSvixAppResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteUserProfileImageRequest.php b/src/Models/Operations/DeleteUserProfileImageRequest.php index e088f85..e406bd8 100644 --- a/src/Models/Operations/DeleteUserProfileImageRequest.php +++ b/src/Models/Operations/DeleteUserProfileImageRequest.php @@ -20,9 +20,9 @@ class DeleteUserProfileImageRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/DeleteUserProfileImageResponse.php b/src/Models/Operations/DeleteUserProfileImageResponse.php index 1e4e893..d517bc6 100644 --- a/src/Models/Operations/DeleteUserProfileImageResponse.php +++ b/src/Models/Operations/DeleteUserProfileImageResponse.php @@ -40,12 +40,12 @@ class DeleteUserProfileImageResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DeleteUserRequest.php b/src/Models/Operations/DeleteUserRequest.php index b2974e3..c48fc65 100644 --- a/src/Models/Operations/DeleteUserRequest.php +++ b/src/Models/Operations/DeleteUserRequest.php @@ -20,9 +20,9 @@ class DeleteUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/DeleteUserResponse.php b/src/Models/Operations/DeleteUserResponse.php index 9a6c26d..1076763 100644 --- a/src/Models/Operations/DeleteUserResponse.php +++ b/src/Models/Operations/DeleteUserResponse.php @@ -40,12 +40,12 @@ class DeleteUserResponse public ?Components\DeletedObject $deletedObject = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DeletedObject $deletedObject */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\DeletedObject $deletedObject = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeletedObject $deletedObject = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DisableMFARequest.php b/src/Models/Operations/DisableMFARequest.php index 9bc484e..6616a18 100644 --- a/src/Models/Operations/DisableMFARequest.php +++ b/src/Models/Operations/DisableMFARequest.php @@ -20,9 +20,9 @@ class DisableMFARequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/DisableMFAResponse.php b/src/Models/Operations/DisableMFAResponse.php index 32f3eb1..e5338e7 100644 --- a/src/Models/Operations/DisableMFAResponse.php +++ b/src/Models/Operations/DisableMFAResponse.php @@ -40,12 +40,12 @@ class DisableMFAResponse public ?DisableMFAResponseBody $object = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?DisableMFAResponseBody $object */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?DisableMFAResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?DisableMFAResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/DisableMFAResponseBody.php b/src/Models/Operations/DisableMFAResponseBody.php index 16ebd8f..5bf83f6 100644 --- a/src/Models/Operations/DisableMFAResponseBody.php +++ b/src/Models/Operations/DisableMFAResponseBody.php @@ -16,8 +16,8 @@ class DisableMFAResponseBody * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** diff --git a/src/Models/Operations/File.php b/src/Models/Operations/File.php index d001861..5f2ac9d 100644 --- a/src/Models/Operations/File.php +++ b/src/Models/Operations/File.php @@ -26,10 +26,10 @@ class File public string $content; /** - * @param ?string $fileName - * @param ?string $content + * @param string $fileName + * @param string $content */ - public function __construct(?string $fileName = null, ?string $content = null) + public function __construct(string $fileName, string $content) { $this->fileName = $fileName; $this->content = $content; diff --git a/src/Models/Operations/GenerateSvixAuthURLResponse.php b/src/Models/Operations/GenerateSvixAuthURLResponse.php index e135423..709a6fd 100644 --- a/src/Models/Operations/GenerateSvixAuthURLResponse.php +++ b/src/Models/Operations/GenerateSvixAuthURLResponse.php @@ -40,12 +40,12 @@ class GenerateSvixAuthURLResponse public ?Components\SvixURL $svixURL = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SvixURL $svixURL */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SvixURL $svixURL = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SvixURL $svixURL = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetClientListRequest.php b/src/Models/Operations/GetClientListRequest.php index 5f399e7..8252238 100644 --- a/src/Models/Operations/GetClientListRequest.php +++ b/src/Models/Operations/GetClientListRequest.php @@ -36,7 +36,7 @@ class GetClientListRequest * @param ?float $limit * @param ?float $offset */ - public function __construct(?float $limit = null, ?float $offset = null) + public function __construct(?float $limit = 10, ?float $offset = 0) { $this->limit = $limit; $this->offset = $offset; diff --git a/src/Models/Operations/GetClientListResponse.php b/src/Models/Operations/GetClientListResponse.php index d0c0815..10e3d32 100644 --- a/src/Models/Operations/GetClientListResponse.php +++ b/src/Models/Operations/GetClientListResponse.php @@ -40,12 +40,12 @@ class GetClientListResponse public ?array $clientList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $clientList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $clientList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $clientList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetClientRequest.php b/src/Models/Operations/GetClientRequest.php index 2aae5ef..4d3db3f 100644 --- a/src/Models/Operations/GetClientRequest.php +++ b/src/Models/Operations/GetClientRequest.php @@ -20,9 +20,9 @@ class GetClientRequest public string $clientId; /** - * @param ?string $clientId + * @param string $clientId */ - public function __construct(?string $clientId = null) + public function __construct(string $clientId) { $this->clientId = $clientId; } diff --git a/src/Models/Operations/GetClientResponse.php b/src/Models/Operations/GetClientResponse.php index 9b10244..fa67cbc 100644 --- a/src/Models/Operations/GetClientResponse.php +++ b/src/Models/Operations/GetClientResponse.php @@ -40,12 +40,12 @@ class GetClientResponse public ?Components\Client $client = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Client $client */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Client $client = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Client $client = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetEmailAddressRequest.php b/src/Models/Operations/GetEmailAddressRequest.php index 1b78f74..e24cb75 100644 --- a/src/Models/Operations/GetEmailAddressRequest.php +++ b/src/Models/Operations/GetEmailAddressRequest.php @@ -20,9 +20,9 @@ class GetEmailAddressRequest public string $emailAddressId; /** - * @param ?string $emailAddressId + * @param string $emailAddressId */ - public function __construct(?string $emailAddressId = null) + public function __construct(string $emailAddressId) { $this->emailAddressId = $emailAddressId; } diff --git a/src/Models/Operations/GetEmailAddressResponse.php b/src/Models/Operations/GetEmailAddressResponse.php index e9a0210..f976926 100644 --- a/src/Models/Operations/GetEmailAddressResponse.php +++ b/src/Models/Operations/GetEmailAddressResponse.php @@ -40,12 +40,12 @@ class GetEmailAddressResponse public ?Components\EmailAddress $emailAddress = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\EmailAddress $emailAddress */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\EmailAddress $emailAddress = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\EmailAddress $emailAddress = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetJWKSResponse.php b/src/Models/Operations/GetJWKSResponse.php index 0f72985..a16d6a9 100644 --- a/src/Models/Operations/GetJWKSResponse.php +++ b/src/Models/Operations/GetJWKSResponse.php @@ -33,11 +33,11 @@ class GetJWKSResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetJWTTemplateRequest.php b/src/Models/Operations/GetJWTTemplateRequest.php index 39e5657..12ecb7a 100644 --- a/src/Models/Operations/GetJWTTemplateRequest.php +++ b/src/Models/Operations/GetJWTTemplateRequest.php @@ -20,9 +20,9 @@ class GetJWTTemplateRequest public string $templateId; /** - * @param ?string $templateId + * @param string $templateId */ - public function __construct(?string $templateId = null) + public function __construct(string $templateId) { $this->templateId = $templateId; } diff --git a/src/Models/Operations/GetJWTTemplateResponse.php b/src/Models/Operations/GetJWTTemplateResponse.php index cae9c1c..1c5a8dd 100644 --- a/src/Models/Operations/GetJWTTemplateResponse.php +++ b/src/Models/Operations/GetJWTTemplateResponse.php @@ -40,12 +40,12 @@ class GetJWTTemplateResponse public ?Components\JWTTemplate $jwtTemplate = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\JWTTemplate $jwtTemplate */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\JWTTemplate $jwtTemplate = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\JWTTemplate $jwtTemplate = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetOAuthAccessTokenRequest.php b/src/Models/Operations/GetOAuthAccessTokenRequest.php index 6d0cd32..bc8674d 100644 --- a/src/Models/Operations/GetOAuthAccessTokenRequest.php +++ b/src/Models/Operations/GetOAuthAccessTokenRequest.php @@ -28,10 +28,10 @@ class GetOAuthAccessTokenRequest public string $provider; /** - * @param ?string $userId - * @param ?string $provider + * @param string $userId + * @param string $provider */ - public function __construct(?string $userId = null, ?string $provider = null) + public function __construct(string $userId, string $provider) { $this->userId = $userId; $this->provider = $provider; diff --git a/src/Models/Operations/GetOAuthAccessTokenResponse.php b/src/Models/Operations/GetOAuthAccessTokenResponse.php index 0b8b653..1179414 100644 --- a/src/Models/Operations/GetOAuthAccessTokenResponse.php +++ b/src/Models/Operations/GetOAuthAccessTokenResponse.php @@ -40,12 +40,12 @@ class GetOAuthAccessTokenResponse public ?array $responseBodies = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $responseBodies */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $responseBodies = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $responseBodies = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetOAuthApplicationRequest.php b/src/Models/Operations/GetOAuthApplicationRequest.php index 69d3e36..949d29a 100644 --- a/src/Models/Operations/GetOAuthApplicationRequest.php +++ b/src/Models/Operations/GetOAuthApplicationRequest.php @@ -20,9 +20,9 @@ class GetOAuthApplicationRequest public string $oauthApplicationId; /** - * @param ?string $oauthApplicationId + * @param string $oauthApplicationId */ - public function __construct(?string $oauthApplicationId = null) + public function __construct(string $oauthApplicationId) { $this->oauthApplicationId = $oauthApplicationId; } diff --git a/src/Models/Operations/GetOAuthApplicationResponse.php b/src/Models/Operations/GetOAuthApplicationResponse.php index fccf1c0..01e2cf8 100644 --- a/src/Models/Operations/GetOAuthApplicationResponse.php +++ b/src/Models/Operations/GetOAuthApplicationResponse.php @@ -40,12 +40,12 @@ class GetOAuthApplicationResponse public ?Components\OAuthApplication $oAuthApplication = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OAuthApplication $oAuthApplication */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OAuthApplication $oAuthApplication = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OAuthApplication $oAuthApplication = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetOrganizationInvitationRequest.php b/src/Models/Operations/GetOrganizationInvitationRequest.php index adc032e..f9579b2 100644 --- a/src/Models/Operations/GetOrganizationInvitationRequest.php +++ b/src/Models/Operations/GetOrganizationInvitationRequest.php @@ -28,10 +28,10 @@ class GetOrganizationInvitationRequest public string $invitationId; /** - * @param ?string $organizationId - * @param ?string $invitationId + * @param string $organizationId + * @param string $invitationId */ - public function __construct(?string $organizationId = null, ?string $invitationId = null) + public function __construct(string $organizationId, string $invitationId) { $this->organizationId = $organizationId; $this->invitationId = $invitationId; diff --git a/src/Models/Operations/GetOrganizationInvitationResponse.php b/src/Models/Operations/GetOrganizationInvitationResponse.php index 1413b28..5544dc0 100644 --- a/src/Models/Operations/GetOrganizationInvitationResponse.php +++ b/src/Models/Operations/GetOrganizationInvitationResponse.php @@ -40,12 +40,12 @@ class GetOrganizationInvitationResponse public ?Components\OrganizationInvitation $organizationInvitation = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitation $organizationInvitation */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitation $organizationInvitation = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitation $organizationInvitation = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetOrganizationRequest.php b/src/Models/Operations/GetOrganizationRequest.php index da453e7..178a74c 100644 --- a/src/Models/Operations/GetOrganizationRequest.php +++ b/src/Models/Operations/GetOrganizationRequest.php @@ -20,9 +20,9 @@ class GetOrganizationRequest public string $organizationId; /** - * @param ?string $organizationId + * @param string $organizationId */ - public function __construct(?string $organizationId = null) + public function __construct(string $organizationId) { $this->organizationId = $organizationId; } diff --git a/src/Models/Operations/GetOrganizationResponse.php b/src/Models/Operations/GetOrganizationResponse.php index 3041f53..b79c622 100644 --- a/src/Models/Operations/GetOrganizationResponse.php +++ b/src/Models/Operations/GetOrganizationResponse.php @@ -40,12 +40,12 @@ class GetOrganizationResponse public ?Components\Organization $organization = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organization $organization */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetPhoneNumberRequest.php b/src/Models/Operations/GetPhoneNumberRequest.php index 4b10742..c40f8d3 100644 --- a/src/Models/Operations/GetPhoneNumberRequest.php +++ b/src/Models/Operations/GetPhoneNumberRequest.php @@ -20,9 +20,9 @@ class GetPhoneNumberRequest public string $phoneNumberId; /** - * @param ?string $phoneNumberId + * @param string $phoneNumberId */ - public function __construct(?string $phoneNumberId = null) + public function __construct(string $phoneNumberId) { $this->phoneNumberId = $phoneNumberId; } diff --git a/src/Models/Operations/GetPhoneNumberResponse.php b/src/Models/Operations/GetPhoneNumberResponse.php index 363c1a6..65ddebe 100644 --- a/src/Models/Operations/GetPhoneNumberResponse.php +++ b/src/Models/Operations/GetPhoneNumberResponse.php @@ -40,12 +40,12 @@ class GetPhoneNumberResponse public ?Components\PhoneNumber $phoneNumber = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\PhoneNumber $phoneNumber */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\PhoneNumber $phoneNumber = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\PhoneNumber $phoneNumber = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetPublicInterstitialResponse.php b/src/Models/Operations/GetPublicInterstitialResponse.php index d847c22..dbd8863 100644 --- a/src/Models/Operations/GetPublicInterstitialResponse.php +++ b/src/Models/Operations/GetPublicInterstitialResponse.php @@ -33,11 +33,11 @@ class GetPublicInterstitialResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetRedirectURLRequest.php b/src/Models/Operations/GetRedirectURLRequest.php index 05ddbb8..d37428c 100644 --- a/src/Models/Operations/GetRedirectURLRequest.php +++ b/src/Models/Operations/GetRedirectURLRequest.php @@ -20,9 +20,9 @@ class GetRedirectURLRequest public string $id; /** - * @param ?string $id + * @param string $id */ - public function __construct(?string $id = null) + public function __construct(string $id) { $this->id = $id; } diff --git a/src/Models/Operations/GetRedirectURLResponse.php b/src/Models/Operations/GetRedirectURLResponse.php index 734e040..5440aa0 100644 --- a/src/Models/Operations/GetRedirectURLResponse.php +++ b/src/Models/Operations/GetRedirectURLResponse.php @@ -40,12 +40,12 @@ class GetRedirectURLResponse public ?Components\RedirectURL $redirectURL = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\RedirectURL $redirectURL */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\RedirectURL $redirectURL = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\RedirectURL $redirectURL = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetSAMLConnectionRequest.php b/src/Models/Operations/GetSAMLConnectionRequest.php index 84802d9..b47eea3 100644 --- a/src/Models/Operations/GetSAMLConnectionRequest.php +++ b/src/Models/Operations/GetSAMLConnectionRequest.php @@ -20,9 +20,9 @@ class GetSAMLConnectionRequest public string $samlConnectionId; /** - * @param ?string $samlConnectionId + * @param string $samlConnectionId */ - public function __construct(?string $samlConnectionId = null) + public function __construct(string $samlConnectionId) { $this->samlConnectionId = $samlConnectionId; } diff --git a/src/Models/Operations/GetSAMLConnectionResponse.php b/src/Models/Operations/GetSAMLConnectionResponse.php index bc0ec86..eb5bace 100644 --- a/src/Models/Operations/GetSAMLConnectionResponse.php +++ b/src/Models/Operations/GetSAMLConnectionResponse.php @@ -40,12 +40,12 @@ class GetSAMLConnectionResponse public ?Components\SAMLConnection $samlConnection = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SAMLConnection $samlConnection */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SAMLConnection $samlConnection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SAMLConnection $samlConnection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetSessionListRequest.php b/src/Models/Operations/GetSessionListRequest.php index 46c2e73..025482e 100644 --- a/src/Models/Operations/GetSessionListRequest.php +++ b/src/Models/Operations/GetSessionListRequest.php @@ -63,7 +63,7 @@ class GetSessionListRequest * @param ?float $limit * @param ?float $offset */ - public function __construct(?string $clientId = null, ?string $userId = null, ?Status $status = null, ?float $limit = null, ?float $offset = null) + public function __construct(?string $clientId = null, ?string $userId = null, ?Status $status = null, ?float $limit = 10, ?float $offset = 0) { $this->clientId = $clientId; $this->userId = $userId; diff --git a/src/Models/Operations/GetSessionListResponse.php b/src/Models/Operations/GetSessionListResponse.php index eb1ecd3..0b12959 100644 --- a/src/Models/Operations/GetSessionListResponse.php +++ b/src/Models/Operations/GetSessionListResponse.php @@ -40,12 +40,12 @@ class GetSessionListResponse public ?array $sessionList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $sessionList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $sessionList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $sessionList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetSessionRequest.php b/src/Models/Operations/GetSessionRequest.php index a6dc954..d6bff0b 100644 --- a/src/Models/Operations/GetSessionRequest.php +++ b/src/Models/Operations/GetSessionRequest.php @@ -20,9 +20,9 @@ class GetSessionRequest public string $sessionId; /** - * @param ?string $sessionId + * @param string $sessionId */ - public function __construct(?string $sessionId = null) + public function __construct(string $sessionId) { $this->sessionId = $sessionId; } diff --git a/src/Models/Operations/GetSessionResponse.php b/src/Models/Operations/GetSessionResponse.php index 103305a..f5443f6 100644 --- a/src/Models/Operations/GetSessionResponse.php +++ b/src/Models/Operations/GetSessionResponse.php @@ -40,12 +40,12 @@ class GetSessionResponse public ?Components\Session $session = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Session $session */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Session $session = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Session $session = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetTemplateListRequest.php b/src/Models/Operations/GetTemplateListRequest.php index 3101d8b..dc7a268 100644 --- a/src/Models/Operations/GetTemplateListRequest.php +++ b/src/Models/Operations/GetTemplateListRequest.php @@ -20,9 +20,9 @@ class GetTemplateListRequest public TemplateType $templateType; /** - * @param ?TemplateType $templateType + * @param TemplateType $templateType */ - public function __construct(?TemplateType $templateType = null) + public function __construct(TemplateType $templateType) { $this->templateType = $templateType; } diff --git a/src/Models/Operations/GetTemplateListResponse.php b/src/Models/Operations/GetTemplateListResponse.php index 8a060b6..8fc4e42 100644 --- a/src/Models/Operations/GetTemplateListResponse.php +++ b/src/Models/Operations/GetTemplateListResponse.php @@ -40,12 +40,12 @@ class GetTemplateListResponse public ?array $templateList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $templateList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $templateList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $templateList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetTemplateRequest.php b/src/Models/Operations/GetTemplateRequest.php index e03d599..3208f9a 100644 --- a/src/Models/Operations/GetTemplateRequest.php +++ b/src/Models/Operations/GetTemplateRequest.php @@ -28,10 +28,10 @@ class GetTemplateRequest public string $slug; /** - * @param ?PathParamTemplateType $templateType - * @param ?string $slug + * @param PathParamTemplateType $templateType + * @param string $slug */ - public function __construct(?PathParamTemplateType $templateType = null, ?string $slug = null) + public function __construct(PathParamTemplateType $templateType, string $slug) { $this->templateType = $templateType; $this->slug = $slug; diff --git a/src/Models/Operations/GetTemplateResponse.php b/src/Models/Operations/GetTemplateResponse.php index 3a6b8c8..2c8be49 100644 --- a/src/Models/Operations/GetTemplateResponse.php +++ b/src/Models/Operations/GetTemplateResponse.php @@ -40,12 +40,12 @@ class GetTemplateResponse public ?Components\Template $template = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Template $template */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Template $template = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Template $template = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetUserListRequest.php b/src/Models/Operations/GetUserListRequest.php index 176d1e8..a2c179b 100644 --- a/src/Models/Operations/GetUserListRequest.php +++ b/src/Models/Operations/GetUserListRequest.php @@ -171,7 +171,7 @@ class GetUserListRequest * @param ?float $offset * @param ?string $orderBy */ - public function __construct(?array $emailAddress = null, ?array $phoneNumber = null, ?array $externalId = null, ?array $username = null, ?array $web3Wallet = null, ?array $userId = null, ?array $organizationId = null, ?string $query = null, ?int $lastActiveAtSince = null, ?float $limit = null, ?float $offset = null, ?string $orderBy = null) + public function __construct(?array $emailAddress = null, ?array $phoneNumber = null, ?array $externalId = null, ?array $username = null, ?array $web3Wallet = null, ?array $userId = null, ?array $organizationId = null, ?string $query = null, ?int $lastActiveAtSince = null, ?float $limit = 10, ?float $offset = 0, ?string $orderBy = '-created_at') { $this->emailAddress = $emailAddress; $this->phoneNumber = $phoneNumber; diff --git a/src/Models/Operations/GetUserListResponse.php b/src/Models/Operations/GetUserListResponse.php index 9fe4461..0230b57 100644 --- a/src/Models/Operations/GetUserListResponse.php +++ b/src/Models/Operations/GetUserListResponse.php @@ -40,12 +40,12 @@ class GetUserListResponse public ?array $userList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $userList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $userList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $userList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetUserRequest.php b/src/Models/Operations/GetUserRequest.php index 914de43..598bb64 100644 --- a/src/Models/Operations/GetUserRequest.php +++ b/src/Models/Operations/GetUserRequest.php @@ -20,9 +20,9 @@ class GetUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/GetUserResponse.php b/src/Models/Operations/GetUserResponse.php index ada8dd8..d0c45ec 100644 --- a/src/Models/Operations/GetUserResponse.php +++ b/src/Models/Operations/GetUserResponse.php @@ -40,12 +40,12 @@ class GetUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/GetUsersCountResponse.php b/src/Models/Operations/GetUsersCountResponse.php index 056abb9..db28b6d 100644 --- a/src/Models/Operations/GetUsersCountResponse.php +++ b/src/Models/Operations/GetUsersCountResponse.php @@ -40,12 +40,12 @@ class GetUsersCountResponse public ?Components\TotalCount $totalCount = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\TotalCount $totalCount */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\TotalCount $totalCount = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TotalCount $totalCount = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListAllowlistIdentifiersResponse.php b/src/Models/Operations/ListAllowlistIdentifiersResponse.php index 9747663..b8604fa 100644 --- a/src/Models/Operations/ListAllowlistIdentifiersResponse.php +++ b/src/Models/Operations/ListAllowlistIdentifiersResponse.php @@ -40,12 +40,12 @@ class ListAllowlistIdentifiersResponse public ?array $allowlistIdentifierList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $allowlistIdentifierList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $allowlistIdentifierList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $allowlistIdentifierList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListBlocklistIdentifiersResponse.php b/src/Models/Operations/ListBlocklistIdentifiersResponse.php index 4ac45c9..76bb712 100644 --- a/src/Models/Operations/ListBlocklistIdentifiersResponse.php +++ b/src/Models/Operations/ListBlocklistIdentifiersResponse.php @@ -40,12 +40,12 @@ class ListBlocklistIdentifiersResponse public ?Components\BlocklistIdentifiers $blocklistIdentifiers = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\BlocklistIdentifiers $blocklistIdentifiers */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\BlocklistIdentifiers $blocklistIdentifiers = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\BlocklistIdentifiers $blocklistIdentifiers = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListDomainsResponse.php b/src/Models/Operations/ListDomainsResponse.php index d1bd2c5..490d9cf 100644 --- a/src/Models/Operations/ListDomainsResponse.php +++ b/src/Models/Operations/ListDomainsResponse.php @@ -40,12 +40,12 @@ class ListDomainsResponse public ?Components\Domains $domains = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Domains $domains */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Domains $domains = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Domains $domains = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListInvitationsRequest.php b/src/Models/Operations/ListInvitationsRequest.php index 94ca21e..dec3538 100644 --- a/src/Models/Operations/ListInvitationsRequest.php +++ b/src/Models/Operations/ListInvitationsRequest.php @@ -45,7 +45,7 @@ class ListInvitationsRequest * @param ?float $offset * @param ?QueryParamStatus $status */ - public function __construct(?float $limit = null, ?float $offset = null, ?QueryParamStatus $status = null) + public function __construct(?QueryParamStatus $status = null, ?float $limit = 10, ?float $offset = 0) { $this->limit = $limit; $this->offset = $offset; diff --git a/src/Models/Operations/ListInvitationsResponse.php b/src/Models/Operations/ListInvitationsResponse.php index 7e62dbd..dfa90e9 100644 --- a/src/Models/Operations/ListInvitationsResponse.php +++ b/src/Models/Operations/ListInvitationsResponse.php @@ -40,12 +40,12 @@ class ListInvitationsResponse public ?array $invitationList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $invitationList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $invitationList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $invitationList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListJWTTemplatesResponse.php b/src/Models/Operations/ListJWTTemplatesResponse.php index bb4496e..f412c53 100644 --- a/src/Models/Operations/ListJWTTemplatesResponse.php +++ b/src/Models/Operations/ListJWTTemplatesResponse.php @@ -40,12 +40,12 @@ class ListJWTTemplatesResponse public ?array $jwtTemplateList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $jwtTemplateList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $jwtTemplateList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $jwtTemplateList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListOAuthApplicationsRequest.php b/src/Models/Operations/ListOAuthApplicationsRequest.php index 188fef9..9933793 100644 --- a/src/Models/Operations/ListOAuthApplicationsRequest.php +++ b/src/Models/Operations/ListOAuthApplicationsRequest.php @@ -36,7 +36,7 @@ class ListOAuthApplicationsRequest * @param ?float $limit * @param ?float $offset */ - public function __construct(?float $limit = null, ?float $offset = null) + public function __construct(?float $limit = 10, ?float $offset = 0) { $this->limit = $limit; $this->offset = $offset; diff --git a/src/Models/Operations/ListOAuthApplicationsResponse.php b/src/Models/Operations/ListOAuthApplicationsResponse.php index d04f77d..228dd91 100644 --- a/src/Models/Operations/ListOAuthApplicationsResponse.php +++ b/src/Models/Operations/ListOAuthApplicationsResponse.php @@ -40,12 +40,12 @@ class ListOAuthApplicationsResponse public ?Components\OAuthApplications $oAuthApplications = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OAuthApplications $oAuthApplications */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OAuthApplications $oAuthApplications = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OAuthApplications $oAuthApplications = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListOrganizationInvitationsRequest.php b/src/Models/Operations/ListOrganizationInvitationsRequest.php index ab5b04a..4bb3370 100644 --- a/src/Models/Operations/ListOrganizationInvitationsRequest.php +++ b/src/Models/Operations/ListOrganizationInvitationsRequest.php @@ -49,12 +49,12 @@ class ListOrganizationInvitationsRequest public ?ListOrganizationInvitationsQueryParamStatus $status = null; /** - * @param ?string $organizationId + * @param string $organizationId * @param ?float $limit * @param ?float $offset * @param ?ListOrganizationInvitationsQueryParamStatus $status */ - public function __construct(?string $organizationId = null, ?float $limit = null, ?float $offset = null, ?ListOrganizationInvitationsQueryParamStatus $status = null) + public function __construct(string $organizationId, ?ListOrganizationInvitationsQueryParamStatus $status = null, ?float $limit = 10, ?float $offset = 0) { $this->organizationId = $organizationId; $this->limit = $limit; diff --git a/src/Models/Operations/ListOrganizationInvitationsResponse.php b/src/Models/Operations/ListOrganizationInvitationsResponse.php index 49245cb..c47c874 100644 --- a/src/Models/Operations/ListOrganizationInvitationsResponse.php +++ b/src/Models/Operations/ListOrganizationInvitationsResponse.php @@ -40,12 +40,12 @@ class ListOrganizationInvitationsResponse public ?Components\OrganizationInvitations $organizationInvitations = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitations $organizationInvitations */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitations $organizationInvitations = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitations $organizationInvitations = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListOrganizationMembershipsRequest.php b/src/Models/Operations/ListOrganizationMembershipsRequest.php index 7d7e344..d3fa7fb 100644 --- a/src/Models/Operations/ListOrganizationMembershipsRequest.php +++ b/src/Models/Operations/ListOrganizationMembershipsRequest.php @@ -52,12 +52,12 @@ class ListOrganizationMembershipsRequest public ?string $orderBy = null; /** - * @param ?string $organizationId + * @param string $organizationId * @param ?float $limit * @param ?float $offset * @param ?string $orderBy */ - public function __construct(?string $organizationId = null, ?float $limit = null, ?float $offset = null, ?string $orderBy = null) + public function __construct(string $organizationId, ?string $orderBy = null, ?float $limit = 10, ?float $offset = 0) { $this->organizationId = $organizationId; $this->limit = $limit; diff --git a/src/Models/Operations/ListOrganizationMembershipsResponse.php b/src/Models/Operations/ListOrganizationMembershipsResponse.php index 6694a54..a6f07a2 100644 --- a/src/Models/Operations/ListOrganizationMembershipsResponse.php +++ b/src/Models/Operations/ListOrganizationMembershipsResponse.php @@ -40,12 +40,12 @@ class ListOrganizationMembershipsResponse public ?Components\OrganizationMemberships $organizationMemberships = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMemberships $organizationMemberships */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMemberships $organizationMemberships = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMemberships $organizationMemberships = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListOrganizationsRequest.php b/src/Models/Operations/ListOrganizationsRequest.php index e89d32e..662edfd 100644 --- a/src/Models/Operations/ListOrganizationsRequest.php +++ b/src/Models/Operations/ListOrganizationsRequest.php @@ -71,7 +71,7 @@ class ListOrganizationsRequest * @param ?string $query * @param ?string $orderBy */ - public function __construct(?float $limit = null, ?float $offset = null, ?bool $includeMembersCount = null, ?string $query = null, ?string $orderBy = null) + public function __construct(?bool $includeMembersCount = null, ?string $query = null, ?float $limit = 10, ?float $offset = 0, ?string $orderBy = '-created_at') { $this->limit = $limit; $this->offset = $offset; diff --git a/src/Models/Operations/ListOrganizationsResponse.php b/src/Models/Operations/ListOrganizationsResponse.php index b0e2f43..ebacf11 100644 --- a/src/Models/Operations/ListOrganizationsResponse.php +++ b/src/Models/Operations/ListOrganizationsResponse.php @@ -40,12 +40,12 @@ class ListOrganizationsResponse public ?Components\Organizations $organizations = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organizations $organizations */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organizations $organizations = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organizations $organizations = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListPendingOrganizationInvitationsRequest.php b/src/Models/Operations/ListPendingOrganizationInvitationsRequest.php index fc699c5..28ab2c9 100644 --- a/src/Models/Operations/ListPendingOrganizationInvitationsRequest.php +++ b/src/Models/Operations/ListPendingOrganizationInvitationsRequest.php @@ -41,11 +41,11 @@ class ListPendingOrganizationInvitationsRequest public ?float $offset = null; /** - * @param ?string $organizationId + * @param string $organizationId * @param ?float $limit * @param ?float $offset */ - public function __construct(?string $organizationId = null, ?float $limit = null, ?float $offset = null) + public function __construct(string $organizationId, ?float $limit = 10, ?float $offset = 0) { $this->organizationId = $organizationId; $this->limit = $limit; diff --git a/src/Models/Operations/ListPendingOrganizationInvitationsResponse.php b/src/Models/Operations/ListPendingOrganizationInvitationsResponse.php index 70a200f..84d021c 100644 --- a/src/Models/Operations/ListPendingOrganizationInvitationsResponse.php +++ b/src/Models/Operations/ListPendingOrganizationInvitationsResponse.php @@ -40,12 +40,12 @@ class ListPendingOrganizationInvitationsResponse public ?Components\OrganizationInvitations $organizationInvitations = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitations $organizationInvitations */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitations $organizationInvitations = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitations $organizationInvitations = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListRedirectURLsResponse.php b/src/Models/Operations/ListRedirectURLsResponse.php index cae84d0..83876c6 100644 --- a/src/Models/Operations/ListRedirectURLsResponse.php +++ b/src/Models/Operations/ListRedirectURLsResponse.php @@ -40,12 +40,12 @@ class ListRedirectURLsResponse public ?array $redirectURLList = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $redirectURLList */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?array $redirectURLList = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $redirectURLList = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ListSAMLConnectionsRequest.php b/src/Models/Operations/ListSAMLConnectionsRequest.php index 3dd942d..735d4ce 100644 --- a/src/Models/Operations/ListSAMLConnectionsRequest.php +++ b/src/Models/Operations/ListSAMLConnectionsRequest.php @@ -36,7 +36,7 @@ class ListSAMLConnectionsRequest * @param ?float $limit * @param ?float $offset */ - public function __construct(?float $limit = null, ?float $offset = null) + public function __construct(?float $limit = 10, ?float $offset = 0) { $this->limit = $limit; $this->offset = $offset; diff --git a/src/Models/Operations/ListSAMLConnectionsResponse.php b/src/Models/Operations/ListSAMLConnectionsResponse.php index 849e66b..f24028f 100644 --- a/src/Models/Operations/ListSAMLConnectionsResponse.php +++ b/src/Models/Operations/ListSAMLConnectionsResponse.php @@ -40,12 +40,12 @@ class ListSAMLConnectionsResponse public ?Components\SAMLConnections $samlConnections = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SAMLConnections $samlConnections */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SAMLConnections $samlConnections = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SAMLConnections $samlConnections = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/LockUserRequest.php b/src/Models/Operations/LockUserRequest.php index 6cfd502..cd39c19 100644 --- a/src/Models/Operations/LockUserRequest.php +++ b/src/Models/Operations/LockUserRequest.php @@ -20,9 +20,9 @@ class LockUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/LockUserResponse.php b/src/Models/Operations/LockUserResponse.php index 64b60be..a75e959 100644 --- a/src/Models/Operations/LockUserResponse.php +++ b/src/Models/Operations/LockUserResponse.php @@ -40,12 +40,12 @@ class LockUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/MergeOrganizationMetadataRequest.php b/src/Models/Operations/MergeOrganizationMetadataRequest.php index 239a6c4..6988a4f 100644 --- a/src/Models/Operations/MergeOrganizationMetadataRequest.php +++ b/src/Models/Operations/MergeOrganizationMetadataRequest.php @@ -27,10 +27,10 @@ class MergeOrganizationMetadataRequest public MergeOrganizationMetadataRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?MergeOrganizationMetadataRequestBody $requestBody + * @param string $organizationId + * @param MergeOrganizationMetadataRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?MergeOrganizationMetadataRequestBody $requestBody = null) + public function __construct(string $organizationId, MergeOrganizationMetadataRequestBody $requestBody) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/MergeOrganizationMetadataRequestBody.php b/src/Models/Operations/MergeOrganizationMetadataRequestBody.php index a5d0c4c..f1fe776 100644 --- a/src/Models/Operations/MergeOrganizationMetadataRequestBody.php +++ b/src/Models/Operations/MergeOrganizationMetadataRequestBody.php @@ -18,9 +18,9 @@ class MergeOrganizationMetadataRequestBody * * @var ?MergeOrganizationMetadataPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\MergeOrganizationMetadataPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\MergeOrganizationMetadataPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?MergeOrganizationMetadataPublicMetadata $publicMetadata = null; /** @@ -30,9 +30,9 @@ class MergeOrganizationMetadataRequestBody * * @var ?MergeOrganizationMetadataPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\MergeOrganizationMetadataPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\MergeOrganizationMetadataPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?MergeOrganizationMetadataPrivateMetadata $privateMetadata = null; /** diff --git a/src/Models/Operations/MergeOrganizationMetadataResponse.php b/src/Models/Operations/MergeOrganizationMetadataResponse.php index 650fe52..1521af8 100644 --- a/src/Models/Operations/MergeOrganizationMetadataResponse.php +++ b/src/Models/Operations/MergeOrganizationMetadataResponse.php @@ -40,12 +40,12 @@ class MergeOrganizationMetadataResponse public ?Components\Organization $organization = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organization $organization */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/PreviewTemplateRequest.php b/src/Models/Operations/PreviewTemplateRequest.php index 8b7b7e2..4e801f7 100644 --- a/src/Models/Operations/PreviewTemplateRequest.php +++ b/src/Models/Operations/PreviewTemplateRequest.php @@ -36,11 +36,11 @@ class PreviewTemplateRequest public ?PreviewTemplateRequestBody $requestBody = null; /** - * @param ?string $templateType - * @param ?string $slug + * @param string $templateType + * @param string $slug * @param ?PreviewTemplateRequestBody $requestBody */ - public function __construct(?string $templateType = null, ?string $slug = null, ?PreviewTemplateRequestBody $requestBody = null) + public function __construct(string $templateType, string $slug, ?PreviewTemplateRequestBody $requestBody = null) { $this->templateType = $templateType; $this->slug = $slug; diff --git a/src/Models/Operations/PreviewTemplateRequestBody.php b/src/Models/Operations/PreviewTemplateRequestBody.php index 13d0251..eac0058 100644 --- a/src/Models/Operations/PreviewTemplateRequestBody.php +++ b/src/Models/Operations/PreviewTemplateRequestBody.php @@ -19,8 +19,8 @@ class PreviewTemplateRequestBody * * @var ?string $subject */ - #[\JMS\Serializer\Annotation\SerializedName('subject')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('subject')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $subject = null; /** @@ -28,8 +28,8 @@ class PreviewTemplateRequestBody * * @var ?string $body */ - #[\JMS\Serializer\Annotation\SerializedName('body')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('body')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $body = null; /** @@ -40,8 +40,8 @@ class PreviewTemplateRequestBody * * @var ?string $fromEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('from_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('from_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $fromEmailName = null; /** @@ -52,21 +52,21 @@ class PreviewTemplateRequestBody * * @var ?string $replyToEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('reply_to_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reply_to_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $replyToEmailName = null; /** - * @param ?string $subject * @param ?string $body * @param ?string $fromEmailName * @param ?string $replyToEmailName + * @param ?string $subject */ - public function __construct(?string $subject = null, ?string $body = null, ?string $fromEmailName = null, ?string $replyToEmailName = null) + public function __construct(?string $body = null, ?string $fromEmailName = null, ?string $replyToEmailName = null, ?string $subject = null) { - $this->subject = $subject; $this->body = $body; $this->fromEmailName = $fromEmailName; $this->replyToEmailName = $replyToEmailName; + $this->subject = $subject; } } \ No newline at end of file diff --git a/src/Models/Operations/PreviewTemplateResponse.php b/src/Models/Operations/PreviewTemplateResponse.php index caa3e43..5166c6f 100644 --- a/src/Models/Operations/PreviewTemplateResponse.php +++ b/src/Models/Operations/PreviewTemplateResponse.php @@ -40,12 +40,12 @@ class PreviewTemplateResponse public ?PreviewTemplateResponseBody $object = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?PreviewTemplateResponseBody $object */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?PreviewTemplateResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?PreviewTemplateResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RequestBody.php b/src/Models/Operations/RequestBody.php index c3affeb..4d930fa 100644 --- a/src/Models/Operations/RequestBody.php +++ b/src/Models/Operations/RequestBody.php @@ -16,7 +16,7 @@ class RequestBody * * @var string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] public string $emailAddress; /** @@ -26,7 +26,7 @@ class RequestBody * * @var string $inviterUserId */ - #[\JMS\Serializer\Annotation\SerializedName('inviter_user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('inviter_user_id')] public string $inviterUserId; /** @@ -34,7 +34,7 @@ class RequestBody * * @var string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] public string $role; /** @@ -42,9 +42,9 @@ class RequestBody * * @var ?CreateOrganizationInvitationBulkPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationBulkPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationBulkPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationInvitationBulkPublicMetadata $publicMetadata = null; /** @@ -52,9 +52,9 @@ class RequestBody * * @var ?CreateOrganizationInvitationBulkPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationBulkPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CreateOrganizationInvitationBulkPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CreateOrganizationInvitationBulkPrivateMetadata $privateMetadata = null; /** @@ -62,19 +62,19 @@ class RequestBody * * @var ?string $redirectUrl */ - #[\JMS\Serializer\Annotation\SerializedName('redirect_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('redirect_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $redirectUrl = null; /** - * @param ?string $emailAddress - * @param ?string $inviterUserId - * @param ?string $role + * @param string $emailAddress + * @param string $inviterUserId + * @param string $role * @param ?CreateOrganizationInvitationBulkPublicMetadata $publicMetadata * @param ?CreateOrganizationInvitationBulkPrivateMetadata $privateMetadata * @param ?string $redirectUrl */ - public function __construct(?string $emailAddress = null, ?string $inviterUserId = null, ?string $role = null, ?CreateOrganizationInvitationBulkPublicMetadata $publicMetadata = null, ?CreateOrganizationInvitationBulkPrivateMetadata $privateMetadata = null, ?string $redirectUrl = null) + public function __construct(string $emailAddress, string $inviterUserId, string $role, ?CreateOrganizationInvitationBulkPublicMetadata $publicMetadata = null, ?CreateOrganizationInvitationBulkPrivateMetadata $privateMetadata = null, ?string $redirectUrl = null) { $this->emailAddress = $emailAddress; $this->inviterUserId = $inviterUserId; diff --git a/src/Models/Operations/ResponseBody.php b/src/Models/Operations/ResponseBody.php index 6e6328b..e9d82a0 100644 --- a/src/Models/Operations/ResponseBody.php +++ b/src/Models/Operations/ResponseBody.php @@ -15,8 +15,8 @@ class ResponseBody * * @var ?string $object */ - #[\JMS\Serializer\Annotation\SerializedName('object')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('object')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $object = null; /** @@ -24,8 +24,8 @@ class ResponseBody * * @var ?string $externalAccountId */ - #[\JMS\Serializer\Annotation\SerializedName('external_account_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_account_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalAccountId = null; /** @@ -33,8 +33,8 @@ class ResponseBody * * @var ?string $providerUserId */ - #[\JMS\Serializer\Annotation\SerializedName('provider_user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider_user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $providerUserId = null; /** @@ -42,8 +42,8 @@ class ResponseBody * * @var ?string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $token = null; /** @@ -51,25 +51,25 @@ class ResponseBody * * @var ?string $provider */ - #[\JMS\Serializer\Annotation\SerializedName('provider')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('provider')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $provider = null; /** * * @var ?GetOAuthAccessTokenPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\GetOAuthAccessTokenPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\GetOAuthAccessTokenPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?GetOAuthAccessTokenPublicMetadata $publicMetadata = null; /** * * @var ?string $label */ - #[\JMS\Serializer\Annotation\SerializedName('label')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('label')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $label = null; /** @@ -79,9 +79,9 @@ class ResponseBody * * @var ?array $scopes */ - #[\JMS\Serializer\Annotation\SerializedName('scopes')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('scopes')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $scopes = null; /** @@ -89,8 +89,8 @@ class ResponseBody * * @var ?string $tokenSecret */ - #[\JMS\Serializer\Annotation\SerializedName('token_secret')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token_secret')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $tokenSecret = null; /** @@ -100,11 +100,11 @@ class ResponseBody * @param ?string $token * @param ?string $provider * @param ?GetOAuthAccessTokenPublicMetadata $publicMetadata - * @param ?string $label * @param ?array $scopes * @param ?string $tokenSecret + * @param ?string $label */ - public function __construct(?string $object = null, ?string $externalAccountId = null, ?string $providerUserId = null, ?string $token = null, ?string $provider = null, ?GetOAuthAccessTokenPublicMetadata $publicMetadata = null, ?string $label = null, ?array $scopes = null, ?string $tokenSecret = null) + public function __construct(?string $object = null, ?string $externalAccountId = null, ?string $providerUserId = null, ?string $token = null, ?string $provider = null, ?GetOAuthAccessTokenPublicMetadata $publicMetadata = null, ?array $scopes = null, ?string $tokenSecret = null, ?string $label = null) { $this->object = $object; $this->externalAccountId = $externalAccountId; @@ -112,8 +112,8 @@ public function __construct(?string $object = null, ?string $externalAccountId = $this->token = $token; $this->provider = $provider; $this->publicMetadata = $publicMetadata; - $this->label = $label; $this->scopes = $scopes; $this->tokenSecret = $tokenSecret; + $this->label = $label; } } \ No newline at end of file diff --git a/src/Models/Operations/RevertTemplateRequest.php b/src/Models/Operations/RevertTemplateRequest.php index f04455e..831f0b1 100644 --- a/src/Models/Operations/RevertTemplateRequest.php +++ b/src/Models/Operations/RevertTemplateRequest.php @@ -28,10 +28,10 @@ class RevertTemplateRequest public string $slug; /** - * @param ?RevertTemplatePathParamTemplateType $templateType - * @param ?string $slug + * @param RevertTemplatePathParamTemplateType $templateType + * @param string $slug */ - public function __construct(?RevertTemplatePathParamTemplateType $templateType = null, ?string $slug = null) + public function __construct(RevertTemplatePathParamTemplateType $templateType, string $slug) { $this->templateType = $templateType; $this->slug = $slug; diff --git a/src/Models/Operations/RevertTemplateResponse.php b/src/Models/Operations/RevertTemplateResponse.php index b7408e2..c56ca93 100644 --- a/src/Models/Operations/RevertTemplateResponse.php +++ b/src/Models/Operations/RevertTemplateResponse.php @@ -40,12 +40,12 @@ class RevertTemplateResponse public ?Components\Template $template = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Template $template */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Template $template = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Template $template = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RevokeActorTokenRequest.php b/src/Models/Operations/RevokeActorTokenRequest.php index 4c6ae3f..7f2d82a 100644 --- a/src/Models/Operations/RevokeActorTokenRequest.php +++ b/src/Models/Operations/RevokeActorTokenRequest.php @@ -20,9 +20,9 @@ class RevokeActorTokenRequest public string $actorTokenId; /** - * @param ?string $actorTokenId + * @param string $actorTokenId */ - public function __construct(?string $actorTokenId = null) + public function __construct(string $actorTokenId) { $this->actorTokenId = $actorTokenId; } diff --git a/src/Models/Operations/RevokeActorTokenResponse.php b/src/Models/Operations/RevokeActorTokenResponse.php index 9fb40c3..f538761 100644 --- a/src/Models/Operations/RevokeActorTokenResponse.php +++ b/src/Models/Operations/RevokeActorTokenResponse.php @@ -40,12 +40,12 @@ class RevokeActorTokenResponse public ?Components\ActorToken $actorToken = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\ActorToken $actorToken */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\ActorToken $actorToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActorToken $actorToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RevokeInvitationRequest.php b/src/Models/Operations/RevokeInvitationRequest.php index af6dbd3..129f2c9 100644 --- a/src/Models/Operations/RevokeInvitationRequest.php +++ b/src/Models/Operations/RevokeInvitationRequest.php @@ -20,9 +20,9 @@ class RevokeInvitationRequest public string $invitationId; /** - * @param ?string $invitationId + * @param string $invitationId */ - public function __construct(?string $invitationId = null) + public function __construct(string $invitationId) { $this->invitationId = $invitationId; } diff --git a/src/Models/Operations/RevokeInvitationResponse.php b/src/Models/Operations/RevokeInvitationResponse.php index 91ebec2..4957b8e 100644 --- a/src/Models/Operations/RevokeInvitationResponse.php +++ b/src/Models/Operations/RevokeInvitationResponse.php @@ -40,12 +40,12 @@ class RevokeInvitationResponse public ?Components\InvitationRevoked $invitationRevoked = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\InvitationRevoked $invitationRevoked */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\InvitationRevoked $invitationRevoked = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\InvitationRevoked $invitationRevoked = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RevokeOrganizationInvitationRequest.php b/src/Models/Operations/RevokeOrganizationInvitationRequest.php index d5f1a4d..d7cdc88 100644 --- a/src/Models/Operations/RevokeOrganizationInvitationRequest.php +++ b/src/Models/Operations/RevokeOrganizationInvitationRequest.php @@ -35,11 +35,11 @@ class RevokeOrganizationInvitationRequest public RevokeOrganizationInvitationRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?string $invitationId - * @param ?RevokeOrganizationInvitationRequestBody $requestBody + * @param string $organizationId + * @param string $invitationId + * @param RevokeOrganizationInvitationRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?string $invitationId = null, ?RevokeOrganizationInvitationRequestBody $requestBody = null) + public function __construct(string $organizationId, string $invitationId, RevokeOrganizationInvitationRequestBody $requestBody) { $this->organizationId = $organizationId; $this->invitationId = $invitationId; diff --git a/src/Models/Operations/RevokeOrganizationInvitationRequestBody.php b/src/Models/Operations/RevokeOrganizationInvitationRequestBody.php index 6235916..8ac76e0 100644 --- a/src/Models/Operations/RevokeOrganizationInvitationRequestBody.php +++ b/src/Models/Operations/RevokeOrganizationInvitationRequestBody.php @@ -18,13 +18,13 @@ class RevokeOrganizationInvitationRequestBody * * @var string $requestingUserId */ - #[\JMS\Serializer\Annotation\SerializedName('requesting_user_id')] + #[\Speakeasy\Serializer\Annotation\SerializedName('requesting_user_id')] public string $requestingUserId; /** - * @param ?string $requestingUserId + * @param string $requestingUserId */ - public function __construct(?string $requestingUserId = null) + public function __construct(string $requestingUserId) { $this->requestingUserId = $requestingUserId; } diff --git a/src/Models/Operations/RevokeOrganizationInvitationResponse.php b/src/Models/Operations/RevokeOrganizationInvitationResponse.php index 7c18f44..b7ffc31 100644 --- a/src/Models/Operations/RevokeOrganizationInvitationResponse.php +++ b/src/Models/Operations/RevokeOrganizationInvitationResponse.php @@ -40,12 +40,12 @@ class RevokeOrganizationInvitationResponse public ?Components\OrganizationInvitation $organizationInvitation = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationInvitation $organizationInvitation */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationInvitation $organizationInvitation = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationInvitation $organizationInvitation = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RevokeSessionRequest.php b/src/Models/Operations/RevokeSessionRequest.php index 38f7c53..d8b1e8f 100644 --- a/src/Models/Operations/RevokeSessionRequest.php +++ b/src/Models/Operations/RevokeSessionRequest.php @@ -20,9 +20,9 @@ class RevokeSessionRequest public string $sessionId; /** - * @param ?string $sessionId + * @param string $sessionId */ - public function __construct(?string $sessionId = null) + public function __construct(string $sessionId) { $this->sessionId = $sessionId; } diff --git a/src/Models/Operations/RevokeSessionResponse.php b/src/Models/Operations/RevokeSessionResponse.php index 64a6c30..da40c86 100644 --- a/src/Models/Operations/RevokeSessionResponse.php +++ b/src/Models/Operations/RevokeSessionResponse.php @@ -40,12 +40,12 @@ class RevokeSessionResponse public ?Components\Session $session = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Session $session */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Session $session = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Session $session = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RevokeSignInTokenRequest.php b/src/Models/Operations/RevokeSignInTokenRequest.php index 93d7046..5634650 100644 --- a/src/Models/Operations/RevokeSignInTokenRequest.php +++ b/src/Models/Operations/RevokeSignInTokenRequest.php @@ -20,9 +20,9 @@ class RevokeSignInTokenRequest public string $signInTokenId; /** - * @param ?string $signInTokenId + * @param string $signInTokenId */ - public function __construct(?string $signInTokenId = null) + public function __construct(string $signInTokenId) { $this->signInTokenId = $signInTokenId; } diff --git a/src/Models/Operations/RevokeSignInTokenResponse.php b/src/Models/Operations/RevokeSignInTokenResponse.php index 158329b..38983dc 100644 --- a/src/Models/Operations/RevokeSignInTokenResponse.php +++ b/src/Models/Operations/RevokeSignInTokenResponse.php @@ -40,12 +40,12 @@ class RevokeSignInTokenResponse public ?Components\SignInToken $signInToken = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SignInToken $signInToken */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SignInToken $signInToken = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SignInToken $signInToken = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/RotateOAuthApplicationSecretRequest.php b/src/Models/Operations/RotateOAuthApplicationSecretRequest.php index b41a325..c19b74a 100644 --- a/src/Models/Operations/RotateOAuthApplicationSecretRequest.php +++ b/src/Models/Operations/RotateOAuthApplicationSecretRequest.php @@ -20,9 +20,9 @@ class RotateOAuthApplicationSecretRequest public string $oauthApplicationId; /** - * @param ?string $oauthApplicationId + * @param string $oauthApplicationId */ - public function __construct(?string $oauthApplicationId = null) + public function __construct(string $oauthApplicationId) { $this->oauthApplicationId = $oauthApplicationId; } diff --git a/src/Models/Operations/RotateOAuthApplicationSecretResponse.php b/src/Models/Operations/RotateOAuthApplicationSecretResponse.php index 2686e75..be5ac25 100644 --- a/src/Models/Operations/RotateOAuthApplicationSecretResponse.php +++ b/src/Models/Operations/RotateOAuthApplicationSecretResponse.php @@ -40,12 +40,12 @@ class RotateOAuthApplicationSecretResponse public ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OAuthApplicationWithSecret $oAuthApplicationWithSecret = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/SetUserProfileImageRequest.php b/src/Models/Operations/SetUserProfileImageRequest.php index 9aa54ed..e1f07ec 100644 --- a/src/Models/Operations/SetUserProfileImageRequest.php +++ b/src/Models/Operations/SetUserProfileImageRequest.php @@ -27,10 +27,10 @@ class SetUserProfileImageRequest public SetUserProfileImageRequestBody $requestBody; /** - * @param ?string $userId - * @param ?SetUserProfileImageRequestBody $requestBody + * @param string $userId + * @param SetUserProfileImageRequestBody $requestBody */ - public function __construct(?string $userId = null, ?SetUserProfileImageRequestBody $requestBody = null) + public function __construct(string $userId, SetUserProfileImageRequestBody $requestBody) { $this->userId = $userId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/SetUserProfileImageResponse.php b/src/Models/Operations/SetUserProfileImageResponse.php index fb84eb3..83fb630 100644 --- a/src/Models/Operations/SetUserProfileImageResponse.php +++ b/src/Models/Operations/SetUserProfileImageResponse.php @@ -40,12 +40,12 @@ class SetUserProfileImageResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/ToggleTemplateDeliveryRequest.php b/src/Models/Operations/ToggleTemplateDeliveryRequest.php index 7320b90..08cae67 100644 --- a/src/Models/Operations/ToggleTemplateDeliveryRequest.php +++ b/src/Models/Operations/ToggleTemplateDeliveryRequest.php @@ -35,11 +35,11 @@ class ToggleTemplateDeliveryRequest public ?ToggleTemplateDeliveryRequestBody $requestBody = null; /** - * @param ?ToggleTemplateDeliveryPathParamTemplateType $templateType - * @param ?string $slug + * @param ToggleTemplateDeliveryPathParamTemplateType $templateType + * @param string $slug * @param ?ToggleTemplateDeliveryRequestBody $requestBody */ - public function __construct(?ToggleTemplateDeliveryPathParamTemplateType $templateType = null, ?string $slug = null, ?ToggleTemplateDeliveryRequestBody $requestBody = null) + public function __construct(ToggleTemplateDeliveryPathParamTemplateType $templateType, string $slug, ?ToggleTemplateDeliveryRequestBody $requestBody = null) { $this->templateType = $templateType; $this->slug = $slug; diff --git a/src/Models/Operations/ToggleTemplateDeliveryRequestBody.php b/src/Models/Operations/ToggleTemplateDeliveryRequestBody.php index b93debd..4ad7892 100644 --- a/src/Models/Operations/ToggleTemplateDeliveryRequestBody.php +++ b/src/Models/Operations/ToggleTemplateDeliveryRequestBody.php @@ -16,8 +16,8 @@ class ToggleTemplateDeliveryRequestBody * * @var ?bool $deliveredByClerk */ - #[\JMS\Serializer\Annotation\SerializedName('delivered_by_clerk')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('delivered_by_clerk')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $deliveredByClerk = null; /** diff --git a/src/Models/Operations/ToggleTemplateDeliveryResponse.php b/src/Models/Operations/ToggleTemplateDeliveryResponse.php index 150ccd7..b5cb28b 100644 --- a/src/Models/Operations/ToggleTemplateDeliveryResponse.php +++ b/src/Models/Operations/ToggleTemplateDeliveryResponse.php @@ -40,12 +40,12 @@ class ToggleTemplateDeliveryResponse public ?Components\Template $template = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Template $template */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Template $template = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Template $template = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UnbanUserRequest.php b/src/Models/Operations/UnbanUserRequest.php index cfcd190..73e9137 100644 --- a/src/Models/Operations/UnbanUserRequest.php +++ b/src/Models/Operations/UnbanUserRequest.php @@ -20,9 +20,9 @@ class UnbanUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/UnbanUserResponse.php b/src/Models/Operations/UnbanUserResponse.php index d0197c9..717c504 100644 --- a/src/Models/Operations/UnbanUserResponse.php +++ b/src/Models/Operations/UnbanUserResponse.php @@ -40,12 +40,12 @@ class UnbanUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UnlockUserRequest.php b/src/Models/Operations/UnlockUserRequest.php index cdaaeb7..00992e7 100644 --- a/src/Models/Operations/UnlockUserRequest.php +++ b/src/Models/Operations/UnlockUserRequest.php @@ -20,9 +20,9 @@ class UnlockUserRequest public string $userId; /** - * @param ?string $userId + * @param string $userId */ - public function __construct(?string $userId = null) + public function __construct(string $userId) { $this->userId = $userId; } diff --git a/src/Models/Operations/UnlockUserResponse.php b/src/Models/Operations/UnlockUserResponse.php index 83f7fc3..9dea605 100644 --- a/src/Models/Operations/UnlockUserResponse.php +++ b/src/Models/Operations/UnlockUserResponse.php @@ -40,12 +40,12 @@ class UnlockUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateDomainRequest.php b/src/Models/Operations/UpdateDomainRequest.php index 4297102..6992188 100644 --- a/src/Models/Operations/UpdateDomainRequest.php +++ b/src/Models/Operations/UpdateDomainRequest.php @@ -27,10 +27,10 @@ class UpdateDomainRequest public UpdateDomainRequestBody $requestBody; /** - * @param ?string $domainId - * @param ?UpdateDomainRequestBody $requestBody + * @param string $domainId + * @param UpdateDomainRequestBody $requestBody */ - public function __construct(?string $domainId = null, ?UpdateDomainRequestBody $requestBody = null) + public function __construct(string $domainId, UpdateDomainRequestBody $requestBody) { $this->domainId = $domainId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateDomainRequestBody.php b/src/Models/Operations/UpdateDomainRequestBody.php index 92602a6..e422176 100644 --- a/src/Models/Operations/UpdateDomainRequestBody.php +++ b/src/Models/Operations/UpdateDomainRequestBody.php @@ -19,8 +19,8 @@ class UpdateDomainRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -30,8 +30,8 @@ class UpdateDomainRequestBody * * @var ?string $proxyUrl */ - #[\JMS\Serializer\Annotation\SerializedName('proxy_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('proxy_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $proxyUrl = null; /** diff --git a/src/Models/Operations/UpdateDomainResponse.php b/src/Models/Operations/UpdateDomainResponse.php index fdc4c8a..88fbbc3 100644 --- a/src/Models/Operations/UpdateDomainResponse.php +++ b/src/Models/Operations/UpdateDomainResponse.php @@ -40,12 +40,12 @@ class UpdateDomainResponse public ?Components\Domain $domain = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Domain $domain */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Domain $domain = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Domain $domain = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateEmailAddressRequest.php b/src/Models/Operations/UpdateEmailAddressRequest.php index 97eedc9..69d7801 100644 --- a/src/Models/Operations/UpdateEmailAddressRequest.php +++ b/src/Models/Operations/UpdateEmailAddressRequest.php @@ -27,10 +27,10 @@ class UpdateEmailAddressRequest public ?UpdateEmailAddressRequestBody $requestBody = null; /** - * @param ?string $emailAddressId + * @param string $emailAddressId * @param ?UpdateEmailAddressRequestBody $requestBody */ - public function __construct(?string $emailAddressId = null, ?UpdateEmailAddressRequestBody $requestBody = null) + public function __construct(string $emailAddressId, ?UpdateEmailAddressRequestBody $requestBody = null) { $this->emailAddressId = $emailAddressId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateEmailAddressRequestBody.php b/src/Models/Operations/UpdateEmailAddressRequestBody.php index 4fe80d1..b8ca5a2 100644 --- a/src/Models/Operations/UpdateEmailAddressRequestBody.php +++ b/src/Models/Operations/UpdateEmailAddressRequestBody.php @@ -16,8 +16,8 @@ class UpdateEmailAddressRequestBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** @@ -25,8 +25,8 @@ class UpdateEmailAddressRequestBody * * @var ?bool $primary */ - #[\JMS\Serializer\Annotation\SerializedName('primary')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $primary = null; /** diff --git a/src/Models/Operations/UpdateEmailAddressResponse.php b/src/Models/Operations/UpdateEmailAddressResponse.php index 923a79f..40b5de1 100644 --- a/src/Models/Operations/UpdateEmailAddressResponse.php +++ b/src/Models/Operations/UpdateEmailAddressResponse.php @@ -40,12 +40,12 @@ class UpdateEmailAddressResponse public ?Components\EmailAddress $emailAddress = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\EmailAddress $emailAddress */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\EmailAddress $emailAddress = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\EmailAddress $emailAddress = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php b/src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php index 9789eee..0d472eb 100644 --- a/src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php +++ b/src/Models/Operations/UpdateInstanceAuthConfigRequestBody.php @@ -16,8 +16,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?bool $restrictedToAllowlist */ - #[\JMS\Serializer\Annotation\SerializedName('restricted_to_allowlist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('restricted_to_allowlist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $restrictedToAllowlist = null; /** @@ -28,8 +28,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?string $fromEmailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('from_email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('from_email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $fromEmailAddress = null; /** @@ -37,8 +37,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?bool $progressiveSignUp */ - #[\JMS\Serializer\Annotation\SerializedName('progressive_sign_up')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('progressive_sign_up')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $progressiveSignUp = null; /** @@ -46,8 +46,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?string $sessionTokenTemplate */ - #[\JMS\Serializer\Annotation\SerializedName('session_token_template')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('session_token_template')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $sessionTokenTemplate = null; /** @@ -57,8 +57,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?bool $enhancedEmailDeliverability */ - #[\JMS\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $enhancedEmailDeliverability = null; /** @@ -68,8 +68,8 @@ class UpdateInstanceAuthConfigRequestBody * * @var ?bool $testMode */ - #[\JMS\Serializer\Annotation\SerializedName('test_mode')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('test_mode')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $testMode = null; /** @@ -80,7 +80,7 @@ class UpdateInstanceAuthConfigRequestBody * @param ?bool $enhancedEmailDeliverability * @param ?bool $testMode */ - public function __construct(?bool $restrictedToAllowlist = null, ?string $fromEmailAddress = null, ?bool $progressiveSignUp = null, ?string $sessionTokenTemplate = null, ?bool $enhancedEmailDeliverability = null, ?bool $testMode = null) + public function __construct(?string $fromEmailAddress = null, ?bool $progressiveSignUp = null, ?string $sessionTokenTemplate = null, ?bool $enhancedEmailDeliverability = null, ?bool $testMode = null, ?bool $restrictedToAllowlist = false) { $this->restrictedToAllowlist = $restrictedToAllowlist; $this->fromEmailAddress = $fromEmailAddress; diff --git a/src/Models/Operations/UpdateInstanceAuthConfigResponse.php b/src/Models/Operations/UpdateInstanceAuthConfigResponse.php index 0add832..e2ef0c4 100644 --- a/src/Models/Operations/UpdateInstanceAuthConfigResponse.php +++ b/src/Models/Operations/UpdateInstanceAuthConfigResponse.php @@ -40,12 +40,12 @@ class UpdateInstanceAuthConfigResponse public ?Components\InstanceSettings $instanceSettings = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\InstanceSettings $instanceSettings */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\InstanceSettings $instanceSettings = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\InstanceSettings $instanceSettings = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php b/src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php index ab502e3..2cd5fad 100644 --- a/src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php +++ b/src/Models/Operations/UpdateInstanceOrganizationSettingsRequestBody.php @@ -15,32 +15,32 @@ class UpdateInstanceOrganizationSettingsRequestBody * * @var ?bool $enabled */ - #[\JMS\Serializer\Annotation\SerializedName('enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $enabled = null; /** * * @var ?int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $maxAllowedMemberships = null; /** * * @var ?bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $adminDeleteEnabled = null; /** * * @var ?bool $domainsEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('domains_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $domainsEnabled = null; /** @@ -50,9 +50,9 @@ class UpdateInstanceOrganizationSettingsRequestBody * * @var ?array $domainsEnrollmentModes */ - #[\JMS\Serializer\Annotation\SerializedName('domains_enrollment_modes')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_enrollment_modes')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $domainsEnrollmentModes = null; /** @@ -60,8 +60,8 @@ class UpdateInstanceOrganizationSettingsRequestBody * * @var ?string $creatorRoleId */ - #[\JMS\Serializer\Annotation\SerializedName('creator_role_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('creator_role_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $creatorRoleId = null; /** @@ -69,27 +69,27 @@ class UpdateInstanceOrganizationSettingsRequestBody * * @var ?string $domainsDefaultRoleId */ - #[\JMS\Serializer\Annotation\SerializedName('domains_default_role_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('domains_default_role_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $domainsDefaultRoleId = null; /** + * @param ?array $domainsEnrollmentModes + * @param ?string $creatorRoleId + * @param ?string $domainsDefaultRoleId * @param ?bool $enabled * @param ?int $maxAllowedMemberships * @param ?bool $adminDeleteEnabled * @param ?bool $domainsEnabled - * @param ?array $domainsEnrollmentModes - * @param ?string $creatorRoleId - * @param ?string $domainsDefaultRoleId */ - public function __construct(?bool $enabled = null, ?int $maxAllowedMemberships = null, ?bool $adminDeleteEnabled = null, ?bool $domainsEnabled = null, ?array $domainsEnrollmentModes = null, ?string $creatorRoleId = null, ?string $domainsDefaultRoleId = null) + public function __construct(?array $domainsEnrollmentModes = null, ?string $creatorRoleId = null, ?string $domainsDefaultRoleId = null, ?bool $enabled = null, ?int $maxAllowedMemberships = null, ?bool $adminDeleteEnabled = null, ?bool $domainsEnabled = null) { + $this->domainsEnrollmentModes = $domainsEnrollmentModes; + $this->creatorRoleId = $creatorRoleId; + $this->domainsDefaultRoleId = $domainsDefaultRoleId; $this->enabled = $enabled; $this->maxAllowedMemberships = $maxAllowedMemberships; $this->adminDeleteEnabled = $adminDeleteEnabled; $this->domainsEnabled = $domainsEnabled; - $this->domainsEnrollmentModes = $domainsEnrollmentModes; - $this->creatorRoleId = $creatorRoleId; - $this->domainsDefaultRoleId = $domainsDefaultRoleId; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php b/src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php index ad4d403..bdd94bf 100644 --- a/src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php +++ b/src/Models/Operations/UpdateInstanceOrganizationSettingsResponse.php @@ -40,12 +40,12 @@ class UpdateInstanceOrganizationSettingsResponse public ?Components\OrganizationSettings $organizationSettings = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationSettings $organizationSettings */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationSettings $organizationSettings = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationSettings $organizationSettings = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateInstanceRequestBody.php b/src/Models/Operations/UpdateInstanceRequestBody.php index 9c10591..32b5cf1 100644 --- a/src/Models/Operations/UpdateInstanceRequestBody.php +++ b/src/Models/Operations/UpdateInstanceRequestBody.php @@ -18,8 +18,8 @@ class UpdateInstanceRequestBody * * @var ?bool $testMode */ - #[\JMS\Serializer\Annotation\SerializedName('test_mode')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('test_mode')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $testMode = null; /** @@ -27,8 +27,8 @@ class UpdateInstanceRequestBody * * @var ?bool $hibp */ - #[\JMS\Serializer\Annotation\SerializedName('hibp')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('hibp')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $hibp = null; /** @@ -38,32 +38,32 @@ class UpdateInstanceRequestBody * * @var ?bool $enhancedEmailDeliverability */ - #[\JMS\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('enhanced_email_deliverability')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $enhancedEmailDeliverability = null; /** * * @var ?string $supportEmail */ - #[\JMS\Serializer\Annotation\SerializedName('support_email')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('support_email')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $supportEmail = null; /** * * @var ?string $clerkJsVersion */ - #[\JMS\Serializer\Annotation\SerializedName('clerk_js_version')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('clerk_js_version')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $clerkJsVersion = null; /** * * @var ?string $developmentOrigin */ - #[\JMS\Serializer\Annotation\SerializedName('development_origin')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('development_origin')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $developmentOrigin = null; /** @@ -73,9 +73,9 @@ class UpdateInstanceRequestBody * * @var ?array $allowedOrigins */ - #[\JMS\Serializer\Annotation\SerializedName('allowed_origins')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowed_origins')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $allowedOrigins = null; /** @@ -86,8 +86,8 @@ class UpdateInstanceRequestBody * @var ?bool $cookielessDev * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ - #[\JMS\Serializer\Annotation\SerializedName('cookieless_dev')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('cookieless_dev')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $cookielessDev = null; /** @@ -95,31 +95,31 @@ class UpdateInstanceRequestBody * * @var ?bool $urlBasedSessionSyncing */ - #[\JMS\Serializer\Annotation\SerializedName('url_based_session_syncing')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('url_based_session_syncing')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $urlBasedSessionSyncing = null; /** + * @param ?array $allowedOrigins + * @param ?bool $cookielessDev + * @param ?bool $urlBasedSessionSyncing * @param ?bool $testMode * @param ?bool $hibp * @param ?bool $enhancedEmailDeliverability * @param ?string $supportEmail * @param ?string $clerkJsVersion * @param ?string $developmentOrigin - * @param ?array $allowedOrigins - * @param ?bool $cookielessDev - * @param ?bool $urlBasedSessionSyncing */ - public function __construct(?bool $testMode = null, ?bool $hibp = null, ?bool $enhancedEmailDeliverability = null, ?string $supportEmail = null, ?string $clerkJsVersion = null, ?string $developmentOrigin = null, ?array $allowedOrigins = null, ?bool $cookielessDev = null, ?bool $urlBasedSessionSyncing = null) + public function __construct(?array $allowedOrigins = null, ?bool $cookielessDev = null, ?bool $urlBasedSessionSyncing = null, ?bool $testMode = null, ?bool $hibp = null, ?bool $enhancedEmailDeliverability = null, ?string $supportEmail = null, ?string $clerkJsVersion = null, ?string $developmentOrigin = null) { + $this->allowedOrigins = $allowedOrigins; + $this->cookielessDev = $cookielessDev; + $this->urlBasedSessionSyncing = $urlBasedSessionSyncing; $this->testMode = $testMode; $this->hibp = $hibp; $this->enhancedEmailDeliverability = $enhancedEmailDeliverability; $this->supportEmail = $supportEmail; $this->clerkJsVersion = $clerkJsVersion; $this->developmentOrigin = $developmentOrigin; - $this->allowedOrigins = $allowedOrigins; - $this->cookielessDev = $cookielessDev; - $this->urlBasedSessionSyncing = $urlBasedSessionSyncing; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateInstanceResponse.php b/src/Models/Operations/UpdateInstanceResponse.php index 2adc26f..12250d2 100644 --- a/src/Models/Operations/UpdateInstanceResponse.php +++ b/src/Models/Operations/UpdateInstanceResponse.php @@ -33,11 +33,11 @@ class UpdateInstanceResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php b/src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php index 1398775..f823a24 100644 --- a/src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php +++ b/src/Models/Operations/UpdateInstanceRestrictionsRequestBody.php @@ -15,40 +15,40 @@ class UpdateInstanceRestrictionsRequestBody * * @var ?bool $allowlist */ - #[\JMS\Serializer\Annotation\SerializedName('allowlist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowlist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowlist = null; /** * * @var ?bool $blocklist */ - #[\JMS\Serializer\Annotation\SerializedName('blocklist')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('blocklist')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $blocklist = null; /** * * @var ?bool $blockEmailSubaddresses */ - #[\JMS\Serializer\Annotation\SerializedName('block_email_subaddresses')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('block_email_subaddresses')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $blockEmailSubaddresses = null; /** * * @var ?bool $blockDisposableEmailDomains */ - #[\JMS\Serializer\Annotation\SerializedName('block_disposable_email_domains')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('block_disposable_email_domains')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $blockDisposableEmailDomains = null; /** * * @var ?bool $ignoreDotsForGmailAddresses */ - #[\JMS\Serializer\Annotation\SerializedName('ignore_dots_for_gmail_addresses')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('ignore_dots_for_gmail_addresses')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $ignoreDotsForGmailAddresses = null; /** diff --git a/src/Models/Operations/UpdateInstanceRestrictionsResponse.php b/src/Models/Operations/UpdateInstanceRestrictionsResponse.php index 2673b7e..e4dbe4f 100644 --- a/src/Models/Operations/UpdateInstanceRestrictionsResponse.php +++ b/src/Models/Operations/UpdateInstanceRestrictionsResponse.php @@ -40,12 +40,12 @@ class UpdateInstanceRestrictionsResponse public ?Components\InstanceRestrictions $instanceRestrictions = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\InstanceRestrictions $instanceRestrictions */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\InstanceRestrictions $instanceRestrictions = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\InstanceRestrictions $instanceRestrictions = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateJWTTemplateRequest.php b/src/Models/Operations/UpdateJWTTemplateRequest.php index bb000c5..5001089 100644 --- a/src/Models/Operations/UpdateJWTTemplateRequest.php +++ b/src/Models/Operations/UpdateJWTTemplateRequest.php @@ -27,10 +27,10 @@ class UpdateJWTTemplateRequest public ?UpdateJWTTemplateRequestBody $requestBody = null; /** - * @param ?string $templateId + * @param string $templateId * @param ?UpdateJWTTemplateRequestBody $requestBody */ - public function __construct(?string $templateId = null, ?UpdateJWTTemplateRequestBody $requestBody = null) + public function __construct(string $templateId, ?UpdateJWTTemplateRequestBody $requestBody = null) { $this->templateId = $templateId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateJWTTemplateRequestBody.php b/src/Models/Operations/UpdateJWTTemplateRequestBody.php index 8b9d1b2..add5ef1 100644 --- a/src/Models/Operations/UpdateJWTTemplateRequestBody.php +++ b/src/Models/Operations/UpdateJWTTemplateRequestBody.php @@ -16,8 +16,8 @@ class UpdateJWTTemplateRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -25,9 +25,9 @@ class UpdateJWTTemplateRequestBody * * @var ?UpdateJWTTemplateClaims $claims */ - #[\JMS\Serializer\Annotation\SerializedName('claims')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateJWTTemplateClaims|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('claims')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateJWTTemplateClaims|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateJWTTemplateClaims $claims = null; /** @@ -35,8 +35,8 @@ class UpdateJWTTemplateRequestBody * * @var ?float $lifetime */ - #[\JMS\Serializer\Annotation\SerializedName('lifetime')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('lifetime')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?float $lifetime = null; /** @@ -44,8 +44,8 @@ class UpdateJWTTemplateRequestBody * * @var ?float $allowedClockSkew */ - #[\JMS\Serializer\Annotation\SerializedName('allowed_clock_skew')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allowed_clock_skew')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?float $allowedClockSkew = null; /** @@ -53,8 +53,8 @@ class UpdateJWTTemplateRequestBody * * @var ?bool $customSigningKey */ - #[\JMS\Serializer\Annotation\SerializedName('custom_signing_key')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('custom_signing_key')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $customSigningKey = null; /** @@ -62,8 +62,8 @@ class UpdateJWTTemplateRequestBody * * @var ?string $signingAlgorithm */ - #[\JMS\Serializer\Annotation\SerializedName('signing_algorithm')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('signing_algorithm')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $signingAlgorithm = null; /** @@ -71,26 +71,26 @@ class UpdateJWTTemplateRequestBody * * @var ?string $signingKey */ - #[\JMS\Serializer\Annotation\SerializedName('signing_key')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('signing_key')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $signingKey = null; /** * @param ?string $name * @param ?UpdateJWTTemplateClaims $claims + * @param ?bool $customSigningKey * @param ?float $lifetime * @param ?float $allowedClockSkew - * @param ?bool $customSigningKey * @param ?string $signingAlgorithm * @param ?string $signingKey */ - public function __construct(?string $name = null, ?UpdateJWTTemplateClaims $claims = null, ?float $lifetime = null, ?float $allowedClockSkew = null, ?bool $customSigningKey = null, ?string $signingAlgorithm = null, ?string $signingKey = null) + public function __construct(?string $name = null, ?UpdateJWTTemplateClaims $claims = null, ?bool $customSigningKey = null, ?float $lifetime = null, ?float $allowedClockSkew = null, ?string $signingAlgorithm = null, ?string $signingKey = null) { $this->name = $name; $this->claims = $claims; + $this->customSigningKey = $customSigningKey; $this->lifetime = $lifetime; $this->allowedClockSkew = $allowedClockSkew; - $this->customSigningKey = $customSigningKey; $this->signingAlgorithm = $signingAlgorithm; $this->signingKey = $signingKey; } diff --git a/src/Models/Operations/UpdateJWTTemplateResponse.php b/src/Models/Operations/UpdateJWTTemplateResponse.php index 345a37c..6978028 100644 --- a/src/Models/Operations/UpdateJWTTemplateResponse.php +++ b/src/Models/Operations/UpdateJWTTemplateResponse.php @@ -40,12 +40,12 @@ class UpdateJWTTemplateResponse public ?Components\JWTTemplate $jwtTemplate = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\JWTTemplate $jwtTemplate */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\JWTTemplate $jwtTemplate = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\JWTTemplate $jwtTemplate = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateOAuthApplicationRequest.php b/src/Models/Operations/UpdateOAuthApplicationRequest.php index ddb3926..e3ad495 100644 --- a/src/Models/Operations/UpdateOAuthApplicationRequest.php +++ b/src/Models/Operations/UpdateOAuthApplicationRequest.php @@ -27,10 +27,10 @@ class UpdateOAuthApplicationRequest public UpdateOAuthApplicationRequestBody $requestBody; /** - * @param ?string $oauthApplicationId - * @param ?UpdateOAuthApplicationRequestBody $requestBody + * @param string $oauthApplicationId + * @param UpdateOAuthApplicationRequestBody $requestBody */ - public function __construct(?string $oauthApplicationId = null, ?UpdateOAuthApplicationRequestBody $requestBody = null) + public function __construct(string $oauthApplicationId, UpdateOAuthApplicationRequestBody $requestBody) { $this->oauthApplicationId = $oauthApplicationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateOAuthApplicationRequestBody.php b/src/Models/Operations/UpdateOAuthApplicationRequestBody.php index 1b6d2c3..cfe9ed1 100644 --- a/src/Models/Operations/UpdateOAuthApplicationRequestBody.php +++ b/src/Models/Operations/UpdateOAuthApplicationRequestBody.php @@ -16,8 +16,8 @@ class UpdateOAuthApplicationRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -25,8 +25,8 @@ class UpdateOAuthApplicationRequestBody * * @var ?string $callbackUrl */ - #[\JMS\Serializer\Annotation\SerializedName('callback_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('callback_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $callbackUrl = null; /** @@ -34,8 +34,8 @@ class UpdateOAuthApplicationRequestBody * * @var ?string $scopes */ - #[\JMS\Serializer\Annotation\SerializedName('scopes')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('scopes')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $scopes = null; /** @@ -43,7 +43,7 @@ class UpdateOAuthApplicationRequestBody * @param ?string $callbackUrl * @param ?string $scopes */ - public function __construct(?string $name = null, ?string $callbackUrl = null, ?string $scopes = null) + public function __construct(?string $name = null, ?string $callbackUrl = null, ?string $scopes = 'profile email') { $this->name = $name; $this->callbackUrl = $callbackUrl; diff --git a/src/Models/Operations/UpdateOAuthApplicationResponse.php b/src/Models/Operations/UpdateOAuthApplicationResponse.php index df2ecee..a3b61cb 100644 --- a/src/Models/Operations/UpdateOAuthApplicationResponse.php +++ b/src/Models/Operations/UpdateOAuthApplicationResponse.php @@ -40,12 +40,12 @@ class UpdateOAuthApplicationResponse public ?Components\OAuthApplication $oAuthApplication = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OAuthApplication $oAuthApplication */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OAuthApplication $oAuthApplication = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OAuthApplication $oAuthApplication = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php b/src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php index 9e3b8ba..2349c47 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php +++ b/src/Models/Operations/UpdateOrganizationMembershipMetadataRequest.php @@ -35,11 +35,11 @@ class UpdateOrganizationMembershipMetadataRequest public UpdateOrganizationMembershipMetadataRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?string $userId - * @param ?UpdateOrganizationMembershipMetadataRequestBody $requestBody + * @param string $organizationId + * @param string $userId + * @param UpdateOrganizationMembershipMetadataRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?string $userId = null, ?UpdateOrganizationMembershipMetadataRequestBody $requestBody = null) + public function __construct(string $organizationId, string $userId, UpdateOrganizationMembershipMetadataRequestBody $requestBody) { $this->organizationId = $organizationId; $this->userId = $userId; diff --git a/src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php b/src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php index 6def24f..026ee2a 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php +++ b/src/Models/Operations/UpdateOrganizationMembershipMetadataRequestBody.php @@ -18,9 +18,9 @@ class UpdateOrganizationMembershipMetadataRequestBody * * @var ?UpdateOrganizationMembershipMetadataPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationMembershipMetadataPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationMembershipMetadataPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateOrganizationMembershipMetadataPublicMetadata $publicMetadata = null; /** @@ -30,9 +30,9 @@ class UpdateOrganizationMembershipMetadataRequestBody * * @var ?UpdateOrganizationMembershipMetadataPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationMembershipMetadataPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationMembershipMetadataPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateOrganizationMembershipMetadataPrivateMetadata $privateMetadata = null; /** diff --git a/src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php b/src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php index 3fa1dc3..624916e 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php +++ b/src/Models/Operations/UpdateOrganizationMembershipMetadataResponse.php @@ -40,12 +40,12 @@ class UpdateOrganizationMembershipMetadataResponse public ?Components\OrganizationMembership $organizationMembership = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMembership $organizationMembership */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMembership $organizationMembership = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMembership $organizationMembership = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateOrganizationMembershipRequest.php b/src/Models/Operations/UpdateOrganizationMembershipRequest.php index 413d4f1..a788651 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipRequest.php +++ b/src/Models/Operations/UpdateOrganizationMembershipRequest.php @@ -35,11 +35,11 @@ class UpdateOrganizationMembershipRequest public UpdateOrganizationMembershipRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?string $userId - * @param ?UpdateOrganizationMembershipRequestBody $requestBody + * @param string $organizationId + * @param string $userId + * @param UpdateOrganizationMembershipRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?string $userId = null, ?UpdateOrganizationMembershipRequestBody $requestBody = null) + public function __construct(string $organizationId, string $userId, UpdateOrganizationMembershipRequestBody $requestBody) { $this->organizationId = $organizationId; $this->userId = $userId; diff --git a/src/Models/Operations/UpdateOrganizationMembershipRequestBody.php b/src/Models/Operations/UpdateOrganizationMembershipRequestBody.php index 8f50560..390357c 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipRequestBody.php +++ b/src/Models/Operations/UpdateOrganizationMembershipRequestBody.php @@ -16,13 +16,13 @@ class UpdateOrganizationMembershipRequestBody * * @var string $role */ - #[\JMS\Serializer\Annotation\SerializedName('role')] + #[\Speakeasy\Serializer\Annotation\SerializedName('role')] public string $role; /** - * @param ?string $role + * @param string $role */ - public function __construct(?string $role = null) + public function __construct(string $role) { $this->role = $role; } diff --git a/src/Models/Operations/UpdateOrganizationMembershipResponse.php b/src/Models/Operations/UpdateOrganizationMembershipResponse.php index 8fe5793..63bb22b 100644 --- a/src/Models/Operations/UpdateOrganizationMembershipResponse.php +++ b/src/Models/Operations/UpdateOrganizationMembershipResponse.php @@ -40,12 +40,12 @@ class UpdateOrganizationMembershipResponse public ?Components\OrganizationMembership $organizationMembership = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMembership $organizationMembership */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMembership $organizationMembership = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMembership $organizationMembership = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateOrganizationRequest.php b/src/Models/Operations/UpdateOrganizationRequest.php index 81e94ac..81b365e 100644 --- a/src/Models/Operations/UpdateOrganizationRequest.php +++ b/src/Models/Operations/UpdateOrganizationRequest.php @@ -27,10 +27,10 @@ class UpdateOrganizationRequest public UpdateOrganizationRequestBody $requestBody; /** - * @param ?string $organizationId - * @param ?UpdateOrganizationRequestBody $requestBody + * @param string $organizationId + * @param UpdateOrganizationRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?UpdateOrganizationRequestBody $requestBody = null) + public function __construct(string $organizationId, UpdateOrganizationRequestBody $requestBody) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateOrganizationRequestBody.php b/src/Models/Operations/UpdateOrganizationRequestBody.php index b8d7a40..050814b 100644 --- a/src/Models/Operations/UpdateOrganizationRequestBody.php +++ b/src/Models/Operations/UpdateOrganizationRequestBody.php @@ -16,9 +16,9 @@ class UpdateOrganizationRequestBody * * @var ?UpdateOrganizationPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateOrganizationPublicMetadata $publicMetadata = null; /** @@ -26,9 +26,9 @@ class UpdateOrganizationRequestBody * * @var ?UpdateOrganizationPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateOrganizationPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateOrganizationPrivateMetadata $privateMetadata = null; /** @@ -36,8 +36,8 @@ class UpdateOrganizationRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -45,8 +45,8 @@ class UpdateOrganizationRequestBody * * @var ?string $slug */ - #[\JMS\Serializer\Annotation\SerializedName('slug')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('slug')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $slug = null; /** @@ -54,8 +54,8 @@ class UpdateOrganizationRequestBody * * @var ?int $maxAllowedMemberships */ - #[\JMS\Serializer\Annotation\SerializedName('max_allowed_memberships')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('max_allowed_memberships')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?int $maxAllowedMemberships = null; /** @@ -63,8 +63,8 @@ class UpdateOrganizationRequestBody * * @var ?bool $adminDeleteEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('admin_delete_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('admin_delete_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $adminDeleteEnabled = null; /** diff --git a/src/Models/Operations/UpdateOrganizationResponse.php b/src/Models/Operations/UpdateOrganizationResponse.php index 02b8b28..8cc1d45 100644 --- a/src/Models/Operations/UpdateOrganizationResponse.php +++ b/src/Models/Operations/UpdateOrganizationResponse.php @@ -40,12 +40,12 @@ class UpdateOrganizationResponse public ?Components\Organization $organization = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Organization $organization */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Organization $organization = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Organization $organization = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdatePhoneNumberRequest.php b/src/Models/Operations/UpdatePhoneNumberRequest.php index c8ce364..3d939b4 100644 --- a/src/Models/Operations/UpdatePhoneNumberRequest.php +++ b/src/Models/Operations/UpdatePhoneNumberRequest.php @@ -27,10 +27,10 @@ class UpdatePhoneNumberRequest public ?UpdatePhoneNumberRequestBody $requestBody = null; /** - * @param ?string $phoneNumberId + * @param string $phoneNumberId * @param ?UpdatePhoneNumberRequestBody $requestBody */ - public function __construct(?string $phoneNumberId = null, ?UpdatePhoneNumberRequestBody $requestBody = null) + public function __construct(string $phoneNumberId, ?UpdatePhoneNumberRequestBody $requestBody = null) { $this->phoneNumberId = $phoneNumberId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdatePhoneNumberRequestBody.php b/src/Models/Operations/UpdatePhoneNumberRequestBody.php index 4ad6e6e..07aef76 100644 --- a/src/Models/Operations/UpdatePhoneNumberRequestBody.php +++ b/src/Models/Operations/UpdatePhoneNumberRequestBody.php @@ -16,8 +16,8 @@ class UpdatePhoneNumberRequestBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** @@ -25,8 +25,8 @@ class UpdatePhoneNumberRequestBody * * @var ?bool $primary */ - #[\JMS\Serializer\Annotation\SerializedName('primary')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $primary = null; /** @@ -37,8 +37,8 @@ class UpdatePhoneNumberRequestBody * * @var ?bool $reservedForSecondFactor */ - #[\JMS\Serializer\Annotation\SerializedName('reserved_for_second_factor')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reserved_for_second_factor')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $reservedForSecondFactor = null; /** diff --git a/src/Models/Operations/UpdatePhoneNumberResponse.php b/src/Models/Operations/UpdatePhoneNumberResponse.php index 3860bc4..f9c1885 100644 --- a/src/Models/Operations/UpdatePhoneNumberResponse.php +++ b/src/Models/Operations/UpdatePhoneNumberResponse.php @@ -40,12 +40,12 @@ class UpdatePhoneNumberResponse public ?Components\PhoneNumber $phoneNumber = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\PhoneNumber $phoneNumber */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\PhoneNumber $phoneNumber = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\PhoneNumber $phoneNumber = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php b/src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php index ef15ba6..d0a59b9 100644 --- a/src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php +++ b/src/Models/Operations/UpdateProductionInstanceDomainRequestBody.php @@ -16,8 +16,8 @@ class UpdateProductionInstanceDomainRequestBody * * @var ?string $homeUrl */ - #[\JMS\Serializer\Annotation\SerializedName('home_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('home_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $homeUrl = null; /** diff --git a/src/Models/Operations/UpdateProductionInstanceDomainResponse.php b/src/Models/Operations/UpdateProductionInstanceDomainResponse.php index c5f74c0..30d10ff 100644 --- a/src/Models/Operations/UpdateProductionInstanceDomainResponse.php +++ b/src/Models/Operations/UpdateProductionInstanceDomainResponse.php @@ -33,11 +33,11 @@ class UpdateProductionInstanceDomainResponse public \Psr\Http\Message\ResponseInterface $rawResponse; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php b/src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php index b89c3ba..b2cda3c 100644 --- a/src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php +++ b/src/Models/Operations/UpdateSAMLConnectionAttributeMapping.php @@ -16,32 +16,32 @@ class UpdateSAMLConnectionAttributeMapping * * @var ?string $userId */ - #[\JMS\Serializer\Annotation\SerializedName('user_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('user_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $userId = null; /** * * @var ?string $emailAddress */ - #[\JMS\Serializer\Annotation\SerializedName('email_address')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('email_address')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $emailAddress = null; /** * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** diff --git a/src/Models/Operations/UpdateSAMLConnectionRequest.php b/src/Models/Operations/UpdateSAMLConnectionRequest.php index 6820e90..783ec80 100644 --- a/src/Models/Operations/UpdateSAMLConnectionRequest.php +++ b/src/Models/Operations/UpdateSAMLConnectionRequest.php @@ -27,10 +27,10 @@ class UpdateSAMLConnectionRequest public UpdateSAMLConnectionRequestBody $requestBody; /** - * @param ?string $samlConnectionId - * @param ?UpdateSAMLConnectionRequestBody $requestBody + * @param string $samlConnectionId + * @param UpdateSAMLConnectionRequestBody $requestBody */ - public function __construct(?string $samlConnectionId = null, ?UpdateSAMLConnectionRequestBody $requestBody = null) + public function __construct(string $samlConnectionId, UpdateSAMLConnectionRequestBody $requestBody) { $this->samlConnectionId = $samlConnectionId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateSAMLConnectionRequestBody.php b/src/Models/Operations/UpdateSAMLConnectionRequestBody.php index 2b12321..4c48b60 100644 --- a/src/Models/Operations/UpdateSAMLConnectionRequestBody.php +++ b/src/Models/Operations/UpdateSAMLConnectionRequestBody.php @@ -16,8 +16,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -25,8 +25,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $domain */ - #[\JMS\Serializer\Annotation\SerializedName('domain')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('domain')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $domain = null; /** @@ -34,8 +34,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $idpEntityId */ - #[\JMS\Serializer\Annotation\SerializedName('idp_entity_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_entity_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpEntityId = null; /** @@ -43,8 +43,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $idpSsoUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_sso_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_sso_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpSsoUrl = null; /** @@ -52,8 +52,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $idpCertificate */ - #[\JMS\Serializer\Annotation\SerializedName('idp_certificate')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_certificate')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpCertificate = null; /** @@ -61,8 +61,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $idpMetadataUrl */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadataUrl = null; /** @@ -70,8 +70,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?string $idpMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('idp_metadata')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('idp_metadata')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $idpMetadata = null; /** @@ -79,9 +79,9 @@ class UpdateSAMLConnectionRequestBody * * @var ?UpdateSAMLConnectionAttributeMapping $attributeMapping */ - #[\JMS\Serializer\Annotation\SerializedName('attribute_mapping')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateSAMLConnectionAttributeMapping|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('attribute_mapping')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateSAMLConnectionAttributeMapping|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateSAMLConnectionAttributeMapping $attributeMapping = null; /** @@ -89,8 +89,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?bool $active */ - #[\JMS\Serializer\Annotation\SerializedName('active')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('active')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $active = null; /** @@ -98,8 +98,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?bool $syncUserAttributes */ - #[\JMS\Serializer\Annotation\SerializedName('sync_user_attributes')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('sync_user_attributes')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $syncUserAttributes = null; /** @@ -107,8 +107,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?bool $allowSubdomains */ - #[\JMS\Serializer\Annotation\SerializedName('allow_subdomains')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allow_subdomains')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowSubdomains = null; /** @@ -116,8 +116,8 @@ class UpdateSAMLConnectionRequestBody * * @var ?bool $allowIdpInitiated */ - #[\JMS\Serializer\Annotation\SerializedName('allow_idp_initiated')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('allow_idp_initiated')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $allowIdpInitiated = null; /** diff --git a/src/Models/Operations/UpdateSAMLConnectionResponse.php b/src/Models/Operations/UpdateSAMLConnectionResponse.php index 49ec5f1..48cafbc 100644 --- a/src/Models/Operations/UpdateSAMLConnectionResponse.php +++ b/src/Models/Operations/UpdateSAMLConnectionResponse.php @@ -40,12 +40,12 @@ class UpdateSAMLConnectionResponse public ?Components\SAMLConnection $samlConnection = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SAMLConnection $samlConnection */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SAMLConnection $samlConnection = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SAMLConnection $samlConnection = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateSignUpRequest.php b/src/Models/Operations/UpdateSignUpRequest.php index 51726ff..5036d43 100644 --- a/src/Models/Operations/UpdateSignUpRequest.php +++ b/src/Models/Operations/UpdateSignUpRequest.php @@ -27,10 +27,10 @@ class UpdateSignUpRequest public ?UpdateSignUpRequestBody $requestBody = null; /** - * @param ?string $id + * @param string $id * @param ?UpdateSignUpRequestBody $requestBody */ - public function __construct(?string $id = null, ?UpdateSignUpRequestBody $requestBody = null) + public function __construct(string $id, ?UpdateSignUpRequestBody $requestBody = null) { $this->id = $id; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateSignUpRequestBody.php b/src/Models/Operations/UpdateSignUpRequestBody.php index 2027cf1..63858b0 100644 --- a/src/Models/Operations/UpdateSignUpRequestBody.php +++ b/src/Models/Operations/UpdateSignUpRequestBody.php @@ -19,8 +19,8 @@ class UpdateSignUpRequestBody * * @var ?bool $customAction */ - #[\JMS\Serializer\Annotation\SerializedName('custom_action')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('custom_action')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $customAction = null; /** @@ -30,8 +30,8 @@ class UpdateSignUpRequestBody * * @var ?string $externalId */ - #[\JMS\Serializer\Annotation\SerializedName('external_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalId = null; /** diff --git a/src/Models/Operations/UpdateSignUpResponse.php b/src/Models/Operations/UpdateSignUpResponse.php index e02558d..221881d 100644 --- a/src/Models/Operations/UpdateSignUpResponse.php +++ b/src/Models/Operations/UpdateSignUpResponse.php @@ -40,12 +40,12 @@ class UpdateSignUpResponse public ?Components\SignUp $signUp = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\SignUp $signUp */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\SignUp $signUp = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SignUp $signUp = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateUserMetadataRequest.php b/src/Models/Operations/UpdateUserMetadataRequest.php index fb8ced3..f137a8c 100644 --- a/src/Models/Operations/UpdateUserMetadataRequest.php +++ b/src/Models/Operations/UpdateUserMetadataRequest.php @@ -27,10 +27,10 @@ class UpdateUserMetadataRequest public ?UpdateUserMetadataRequestBody $requestBody = null; /** - * @param ?string $userId + * @param string $userId * @param ?UpdateUserMetadataRequestBody $requestBody */ - public function __construct(?string $userId = null, ?UpdateUserMetadataRequestBody $requestBody = null) + public function __construct(string $userId, ?UpdateUserMetadataRequestBody $requestBody = null) { $this->userId = $userId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateUserMetadataRequestBody.php b/src/Models/Operations/UpdateUserMetadataRequestBody.php index 6e87906..83bc07e 100644 --- a/src/Models/Operations/UpdateUserMetadataRequestBody.php +++ b/src/Models/Operations/UpdateUserMetadataRequestBody.php @@ -18,9 +18,9 @@ class UpdateUserMetadataRequestBody * * @var ?array $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $publicMetadata = null; /** @@ -30,9 +30,9 @@ class UpdateUserMetadataRequestBody * * @var ?array $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $privateMetadata = null; /** @@ -44,9 +44,9 @@ class UpdateUserMetadataRequestBody * * @var ?array $unsafeMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('unsafe_metadata')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unsafe_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $unsafeMetadata = null; /** diff --git a/src/Models/Operations/UpdateUserMetadataResponse.php b/src/Models/Operations/UpdateUserMetadataResponse.php index aa63b1b..f0a8862 100644 --- a/src/Models/Operations/UpdateUserMetadataResponse.php +++ b/src/Models/Operations/UpdateUserMetadataResponse.php @@ -40,12 +40,12 @@ class UpdateUserMetadataResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpdateUserRequest.php b/src/Models/Operations/UpdateUserRequest.php index 250137b..ebdd0c7 100644 --- a/src/Models/Operations/UpdateUserRequest.php +++ b/src/Models/Operations/UpdateUserRequest.php @@ -27,10 +27,10 @@ class UpdateUserRequest public UpdateUserRequestBody $requestBody; /** - * @param ?string $userId - * @param ?UpdateUserRequestBody $requestBody + * @param string $userId + * @param UpdateUserRequestBody $requestBody */ - public function __construct(?string $userId = null, ?UpdateUserRequestBody $requestBody = null) + public function __construct(string $userId, UpdateUserRequestBody $requestBody) { $this->userId = $userId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UpdateUserRequestBody.php b/src/Models/Operations/UpdateUserRequestBody.php index 984cb2a..ded7a4d 100644 --- a/src/Models/Operations/UpdateUserRequestBody.php +++ b/src/Models/Operations/UpdateUserRequestBody.php @@ -18,8 +18,8 @@ class UpdateUserRequestBody * * @var ?string $externalId */ - #[\JMS\Serializer\Annotation\SerializedName('external_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('external_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $externalId = null; /** @@ -27,8 +27,8 @@ class UpdateUserRequestBody * * @var ?string $firstName */ - #[\JMS\Serializer\Annotation\SerializedName('first_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('first_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $firstName = null; /** @@ -36,8 +36,8 @@ class UpdateUserRequestBody * * @var ?string $lastName */ - #[\JMS\Serializer\Annotation\SerializedName('last_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('last_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $lastName = null; /** @@ -47,8 +47,8 @@ class UpdateUserRequestBody * * @var ?string $primaryEmailAddressId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_email_address_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_email_address_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryEmailAddressId = null; /** @@ -58,8 +58,8 @@ class UpdateUserRequestBody * * @var ?bool $notifyPrimaryEmailAddressChanged */ - #[\JMS\Serializer\Annotation\SerializedName('notify_primary_email_address_changed')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('notify_primary_email_address_changed')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $notifyPrimaryEmailAddressChanged = null; /** @@ -69,8 +69,8 @@ class UpdateUserRequestBody * * @var ?string $primaryPhoneNumberId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_phone_number_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_phone_number_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryPhoneNumberId = null; /** @@ -80,8 +80,8 @@ class UpdateUserRequestBody * * @var ?string $primaryWeb3WalletId */ - #[\JMS\Serializer\Annotation\SerializedName('primary_web3_wallet_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('primary_web3_wallet_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $primaryWeb3WalletId = null; /** @@ -91,8 +91,8 @@ class UpdateUserRequestBody * * @var ?string $username */ - #[\JMS\Serializer\Annotation\SerializedName('username')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('username')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $username = null; /** @@ -100,8 +100,8 @@ class UpdateUserRequestBody * * @var ?string $profileImageId */ - #[\JMS\Serializer\Annotation\SerializedName('profile_image_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('profile_image_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $profileImageId = null; /** @@ -111,8 +111,8 @@ class UpdateUserRequestBody * * @var ?string $password */ - #[\JMS\Serializer\Annotation\SerializedName('password')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $password = null; /** @@ -123,8 +123,8 @@ class UpdateUserRequestBody * * @var ?string $passwordDigest */ - #[\JMS\Serializer\Annotation\SerializedName('password_digest')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_digest')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $passwordDigest = null; /** @@ -246,9 +246,9 @@ class UpdateUserRequestBody * * @var ?UpdateUserPasswordHasher $passwordHasher */ - #[\JMS\Serializer\Annotation\SerializedName('password_hasher')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPasswordHasher|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('password_hasher')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPasswordHasher|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateUserPasswordHasher $passwordHasher = null; /** @@ -256,8 +256,8 @@ class UpdateUserRequestBody * * @var ?bool $skipPasswordChecks */ - #[\JMS\Serializer\Annotation\SerializedName('skip_password_checks')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('skip_password_checks')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $skipPasswordChecks = null; /** @@ -265,8 +265,8 @@ class UpdateUserRequestBody * * @var ?bool $signOutOfOtherSessions */ - #[\JMS\Serializer\Annotation\SerializedName('sign_out_of_other_sessions')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('sign_out_of_other_sessions')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $signOutOfOtherSessions = null; /** @@ -279,8 +279,8 @@ class UpdateUserRequestBody * * @var ?string $totpSecret */ - #[\JMS\Serializer\Annotation\SerializedName('totp_secret')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('totp_secret')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $totpSecret = null; /** @@ -290,9 +290,9 @@ class UpdateUserRequestBody * * @var ?array $backupCodes */ - #[\JMS\Serializer\Annotation\SerializedName('backup_codes')] - #[\JMS\Serializer\Annotation\Type('array|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('backup_codes')] + #[\Speakeasy\Serializer\Annotation\Type('array|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?array $backupCodes = null; /** @@ -300,9 +300,9 @@ class UpdateUserRequestBody * * @var ?UpdateUserPublicMetadata $publicMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('public_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPublicMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('public_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPublicMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateUserPublicMetadata $publicMetadata = null; /** @@ -310,9 +310,9 @@ class UpdateUserRequestBody * * @var ?UpdateUserPrivateMetadata $privateMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('private_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPrivateMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('private_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserPrivateMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateUserPrivateMetadata $privateMetadata = null; /** @@ -322,9 +322,9 @@ class UpdateUserRequestBody * * @var ?UpdateUserUnsafeMetadata $unsafeMetadata */ - #[\JMS\Serializer\Annotation\SerializedName('unsafe_metadata')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserUnsafeMetadata|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('unsafe_metadata')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\UpdateUserUnsafeMetadata|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?UpdateUserUnsafeMetadata $unsafeMetadata = null; /** @@ -332,8 +332,8 @@ class UpdateUserRequestBody * * @var ?bool $deleteSelfEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('delete_self_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('delete_self_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $deleteSelfEnabled = null; /** @@ -341,8 +341,8 @@ class UpdateUserRequestBody * * @var ?bool $createOrganizationEnabled */ - #[\JMS\Serializer\Annotation\SerializedName('create_organization_enabled')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('create_organization_enabled')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $createOrganizationEnabled = null; /** @@ -350,57 +350,57 @@ class UpdateUserRequestBody * * @var ?string $createdAt */ - #[\JMS\Serializer\Annotation\SerializedName('created_at')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('created_at')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $createdAt = null; /** - * @param ?string $externalId - * @param ?string $firstName - * @param ?string $lastName * @param ?string $primaryEmailAddressId * @param ?bool $notifyPrimaryEmailAddressChanged * @param ?string $primaryPhoneNumberId * @param ?string $primaryWeb3WalletId - * @param ?string $username - * @param ?string $profileImageId - * @param ?string $password * @param ?string $passwordDigest * @param ?UpdateUserPasswordHasher $passwordHasher - * @param ?bool $skipPasswordChecks - * @param ?bool $signOutOfOtherSessions * @param ?string $totpSecret * @param ?array $backupCodes * @param ?UpdateUserPublicMetadata $publicMetadata * @param ?UpdateUserPrivateMetadata $privateMetadata * @param ?UpdateUserUnsafeMetadata $unsafeMetadata + * @param ?string $createdAt + * @param ?string $externalId + * @param ?string $firstName + * @param ?string $lastName + * @param ?string $username + * @param ?string $profileImageId + * @param ?string $password + * @param ?bool $skipPasswordChecks + * @param ?bool $signOutOfOtherSessions * @param ?bool $deleteSelfEnabled * @param ?bool $createOrganizationEnabled - * @param ?string $createdAt */ - public function __construct(?string $externalId = null, ?string $firstName = null, ?string $lastName = null, ?string $primaryEmailAddressId = null, ?bool $notifyPrimaryEmailAddressChanged = null, ?string $primaryPhoneNumberId = null, ?string $primaryWeb3WalletId = null, ?string $username = null, ?string $profileImageId = null, ?string $password = null, ?string $passwordDigest = null, ?UpdateUserPasswordHasher $passwordHasher = null, ?bool $skipPasswordChecks = null, ?bool $signOutOfOtherSessions = null, ?string $totpSecret = null, ?array $backupCodes = null, ?UpdateUserPublicMetadata $publicMetadata = null, ?UpdateUserPrivateMetadata $privateMetadata = null, ?UpdateUserUnsafeMetadata $unsafeMetadata = null, ?bool $deleteSelfEnabled = null, ?bool $createOrganizationEnabled = null, ?string $createdAt = null) + public function __construct(?string $primaryEmailAddressId = null, ?string $primaryPhoneNumberId = null, ?string $primaryWeb3WalletId = null, ?string $passwordDigest = null, ?UpdateUserPasswordHasher $passwordHasher = null, ?string $totpSecret = null, ?array $backupCodes = null, ?UpdateUserPublicMetadata $publicMetadata = null, ?UpdateUserPrivateMetadata $privateMetadata = null, ?UpdateUserUnsafeMetadata $unsafeMetadata = null, ?string $createdAt = null, ?string $externalId = null, ?string $firstName = null, ?string $lastName = null, ?string $username = null, ?string $profileImageId = null, ?string $password = null, ?bool $skipPasswordChecks = null, ?bool $signOutOfOtherSessions = null, ?bool $deleteSelfEnabled = null, ?bool $createOrganizationEnabled = null, ?bool $notifyPrimaryEmailAddressChanged = false) { - $this->externalId = $externalId; - $this->firstName = $firstName; - $this->lastName = $lastName; $this->primaryEmailAddressId = $primaryEmailAddressId; $this->notifyPrimaryEmailAddressChanged = $notifyPrimaryEmailAddressChanged; $this->primaryPhoneNumberId = $primaryPhoneNumberId; $this->primaryWeb3WalletId = $primaryWeb3WalletId; - $this->username = $username; - $this->profileImageId = $profileImageId; - $this->password = $password; $this->passwordDigest = $passwordDigest; $this->passwordHasher = $passwordHasher; - $this->skipPasswordChecks = $skipPasswordChecks; - $this->signOutOfOtherSessions = $signOutOfOtherSessions; $this->totpSecret = $totpSecret; $this->backupCodes = $backupCodes; $this->publicMetadata = $publicMetadata; $this->privateMetadata = $privateMetadata; $this->unsafeMetadata = $unsafeMetadata; + $this->createdAt = $createdAt; + $this->externalId = $externalId; + $this->firstName = $firstName; + $this->lastName = $lastName; + $this->username = $username; + $this->profileImageId = $profileImageId; + $this->password = $password; + $this->skipPasswordChecks = $skipPasswordChecks; + $this->signOutOfOtherSessions = $signOutOfOtherSessions; $this->deleteSelfEnabled = $deleteSelfEnabled; $this->createOrganizationEnabled = $createOrganizationEnabled; - $this->createdAt = $createdAt; } } \ No newline at end of file diff --git a/src/Models/Operations/UpdateUserResponse.php b/src/Models/Operations/UpdateUserResponse.php index f2592f5..fc3e9db 100644 --- a/src/Models/Operations/UpdateUserResponse.php +++ b/src/Models/Operations/UpdateUserResponse.php @@ -40,12 +40,12 @@ class UpdateUserResponse public ?Components\User $user = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\User $user */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\User $user = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\User $user = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UploadOrganizationLogoFile.php b/src/Models/Operations/UploadOrganizationLogoFile.php index 8641154..07c04f1 100644 --- a/src/Models/Operations/UploadOrganizationLogoFile.php +++ b/src/Models/Operations/UploadOrganizationLogoFile.php @@ -26,10 +26,10 @@ class UploadOrganizationLogoFile public string $content; /** - * @param ?string $fileName - * @param ?string $content + * @param string $fileName + * @param string $content */ - public function __construct(?string $fileName = null, ?string $content = null) + public function __construct(string $fileName, string $content) { $this->fileName = $fileName; $this->content = $content; diff --git a/src/Models/Operations/UploadOrganizationLogoRequest.php b/src/Models/Operations/UploadOrganizationLogoRequest.php index 10870df..d3671a5 100644 --- a/src/Models/Operations/UploadOrganizationLogoRequest.php +++ b/src/Models/Operations/UploadOrganizationLogoRequest.php @@ -27,10 +27,10 @@ class UploadOrganizationLogoRequest public ?UploadOrganizationLogoRequestBody $requestBody = null; /** - * @param ?string $organizationId + * @param string $organizationId * @param ?UploadOrganizationLogoRequestBody $requestBody */ - public function __construct(?string $organizationId = null, ?UploadOrganizationLogoRequestBody $requestBody = null) + public function __construct(string $organizationId, ?UploadOrganizationLogoRequestBody $requestBody = null) { $this->organizationId = $organizationId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/UploadOrganizationLogoRequestBody.php b/src/Models/Operations/UploadOrganizationLogoRequestBody.php index 7da4a1e..9a90bf7 100644 --- a/src/Models/Operations/UploadOrganizationLogoRequestBody.php +++ b/src/Models/Operations/UploadOrganizationLogoRequestBody.php @@ -27,10 +27,10 @@ class UploadOrganizationLogoRequestBody public UploadOrganizationLogoFile $file; /** - * @param ?string $uploaderUserId - * @param ?UploadOrganizationLogoFile $file + * @param string $uploaderUserId + * @param UploadOrganizationLogoFile $file */ - public function __construct(?string $uploaderUserId = null, ?UploadOrganizationLogoFile $file = null) + public function __construct(string $uploaderUserId, UploadOrganizationLogoFile $file) { $this->uploaderUserId = $uploaderUserId; $this->file = $file; diff --git a/src/Models/Operations/UploadOrganizationLogoResponse.php b/src/Models/Operations/UploadOrganizationLogoResponse.php index bebf365..98e18ea 100644 --- a/src/Models/Operations/UploadOrganizationLogoResponse.php +++ b/src/Models/Operations/UploadOrganizationLogoResponse.php @@ -40,12 +40,12 @@ class UploadOrganizationLogoResponse public ?Components\OrganizationWithLogo $organizationWithLogo = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationWithLogo $organizationWithLogo */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationWithLogo $organizationWithLogo = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationWithLogo $organizationWithLogo = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UpsertTemplateRequest.php b/src/Models/Operations/UpsertTemplateRequest.php index f649750..6c2f20a 100644 --- a/src/Models/Operations/UpsertTemplateRequest.php +++ b/src/Models/Operations/UpsertTemplateRequest.php @@ -35,11 +35,11 @@ class UpsertTemplateRequest public ?UpsertTemplateRequestBody $requestBody = null; /** - * @param ?UpsertTemplatePathParamTemplateType $templateType - * @param ?string $slug + * @param UpsertTemplatePathParamTemplateType $templateType + * @param string $slug * @param ?UpsertTemplateRequestBody $requestBody */ - public function __construct(?UpsertTemplatePathParamTemplateType $templateType = null, ?string $slug = null, ?UpsertTemplateRequestBody $requestBody = null) + public function __construct(UpsertTemplatePathParamTemplateType $templateType, string $slug, ?UpsertTemplateRequestBody $requestBody = null) { $this->templateType = $templateType; $this->slug = $slug; diff --git a/src/Models/Operations/UpsertTemplateRequestBody.php b/src/Models/Operations/UpsertTemplateRequestBody.php index d2804b6..03c14b9 100644 --- a/src/Models/Operations/UpsertTemplateRequestBody.php +++ b/src/Models/Operations/UpsertTemplateRequestBody.php @@ -16,8 +16,8 @@ class UpsertTemplateRequestBody * * @var ?string $name */ - #[\JMS\Serializer\Annotation\SerializedName('name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $name = null; /** @@ -27,8 +27,8 @@ class UpsertTemplateRequestBody * * @var ?string $subject */ - #[\JMS\Serializer\Annotation\SerializedName('subject')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('subject')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $subject = null; /** @@ -36,8 +36,8 @@ class UpsertTemplateRequestBody * * @var ?string $markup */ - #[\JMS\Serializer\Annotation\SerializedName('markup')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('markup')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $markup = null; /** @@ -45,8 +45,8 @@ class UpsertTemplateRequestBody * * @var ?string $body */ - #[\JMS\Serializer\Annotation\SerializedName('body')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('body')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $body = null; /** @@ -54,8 +54,8 @@ class UpsertTemplateRequestBody * * @var ?bool $deliveredByClerk */ - #[\JMS\Serializer\Annotation\SerializedName('delivered_by_clerk')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('delivered_by_clerk')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $deliveredByClerk = null; /** @@ -66,8 +66,8 @@ class UpsertTemplateRequestBody * * @var ?string $fromEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('from_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('from_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $fromEmailName = null; /** @@ -78,27 +78,27 @@ class UpsertTemplateRequestBody * * @var ?string $replyToEmailName */ - #[\JMS\Serializer\Annotation\SerializedName('reply_to_email_name')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('reply_to_email_name')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $replyToEmailName = null; /** * @param ?string $name - * @param ?string $subject - * @param ?string $markup * @param ?string $body - * @param ?bool $deliveredByClerk * @param ?string $fromEmailName * @param ?string $replyToEmailName + * @param ?string $subject + * @param ?string $markup + * @param ?bool $deliveredByClerk */ - public function __construct(?string $name = null, ?string $subject = null, ?string $markup = null, ?string $body = null, ?bool $deliveredByClerk = null, ?string $fromEmailName = null, ?string $replyToEmailName = null) + public function __construct(?string $name = null, ?string $body = null, ?string $fromEmailName = null, ?string $replyToEmailName = null, ?string $subject = null, ?string $markup = null, ?bool $deliveredByClerk = null) { $this->name = $name; - $this->subject = $subject; - $this->markup = $markup; $this->body = $body; - $this->deliveredByClerk = $deliveredByClerk; $this->fromEmailName = $fromEmailName; $this->replyToEmailName = $replyToEmailName; + $this->subject = $subject; + $this->markup = $markup; + $this->deliveredByClerk = $deliveredByClerk; } } \ No newline at end of file diff --git a/src/Models/Operations/UpsertTemplateResponse.php b/src/Models/Operations/UpsertTemplateResponse.php index ecc481e..c419c11 100644 --- a/src/Models/Operations/UpsertTemplateResponse.php +++ b/src/Models/Operations/UpsertTemplateResponse.php @@ -40,12 +40,12 @@ class UpsertTemplateResponse public ?Components\Template $template = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Template $template */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Template $template = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Template $template = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/UsersGetOrganizationMembershipsRequest.php b/src/Models/Operations/UsersGetOrganizationMembershipsRequest.php index 32be932..9062751 100644 --- a/src/Models/Operations/UsersGetOrganizationMembershipsRequest.php +++ b/src/Models/Operations/UsersGetOrganizationMembershipsRequest.php @@ -41,11 +41,11 @@ class UsersGetOrganizationMembershipsRequest public ?float $offset = null; /** - * @param ?string $userId + * @param string $userId * @param ?float $limit * @param ?float $offset */ - public function __construct(?string $userId = null, ?float $limit = null, ?float $offset = null) + public function __construct(string $userId, ?float $limit = 10, ?float $offset = 0) { $this->userId = $userId; $this->limit = $limit; diff --git a/src/Models/Operations/UsersGetOrganizationMembershipsResponse.php b/src/Models/Operations/UsersGetOrganizationMembershipsResponse.php index 4f8b66a..90150e0 100644 --- a/src/Models/Operations/UsersGetOrganizationMembershipsResponse.php +++ b/src/Models/Operations/UsersGetOrganizationMembershipsResponse.php @@ -40,12 +40,12 @@ class UsersGetOrganizationMembershipsResponse public ?Components\OrganizationMemberships $organizationMemberships = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\OrganizationMemberships $organizationMemberships */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\OrganizationMemberships $organizationMemberships = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\OrganizationMemberships $organizationMemberships = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyClientRequestBody.php b/src/Models/Operations/VerifyClientRequestBody.php index 181eea2..ba04bb3 100644 --- a/src/Models/Operations/VerifyClientRequestBody.php +++ b/src/Models/Operations/VerifyClientRequestBody.php @@ -17,8 +17,8 @@ class VerifyClientRequestBody * * @var ?string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $token = null; /** diff --git a/src/Models/Operations/VerifyClientResponse.php b/src/Models/Operations/VerifyClientResponse.php index d9ea25f..b16d452 100644 --- a/src/Models/Operations/VerifyClientResponse.php +++ b/src/Models/Operations/VerifyClientResponse.php @@ -40,12 +40,12 @@ class VerifyClientResponse public ?Components\Client $client = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Client $client */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Client $client = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Client $client = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyDomainProxyRequestBody.php b/src/Models/Operations/VerifyDomainProxyRequestBody.php index ca9b11c..acaf4a4 100644 --- a/src/Models/Operations/VerifyDomainProxyRequestBody.php +++ b/src/Models/Operations/VerifyDomainProxyRequestBody.php @@ -16,8 +16,8 @@ class VerifyDomainProxyRequestBody * * @var ?string $domainId */ - #[\JMS\Serializer\Annotation\SerializedName('domain_id')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('domain_id')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $domainId = null; /** @@ -25,8 +25,8 @@ class VerifyDomainProxyRequestBody * * @var ?string $proxyUrl */ - #[\JMS\Serializer\Annotation\SerializedName('proxy_url')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('proxy_url')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $proxyUrl = null; /** diff --git a/src/Models/Operations/VerifyDomainProxyResponse.php b/src/Models/Operations/VerifyDomainProxyResponse.php index 81d67b8..061750a 100644 --- a/src/Models/Operations/VerifyDomainProxyResponse.php +++ b/src/Models/Operations/VerifyDomainProxyResponse.php @@ -40,12 +40,12 @@ class VerifyDomainProxyResponse public ?Components\ProxyCheck $proxyCheck = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\ProxyCheck $proxyCheck */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\ProxyCheck $proxyCheck = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ProxyCheck $proxyCheck = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyPasswordRequest.php b/src/Models/Operations/VerifyPasswordRequest.php index 5a0531b..5c20a52 100644 --- a/src/Models/Operations/VerifyPasswordRequest.php +++ b/src/Models/Operations/VerifyPasswordRequest.php @@ -27,10 +27,10 @@ class VerifyPasswordRequest public ?VerifyPasswordRequestBody $requestBody = null; /** - * @param ?string $userId + * @param string $userId * @param ?VerifyPasswordRequestBody $requestBody */ - public function __construct(?string $userId = null, ?VerifyPasswordRequestBody $requestBody = null) + public function __construct(string $userId, ?VerifyPasswordRequestBody $requestBody = null) { $this->userId = $userId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/VerifyPasswordRequestBody.php b/src/Models/Operations/VerifyPasswordRequestBody.php index 6d45375..c9044ae 100644 --- a/src/Models/Operations/VerifyPasswordRequestBody.php +++ b/src/Models/Operations/VerifyPasswordRequestBody.php @@ -16,13 +16,13 @@ class VerifyPasswordRequestBody * * @var string $password */ - #[\JMS\Serializer\Annotation\SerializedName('password')] + #[\Speakeasy\Serializer\Annotation\SerializedName('password')] public string $password; /** - * @param ?string $password + * @param string $password */ - public function __construct(?string $password = null) + public function __construct(string $password) { $this->password = $password; } diff --git a/src/Models/Operations/VerifyPasswordResponse.php b/src/Models/Operations/VerifyPasswordResponse.php index ac5b701..9efd1a5 100644 --- a/src/Models/Operations/VerifyPasswordResponse.php +++ b/src/Models/Operations/VerifyPasswordResponse.php @@ -40,12 +40,12 @@ class VerifyPasswordResponse public ?VerifyPasswordResponseBody $object = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?VerifyPasswordResponseBody $object */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?VerifyPasswordResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?VerifyPasswordResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyPasswordResponseBody.php b/src/Models/Operations/VerifyPasswordResponseBody.php index a6f9b24..a97a92c 100644 --- a/src/Models/Operations/VerifyPasswordResponseBody.php +++ b/src/Models/Operations/VerifyPasswordResponseBody.php @@ -16,8 +16,8 @@ class VerifyPasswordResponseBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** diff --git a/src/Models/Operations/VerifySessionRequest.php b/src/Models/Operations/VerifySessionRequest.php index 6c7b4a0..08be658 100644 --- a/src/Models/Operations/VerifySessionRequest.php +++ b/src/Models/Operations/VerifySessionRequest.php @@ -28,10 +28,10 @@ class VerifySessionRequest public ?VerifySessionRequestBody $requestBody = null; /** - * @param ?string $sessionId + * @param string $sessionId * @param ?VerifySessionRequestBody $requestBody */ - public function __construct(?string $sessionId = null, ?VerifySessionRequestBody $requestBody = null) + public function __construct(string $sessionId, ?VerifySessionRequestBody $requestBody = null) { $this->sessionId = $sessionId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/VerifySessionRequestBody.php b/src/Models/Operations/VerifySessionRequestBody.php index 1591770..9799c75 100644 --- a/src/Models/Operations/VerifySessionRequestBody.php +++ b/src/Models/Operations/VerifySessionRequestBody.php @@ -19,8 +19,8 @@ class VerifySessionRequestBody * * @var ?string $token */ - #[\JMS\Serializer\Annotation\SerializedName('token')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('token')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?string $token = null; /** diff --git a/src/Models/Operations/VerifySessionResponse.php b/src/Models/Operations/VerifySessionResponse.php index c696a7e..edb000e 100644 --- a/src/Models/Operations/VerifySessionResponse.php +++ b/src/Models/Operations/VerifySessionResponse.php @@ -40,12 +40,12 @@ class VerifySessionResponse public ?Components\Session $session = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\Session $session */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?Components\Session $session = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\Session $session = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyTOTPRequest.php b/src/Models/Operations/VerifyTOTPRequest.php index 89eb166..7599cff 100644 --- a/src/Models/Operations/VerifyTOTPRequest.php +++ b/src/Models/Operations/VerifyTOTPRequest.php @@ -27,10 +27,10 @@ class VerifyTOTPRequest public ?VerifyTOTPRequestBody $requestBody = null; /** - * @param ?string $userId + * @param string $userId * @param ?VerifyTOTPRequestBody $requestBody */ - public function __construct(?string $userId = null, ?VerifyTOTPRequestBody $requestBody = null) + public function __construct(string $userId, ?VerifyTOTPRequestBody $requestBody = null) { $this->userId = $userId; $this->requestBody = $requestBody; diff --git a/src/Models/Operations/VerifyTOTPRequestBody.php b/src/Models/Operations/VerifyTOTPRequestBody.php index 714c602..4abbefe 100644 --- a/src/Models/Operations/VerifyTOTPRequestBody.php +++ b/src/Models/Operations/VerifyTOTPRequestBody.php @@ -16,13 +16,13 @@ class VerifyTOTPRequestBody * * @var string $code */ - #[\JMS\Serializer\Annotation\SerializedName('code')] + #[\Speakeasy\Serializer\Annotation\SerializedName('code')] public string $code; /** - * @param ?string $code + * @param string $code */ - public function __construct(?string $code = null) + public function __construct(string $code) { $this->code = $code; } diff --git a/src/Models/Operations/VerifyTOTPResponse.php b/src/Models/Operations/VerifyTOTPResponse.php index 1c9d5d4..193da95 100644 --- a/src/Models/Operations/VerifyTOTPResponse.php +++ b/src/Models/Operations/VerifyTOTPResponse.php @@ -40,12 +40,12 @@ class VerifyTOTPResponse public ?VerifyTOTPResponseBody $object = null; /** - * @param ?string $contentType - * @param ?int $statusCode - * @param ?\Psr\Http\Message\ResponseInterface $rawResponse + * @param string $contentType + * @param int $statusCode + * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?VerifyTOTPResponseBody $object */ - public function __construct(?string $contentType = null, ?int $statusCode = null, ?\Psr\Http\Message\ResponseInterface $rawResponse = null, ?VerifyTOTPResponseBody $object = null) + public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?VerifyTOTPResponseBody $object = null) { $this->contentType = $contentType; $this->statusCode = $statusCode; diff --git a/src/Models/Operations/VerifyTOTPResponseBody.php b/src/Models/Operations/VerifyTOTPResponseBody.php index 80cf858..0341a5a 100644 --- a/src/Models/Operations/VerifyTOTPResponseBody.php +++ b/src/Models/Operations/VerifyTOTPResponseBody.php @@ -16,17 +16,17 @@ class VerifyTOTPResponseBody * * @var ?bool $verified */ - #[\JMS\Serializer\Annotation\SerializedName('verified')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('verified')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?bool $verified = null; /** * * @var ?CodeType $codeType */ - #[\JMS\Serializer\Annotation\SerializedName('code_type')] - #[\JMS\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CodeType|null')] - #[\JMS\Serializer\Annotation\SkipWhenEmpty] + #[\Speakeasy\Serializer\Annotation\SerializedName('code_type')] + #[\Speakeasy\Serializer\Annotation\Type('\Clerk\Backend\Models\Operations\CodeType|null')] + #[\Speakeasy\Serializer\Annotation\SkipWhenNull] public ?CodeType $codeType = null; /** diff --git a/src/OAuthApplications.php b/src/OAuthApplications.php index 9472821..d94c55c 100644 --- a/src/OAuthApplications.php +++ b/src/OAuthApplications.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class OAuthApplications { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -36,10 +35,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListOAuthApplicationsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listOAuthApplications( - ?float $limit = null, - ?float $offset = null, - ): Operations\ListOAuthApplicationsResponse { + public function listOAuthApplications(?float $limit = null, ?float $offset = null): Operations\ListOAuthApplicationsResponse + { $request = new Operations\ListOAuthApplicationsRequest( limit: $limit, offset: $offset, @@ -74,7 +71,7 @@ public function listOAuthApplications( } elseif (in_array($statusCode, [400, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors79', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -93,13 +90,12 @@ public function listOAuthApplications( * The callback URL must be a valid url. * All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc... * - * @param Operations\CreateOAuthApplicationRequestBody $request + * @param ?Operations\CreateOAuthApplicationRequestBody $request * @return Operations\CreateOAuthApplicationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createOAuthApplication( - ?Operations\CreateOAuthApplicationRequestBody $request, - ): Operations\CreateOAuthApplicationResponse { + public function createOAuthApplication(?Operations\CreateOAuthApplicationRequestBody $request = null): Operations\CreateOAuthApplicationResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/oauth_applications'); $options = ['http_errors' => false]; @@ -133,7 +129,7 @@ public function createOAuthApplication( } elseif (in_array($statusCode, [400, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors80', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -154,9 +150,8 @@ public function createOAuthApplication( * @return Operations\GetOAuthApplicationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getOAuthApplication( - string $oauthApplicationId, - ): Operations\GetOAuthApplicationResponse { + public function getOAuthApplication(string $oauthApplicationId): Operations\GetOAuthApplicationResponse + { $request = new Operations\GetOAuthApplicationRequest( oauthApplicationId: $oauthApplicationId, ); @@ -189,7 +184,7 @@ public function getOAuthApplication( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors81', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -206,15 +201,13 @@ public function getOAuthApplication( * * Updates an existing OAuth application * - * @param string $oauthApplicationId * @param Operations\UpdateOAuthApplicationRequestBody $requestBody + * @param string $oauthApplicationId * @return Operations\UpdateOAuthApplicationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateOAuthApplication( - string $oauthApplicationId, - Operations\UpdateOAuthApplicationRequestBody $requestBody, - ): Operations\UpdateOAuthApplicationResponse { + public function updateOAuthApplication(Operations\UpdateOAuthApplicationRequestBody $requestBody, string $oauthApplicationId): Operations\UpdateOAuthApplicationResponse + { $request = new Operations\UpdateOAuthApplicationRequest( oauthApplicationId: $oauthApplicationId, requestBody: $requestBody, @@ -253,7 +246,7 @@ public function updateOAuthApplication( } elseif (in_array($statusCode, [403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors82', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -275,9 +268,8 @@ public function updateOAuthApplication( * @return Operations\DeleteOAuthApplicationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteOAuthApplication( - string $oauthApplicationId, - ): Operations\DeleteOAuthApplicationResponse { + public function deleteOAuthApplication(string $oauthApplicationId): Operations\DeleteOAuthApplicationResponse + { $request = new Operations\DeleteOAuthApplicationRequest( oauthApplicationId: $oauthApplicationId, ); @@ -310,7 +302,7 @@ public function deleteOAuthApplication( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors83', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -332,9 +324,8 @@ public function deleteOAuthApplication( * @return Operations\RotateOAuthApplicationSecretResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function rotateOAuthApplicationSecret( - string $oauthApplicationId, - ): Operations\RotateOAuthApplicationSecretResponse { + public function rotateOAuthApplicationSecret(string $oauthApplicationId): Operations\RotateOAuthApplicationSecretResponse + { $request = new Operations\RotateOAuthApplicationSecretRequest( oauthApplicationId: $oauthApplicationId, ); @@ -367,7 +358,7 @@ public function rotateOAuthApplicationSecret( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors84', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -378,4 +369,5 @@ public function rotateOAuthApplicationSecret( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/OrganizationInvitations.php b/src/OrganizationInvitations.php index 0147821..952fe70 100644 --- a/src/OrganizationInvitations.php +++ b/src/OrganizationInvitations.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class OrganizationInvitations { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -43,15 +42,13 @@ public function __construct(SDKConfiguration $sdkConfig) * The public metadata are visible by both the Frontend and the Backend whereas the private ones only by the Backend. * When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. * - * @param string $organizationId * @param Operations\CreateOrganizationInvitationRequestBody $requestBody + * @param string $organizationId * @return Operations\CreateOrganizationInvitationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createOrganizationInvitation( - string $organizationId, - Operations\CreateOrganizationInvitationRequestBody $requestBody, - ): Operations\CreateOrganizationInvitationResponse { + public function createOrganizationInvitation(Operations\CreateOrganizationInvitationRequestBody $requestBody, string $organizationId): Operations\CreateOrganizationInvitationResponse + { $request = new Operations\CreateOrganizationInvitationRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -90,7 +87,7 @@ public function createOrganizationInvitation( } elseif (in_array($statusCode, [400, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors63', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -119,12 +116,8 @@ public function createOrganizationInvitation( * @return Operations\ListOrganizationInvitationsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listOrganizationInvitations( - string $organizationId, - ?float $limit = null, - ?float $offset = null, - ?Operations\ListOrganizationInvitationsQueryParamStatus $status = null, - ): Operations\ListOrganizationInvitationsResponse { + public function listOrganizationInvitations(string $organizationId, ?float $limit = null, ?float $offset = null, ?Operations\ListOrganizationInvitationsQueryParamStatus $status = null): Operations\ListOrganizationInvitationsResponse + { $request = new Operations\ListOrganizationInvitationsRequest( organizationId: $organizationId, limit: $limit, @@ -161,7 +154,7 @@ public function listOrganizationInvitations( } elseif (in_array($statusCode, [400, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors64', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -190,15 +183,13 @@ public function listOrganizationInvitations( * by both the Frontend and the Backend, whereas the private metadata are only visible by the Backend. * When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. * - * @param string $organizationId * @param array $requestBody + * @param string $organizationId * @return Operations\CreateOrganizationInvitationBulkResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createOrganizationInvitationBulk( - string $organizationId, - array $requestBody, - ): Operations\CreateOrganizationInvitationBulkResponse { + public function createOrganizationInvitationBulk(array $requestBody, string $organizationId): Operations\CreateOrganizationInvitationBulkResponse + { $request = new Operations\CreateOrganizationInvitationBulkRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -237,7 +228,7 @@ public function createOrganizationInvitationBulk( } elseif (in_array($statusCode, [400, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors65', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -266,11 +257,8 @@ public function createOrganizationInvitationBulk( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function listPendingOrganizationInvitations( - string $organizationId, - ?float $limit = null, - ?float $offset = null, - ): Operations\ListPendingOrganizationInvitationsResponse { + public function listPendingOrganizationInvitations(string $organizationId, ?float $limit = null, ?float $offset = null): Operations\ListPendingOrganizationInvitationsResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\ListPendingOrganizationInvitationsRequest( organizationId: $organizationId, @@ -307,7 +295,7 @@ public function listPendingOrganizationInvitations( } elseif (in_array($statusCode, [400, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors66', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -329,10 +317,8 @@ public function listPendingOrganizationInvitations( * @return Operations\GetOrganizationInvitationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getOrganizationInvitation( - string $organizationId, - string $invitationId, - ): Operations\GetOrganizationInvitationResponse { + public function getOrganizationInvitation(string $organizationId, string $invitationId): Operations\GetOrganizationInvitationResponse + { $request = new Operations\GetOrganizationInvitationRequest( organizationId: $organizationId, invitationId: $invitationId, @@ -366,7 +352,7 @@ public function getOrganizationInvitation( } elseif (in_array($statusCode, [400, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors67', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -387,17 +373,14 @@ public function getOrganizationInvitation( * The request needs the `requesting_user_id` parameter to specify the user which revokes the invitation. * Only users with "admin" role can revoke invitations. * + * @param Operations\RevokeOrganizationInvitationRequestBody $requestBody * @param string $organizationId * @param string $invitationId - * @param Operations\RevokeOrganizationInvitationRequestBody $requestBody * @return Operations\RevokeOrganizationInvitationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function revokeOrganizationInvitation( - string $organizationId, - string $invitationId, - Operations\RevokeOrganizationInvitationRequestBody $requestBody, - ): Operations\RevokeOrganizationInvitationResponse { + public function revokeOrganizationInvitation(Operations\RevokeOrganizationInvitationRequestBody $requestBody, string $organizationId, string $invitationId): Operations\RevokeOrganizationInvitationResponse + { $request = new Operations\RevokeOrganizationInvitationRequest( organizationId: $organizationId, invitationId: $invitationId, @@ -437,7 +420,7 @@ public function revokeOrganizationInvitation( } elseif (in_array($statusCode, [400, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors68', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -448,4 +431,5 @@ public function revokeOrganizationInvitation( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/OrganizationMemberships.php b/src/OrganizationMemberships.php index 4156e20..fa1a63e 100644 --- a/src/OrganizationMemberships.php +++ b/src/OrganizationMemberships.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class OrganizationMemberships { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -29,15 +28,13 @@ public function __construct(SDKConfiguration $sdkConfig) * Adds a user as a member to the given organization. * Only users in the same instance as the organization can be added as members. * - * @param string $organizationId * @param Operations\CreateOrganizationMembershipRequestBody $requestBody + * @param string $organizationId * @return Operations\CreateOrganizationMembershipResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createOrganizationMembership( - string $organizationId, - Operations\CreateOrganizationMembershipRequestBody $requestBody, - ): Operations\CreateOrganizationMembershipResponse { + public function createOrganizationMembership(Operations\CreateOrganizationMembershipRequestBody $requestBody, string $organizationId): Operations\CreateOrganizationMembershipResponse + { $request = new Operations\CreateOrganizationMembershipRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -76,7 +73,7 @@ public function createOrganizationMembership( } elseif (in_array($statusCode, [400, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors69', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -100,12 +97,8 @@ public function createOrganizationMembership( * @return Operations\ListOrganizationMembershipsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listOrganizationMemberships( - string $organizationId, - ?float $limit = null, - ?float $offset = null, - ?string $orderBy = null, - ): Operations\ListOrganizationMembershipsResponse { + public function listOrganizationMemberships(string $organizationId, ?float $limit = null, ?float $offset = null, ?string $orderBy = null): Operations\ListOrganizationMembershipsResponse + { $request = new Operations\ListOrganizationMembershipsRequest( organizationId: $organizationId, limit: $limit, @@ -142,7 +135,7 @@ public function listOrganizationMemberships( } elseif (in_array($statusCode, [401, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors70', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -159,17 +152,14 @@ public function listOrganizationMemberships( * * Updates the properties of an existing organization membership * + * @param Operations\UpdateOrganizationMembershipRequestBody $requestBody * @param string $organizationId * @param string $userId - * @param Operations\UpdateOrganizationMembershipRequestBody $requestBody * @return Operations\UpdateOrganizationMembershipResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateOrganizationMembership( - string $organizationId, - string $userId, - Operations\UpdateOrganizationMembershipRequestBody $requestBody, - ): Operations\UpdateOrganizationMembershipResponse { + public function updateOrganizationMembership(Operations\UpdateOrganizationMembershipRequestBody $requestBody, string $organizationId, string $userId): Operations\UpdateOrganizationMembershipResponse + { $request = new Operations\UpdateOrganizationMembershipRequest( organizationId: $organizationId, userId: $userId, @@ -209,7 +199,7 @@ public function updateOrganizationMembership( } elseif (in_array($statusCode, [400, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors71', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -231,10 +221,8 @@ public function updateOrganizationMembership( * @return Operations\DeleteOrganizationMembershipResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteOrganizationMembership( - string $organizationId, - string $userId, - ): Operations\DeleteOrganizationMembershipResponse { + public function deleteOrganizationMembership(string $organizationId, string $userId): Operations\DeleteOrganizationMembershipResponse + { $request = new Operations\DeleteOrganizationMembershipRequest( organizationId: $organizationId, userId: $userId, @@ -268,7 +256,7 @@ public function deleteOrganizationMembership( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors72', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -287,17 +275,14 @@ public function deleteOrganizationMembership( * Metadata values will be updated via a deep merge. Deep means that any nested JSON objects will be merged as well. * You can remove metadata keys at any level by setting their value to `null`. * + * @param Operations\UpdateOrganizationMembershipMetadataRequestBody $requestBody * @param string $organizationId * @param string $userId - * @param Operations\UpdateOrganizationMembershipMetadataRequestBody $requestBody * @return Operations\UpdateOrganizationMembershipMetadataResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateOrganizationMembershipMetadata( - string $organizationId, - string $userId, - Operations\UpdateOrganizationMembershipMetadataRequestBody $requestBody, - ): Operations\UpdateOrganizationMembershipMetadataResponse { + public function updateOrganizationMembershipMetadata(Operations\UpdateOrganizationMembershipMetadataRequestBody $requestBody, string $organizationId, string $userId): Operations\UpdateOrganizationMembershipMetadataResponse + { $request = new Operations\UpdateOrganizationMembershipMetadataRequest( organizationId: $organizationId, userId: $userId, @@ -337,7 +322,7 @@ public function updateOrganizationMembershipMetadata( } elseif (in_array($statusCode, [400, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors73', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -348,4 +333,5 @@ public function updateOrganizationMembershipMetadata( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Organizations.php b/src/Organizations.php index d914d48..1b02c25 100644 --- a/src/Organizations.php +++ b/src/Organizations.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Organizations { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,13 +30,12 @@ public function __construct(SDKConfiguration $sdkConfig) * The organizations are ordered by descending creation date. * Most recent organizations will be returned first. * - * @param Operations\ListOrganizationsRequest $request + * @param ?Operations\ListOrganizationsRequest $request * @return Operations\ListOrganizationsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listOrganizations( - ?Operations\ListOrganizationsRequest $request, - ): Operations\ListOrganizationsResponse { + public function listOrganizations(?Operations\ListOrganizationsRequest $request = null): Operations\ListOrganizationsResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/organizations'); $options = ['http_errors' => false]; @@ -68,7 +66,7 @@ public function listOrganizations( } elseif (in_array($statusCode, [400, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors57', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -93,13 +91,12 @@ public function listOrganizations( * Private metadata can only be accessed from the Backend API. * Public metadata can be accessed from the Backend API, and are read-only from the Frontend API. * - * @param Operations\CreateOrganizationRequestBody $request + * @param ?Operations\CreateOrganizationRequestBody $request * @return Operations\CreateOrganizationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createOrganization( - ?Operations\CreateOrganizationRequestBody $request, - ): Operations\CreateOrganizationResponse { + public function createOrganization(?Operations\CreateOrganizationRequestBody $request = null): Operations\CreateOrganizationResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/organizations'); $options = ['http_errors' => false]; @@ -133,7 +130,7 @@ public function createOrganization( } elseif (in_array($statusCode, [400, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors58', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -154,9 +151,8 @@ public function createOrganization( * @return Operations\GetOrganizationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getOrganization( - string $organizationId, - ): Operations\GetOrganizationResponse { + public function getOrganization(string $organizationId): Operations\GetOrganizationResponse + { $request = new Operations\GetOrganizationRequest( organizationId: $organizationId, ); @@ -189,7 +185,7 @@ public function getOrganization( } elseif (in_array($statusCode, [403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors59', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -206,15 +202,13 @@ public function getOrganization( * * Updates an existing organization * - * @param string $organizationId * @param Operations\UpdateOrganizationRequestBody $requestBody + * @param string $organizationId * @return Operations\UpdateOrganizationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateOrganization( - string $organizationId, - Operations\UpdateOrganizationRequestBody $requestBody, - ): Operations\UpdateOrganizationResponse { + public function updateOrganization(Operations\UpdateOrganizationRequestBody $requestBody, string $organizationId): Operations\UpdateOrganizationResponse + { $request = new Operations\UpdateOrganizationRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -253,7 +247,7 @@ public function updateOrganization( } elseif (in_array($statusCode, [402, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors60', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -276,9 +270,8 @@ public function updateOrganization( * @return Operations\DeleteOrganizationResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteOrganization( - string $organizationId, - ): Operations\DeleteOrganizationResponse { + public function deleteOrganization(string $organizationId): Operations\DeleteOrganizationResponse + { $request = new Operations\DeleteOrganizationRequest( organizationId: $organizationId, ); @@ -311,7 +304,7 @@ public function deleteOrganization( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors61', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -331,15 +324,13 @@ public function deleteOrganization( * Deep meaning that any nested JSON objects will be merged as well. * You can remove metadata keys at any level by setting their value to `null`. * - * @param string $organizationId * @param Operations\MergeOrganizationMetadataRequestBody $requestBody + * @param string $organizationId * @return Operations\MergeOrganizationMetadataResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function mergeOrganizationMetadata( - string $organizationId, - Operations\MergeOrganizationMetadataRequestBody $requestBody, - ): Operations\MergeOrganizationMetadataResponse { + public function mergeOrganizationMetadata(Operations\MergeOrganizationMetadataRequestBody $requestBody, string $organizationId): Operations\MergeOrganizationMetadataResponse + { $request = new Operations\MergeOrganizationMetadataRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -378,7 +369,7 @@ public function mergeOrganizationMetadata( } elseif (in_array($statusCode, [400, 401, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors61', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -403,10 +394,8 @@ public function mergeOrganizationMetadata( * @return Operations\UploadOrganizationLogoResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function uploadOrganizationLogo( - string $organizationId, - ?Operations\UploadOrganizationLogoRequestBody $requestBody = null, - ): Operations\UploadOrganizationLogoResponse { + public function uploadOrganizationLogo(string $organizationId, ?Operations\UploadOrganizationLogoRequestBody $requestBody = null): Operations\UploadOrganizationLogoResponse + { $request = new Operations\UploadOrganizationLogoRequest( organizationId: $organizationId, requestBody: $requestBody, @@ -444,7 +433,7 @@ public function uploadOrganizationLogo( } elseif (in_array($statusCode, [400, 403, 404, 413])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors62', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -463,9 +452,8 @@ public function uploadOrganizationLogo( * @return Operations\DeleteOrganizationLogoResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteOrganizationLogo( - string $organizationId, - ): Operations\DeleteOrganizationLogoResponse { + public function deleteOrganizationLogo(string $organizationId): Operations\DeleteOrganizationLogoResponse + { $request = new Operations\DeleteOrganizationLogoRequest( organizationId: $organizationId, ); @@ -498,7 +486,7 @@ public function deleteOrganizationLogo( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors63', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -509,4 +497,5 @@ public function deleteOrganizationLogo( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/PhoneNumbers.php b/src/PhoneNumbers.php index 5c93211..5a6c40c 100644 --- a/src/PhoneNumbers.php +++ b/src/PhoneNumbers.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class PhoneNumbers { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -28,13 +27,12 @@ public function __construct(SDKConfiguration $sdkConfig) * * Create a new phone number * - * @param Operations\CreatePhoneNumberRequestBody $request + * @param ?Operations\CreatePhoneNumberRequestBody $request * @return Operations\CreatePhoneNumberResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createPhoneNumber( - ?Operations\CreatePhoneNumberRequestBody $request, - ): Operations\CreatePhoneNumberResponse { + public function createPhoneNumber(?Operations\CreatePhoneNumberRequestBody $request = null): Operations\CreatePhoneNumberResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/phone_numbers'); $options = ['http_errors' => false]; @@ -68,7 +66,7 @@ public function createPhoneNumber( } elseif (in_array($statusCode, [400, 401, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors7', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -89,9 +87,8 @@ public function createPhoneNumber( * @return Operations\GetPhoneNumberResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getPhoneNumber( - string $phoneNumberId, - ): Operations\GetPhoneNumberResponse { + public function getPhoneNumber(string $phoneNumberId): Operations\GetPhoneNumberResponse + { $request = new Operations\GetPhoneNumberRequest( phoneNumberId: $phoneNumberId, ); @@ -124,7 +121,7 @@ public function getPhoneNumber( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors8', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -145,9 +142,8 @@ public function getPhoneNumber( * @return Operations\DeletePhoneNumberResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deletePhoneNumber( - string $phoneNumberId, - ): Operations\DeletePhoneNumberResponse { + public function deletePhoneNumber(string $phoneNumberId): Operations\DeletePhoneNumberResponse + { $request = new Operations\DeletePhoneNumberRequest( phoneNumberId: $phoneNumberId, ); @@ -180,7 +176,7 @@ public function deletePhoneNumber( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors9', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -202,10 +198,8 @@ public function deletePhoneNumber( * @return Operations\UpdatePhoneNumberResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updatePhoneNumber( - string $phoneNumberId, - ?Operations\UpdatePhoneNumberRequestBody $requestBody = null, - ): Operations\UpdatePhoneNumberResponse { + public function updatePhoneNumber(string $phoneNumberId, ?Operations\UpdatePhoneNumberRequestBody $requestBody = null): Operations\UpdatePhoneNumberResponse + { $request = new Operations\UpdatePhoneNumberRequest( phoneNumberId: $phoneNumberId, requestBody: $requestBody, @@ -243,7 +237,7 @@ public function updatePhoneNumber( } elseif (in_array($statusCode, [400, 401, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors10', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -254,4 +248,5 @@ public function updatePhoneNumber( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/ProxyChecks.php b/src/ProxyChecks.php index 71fec8a..90fcd16 100644 --- a/src/ProxyChecks.php +++ b/src/ProxyChecks.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class ProxyChecks { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -35,13 +34,12 @@ public function __construct(SDKConfiguration $sdkConfig) * The `proxy_url` parameter allows for testing proxy configurations for domains that don't have a proxy URL yet, or operate on * a different proxy URL than the one provided. It can also be used to re-validate a domain that is already configured to work with a proxy. * - * @param Operations\VerifyDomainProxyRequestBody $request + * @param ?Operations\VerifyDomainProxyRequestBody $request * @return Operations\VerifyDomainProxyResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function verifyDomainProxy( - ?Operations\VerifyDomainProxyRequestBody $request, - ): Operations\VerifyDomainProxyResponse { + public function verifyDomainProxy(?Operations\VerifyDomainProxyRequestBody $request = null): Operations\VerifyDomainProxyResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/proxy_checks'); $options = ['http_errors' => false]; @@ -75,7 +73,7 @@ public function verifyDomainProxy( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors74', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -86,4 +84,5 @@ public function verifyDomainProxy( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/RedirectURLs.php b/src/RedirectURLs.php index 31faf1d..51f37f3 100644 --- a/src/RedirectURLs.php +++ b/src/RedirectURLs.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class RedirectURLs { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,8 +30,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListRedirectURLsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listRedirectURLs( - ): Operations\ListRedirectURLsResponse { + public function listRedirectURLs(): Operations\ListRedirectURLsResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/redirect_urls'); $options = ['http_errors' => false]; @@ -71,13 +70,12 @@ public function listRedirectURLs( * * Create a redirect URL * - * @param Operations\CreateRedirectURLRequestBody $request + * @param ?Operations\CreateRedirectURLRequestBody $request * @return Operations\CreateRedirectURLResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createRedirectURL( - ?Operations\CreateRedirectURLRequestBody $request, - ): Operations\CreateRedirectURLResponse { + public function createRedirectURL(?Operations\CreateRedirectURLRequestBody $request = null): Operations\CreateRedirectURLResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/redirect_urls'); $options = ['http_errors' => false]; @@ -111,7 +109,7 @@ public function createRedirectURL( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors75', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -132,9 +130,8 @@ public function createRedirectURL( * @return Operations\GetRedirectURLResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getRedirectURL( - string $id, - ): Operations\GetRedirectURLResponse { + public function getRedirectURL(string $id): Operations\GetRedirectURLResponse + { $request = new Operations\GetRedirectURLRequest( id: $id, ); @@ -167,7 +164,7 @@ public function getRedirectURL( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors76', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -188,9 +185,8 @@ public function getRedirectURL( * @return Operations\DeleteRedirectURLResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteRedirectURL( - string $id, - ): Operations\DeleteRedirectURLResponse { + public function deleteRedirectURL(string $id): Operations\DeleteRedirectURLResponse + { $request = new Operations\DeleteRedirectURLRequest( id: $id, ); @@ -223,7 +219,7 @@ public function deleteRedirectURL( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors77', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -234,4 +230,5 @@ public function deleteRedirectURL( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/SAMLConnections.php b/src/SAMLConnections.php index 2285da3..968241b 100644 --- a/src/SAMLConnections.php +++ b/src/SAMLConnections.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class SAMLConnections { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -35,10 +34,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\ListSAMLConnectionsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function listSAMLConnections( - ?float $limit = null, - ?float $offset = null, - ): Operations\ListSAMLConnectionsResponse { + public function listSAMLConnections(?float $limit = null, ?float $offset = null): Operations\ListSAMLConnectionsResponse + { $request = new Operations\ListSAMLConnectionsRequest( limit: $limit, offset: $offset, @@ -73,7 +70,7 @@ public function listSAMLConnections( } elseif (in_array($statusCode, [402, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors85', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -90,13 +87,12 @@ public function listSAMLConnections( * * Create a new SAML Connection. * - * @param Operations\CreateSAMLConnectionRequestBody $request + * @param ?Operations\CreateSAMLConnectionRequestBody $request * @return Operations\CreateSAMLConnectionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createSAMLConnection( - ?Operations\CreateSAMLConnectionRequestBody $request, - ): Operations\CreateSAMLConnectionResponse { + public function createSAMLConnection(?Operations\CreateSAMLConnectionRequestBody $request = null): Operations\CreateSAMLConnectionResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/saml_connections'); $options = ['http_errors' => false]; @@ -130,7 +126,7 @@ public function createSAMLConnection( } elseif (in_array($statusCode, [402, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors86', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -151,9 +147,8 @@ public function createSAMLConnection( * @return Operations\GetSAMLConnectionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getSAMLConnection( - string $samlConnectionId, - ): Operations\GetSAMLConnectionResponse { + public function getSAMLConnection(string $samlConnectionId): Operations\GetSAMLConnectionResponse + { $request = new Operations\GetSAMLConnectionRequest( samlConnectionId: $samlConnectionId, ); @@ -186,7 +181,7 @@ public function getSAMLConnection( } elseif (in_array($statusCode, [402, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors87', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -203,15 +198,13 @@ public function getSAMLConnection( * * Updates the SAML Connection whose ID matches the provided `id` in the path. * - * @param string $samlConnectionId * @param Operations\UpdateSAMLConnectionRequestBody $requestBody + * @param string $samlConnectionId * @return Operations\UpdateSAMLConnectionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateSAMLConnection( - string $samlConnectionId, - Operations\UpdateSAMLConnectionRequestBody $requestBody, - ): Operations\UpdateSAMLConnectionResponse { + public function updateSAMLConnection(Operations\UpdateSAMLConnectionRequestBody $requestBody, string $samlConnectionId): Operations\UpdateSAMLConnectionResponse + { $request = new Operations\UpdateSAMLConnectionRequest( samlConnectionId: $samlConnectionId, requestBody: $requestBody, @@ -250,7 +243,7 @@ public function updateSAMLConnection( } elseif (in_array($statusCode, [402, 403, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors88', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -271,9 +264,8 @@ public function updateSAMLConnection( * @return Operations\DeleteSAMLConnectionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteSAMLConnection( - string $samlConnectionId, - ): Operations\DeleteSAMLConnectionResponse { + public function deleteSAMLConnection(string $samlConnectionId): Operations\DeleteSAMLConnectionResponse + { $request = new Operations\DeleteSAMLConnectionRequest( samlConnectionId: $samlConnectionId, ); @@ -306,7 +298,7 @@ public function deleteSAMLConnection( } elseif (in_array($statusCode, [402, 403, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors89', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -317,4 +309,5 @@ public function deleteSAMLConnection( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 1c44575..95ab36c 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = 'v1'; - public string $sdkVersion = '0.1.2'; + public string $sdkVersion = '0.2.0'; - public string $genVersion = '2.409.8'; + public string $genVersion = '2.445.1'; - public string $userAgent = 'speakeasy-sdk/php 0.1.2 2.409.8 v1 clerk/backend-php'; + public string $userAgent = 'speakeasy-sdk/php 0.2.0 2.445.1 v1 clerk/backend-php'; public function getServerUrl(): string { @@ -40,7 +40,11 @@ public function getServerUrl(): string return $this->serverUrl; } - return ClerkBackend::SERVERS[$this->serverIndex]; + if (isset(ClerkBackend::SERVERS[$this->serverIndex])) { + return ClerkBackend::SERVERS[$this->serverIndex]; + } else { + throw new \OutOfBoundsException('Server index '.$this->serverIndex.' is out of bounds'); + } } public function hasSecurity(): bool { diff --git a/src/Sessions.php b/src/Sessions.php index c5a7c9d..0d79f9b 100644 --- a/src/Sessions.php +++ b/src/Sessions.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Sessions { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,13 +30,12 @@ public function __construct(SDKConfiguration $sdkConfig) * **Deprecation Notice (2024-01-01):** All parameters were initially considered optional, however * moving forward at least one of `client_id` or `user_id` parameters should be provided. * - * @param Operations\GetSessionListRequest $request + * @param ?Operations\GetSessionListRequest $request * @return Operations\GetSessionListResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getSessionList( - ?Operations\GetSessionListRequest $request, - ): Operations\GetSessionListResponse { + public function getSessionList(?Operations\GetSessionListRequest $request = null): Operations\GetSessionListResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/sessions'); $options = ['http_errors' => false]; @@ -68,7 +66,7 @@ public function getSessionList( } elseif (in_array($statusCode, [400, 401, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors11', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -89,9 +87,8 @@ public function getSessionList( * @return Operations\GetSessionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getSession( - string $sessionId, - ): Operations\GetSessionResponse { + public function getSession(string $sessionId): Operations\GetSessionResponse + { $request = new Operations\GetSessionRequest( sessionId: $sessionId, ); @@ -124,7 +121,7 @@ public function getSession( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors12', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -146,9 +143,8 @@ public function getSession( * @return Operations\RevokeSessionResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function revokeSession( - string $sessionId, - ): Operations\RevokeSessionResponse { + public function revokeSession(string $sessionId): Operations\RevokeSessionResponse + { $request = new Operations\RevokeSessionRequest( sessionId: $sessionId, ); @@ -181,7 +177,7 @@ public function revokeSession( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors13', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -207,10 +203,8 @@ public function revokeSession( * @throws \Clerk\Backend\Models\Errors\SDKException * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function verifySession( - string $sessionId, - ?Operations\VerifySessionRequestBody $requestBody = null, - ): Operations\VerifySessionResponse { + public function verifySession(string $sessionId, ?Operations\VerifySessionRequestBody $requestBody = null): Operations\VerifySessionResponse + { trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $request = new Operations\VerifySessionRequest( sessionId: $sessionId, @@ -249,7 +243,7 @@ public function verifySession( } elseif (in_array($statusCode, [400, 401, 404, 410])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors14', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -271,10 +265,8 @@ public function verifySession( * @return Operations\CreateSessionTokenFromTemplateResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createSessionTokenFromTemplate( - string $sessionId, - string $templateName, - ): Operations\CreateSessionTokenFromTemplateResponse { + public function createSessionTokenFromTemplate(string $sessionId, string $templateName): Operations\CreateSessionTokenFromTemplateResponse + { $request = new Operations\CreateSessionTokenFromTemplateRequest( sessionId: $sessionId, templateName: $templateName, @@ -308,7 +300,7 @@ public function createSessionTokenFromTemplate( } elseif (in_array($statusCode, [401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors15', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -319,4 +311,5 @@ public function createSessionTokenFromTemplate( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/SignInTokens.php b/src/SignInTokens.php index d5c27ef..7ad515f 100644 --- a/src/SignInTokens.php +++ b/src/SignInTokens.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class SignInTokens { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -30,13 +29,12 @@ public function __construct(SDKConfiguration $sdkConfig) * By default, sign-in tokens expire in 30 days. * You can optionally supply a different duration in seconds using the `expires_in_seconds` property. * - * @param Operations\CreateSignInTokenRequestBody $request + * @param ?Operations\CreateSignInTokenRequestBody $request * @return Operations\CreateSignInTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createSignInToken( - ?Operations\CreateSignInTokenRequestBody $request, - ): Operations\CreateSignInTokenResponse { + public function createSignInToken(?Operations\CreateSignInTokenRequestBody $request = null): Operations\CreateSignInTokenResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/sign_in_tokens'); $options = ['http_errors' => false]; @@ -70,7 +68,7 @@ public function createSignInToken( } elseif (in_array($statusCode, [404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors77', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -91,9 +89,8 @@ public function createSignInToken( * @return Operations\RevokeSignInTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function revokeSignInToken( - string $signInTokenId, - ): Operations\RevokeSignInTokenResponse { + public function revokeSignInToken(string $signInTokenId): Operations\RevokeSignInTokenResponse + { $request = new Operations\RevokeSignInTokenRequest( signInTokenId: $signInTokenId, ); @@ -126,7 +123,7 @@ public function revokeSignInToken( } elseif (in_array($statusCode, [400, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors78', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -137,4 +134,5 @@ public function revokeSignInToken( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/SignUps.php b/src/SignUps.php index 3de4fc5..b483606 100644 --- a/src/SignUps.php +++ b/src/SignUps.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class SignUps { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -33,10 +32,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\UpdateSignUpResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateSignUp( - string $id, - ?Operations\UpdateSignUpRequestBody $requestBody = null, - ): Operations\UpdateSignUpResponse { + public function updateSignUp(string $id, ?Operations\UpdateSignUpRequestBody $requestBody = null): Operations\UpdateSignUpResponse + { $request = new Operations\UpdateSignUpRequest( id: $id, requestBody: $requestBody, @@ -74,7 +71,7 @@ public function updateSignUp( } elseif ($statusCode == 403) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors79', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -85,4 +82,5 @@ public function updateSignUp( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/TestingTokens.php b/src/TestingTokens.php index e978337..9197678 100644 --- a/src/TestingTokens.php +++ b/src/TestingTokens.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class TestingTokens { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,8 +30,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\CreateTestingTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createTestingToken( - ): Operations\CreateTestingTokenResponse { + public function createTestingToken(): Operations\CreateTestingTokenResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/testing_tokens'); $options = ['http_errors' => false]; @@ -65,4 +64,5 @@ public function createTestingToken( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Users.php b/src/Users.php index 6b0cf42..b83825b 100644 --- a/src/Users.php +++ b/src/Users.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Users { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -29,13 +28,12 @@ public function __construct(SDKConfiguration $sdkConfig) * Returns a list of all users. * The users are returned sorted by creation date, with the newest users appearing first. * - * @param Operations\GetUserListRequest $request + * @param ?Operations\GetUserListRequest $request * @return Operations\GetUserListResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getUserList( - ?Operations\GetUserListRequest $request, - ): Operations\GetUserListResponse { + public function getUserList(?Operations\GetUserListRequest $request = null): Operations\GetUserListResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/users'); $options = ['http_errors' => false]; @@ -66,7 +64,7 @@ public function getUserList( } elseif (in_array($statusCode, [400, 401, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors22', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -89,21 +87,19 @@ public function getUserList( * * A rate limit rule of 20 requests per 10 seconds is applied to this endpoint. * - * @param Operations\CreateUserRequestBody $request + * @param ?Operations\CreateUserRequestBody $request * @return Operations\CreateUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createUser( - Operations\CreateUserRequestBody $request, - ): Operations\CreateUserResponse { + public function createUser(?Operations\CreateUserRequestBody $request = null): Operations\CreateUserResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/users'); $options = ['http_errors' => false]; $body = Utils\Utils::serializeRequestBody($request, 'request', 'json'); - if ($body === null) { - throw new \Exception('Request body is required'); + if ($body !== null) { + $options = array_merge_recursive($options, $body); } - $options = array_merge_recursive($options, $body); $options['headers']['Accept'] = 'application/json'; $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; $httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url); @@ -130,7 +126,7 @@ public function createUser( } elseif (in_array($statusCode, [400, 401, 403, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors23', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -147,13 +143,12 @@ public function createUser( * * Returns a total count of all users that match the given filtering criteria. * - * @param Operations\GetUsersCountRequest $request + * @param ?Operations\GetUsersCountRequest $request * @return Operations\GetUsersCountResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getUsersCount( - ?Operations\GetUsersCountRequest $request, - ): Operations\GetUsersCountResponse { + public function getUsersCount(?Operations\GetUsersCountRequest $request = null): Operations\GetUsersCountResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/users/count'); $options = ['http_errors' => false]; @@ -184,7 +179,7 @@ public function getUsersCount( } elseif ($statusCode == 422) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors24', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -205,9 +200,8 @@ public function getUsersCount( * @return Operations\GetUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getUser( - string $userId, - ): Operations\GetUserResponse { + public function getUser(string $userId): Operations\GetUserResponse + { $request = new Operations\GetUserRequest( userId: $userId, ); @@ -240,7 +234,7 @@ public function getUser( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors25', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -268,15 +262,13 @@ public function getUser( * You can ignore the password policy checks for your instance by setting the `skip_password_checks` parameter to `true`. * You can also choose to sign the user out of all their active sessions on any device once the password is updated. Just set `sign_out_of_other_sessions` to `true`. * - * @param string $userId * @param Operations\UpdateUserRequestBody $requestBody + * @param string $userId * @return Operations\UpdateUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateUser( - string $userId, - Operations\UpdateUserRequestBody $requestBody, - ): Operations\UpdateUserResponse { + public function updateUser(Operations\UpdateUserRequestBody $requestBody, string $userId): Operations\UpdateUserResponse + { $request = new Operations\UpdateUserRequest( userId: $userId, requestBody: $requestBody, @@ -315,7 +307,7 @@ public function updateUser( } elseif (in_array($statusCode, [400, 401, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors26', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -336,9 +328,8 @@ public function updateUser( * @return Operations\DeleteUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteUser( - string $userId, - ): Operations\DeleteUserResponse { + public function deleteUser(string $userId): Operations\DeleteUserResponse + { $request = new Operations\DeleteUserRequest( userId: $userId, ); @@ -371,7 +362,7 @@ public function deleteUser( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors27', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -392,9 +383,8 @@ public function deleteUser( * @return Operations\BanUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function banUser( - string $userId, - ): Operations\BanUserResponse { + public function banUser(string $userId): Operations\BanUserResponse + { $request = new Operations\BanUserRequest( userId: $userId, ); @@ -427,7 +417,7 @@ public function banUser( } elseif ($statusCode == 402) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors28', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -448,9 +438,8 @@ public function banUser( * @return Operations\UnbanUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function unbanUser( - string $userId, - ): Operations\UnbanUserResponse { + public function unbanUser(string $userId): Operations\UnbanUserResponse + { $request = new Operations\UnbanUserRequest( userId: $userId, ); @@ -483,7 +472,7 @@ public function unbanUser( } elseif ($statusCode == 402) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors29', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -505,9 +494,8 @@ public function unbanUser( * @return Operations\LockUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function lockUser( - string $userId, - ): Operations\LockUserResponse { + public function lockUser(string $userId): Operations\LockUserResponse + { $request = new Operations\LockUserRequest( userId: $userId, ); @@ -540,7 +528,7 @@ public function lockUser( } elseif ($statusCode == 403) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors29', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -561,9 +549,8 @@ public function lockUser( * @return Operations\UnlockUserResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function unlockUser( - string $userId, - ): Operations\UnlockUserResponse { + public function unlockUser(string $userId): Operations\UnlockUserResponse + { $request = new Operations\UnlockUserRequest( userId: $userId, ); @@ -596,7 +583,7 @@ public function unlockUser( } elseif ($statusCode == 403) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors29', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -613,15 +600,13 @@ public function unlockUser( * * Update a user's profile image * - * @param string $userId * @param Operations\SetUserProfileImageRequestBody $requestBody + * @param string $userId * @return Operations\SetUserProfileImageResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function setUserProfileImage( - string $userId, - Operations\SetUserProfileImageRequestBody $requestBody, - ): Operations\SetUserProfileImageResponse { + public function setUserProfileImage(Operations\SetUserProfileImageRequestBody $requestBody, string $userId): Operations\SetUserProfileImageResponse + { $request = new Operations\SetUserProfileImageRequest( userId: $userId, requestBody: $requestBody, @@ -660,7 +645,7 @@ public function setUserProfileImage( } elseif (in_array($statusCode, [400, 401, 404])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors29', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -681,9 +666,8 @@ public function setUserProfileImage( * @return Operations\DeleteUserProfileImageResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteUserProfileImage( - string $userId, - ): Operations\DeleteUserProfileImageResponse { + public function deleteUserProfileImage(string $userId): Operations\DeleteUserProfileImageResponse + { $request = new Operations\DeleteUserProfileImageRequest( userId: $userId, ); @@ -716,7 +700,7 @@ public function deleteUserProfileImage( } elseif ($statusCode == 404) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors30', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -745,10 +729,8 @@ public function deleteUserProfileImage( * @return Operations\UpdateUserMetadataResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function updateUserMetadata( - string $userId, - ?Operations\UpdateUserMetadataRequestBody $requestBody = null, - ): Operations\UpdateUserMetadataResponse { + public function updateUserMetadata(string $userId, ?Operations\UpdateUserMetadataRequestBody $requestBody = null): Operations\UpdateUserMetadataResponse + { $request = new Operations\UpdateUserMetadataRequest( userId: $userId, requestBody: $requestBody, @@ -786,7 +768,7 @@ public function updateUserMetadata( } elseif (in_array($statusCode, [400, 401, 404, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors31', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -809,10 +791,8 @@ public function updateUserMetadata( * @return Operations\GetOAuthAccessTokenResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function getOAuthAccessToken( - string $userId, - string $provider, - ): Operations\GetOAuthAccessTokenResponse { + public function getOAuthAccessToken(string $userId, string $provider): Operations\GetOAuthAccessTokenResponse + { $request = new Operations\GetOAuthAccessTokenRequest( userId: $userId, provider: $provider, @@ -846,7 +826,7 @@ public function getOAuthAccessToken( } elseif (in_array($statusCode, [400, 422])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors32', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -869,11 +849,8 @@ public function getOAuthAccessToken( * @return Operations\UsersGetOrganizationMembershipsResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function usersGetOrganizationMemberships( - string $userId, - ?float $limit = null, - ?float $offset = null, - ): Operations\UsersGetOrganizationMembershipsResponse { + public function usersGetOrganizationMemberships(string $userId, ?float $limit = null, ?float $offset = null): Operations\UsersGetOrganizationMembershipsResponse + { $request = new Operations\UsersGetOrganizationMembershipsRequest( userId: $userId, limit: $limit, @@ -909,7 +886,7 @@ public function usersGetOrganizationMemberships( } elseif ($statusCode == 403) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors33', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -932,10 +909,8 @@ public function usersGetOrganizationMemberships( * @return Operations\VerifyPasswordResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function verifyPassword( - string $userId, - ?Operations\VerifyPasswordRequestBody $requestBody = null, - ): Operations\VerifyPasswordResponse { + public function verifyPassword(string $userId, ?Operations\VerifyPasswordRequestBody $requestBody = null): Operations\VerifyPasswordResponse + { $request = new Operations\VerifyPasswordRequest( userId: $userId, requestBody: $requestBody, @@ -975,7 +950,7 @@ public function verifyPassword( } elseif ($statusCode == 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors33', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -998,10 +973,8 @@ public function verifyPassword( * @return Operations\VerifyTOTPResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function verifyTOTP( - string $userId, - ?Operations\VerifyTOTPRequestBody $requestBody = null, - ): Operations\VerifyTOTPResponse { + public function verifyTOTP(string $userId, ?Operations\VerifyTOTPRequestBody $requestBody = null): Operations\VerifyTOTPResponse + { $request = new Operations\VerifyTOTPRequest( userId: $userId, requestBody: $requestBody, @@ -1041,7 +1014,7 @@ public function verifyTOTP( } elseif ($statusCode == 500) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors33', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -1060,9 +1033,8 @@ public function verifyTOTP( * @return Operations\DisableMFAResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function disableMFA( - string $userId, - ): Operations\DisableMFAResponse { + public function disableMFA(string $userId): Operations\DisableMFAResponse + { $request = new Operations\DisableMFARequest( userId: $userId, ); @@ -1095,7 +1067,7 @@ public function disableMFA( } elseif (in_array($statusCode, [404, 500])) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors33', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -1106,4 +1078,5 @@ public function disableMFA( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file diff --git a/src/Utils/BigDecimalHandler.php b/src/Utils/BigDecimalHandler.php new file mode 100644 index 0000000..5722704 --- /dev/null +++ b/src/Utils/BigDecimalHandler.php @@ -0,0 +1,65 @@ + GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\Math\\BigDecimal', + 'method' => 'serialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\Math\\BigDecimal', + 'method' => 'deserialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\Math\\BigDecimal', + 'method' => 'serialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\Math\\BigDecimal', + 'method' => 'deserialize', + ], + ]; + } + + /** @phpstan-ignore-next-line */ + public function serialize(JsonSerializationVisitor $visitor, \Brick\Math\BigDecimal|string $any, array $type, Context $context): string|float + { + if (gettype($any) == 'string') { + return $any; + } + + return (float) $any->__toString(); + } + + /** @phpstan-ignore-next-line */ + public function deserialize(JsonDeserializationVisitor $visitor, string|float $data, array $type, Context $context): mixed + { + return \Brick\Math\BigDecimal::of($data); + } +} diff --git a/src/Utils/BigIntHandler.php b/src/Utils/BigIntHandler.php new file mode 100644 index 0000000..966408d --- /dev/null +++ b/src/Utils/BigIntHandler.php @@ -0,0 +1,65 @@ + GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\Math\\BigInteger', + 'method' => 'serialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => '\\Brick\\Math\\BigInteger', + 'method' => 'deserialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\Math\\BigInteger', + 'method' => 'serialize', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\Math\\BigInteger', + 'method' => 'deserialize', + ], + ]; + } + + /** @phpstan-ignore-next-line */ + public function serialize(JsonSerializationVisitor $visitor, \Brick\Math\BigInteger|string $any, array $type, Context $context): string|int + { + if (gettype($any) == 'string') { + return $any; + } + + return (int) $any->toBase(10); + } + + /** @phpstan-ignore-next-line */ + public function deserialize(JsonDeserializationVisitor $visitor, string|int $data, array $type, Context $context): mixed + { + return \Brick\Math\BigInteger::of($data); + } +} diff --git a/src/Utils/DateHandler.php b/src/Utils/DateHandler.php index d37d898..f313dfa 100644 --- a/src/Utils/DateHandler.php +++ b/src/Utils/DateHandler.php @@ -8,11 +8,11 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Context; -use JMS\Serializer\GraphNavigator; -use JMS\Serializer\Handler\SubscribingHandlerInterface; -use JMS\Serializer\JsonDeserializationVisitor; -use JMS\Serializer\JsonSerializationVisitor; +use Speakeasy\Serializer\Context; +use Speakeasy\Serializer\GraphNavigator; +use Speakeasy\Serializer\Handler\SubscribingHandlerInterface; +use Speakeasy\Serializer\JsonDeserializationVisitor; +use Speakeasy\Serializer\JsonSerializationVisitor; class DateHandler implements SubscribingHandlerInterface { @@ -32,6 +32,18 @@ public static function getSubscribingMethods(): array 'type' => '\\Brick\\DateTime\\LocalDate', 'method' => 'deserializeDateTimeToJson', ], + [ + 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\DateTime\\LocalDate', + 'method' => 'serializeDateTimeToJson', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => 'Brick\\DateTime\\LocalDate', + 'method' => 'deserializeDateTimeToJson', + ], ]; } diff --git a/src/Utils/DateTimeHandler.php b/src/Utils/DateTimeHandler.php index 6bbfc59..bf343a6 100644 --- a/src/Utils/DateTimeHandler.php +++ b/src/Utils/DateTimeHandler.php @@ -8,11 +8,11 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Context; -use JMS\Serializer\GraphNavigator; -use JMS\Serializer\Handler\SubscribingHandlerInterface; -use JMS\Serializer\JsonDeserializationVisitor; -use JMS\Serializer\JsonSerializationVisitor; +use Speakeasy\Serializer\Context; +use Speakeasy\Serializer\GraphNavigator; +use Speakeasy\Serializer\Handler\SubscribingHandlerInterface; +use Speakeasy\Serializer\JsonDeserializationVisitor; +use Speakeasy\Serializer\JsonSerializationVisitor; class DateTimeHandler implements SubscribingHandlerInterface { @@ -32,6 +32,18 @@ public static function getSubscribingMethods(): array 'type' => '\DateTime', 'method' => 'deserializeDateTimeToJson', ], + [ + 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, + 'format' => 'json', + 'type' => 'DateTime', + 'method' => 'serializeDateTimeToJson', + ], + [ + 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, + 'format' => 'json', + 'type' => 'DateTime', + 'method' => 'deserializeDateTimeToJson', + ], ]; } diff --git a/src/Utils/DefaultRequest.php b/src/Utils/DefaultRequest.php new file mode 100644 index 0000000..45f0a3a --- /dev/null +++ b/src/Utils/DefaultRequest.php @@ -0,0 +1,106 @@ + $style = $parts[1], 'explode' => $explode = $parts[1] === 'true', 'dateTimeFormat' => $dateTimeFormat = $parts[1], + 'serializeToString' => $serializeToString = $parts[1] === 'true', default => throw new \RuntimeException('Invalid part'), }; } @@ -57,6 +60,7 @@ public static function parse(string $metadata): ?FormMetadata style: $style, explode: $explode, dateTimeFormat: $dateTimeFormat, + serializeToString: $serializeToString ); } } diff --git a/src/Utils/Headers.php b/src/Utils/Headers.php index 174a853..ef0f59d 100644 --- a/src/Utils/Headers.php +++ b/src/Utils/Headers.php @@ -68,17 +68,17 @@ private function serializeHeader(ParamsMetadata $metadata, mixed $value): string } if ($metadata->explode) { - $items[] = $fieldMetadata->name.'='.valToString($fieldValue, $fieldMetadata->dateTimeFormat); + $items[] = $fieldMetadata->name.'='.valToString($fieldValue, ['dateTimeFormat' => $fieldMetadata->dateTimeFormat]); } else { $items[] = $fieldMetadata->name; - $items[] = valToString($fieldValue, $fieldMetadata->dateTimeFormat); + $items[] = valToString($fieldValue, ['dateTimeFormat' => $fieldMetadata->dateTimeFormat]); } } return implode(',', $items); case 'array': if (array_is_list($value)) { - return implode(',', array_map(fn ($v) => valToString($v), $value)); + return implode(',', array_map(fn ($v) => valToString($v, []), $value)); } else { $items = []; @@ -88,17 +88,17 @@ private function serializeHeader(ParamsMetadata $metadata, mixed $value): string } if ($metadata->explode) { - $items[] = $field.'='.valToString($fieldValue); + $items[] = $field.'='.valToString($fieldValue, []); } else { $items[] = $field; - $items[] = valToString($fieldValue); + $items[] = valToString($fieldValue, []); } } return implode(',', $items); } default: - return valToString($value); + return valToString($value, []); } } diff --git a/src/Utils/JSON.php b/src/Utils/JSON.php index 9fad0b4..595c37f 100644 --- a/src/Utils/JSON.php +++ b/src/Utils/JSON.php @@ -9,16 +9,17 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Handler\ArrayCollectionHandler; -use JMS\Serializer\Handler\HandlerRegistry; -use JMS\Serializer\Handler\IteratorHandler; -use JMS\Serializer\Handler\StdClassHandler; -use JMS\Serializer\SerializerBuilder; +use Speakeasy\Serializer\Handler\ArrayCollectionHandler; +use Speakeasy\Serializer\Handler\HandlerRegistry; +use Speakeasy\Serializer\Handler\IteratorHandler; +use Speakeasy\Serializer\Handler\StdClassHandler; +use Speakeasy\Serializer\SerializationContext; +use Speakeasy\Serializer\SerializerBuilder; class JSON { - public static function createSerializer(): \JMS\Serializer\Serializer + public static function createSerializer(): \Speakeasy\Serializer\Serializer { return SerializerBuilder::create()->configureHandlers( static function (HandlerRegistry $registry): void { @@ -30,7 +31,13 @@ static function (HandlerRegistry $registry): void { $registry->registerSubscribingHandler(new DateTimeHandler()); $registry->registerSubscribingHandler(new DateHandler()); $registry->registerSubscribingHandler(new UnionHandler()); + $registry->registerSubscribingHandler(new BigIntHandler()); + $registry->registerSubscribingHandler(new BigDecimalHandler()); }, - )->setTypeParser(new PhpDocTypeParser())->build(); + )->setTypeParser(new PhpDocTypeParser() + )->setSerializationContextFactory(function () { + return SerializationContext::create() + ->setSerializeNull(true); + })->build(); } } diff --git a/src/Utils/MixedJSONHandler.php b/src/Utils/MixedJSONHandler.php index c2a38ba..94c1951 100644 --- a/src/Utils/MixedJSONHandler.php +++ b/src/Utils/MixedJSONHandler.php @@ -9,11 +9,11 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Context; -use JMS\Serializer\GraphNavigator; -use JMS\Serializer\Handler\SubscribingHandlerInterface; -use JMS\Serializer\JsonDeserializationVisitor; -use JMS\Serializer\JsonSerializationVisitor; +use Speakeasy\Serializer\Context; +use Speakeasy\Serializer\GraphNavigator; +use Speakeasy\Serializer\Handler\SubscribingHandlerInterface; +use Speakeasy\Serializer\JsonDeserializationVisitor; +use Speakeasy\Serializer\JsonSerializationVisitor; class MixedJSONHandler implements SubscribingHandlerInterface { diff --git a/src/Utils/MultipartMetadata.php b/src/Utils/MultipartMetadata.php index e69722e..23c3e02 100644 --- a/src/Utils/MultipartMetadata.php +++ b/src/Utils/MultipartMetadata.php @@ -16,6 +16,7 @@ private function __construct( public bool $content, public bool $json, public string $dateTimeFormat, + public bool $serializeToString ) { } @@ -32,6 +33,7 @@ public static function parse(string $metadata): ?MultipartMetadata $content = false; $json = false; $dateTimeFormat = ''; + $serializeToString = false; $options = explode(',', $metadata); @@ -47,6 +49,7 @@ public static function parse(string $metadata): ?MultipartMetadata 'content' => $content = $parts[1] === 'true', 'json' => $json = $parts[1] === 'true', 'dateTimeFormat' => $dateTimeFormat = $parts[1], + 'serializeToString' => $serializeToString = $parts[1] === 'true', default => throw new \RuntimeException('Failed to parse options.'), }; } @@ -57,6 +60,7 @@ public static function parse(string $metadata): ?MultipartMetadata content: $content, json: $json, dateTimeFormat: $dateTimeFormat, + serializeToString: $serializeToString ); } } diff --git a/src/Utils/ParamsMetadata.php b/src/Utils/ParamsMetadata.php index 9693d95..1cff5bb 100644 --- a/src/Utils/ParamsMetadata.php +++ b/src/Utils/ParamsMetadata.php @@ -17,6 +17,7 @@ private function __construct( public string $name, public string $serialization, public string $dateTimeFormat, + public bool $serializeToString ) { } @@ -36,6 +37,7 @@ public static function parse(string $metadata): ?ParamsMetadata $name = ''; $serialization = ''; $dateTimeFormat = ''; + $serializeToString = false; switch ($type) { case 'queryParam': @@ -66,6 +68,7 @@ public static function parse(string $metadata): ?ParamsMetadata 'explode' => $explode = $parts[1] === 'true', 'serialization' => $serialization = $parts[1], 'dateTimeFormat' => $dateTimeFormat = $parts[1], + 'serializeToString' => $serializeToString = $parts[1] === 'true', default => throw new \RuntimeException('Failed to parse options'), }; } @@ -77,6 +80,7 @@ public static function parse(string $metadata): ?ParamsMetadata name: $name, serialization: $serialization, dateTimeFormat: $dateTimeFormat, + serializeToString: $serializeToString ); } } diff --git a/src/Utils/PathParameters.php b/src/Utils/PathParameters.php index dc8edbe..b888fbc 100644 --- a/src/Utils/PathParameters.php +++ b/src/Utils/PathParameters.php @@ -82,9 +82,9 @@ private function parseSimplePathParams(ParamsMetadata $metadata, mixed $value): } if ($metadata->explode) { - $vals[] = sprintf('%s=%s', $fieldMetadata->name, valToString($fieldValue, $fieldMetadata->dateTimeFormat)); + $vals[] = sprintf('%s=%s', $fieldMetadata->name, valToString($fieldValue, ['dateTimeFormat' => $fieldMetadata->dateTimeFormat])); } else { - $vals[] = sprintf('%s,%s', $fieldMetadata->name, valToString($fieldValue, $fieldMetadata->dateTimeFormat)); + $vals[] = sprintf('%s,%s', $fieldMetadata->name, valToString($fieldValue, ['dateTimeFormat' => $fieldMetadata->dateTimeFormat])); } } @@ -95,14 +95,14 @@ private function parseSimplePathParams(ParamsMetadata $metadata, mixed $value): if (array_is_list($value)) { foreach ($value as $val) { - $vals[] = valToString($val); + $vals[] = valToString($val, []); } } else { foreach ($value as $key => $val) { if ($metadata->explode) { - $vals[] = sprintf('%s=%s', $key, valToString($val)); + $vals[] = sprintf('%s=%s', $key, valToString($val, [])); } else { - $vals[] = sprintf('%s,%s', $key, valToString($val)); + $vals[] = sprintf('%s,%s', $key, valToString($val, [])); } } } @@ -110,7 +110,7 @@ private function parseSimplePathParams(ParamsMetadata $metadata, mixed $value): $pathParams[$metadata->name] = implode(',', $vals); break; default: - $pathParams[$metadata->name] = valToString($value); + $pathParams[$metadata->name] = valToString($value, []); break; } diff --git a/src/Utils/PhpDocTypeParser.php b/src/Utils/PhpDocTypeParser.php index 2246b5c..d32c8c1 100644 --- a/src/Utils/PhpDocTypeParser.php +++ b/src/Utils/PhpDocTypeParser.php @@ -8,8 +8,8 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Type\ParserInterface; use phpDocumentor\Reflection\Type; +use Speakeasy\Serializer\Type\ParserInterface; /** * Class PhpDocTypeParser diff --git a/src/Utils/QueryParameters.php b/src/Utils/QueryParameters.php index 05e6bd3..1eb8294 100644 --- a/src/Utils/QueryParameters.php +++ b/src/Utils/QueryParameters.php @@ -110,10 +110,10 @@ private function parseDeepObjectParams(ParamsMetadata $metadata, mixed $value): if (is_array($val) && array_is_list($val)) { foreach ($val as $item) { - $items[] = valToString($item, $dateTimeFormat); + $items[] = valToString($item, ['dateTimeFormat' => $dateTimeFormat]); } } else { - $queryParams[$metadata->name.'['.$fieldMetaData->name.']'] = valToString($val, $dateTimeFormat); + $queryParams[$metadata->name.'['.$fieldMetaData->name.']'] = valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } if (count($items) > 0) { @@ -132,10 +132,10 @@ private function parseDeepObjectParams(ParamsMetadata $metadata, mixed $value): if (is_array($val) && array_is_list($val)) { foreach ($val as $item) { - $items[] = valToString($item, $dateTimeFormat); + $items[] = valToString($item, ['dateTimeFormat' => $dateTimeFormat]); } } else { - $queryParams[$metadata->name.'['.$key.']'] = valToString($val, $dateTimeFormat); + $queryParams[$metadata->name.'['.$key.']'] = valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } if (count($items) > 0) { @@ -178,9 +178,9 @@ private function parseDelimitedParams(ParamsMetadata $metadata, mixed $value, st $dateTimeFormat = $fieldMetaData->dateTimeFormat; if ($metadata->explode) { - $queryParams[$fieldMetaData->name] = valToString($val, $dateTimeFormat); + $queryParams[$fieldMetaData->name] = valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } else { - $items[] = $fieldMetaData->name.$delimiter.valToString($val, $dateTimeFormat); + $items[] = $fieldMetaData->name.$delimiter.valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } } @@ -195,9 +195,9 @@ private function parseDelimitedParams(ParamsMetadata $metadata, mixed $value, st foreach ($value as $item) { if ($metadata->explode) { - $values[] = valToString($item, $dateTimeFormat); + $values[] = valToString($item, ['dateTimeFormat' => $dateTimeFormat]); } else { - $items[] = valToString($item, $dateTimeFormat); + $items[] = valToString($item, ['dateTimeFormat' => $dateTimeFormat]); } } @@ -215,9 +215,9 @@ private function parseDelimitedParams(ParamsMetadata $metadata, mixed $value, st } if ($metadata->explode) { - $queryParams[$key] = valToString($val, $dateTimeFormat); + $queryParams[$key] = valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } else { - $items[] = $key.$delimiter.valToString($val, $dateTimeFormat); + $items[] = $key.$delimiter.valToString($val, ['dateTimeFormat' => $dateTimeFormat]); } } @@ -227,7 +227,7 @@ private function parseDelimitedParams(ParamsMetadata $metadata, mixed $value, st } break; default: - $queryParams[$metadata->name] = valToString($value, $dateTimeFormat); + $queryParams[$metadata->name] = valToString($value, ['dateTimeFormat' => $dateTimeFormat]); } return $this->buildQueryString($queryParams); diff --git a/src/Utils/RequestBodies.php b/src/Utils/RequestBodies.php index a630f6f..ee0319e 100644 --- a/src/Utils/RequestBodies.php +++ b/src/Utils/RequestBodies.php @@ -122,13 +122,13 @@ private function serializeMultipart(mixed $value): array foreach ($value as $item) { $options['multipart'][] = [ 'name' => $metadata->name.'[]', - 'contents' => valToString($item, $dateTimeFormat), + 'contents' => valToString($item, ['dateTimeFormat' => $dateTimeFormat]), ]; } } else { $options['multipart'][] = [ 'name' => $metadata->name, - 'contents' => valToString($val, $dateTimeFormat), + 'contents' => valToString($val, ['dateTimeFormat' => $dateTimeFormat]), ]; } } @@ -225,7 +225,7 @@ private function serializeFormData(string $fieldName, mixed $value): array throw new \Exception("Invalid request body type for field $fieldName"); } else { foreach ($value as $k => $v) { - $options['form_params'][$k] = valToString($v); + $options['form_params'][$k] = valToString($v, []); } } break; @@ -246,17 +246,22 @@ private function serializeForm(FormMetadata $metadata, mixed $value): array $values = []; $dateTimeFormat = $metadata->dateTimeFormat; + $serializeToString = $metadata->serializeToString; switch (gettype($value)) { case 'object': switch ($value::class) { case 'Brick\DateTime\LocalDate': case 'DateTime': - $values[$metadata->name] = valToString($value, $dateTimeFormat); + $values[$metadata->name] = valToString($value, ['dateTimeFormat' => $dateTimeFormat]); + break; + case 'Brick\Math\BigInteger': + case 'Brick\Math\BigDecimal': + $values[$metadata->name] = valToString($value, ['serializeToString' => $serializeToString]); break; default: if (is_a($value, \BackedEnum::class, true)) { - $values[$metadata->name] = valToString($value); + $values[$metadata->name] = valToString($value, []); } else { $items = []; @@ -271,9 +276,9 @@ private function serializeForm(FormMetadata $metadata, mixed $value): array } if ($metadata->explode) { - $values[$fieldMetadata->name] = valToString($val, $fieldMetadata->dateTimeFormat); + $values[$fieldMetadata->name] = valToString($val, ['dateTimeFormat' => $fieldMetadata->dateTimeFormat]); } else { - $items[] = sprintf('%s,%s', $fieldMetadata->name, valToString($val)); + $items[] = sprintf('%s,%s', $fieldMetadata->name, valToString($val, [])); } } @@ -287,16 +292,16 @@ private function serializeForm(FormMetadata $metadata, mixed $value): array case 'array': if (array_is_list($value)) { foreach ($value as $v) { - $values[$metadata->name] = valToString($v, $dateTimeFormat); + $values[$metadata->name] = valToString($v, ['dateTimeFormat' => $dateTimeFormat]); } } else { $items = []; foreach ($value as $k => $v) { if ($metadata->explode) { - $values[$k] = valToString($v, $dateTimeFormat); + $values[$k] = valToString($v, ['dateTimeFormat' => $dateTimeFormat]); } else { - $items[] = sprintf('%s,%s', $k, valToString($v, $dateTimeFormat)); + $items[] = sprintf('%s,%s', $k, valToString($v, ['dateTimeFormat' => $dateTimeFormat])); } } @@ -306,7 +311,7 @@ private function serializeForm(FormMetadata $metadata, mixed $value): array } break; default: - $values[$metadata->name] = valToString($value, $dateTimeFormat); + $values[$metadata->name] = valToString($value, ['dateTimeFormat' => $dateTimeFormat]); break; } diff --git a/src/Utils/UnionHandler.php b/src/Utils/UnionHandler.php index b08a8c6..a0a941a 100644 --- a/src/Utils/UnionHandler.php +++ b/src/Utils/UnionHandler.php @@ -8,19 +8,19 @@ namespace Clerk\Backend\Utils; -use JMS\Serializer\Context; -use JMS\Serializer\DeserializationContext; -use JMS\Serializer\Exception\NonFloatCastableTypeException; -use JMS\Serializer\Exception\NonIntCastableTypeException; -use JMS\Serializer\Exception\NonStringCastableTypeException; -use JMS\Serializer\Exception\NonVisitableTypeException; -use JMS\Serializer\Exception\PropertyMissingException; -use JMS\Serializer\Exception\RuntimeException; -use JMS\Serializer\GraphNavigatorInterface; -use JMS\Serializer\Handler\SubscribingHandlerInterface; -use JMS\Serializer\SerializationContext; -use JMS\Serializer\Visitor\DeserializationVisitorInterface; -use JMS\Serializer\Visitor\SerializationVisitorInterface; +use Speakeasy\Serializer\Context; +use Speakeasy\Serializer\DeserializationContext; +use Speakeasy\Serializer\Exception\NonFloatCastableTypeException; +use Speakeasy\Serializer\Exception\NonIntCastableTypeException; +use Speakeasy\Serializer\Exception\NonStringCastableTypeException; +use Speakeasy\Serializer\Exception\NonVisitableTypeException; +use Speakeasy\Serializer\Exception\PropertyMissingException; +use Speakeasy\Serializer\Exception\RuntimeException; +use Speakeasy\Serializer\GraphNavigatorInterface; +use Speakeasy\Serializer\Handler\SubscribingHandlerInterface; +use Speakeasy\Serializer\SerializationContext; +use Speakeasy\Serializer\Visitor\DeserializationVisitorInterface; +use Speakeasy\Serializer\Visitor\SerializationVisitorInterface; final class UnionHandler implements SubscribingHandlerInterface { @@ -73,19 +73,40 @@ public function serializeUnion( return $this->matchSimpleType($data, $type, $context); } else { if (is_array($data)) { - $innerType = gettype($data[0]); - if ($innerType === 'object') { - $innerType = get_class($data[0]); + if (array_is_list($data) && ! empty($data)) { + $innerType = gettype($data[0]); + if ($innerType === 'object') { + $innerType = get_class($data[0]); + } + $resolvedType = [ + 'name' => 'array', + 'params' => ['name' => $innerType, 'params' => []], + ]; + } else { + $keyType = gettype(array_key_first($data)); + $valueType = gettype($data[array_key_first($data)]); + $resolvedType = [ + 'name' => 'array', + 'params' => [ + ['name' => $keyType, 'params' => []], + ['name' => $valueType, 'params' => []], + ], + ]; } - $resolvedType = [ - 'name' => 'array', - 'params' => ['name' => $innerType, 'params' => []], - ]; } else { - $resolvedType = [ - 'name' => get_class($data), - 'params' => [], - ]; + $resolvedType = null; + foreach ($type['params'] as $possibleType) { + if ($possibleType['name'] === 'enum' && $possibleType['params'][0]['name'] === get_class($data)) { + $resolvedType = $possibleType; + break; + } + } + if ($resolvedType === null) { + $resolvedType = [ + 'name' => get_class($data), + 'params' => [], + ]; + } } return $context->getNavigator()->accept($data, $resolvedType); @@ -167,6 +188,10 @@ public function deserializeUnion(DeserializationVisitorInterface $visitor, mixed continue; } catch (NonFloatCastableTypeException $e) { continue; + } catch (\Brick\Math\Exception\NumberFormatException $e) { + continue; + } catch (RuntimeException $e) { + continue; } } diff --git a/src/Utils/Utils.php b/src/Utils/Utils.php index 4588c90..37555a4 100644 --- a/src/Utils/Utils.php +++ b/src/Utils/Utils.php @@ -12,14 +12,15 @@ class Utils { + /** - * little function to adjust the return type from DateTime|false to DateTime|null + * little function to adjust the return type from DateTime|false to DateTime */ - public static function parseDateTime(string $dateTimeString): ?\DateTime + public static function parseDateTime(string $dateTimeString): \DateTime { $val = \DateTime::createFromFormat('Y-m-d\\TH:i:s.uP', $dateTimeString); if ($val === false) { - return null; + throw new \InvalidArgumentException('Invalid date time string: '.$dateTimeString); } return $val; @@ -193,8 +194,12 @@ function removeSuffix(string $text, string $suffix): string return $text; } - -function valToString(mixed $val, string $dateTimeFormat = ''): string +/** + * @param mixed $val + * @param array $extras + * @return string + */ +function valToString(mixed $val, array $extras): string { switch (gettype($val)) { case 'string': @@ -202,13 +207,26 @@ function valToString(mixed $val, string $dateTimeFormat = ''): string case 'object': switch (get_class($val)) { case 'DateTime': - if (empty($dateTimeFormat)) { - $dateTimeFormat = 'Y-m-d\TH:i:s.up'; + $dateTimeFormat = $dateTimeFormat = 'Y-m-d\TH:i:s.up'; + if (array_key_exists('dateTimeFormat', $extras)) { + $dateTimeFormat = $extras['dateTimeFormat']; } return $val->format($dateTimeFormat); case 'Brick\DateTime\LocalDate': return $val->jsonSerialize(); + case 'Brick\Math\BigInteger': + if (array_key_exists('serializeToString', $extras) && $extras['serializeToString']) { + return '"'.$val->toBase(10).'"'; + } + + return $val->toBase(10); + case 'Brick\Math\BigDecimal': + if (array_key_exists('serializeToString', $extras) && $extras['serializeToString']) { + return '"'.$val->__toString().'"'; + } + + return $val->__toString(); default: if (is_a($val, \BackedEnum::class, true)) { $enumVal = $val->value; diff --git a/src/Webhooks.php b/src/Webhooks.php index 18b23b8..248146e 100644 --- a/src/Webhooks.php +++ b/src/Webhooks.php @@ -9,16 +9,15 @@ namespace Clerk\Backend; use Clerk\Backend\Models\Operations; -use JMS\Serializer\DeserializationContext; +use Speakeasy\Serializer\DeserializationContext; class Webhooks { private SDKConfiguration $sdkConfiguration; - /** * @param SDKConfiguration $sdkConfig */ - public function __construct(SDKConfiguration $sdkConfig) + public function __construct(public SDKConfiguration $sdkConfig) { $this->sdkConfiguration = $sdkConfig; } @@ -31,8 +30,8 @@ public function __construct(SDKConfiguration $sdkConfig) * @return Operations\CreateSvixAppResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function createSvixApp( - ): Operations\CreateSvixAppResponse { + public function createSvixApp(): Operations\CreateSvixAppResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/webhooks/svix'); $options = ['http_errors' => false]; @@ -62,7 +61,7 @@ public function createSvixApp( } elseif ($statusCode == 400) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors52', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -82,8 +81,8 @@ public function createSvixApp( * @return Operations\DeleteSvixAppResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function deleteSvixApp( - ): Operations\DeleteSvixAppResponse { + public function deleteSvixApp(): Operations\DeleteSvixAppResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/webhooks/svix'); $options = ['http_errors' => false]; @@ -105,7 +104,7 @@ public function deleteSvixApp( } elseif ($statusCode == 400) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors53', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -125,8 +124,8 @@ public function deleteSvixApp( * @return Operations\GenerateSvixAuthURLResponse * @throws \Clerk\Backend\Models\Errors\SDKException */ - public function generateSvixAuthURL( - ): Operations\GenerateSvixAuthURLResponse { + public function generateSvixAuthURL(): Operations\GenerateSvixAuthURLResponse + { $baseUrl = $this->sdkConfiguration->getServerUrl(); $url = Utils\Utils::generateUrl($baseUrl, '/webhooks/svix_url'); $options = ['http_errors' => false]; @@ -156,7 +155,7 @@ public function generateSvixAuthURL( } elseif ($statusCode == 400) { if (Utils\Utils::matchContentType($contentType, 'application/json')) { $serializer = Utils\JSON::createSerializer(); - $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\Clerk\Backend\Models\Errors\ClerkErrors53', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); throw $obj->toException(); } else { throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); @@ -167,4 +166,5 @@ public function generateSvixAuthURL( throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); } } + } \ No newline at end of file