diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4ec1d81..5037ae0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9 management: - docChecksum: b7d2d41694154c8bb06badd95ee5eabf + docChecksum: 59dfdbafd3abc544010c8dbb759989eb docVersion: v1 - speakeasyVersion: 1.441.0 - generationVersion: 2.460.1 - releaseVersion: 1.3.0 - configChecksum: 97544bded64ebb467d8148b7b71880ba + speakeasyVersion: 1.448.0 + generationVersion: 2.466.0 + releaseVersion: 1.4.0 + configChecksum: d53c47a510eb971ffc5be704cbfee77e repoURL: https://github.com/clerk/clerk-sdk-java.git published: true features: @@ -14,7 +14,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.1 - core: 3.32.0 + core: 3.32.2 deprecations: 2.81.1 examples: 2.81.3 flattening: 2.81.1 @@ -26,7 +26,6 @@ features: nameOverrides: 2.81.3 nullables: 0.1.0 sdkHooks: 0.1.0 - tests: 0.1.0 unions: 0.0.6 generatedFiles: - .gitattributes @@ -1619,6 +1618,8 @@ examples: parameters: path: user_id: "" + requestBody: + application/json: {"password": "fSBhIihdxMPlTHN"} responses: "500": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} @@ -1628,6 +1629,8 @@ examples: parameters: path: user_id: "" + requestBody: + application/json: {"code": ""} responses: "500": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} @@ -1704,6 +1707,8 @@ examples: application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} CreateInvitation: speakeasy-default-create-invitation: + requestBody: + application/json: {"email_address": "Loyal79@yahoo.com"} responses: "200": application/json: {"object": "invitation", "id": "", "email_address": "Loyal79@yahoo.com", "revoked": false, "status": "pending", "created_at": 86, "updated_at": 169727} @@ -1804,12 +1809,16 @@ examples: "200": {} CreateAllowlistIdentifier: speakeasy-default-create-allowlist-identifier: + requestBody: + application/json: {"identifier": ""} responses: "400": application/json: {"errors": []} "200": {} CreateBlocklistIdentifier: speakeasy-default-create-blocklist-identifier: + requestBody: + application/json: {"identifier": ""} responses: "400": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} @@ -1883,6 +1892,8 @@ examples: application/json: {"data": [{"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://definite-deer.com", "development_origin": ""}, {"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://agile-publicity.com", "development_origin": ""}, {"object": "domain", "id": "", "name": "", "is_satellite": true, "frontend_api_url": "https://memorable-overcoat.com", "development_origin": ""}], "total_count": 54607} AddDomain: speakeasy-default-add-domain: + requestBody: + application/json: {"name": "", "is_satellite": false} responses: "200": application/json: {"object": "domain", "id": "", "name": "", "is_satellite": false, "frontend_api_url": "https://super-validity.name", "development_origin": ""} @@ -1996,6 +2007,8 @@ examples: application/json: {"errors": []} CreateOrganization: speakeasy-default-create-organization: + requestBody: + application/json: {"name": "", "created_by": ""} responses: "200": application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 486589, "created_at": 638424, "updated_at": 417458} @@ -2047,6 +2060,8 @@ examples: parameters: path: organization_id: "" + requestBody: + multipart/form-data: {"file": {"": "0x0DDEE4e6Ea"}} responses: "200": application/json: {"object": "organization", "id": "", "name": "", "slug": "", "max_allowed_memberships": 23224, "created_at": 881128, "updated_at": 868828, "image_url": "https://unused-cricket.net"} @@ -2297,6 +2312,8 @@ examples: application/json: {"errors": [{"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}, {"message": "", "long_message": "", "code": ""}]} CreateSAMLConnection: speakeasy-default-create-SAML-connection: + requestBody: + application/json: {"name": "", "domain": "low-packaging.info", "provider": "saml_custom"} responses: "200": application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "low-packaging.info", "idp_entity_id": "", "idp_sso_url": "https://black-and-white-secrecy.org/", "idp_certificate": "", "acs_url": "https://deafening-bonnet.net/", "sp_entity_id": "", "sp_metadata_url": "https://outrageous-resolve.org", "active": true, "provider": "", "user_count": 259629, "sync_user_attributes": true, "created_at": 230313, "updated_at": 211337} @@ -2337,3 +2354,4 @@ examples: responses: "200": application/json: {"object": "testing_token", "token": "1713877200-c_2J2MvPu9PnXcuhbPZNao0LOXqK9A7YrnBn0HmIWxy", "expires_at": 1713880800} +generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ca30d11..b2a8946 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false java: - version: 1.3.0 + version: 1.4.0 additionalDependencies: [] additionalPlugins: [] artifactID: backend-api diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 74cd5e6..4dfc3e8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,20 +1,21 @@ -speakeasyVersion: 1.441.0 +speakeasyVersion: 1.448.0 sources: clerk-java-sdk: sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:5bfc2dc2bdbf8afca23882fdc2fc99541c6aa384f8ea99311727bdc12bbe0c3f - sourceBlobDigest: sha256:3a79bd76a35cec51d82efcdad7c5fffff14db6ed394011e299ac78c2f6159e12 + sourceRevisionDigest: sha256:7e9716f45711b26b074ec95ce031132cbb1e8bc6969519888782922f6513be86 + sourceBlobDigest: sha256:8e3ae60f9db76f87569adcf2e260c473e37cb040d910169091db89710dae3786 tags: - latest - - speakeasy-sdk-regen-1731969931 + - speakeasy-sdk-regen-1732579755 + - v1 targets: clerk-java: source: clerk-java-sdk sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:5bfc2dc2bdbf8afca23882fdc2fc99541c6aa384f8ea99311727bdc12bbe0c3f - sourceBlobDigest: sha256:3a79bd76a35cec51d82efcdad7c5fffff14db6ed394011e299ac78c2f6159e12 + sourceRevisionDigest: sha256:7e9716f45711b26b074ec95ce031132cbb1e8bc6969519888782922f6513be86 + sourceBlobDigest: sha256:8e3ae60f9db76f87569adcf2e260c473e37cb040d910169091db89710dae3786 codeSamplesNamespace: clerk-java-sdk-code-samples - codeSamplesRevisionDigest: sha256:d1becf6d0bfef998549a0d7e2547800a0c78a3b2fa6d8e625537c69afec6d8b1 + codeSamplesRevisionDigest: sha256:7843154c4b52fc0c795550f48aacc9c3fe8bdef04e96102dcdfcead5f194df65 my-first-target: source: clerk-java-sdk sourceNamespace: clerk-java-sdk diff --git a/README.md b/README.md index c0f11c3..d193a91 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.clerk:backend-api:1.3.0' +implementation 'com.clerk:backend-api:1.4.0' ``` Maven: @@ -55,7 +55,7 @@ Maven: com.clerk backend-api - 1.3.0 + 1.4.0 ``` diff --git a/RELEASES.md b/RELEASES.md index 872faf7..3b96d78 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -168,4 +168,14 @@ Based on: ### Generated - [java v1.3.0] . ### Releases -- [Maven Central v1.3.0] https://central.sonatype.com/artifact/com.clerk/backend-api/1.3.0 - . \ No newline at end of file +- [Maven Central v1.3.0] https://central.sonatype.com/artifact/com.clerk/backend-api/1.3.0 - . + +## 2024-11-27 00:09:16 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.448.0 (2.466.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.4.0] . +### Releases +- [Maven Central v1.4.0] https://central.sonatype.com/artifact/com.clerk/backend-api/1.4.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 4ec49cd..916d4dc 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ tasks.withType(Javadoc) { } group = "com.clerk" -version = "1.3.0" +version = "1.4.0" sourcesJar { archiveBaseName = "backend-api" @@ -101,7 +101,7 @@ publishing { maven(MavenPublication) { groupId = 'com.clerk' artifactId = 'backend-api' - version = '1.3.0' + version = '1.4.0' from components.java @@ -145,10 +145,11 @@ if (!project.hasProperty('skip.signing')) { } dependencies { + api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'org.apache.httpcomponents:httpclient:4.5.14' implementation 'org.apache.httpcomponents:httpmime:4.5.14' implementation 'commons-io:commons-io:2.15.1' diff --git a/docs/models/operations/UpdateEmailAddressRequest.md b/docs/models/operations/UpdateEmailAddressRequest.md index 175bc40..9affe4a 100644 --- a/docs/models/operations/UpdateEmailAddressRequest.md +++ b/docs/models/operations/UpdateEmailAddressRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `emailAddressId` | *String* | :heavy_check_mark: | The ID of the email address to update | -| `requestBody` | [Optional\](../../models/operations/UpdateEmailAddressRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `emailAddressId` | *String* | :heavy_check_mark: | The ID of the email address to update | +| `requestBody` | [UpdateEmailAddressRequestBody](../../models/operations/UpdateEmailAddressRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateJWTTemplateRequest.md b/docs/models/operations/UpdateJWTTemplateRequest.md index d03a0f4..1ce3996 100644 --- a/docs/models/operations/UpdateJWTTemplateRequest.md +++ b/docs/models/operations/UpdateJWTTemplateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `templateId` | *String* | :heavy_check_mark: | The ID of the JWT template to update | -| `requestBody` | [Optional\](../../models/operations/UpdateJWTTemplateRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `templateId` | *String* | :heavy_check_mark: | The ID of the JWT template to update | +| `requestBody` | [UpdateJWTTemplateRequestBody](../../models/operations/UpdateJWTTemplateRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdatePhoneNumberRequest.md b/docs/models/operations/UpdatePhoneNumberRequest.md index d0e9667..cbb9e62 100644 --- a/docs/models/operations/UpdatePhoneNumberRequest.md +++ b/docs/models/operations/UpdatePhoneNumberRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `phoneNumberId` | *String* | :heavy_check_mark: | The ID of the phone number to update | -| `requestBody` | [Optional\](../../models/operations/UpdatePhoneNumberRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `phoneNumberId` | *String* | :heavy_check_mark: | The ID of the phone number to update | +| `requestBody` | [UpdatePhoneNumberRequestBody](../../models/operations/UpdatePhoneNumberRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSignUpRequest.md b/docs/models/operations/UpdateSignUpRequest.md index 8f32c33..6baaa1c 100644 --- a/docs/models/operations/UpdateSignUpRequest.md +++ b/docs/models/operations/UpdateSignUpRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | The ID of the sign-up to update | -| `requestBody` | [Optional\](../../models/operations/UpdateSignUpRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | The ID of the sign-up to update | +| `requestBody` | [UpdateSignUpRequestBody](../../models/operations/UpdateSignUpRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateUserMetadataRequest.md b/docs/models/operations/UpdateUserMetadataRequest.md index 1fb4d03..cc07a97 100644 --- a/docs/models/operations/UpdateUserMetadataRequest.md +++ b/docs/models/operations/UpdateUserMetadataRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID of the user whose metadata will be updated and merged | -| `requestBody` | [Optional\](../../models/operations/UpdateUserMetadataRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user whose metadata will be updated and merged | +| `requestBody` | [UpdateUserMetadataRequestBody](../../models/operations/UpdateUserMetadataRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UploadOrganizationLogoRequest.md b/docs/models/operations/UploadOrganizationLogoRequest.md index cd9d5af..714048f 100644 --- a/docs/models/operations/UploadOrganizationLogoRequest.md +++ b/docs/models/operations/UploadOrganizationLogoRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `organizationId` | *String* | :heavy_check_mark: | The ID of the organization for which to upload a logo | -| `requestBody` | [Optional\](../../models/operations/UploadOrganizationLogoRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `organizationId` | *String* | :heavy_check_mark: | The ID of the organization for which to upload a logo | +| `requestBody` | [UploadOrganizationLogoRequestBody](../../models/operations/UploadOrganizationLogoRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/VerifyClientRequestBody.md b/docs/models/operations/VerifyClientRequestBody.md index ea76246..0fad24c 100644 --- a/docs/models/operations/VerifyClientRequestBody.md +++ b/docs/models/operations/VerifyClientRequestBody.md @@ -1,7 +1,5 @@ # VerifyClientRequestBody -Parameters. - ## Fields diff --git a/docs/models/operations/VerifyPasswordRequest.md b/docs/models/operations/VerifyPasswordRequest.md index 94bef83..95b7774 100644 --- a/docs/models/operations/VerifyPasswordRequest.md +++ b/docs/models/operations/VerifyPasswordRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the password | -| `requestBody` | [Optional\](../../models/operations/VerifyPasswordRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the password | +| `requestBody` | [VerifyPasswordRequestBody](../../models/operations/VerifyPasswordRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/VerifyTOTPRequest.md b/docs/models/operations/VerifyTOTPRequest.md index 85fcb58..071e121 100644 --- a/docs/models/operations/VerifyTOTPRequest.md +++ b/docs/models/operations/VerifyTOTPRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the TOTP | -| `requestBody` | [Optional\](../../models/operations/VerifyTOTPRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the TOTP | +| `requestBody` | [VerifyTOTPRequestBody](../../models/operations/VerifyTOTPRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/clerk/README.md b/docs/sdks/clerk/README.md index 1b3dc9b..3d5b315 100644 --- a/docs/sdks/clerk/README.md +++ b/docs/sdks/clerk/README.md @@ -12,4 +12,6 @@ Each version is identified by its release date, e.g. `2021-02-05`. For more info Please see https://clerk.com/docs for more information. - \ No newline at end of file + + +### Available Operations diff --git a/docs/sdks/emailaddresses/README.md b/docs/sdks/emailaddresses/README.md index 4a4bfcc..54f901c 100644 --- a/docs/sdks/emailaddresses/README.md +++ b/docs/sdks/emailaddresses/README.md @@ -202,10 +202,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `emailAddressId` | *String* | :heavy_check_mark: | The ID of the email address to update | -| `requestBody` | [Optional\](../../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` | [UpdateEmailAddressRequestBody](../../models/operations/UpdateEmailAddressRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/jwttemplates/README.md b/docs/sdks/jwttemplates/README.md index 9619f23..567a9b6 100644 --- a/docs/sdks/jwttemplates/README.md +++ b/docs/sdks/jwttemplates/README.md @@ -194,10 +194,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `templateId` | *String* | :heavy_check_mark: | The ID of the JWT template to update | -| `requestBody` | [Optional\](../../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` | [UpdateJWTTemplateRequestBody](../../models/operations/UpdateJWTTemplateRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index ec9e1bd..4312882 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -402,10 +402,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `organizationId` | *String* | :heavy_check_mark: | The ID of the organization for which to upload a logo | -| `requestBody` | [Optional\](../../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` | [UploadOrganizationLogoRequestBody](../../models/operations/UploadOrganizationLogoRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index c5f1849..8c85403 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -202,10 +202,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `phoneNumberId` | *String* | :heavy_check_mark: | The ID of the phone number to update | -| `requestBody` | [Optional\](../../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` | [UpdatePhoneNumberRequestBody](../../models/operations/UpdatePhoneNumberRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/signups/README.md b/docs/sdks/signups/README.md index 8a9fe2f..774d09f 100644 --- a/docs/sdks/signups/README.md +++ b/docs/sdks/signups/README.md @@ -45,10 +45,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | The ID of the sign-up to update | -| `requestBody` | [Optional\](../../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` | [UpdateSignUpRequestBody](../../models/operations/UpdateSignUpRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 67e9564..0c93854 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -719,10 +719,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID of the user whose metadata will be updated and merged | -| `requestBody` | [Optional\](../../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` | [UpdateUserMetadataRequestBody](../../models/operations/UpdateUserMetadataRequestBody.md) | :heavy_check_mark: | N/A | ### Response @@ -939,10 +939,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the password | -| `requestBody` | [Optional\](../../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` | [VerifyPasswordRequestBody](../../models/operations/VerifyPasswordRequestBody.md) | :heavy_check_mark: | N/A | ### Response @@ -997,10 +997,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `userId` | *String* | :heavy_check_mark: | The ID of the user for whom to verify the TOTP | -| `requestBody` | [Optional\](../../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` | [VerifyTOTPRequestBody](../../models/operations/VerifyTOTPRequestBody.md) | :heavy_check_mark: | N/A | ### Response diff --git a/src/main/java/com/clerk/backend_api/ActorTokens.java b/src/main/java/com/clerk/backend_api/ActorTokens.java index b627c37..bf37b83 100644 --- a/src/main/java/com/clerk/backend_api/ActorTokens.java +++ b/src/main/java/com/clerk/backend_api/ActorTokens.java @@ -53,17 +53,6 @@ public CreateActorTokenRequestBuilder create() { return new CreateActorTokenRequestBuilder(this); } - /** - * Create actor token - * 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. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateActorTokenResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create actor token * Create an actor token that can be used to impersonate the given user. @@ -73,7 +62,7 @@ public CreateActorTokenResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateActorTokenResponse create( - Optional request) throws Exception { + CreateActorTokenRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -83,12 +72,15 @@ public CreateActorTokenResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/AllowlistBlocklist.java b/src/main/java/com/clerk/backend_api/AllowlistBlocklist.java index acb4495..a71ce19 100644 --- a/src/main/java/com/clerk/backend_api/AllowlistBlocklist.java +++ b/src/main/java/com/clerk/backend_api/AllowlistBlocklist.java @@ -189,16 +189,6 @@ public CreateAllowlistIdentifierRequestBuilder createAllowlistIdentifier() { return new CreateAllowlistIdentifierRequestBuilder(this); } - /** - * Add identifier to the allow-list - * Create an identifier allowed to sign up to an instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateAllowlistIdentifierResponse createAllowlistIdentifierDirect() throws Exception { - return createAllowlistIdentifier(Optional.empty()); - } - /** * Add identifier to the allow-list * Create an identifier allowed to sign up to an instance @@ -207,7 +197,7 @@ public CreateAllowlistIdentifierResponse createAllowlistIdentifierDirect() throw * @throws Exception if the API call fails */ public CreateAllowlistIdentifierResponse createAllowlistIdentifier( - Optional request) throws Exception { + CreateAllowlistIdentifierRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -217,12 +207,15 @@ public CreateAllowlistIdentifierResponse createAllowlistIdentifier( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -339,16 +332,6 @@ public CreateBlocklistIdentifierRequestBuilder createBlocklistIdentifier() { return new CreateBlocklistIdentifierRequestBuilder(this); } - /** - * Add identifier to the block-list - * Create an identifier that is blocked from accessing an instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateBlocklistIdentifierResponse createBlocklistIdentifierDirect() throws Exception { - return createBlocklistIdentifier(Optional.empty()); - } - /** * Add identifier to the block-list * Create an identifier that is blocked from accessing an instance @@ -357,7 +340,7 @@ public CreateBlocklistIdentifierResponse createBlocklistIdentifierDirect() throw * @throws Exception if the API call fails */ public CreateBlocklistIdentifierResponse createBlocklistIdentifier( - Optional request) throws Exception { + CreateBlocklistIdentifierRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -367,12 +350,15 @@ public CreateBlocklistIdentifierResponse createBlocklistIdentifier( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/BetaFeatures.java b/src/main/java/com/clerk/backend_api/BetaFeatures.java index 27bf858..117b92f 100644 --- a/src/main/java/com/clerk/backend_api/BetaFeatures.java +++ b/src/main/java/com/clerk/backend_api/BetaFeatures.java @@ -57,16 +57,6 @@ public UpdateInstanceAuthConfigRequestBuilder updateInstanceSettings() { return new UpdateInstanceAuthConfigRequestBuilder(this); } - /** - * Update instance settings - * Updates the settings of an instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateInstanceAuthConfigResponse updateInstanceSettingsDirect() throws Exception { - return updateInstanceSettings(Optional.empty()); - } - /** * Update instance settings * Updates the settings of an instance @@ -75,7 +65,7 @@ public UpdateInstanceAuthConfigResponse updateInstanceSettingsDirect() throws Ex * @throws Exception if the API call fails */ public UpdateInstanceAuthConfigResponse updateInstanceSettings( - Optional request) throws Exception { + UpdateInstanceAuthConfigRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -85,12 +75,15 @@ public UpdateInstanceAuthConfigResponse updateInstanceSettings( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -368,20 +361,6 @@ public ChangeProductionInstanceDomainRequestBuilder changeProductionInstanceDoma return new ChangeProductionInstanceDomainRequestBuilder(this); } - /** - * Update production instance domain - * Change the domain of a production instance. - * - * Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy), updating your Social Connection's redirect URLs and setting the new keys in your code. - * - * 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. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public ChangeProductionInstanceDomainResponse changeProductionInstanceDomainDirect() throws Exception { - return changeProductionInstanceDomain(Optional.empty()); - } - /** * Update production instance domain * Change the domain of a production instance. @@ -394,7 +373,7 @@ public ChangeProductionInstanceDomainResponse changeProductionInstanceDomainDire * @throws Exception if the API call fails */ public ChangeProductionInstanceDomainResponse changeProductionInstanceDomain( - Optional request) throws Exception { + ChangeProductionInstanceDomainRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -404,12 +383,15 @@ public ChangeProductionInstanceDomainResponse changeProductionInstanceDomain( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/ClerkRedirectUrls.java b/src/main/java/com/clerk/backend_api/ClerkRedirectUrls.java index 4738b9e..bd89444 100644 --- a/src/main/java/com/clerk/backend_api/ClerkRedirectUrls.java +++ b/src/main/java/com/clerk/backend_api/ClerkRedirectUrls.java @@ -57,16 +57,6 @@ public CreateRedirectURLRequestBuilder create() { return new CreateRedirectURLRequestBuilder(this); } - /** - * Create a redirect URL - * Create a redirect URL - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateRedirectURLResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create a redirect URL * Create a redirect URL @@ -75,7 +65,7 @@ public CreateRedirectURLResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateRedirectURLResponse create( - Optional request) throws Exception { + CreateRedirectURLRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -85,12 +75,15 @@ public CreateRedirectURLResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/Clients.java b/src/main/java/com/clerk/backend_api/Clients.java index 0eee0a9..2db44ae 100644 --- a/src/main/java/com/clerk/backend_api/Clients.java +++ b/src/main/java/com/clerk/backend_api/Clients.java @@ -231,16 +231,6 @@ public VerifyClientRequestBuilder verify() { return new VerifyClientRequestBuilder(this); } - /** - * Verify a client - * Verifies the client in the provided token - * @return The response from the API call - * @throws Exception if the API call fails - */ - public VerifyClientResponse verifyDirect() throws Exception { - return verify(Optional.empty()); - } - /** * Verify a client * Verifies the client in the provided token @@ -249,7 +239,7 @@ public VerifyClientResponse verifyDirect() throws Exception { * @throws Exception if the API call fails */ public VerifyClientResponse verify( - Optional request) throws Exception { + VerifyClientRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -259,12 +249,15 @@ public VerifyClientResponse verify( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/Domains.java b/src/main/java/com/clerk/backend_api/Domains.java index 7e8e7cc..ca02e43 100644 --- a/src/main/java/com/clerk/backend_api/Domains.java +++ b/src/main/java/com/clerk/backend_api/Domains.java @@ -184,20 +184,6 @@ public AddDomainRequestBuilder add() { return new AddDomainRequestBuilder(this); } - /** - * Add a domain - * Add a new domain for your instance. - * Useful in the case of multi-domain instances, allows adding satellite domains to an instance. - * The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`. - * 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. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public AddDomainResponse addDirect() throws Exception { - return add(Optional.empty()); - } - /** * Add a domain * Add a new domain for your instance. @@ -210,7 +196,7 @@ public AddDomainResponse addDirect() throws Exception { * @throws Exception if the API call fails */ public AddDomainResponse add( - Optional request) throws Exception { + AddDomainRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -220,12 +206,15 @@ public AddDomainResponse add( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/EmailAddresses.java b/src/main/java/com/clerk/backend_api/EmailAddresses.java index fd54edc..8528798 100644 --- a/src/main/java/com/clerk/backend_api/EmailAddresses.java +++ b/src/main/java/com/clerk/backend_api/EmailAddresses.java @@ -62,16 +62,6 @@ public CreateEmailAddressRequestBuilder create() { return new CreateEmailAddressRequestBuilder(this); } - /** - * Create an email address - * Create a new email address - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateEmailAddressResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create an email address * Create a new email address @@ -80,7 +70,7 @@ public CreateEmailAddressResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateEmailAddressResponse create( - Optional request) throws Exception { + CreateEmailAddressRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -90,12 +80,15 @@ public CreateEmailAddressResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -488,18 +481,6 @@ public UpdateEmailAddressRequestBuilder update() { return new UpdateEmailAddressRequestBuilder(this); } - /** - * Update an email address - * Updates an email address. - * @param emailAddressId The ID of the email address to update - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateEmailAddressResponse update( - String emailAddressId) throws Exception { - return update(emailAddressId, Optional.empty()); - } - /** * Update an email address * Updates an email address. @@ -510,7 +491,7 @@ public UpdateEmailAddressResponse update( */ public UpdateEmailAddressResponse update( String emailAddressId, - Optional requestBody) throws Exception { + UpdateEmailAddressRequestBody requestBody) throws Exception { UpdateEmailAddressRequest request = UpdateEmailAddressRequest .builder() @@ -535,6 +516,9 @@ public UpdateEmailAddressResponse update( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/InstanceSettings.java b/src/main/java/com/clerk/backend_api/InstanceSettings.java index 6b9b2f8..41a3943 100644 --- a/src/main/java/com/clerk/backend_api/InstanceSettings.java +++ b/src/main/java/com/clerk/backend_api/InstanceSettings.java @@ -57,16 +57,6 @@ public UpdateInstanceRequestBuilder update() { return new UpdateInstanceRequestBuilder(this); } - /** - * Update instance settings - * Updates the settings of an instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateInstanceResponse updateDirect() throws Exception { - return update(Optional.empty()); - } - /** * Update instance settings * Updates the settings of an instance @@ -75,7 +65,7 @@ public UpdateInstanceResponse updateDirect() throws Exception { * @throws Exception if the API call fails */ public UpdateInstanceResponse update( - Optional request) throws Exception { + UpdateInstanceRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -85,12 +75,15 @@ public UpdateInstanceResponse update( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -196,16 +189,6 @@ public UpdateInstanceRestrictionsRequestBuilder updateRestrictions() { return new UpdateInstanceRestrictionsRequestBuilder(this); } - /** - * Update instance restrictions - * Updates the restriction settings of an instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateInstanceRestrictionsResponse updateRestrictionsDirect() throws Exception { - return updateRestrictions(Optional.empty()); - } - /** * Update instance restrictions * Updates the restriction settings of an instance @@ -214,7 +197,7 @@ public UpdateInstanceRestrictionsResponse updateRestrictionsDirect() throws Exce * @throws Exception if the API call fails */ public UpdateInstanceRestrictionsResponse updateRestrictions( - Optional request) throws Exception { + UpdateInstanceRestrictionsRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -224,12 +207,15 @@ public UpdateInstanceRestrictionsResponse updateRestrictions( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -346,16 +332,6 @@ public UpdateInstanceOrganizationSettingsRequestBuilder updateOrganizationSettin return new UpdateInstanceOrganizationSettingsRequestBuilder(this); } - /** - * Update instance organization settings - * Updates the organization settings of the instance - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateInstanceOrganizationSettingsResponse updateOrganizationSettingsDirect() throws Exception { - return updateOrganizationSettings(Optional.empty()); - } - /** * Update instance organization settings * Updates the organization settings of the instance @@ -364,7 +340,7 @@ public UpdateInstanceOrganizationSettingsResponse updateOrganizationSettingsDire * @throws Exception if the API call fails */ public UpdateInstanceOrganizationSettingsResponse updateOrganizationSettings( - Optional request) throws Exception { + UpdateInstanceOrganizationSettingsRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -374,12 +350,15 @@ public UpdateInstanceOrganizationSettingsResponse updateOrganizationSettings( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/Invitations.java b/src/main/java/com/clerk/backend_api/Invitations.java index bca3824..0209a04 100644 --- a/src/main/java/com/clerk/backend_api/Invitations.java +++ b/src/main/java/com/clerk/backend_api/Invitations.java @@ -65,18 +65,6 @@ public CreateInvitationRequestBuilder create() { return new CreateInvitationRequestBuilder(this); } - /** - * Create an invitation - * Creates a new invitation for the given email address and sends the invitation email. - * 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. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateInvitationResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create an invitation * Creates a new invitation for the given email address and sends the invitation email. @@ -87,7 +75,7 @@ public CreateInvitationResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateInvitationResponse create( - Optional request) throws Exception { + CreateInvitationRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -97,12 +85,15 @@ public CreateInvitationResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/JwtTemplates.java b/src/main/java/com/clerk/backend_api/JwtTemplates.java index 6dbcac6..7e5f4d0 100644 --- a/src/main/java/com/clerk/backend_api/JwtTemplates.java +++ b/src/main/java/com/clerk/backend_api/JwtTemplates.java @@ -177,16 +177,6 @@ public CreateJWTTemplateRequestBuilder create() { return new CreateJWTTemplateRequestBuilder(this); } - /** - * Create a JWT template - * Create a new JWT template - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateJWTTemplateResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create a JWT template * Create a new JWT template @@ -195,7 +185,7 @@ public CreateJWTTemplateResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateJWTTemplateResponse create( - Optional request) throws Exception { + CreateJWTTemplateRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -205,12 +195,15 @@ public CreateJWTTemplateResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -465,18 +458,6 @@ public UpdateJWTTemplateRequestBuilder update() { return new UpdateJWTTemplateRequestBuilder(this); } - /** - * Update a JWT template - * Updates an existing JWT template - * @param templateId The ID of the JWT template to update - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateJWTTemplateResponse update( - String templateId) throws Exception { - return update(templateId, Optional.empty()); - } - /** * Update a JWT template * Updates an existing JWT template @@ -487,7 +468,7 @@ public UpdateJWTTemplateResponse update( */ public UpdateJWTTemplateResponse update( String templateId, - Optional requestBody) throws Exception { + UpdateJWTTemplateRequestBody requestBody) throws Exception { UpdateJWTTemplateRequest request = UpdateJWTTemplateRequest .builder() @@ -512,6 +493,9 @@ public UpdateJWTTemplateResponse update( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/OauthApplications.java b/src/main/java/com/clerk/backend_api/OauthApplications.java index 44454e9..a6875a0 100644 --- a/src/main/java/com/clerk/backend_api/OauthApplications.java +++ b/src/main/java/com/clerk/backend_api/OauthApplications.java @@ -241,18 +241,6 @@ public CreateOAuthApplicationRequestBuilder create() { return new CreateOAuthApplicationRequestBuilder(this); } - /** - * Create an OAuth application - * Creates a new OAuth application with the given name and callback URL for an instance. - * The callback URL must be a valid url. - * All URL schemes are allowed such as `http://`, `https://`, `myapp://`, etc... - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateOAuthApplicationResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create an OAuth application * Creates a new OAuth application with the given name and callback URL for an instance. @@ -263,7 +251,7 @@ public CreateOAuthApplicationResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateOAuthApplicationResponse create( - Optional request) throws Exception { + CreateOAuthApplicationRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -273,12 +261,15 @@ public CreateOAuthApplicationResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/Organizations.java b/src/main/java/com/clerk/backend_api/Organizations.java index 80de73c..446f895 100644 --- a/src/main/java/com/clerk/backend_api/Organizations.java +++ b/src/main/java/com/clerk/backend_api/Organizations.java @@ -237,26 +237,6 @@ public CreateOrganizationRequestBuilder create() { return new CreateOrganizationRequestBuilder(this); } - /** - * Create an organization - * Creates a new organization with the given name for an instance. - * In order to successfully create an organization you need to provide the ID of the User who will become the organization administrator. - * You can specify an optional slug for the new organization. - * If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-". - * Organization slugs must be unique for the instance. - * You can provide additional metadata for the organization and set any custom attribute you want. - * Organizations support private and public metadata. - * 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. - * The `created_by` user will see this as their [active organization] (https://clerk.com/docs/organizations/overview#active-organization) - * the next time they create a session, presuming they don't explicitly set a different organization as active before then. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateOrganizationResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create an organization * Creates a new organization with the given name for an instance. @@ -275,7 +255,7 @@ public CreateOrganizationResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateOrganizationResponse create( - Optional request) throws Exception { + CreateOrganizationRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -285,12 +265,15 @@ public CreateOrganizationResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -1024,21 +1007,6 @@ public UploadOrganizationLogoRequestBuilder uploadLogo() { return new UploadOrganizationLogoRequestBuilder(this); } - /** - * Upload a logo for the organization - * Set or replace an organization's logo, by uploading an image file. - * This endpoint uses the `multipart/form-data` request content type and accepts a file of image type. - * The file size cannot exceed 10MB. - * Only the following file content types are supported: `image/jpeg`, `image/png`, `image/gif`, `image/webp`, `image/x-icon`, `image/vnd.microsoft.icon`. - * @param organizationId The ID of the organization for which to upload a logo - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UploadOrganizationLogoResponse uploadLogo( - String organizationId) throws Exception { - return uploadLogo(organizationId, Optional.empty()); - } - /** * Upload a logo for the organization * Set or replace an organization's logo, by uploading an image file. @@ -1052,7 +1020,7 @@ public UploadOrganizationLogoResponse uploadLogo( */ public UploadOrganizationLogoResponse uploadLogo( String organizationId, - Optional requestBody) throws Exception { + UploadOrganizationLogoRequestBody requestBody) throws Exception { UploadOrganizationLogoRequest request = UploadOrganizationLogoRequest .builder() @@ -1077,6 +1045,9 @@ public UploadOrganizationLogoResponse uploadLogo( "requestBody", "multipart", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/PhoneNumbers.java b/src/main/java/com/clerk/backend_api/PhoneNumbers.java index c611193..0c8130b 100644 --- a/src/main/java/com/clerk/backend_api/PhoneNumbers.java +++ b/src/main/java/com/clerk/backend_api/PhoneNumbers.java @@ -62,16 +62,6 @@ public CreatePhoneNumberRequestBuilder create() { return new CreatePhoneNumberRequestBuilder(this); } - /** - * Create a phone number - * Create a new phone number - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreatePhoneNumberResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create a phone number * Create a new phone number @@ -80,7 +70,7 @@ public CreatePhoneNumberResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreatePhoneNumberResponse create( - Optional request) throws Exception { + CreatePhoneNumberRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -90,12 +80,15 @@ public CreatePhoneNumberResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -488,18 +481,6 @@ public UpdatePhoneNumberRequestBuilder update() { return new UpdatePhoneNumberRequestBuilder(this); } - /** - * Update a phone number - * Updates a phone number - * @param phoneNumberId The ID of the phone number to update - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdatePhoneNumberResponse update( - String phoneNumberId) throws Exception { - return update(phoneNumberId, Optional.empty()); - } - /** * Update a phone number * Updates a phone number @@ -510,7 +491,7 @@ public UpdatePhoneNumberResponse update( */ public UpdatePhoneNumberResponse update( String phoneNumberId, - Optional requestBody) throws Exception { + UpdatePhoneNumberRequestBody requestBody) throws Exception { UpdatePhoneNumberRequest request = UpdatePhoneNumberRequest .builder() @@ -535,6 +516,9 @@ public UpdatePhoneNumberResponse update( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/ProxyChecks.java b/src/main/java/com/clerk/backend_api/ProxyChecks.java index cccbdd0..a799247 100644 --- a/src/main/java/com/clerk/backend_api/ProxyChecks.java +++ b/src/main/java/com/clerk/backend_api/ProxyChecks.java @@ -55,23 +55,6 @@ public VerifyDomainProxyRequestBuilder verify() { return new VerifyDomainProxyRequestBuilder(this); } - /** - * Verify the proxy configuration for your domain - * This endpoint can be used to validate that a proxy-enabled domain is operational. - * It tries to verify that the proxy URL provided in the parameters maps to a functional proxy that can reach the Clerk Frontend API. - * - * You can use this endpoint before you set a proxy URL for a domain. This way you can ensure that switching to proxy-based - * configuration will not lead to downtime for your instance. - * - * 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. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public VerifyDomainProxyResponse verifyDirect() throws Exception { - return verify(Optional.empty()); - } - /** * Verify the proxy configuration for your domain * This endpoint can be used to validate that a proxy-enabled domain is operational. @@ -87,7 +70,7 @@ public VerifyDomainProxyResponse verifyDirect() throws Exception { * @throws Exception if the API call fails */ public VerifyDomainProxyResponse verify( - Optional request) throws Exception { + VerifyDomainProxyRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -97,12 +80,15 @@ public VerifyDomainProxyResponse verify( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/SDKConfiguration.java b/src/main/java/com/clerk/backend_api/SDKConfiguration.java index 65a08b7..bf45fa5 100644 --- a/src/main/java/com/clerk/backend_api/SDKConfiguration.java +++ b/src/main/java/com/clerk/backend_api/SDKConfiguration.java @@ -23,8 +23,8 @@ public Optional securitySource() { public int serverIdx = 0; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "v1"; - public static final String SDK_VERSION = "1.3.0"; - public static final String GEN_VERSION = "2.460.1"; + public static final String SDK_VERSION = "1.4.0"; + public static final String GEN_VERSION = "2.466.0"; private static final String BASE_PACKAGE = "com.clerk.backend_api"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/clerk/backend_api/SamlConnections.java b/src/main/java/com/clerk/backend_api/SamlConnections.java index 861d180..3ed3221 100644 --- a/src/main/java/com/clerk/backend_api/SamlConnections.java +++ b/src/main/java/com/clerk/backend_api/SamlConnections.java @@ -231,16 +231,6 @@ public CreateSAMLConnectionRequestBuilder create() { return new CreateSAMLConnectionRequestBuilder(this); } - /** - * Create a SAML Connection - * Create a new SAML Connection. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateSAMLConnectionResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create a SAML Connection * Create a new SAML Connection. @@ -249,7 +239,7 @@ public CreateSAMLConnectionResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateSAMLConnectionResponse create( - Optional request) throws Exception { + CreateSAMLConnectionRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -259,12 +249,15 @@ public CreateSAMLConnectionResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/SignInTokens.java b/src/main/java/com/clerk/backend_api/SignInTokens.java index 4ee6e14..680606f 100644 --- a/src/main/java/com/clerk/backend_api/SignInTokens.java +++ b/src/main/java/com/clerk/backend_api/SignInTokens.java @@ -54,18 +54,6 @@ public CreateSignInTokenRequestBuilder create() { return new CreateSignInTokenRequestBuilder(this); } - /** - * Create sign-in token - * Creates a new sign-in token and associates it with the given user. - * By default, sign-in tokens expire in 30 days. - * You can optionally supply a different duration in seconds using the `expires_in_seconds` property. - * @return The response from the API call - * @throws Exception if the API call fails - */ - public CreateSignInTokenResponse createDirect() throws Exception { - return create(Optional.empty()); - } - /** * Create sign-in token * Creates a new sign-in token and associates it with the given user. @@ -76,7 +64,7 @@ public CreateSignInTokenResponse createDirect() throws Exception { * @throws Exception if the API call fails */ public CreateSignInTokenResponse create( - Optional request) throws Exception { + CreateSignInTokenRequestBody request) throws Exception { String _baseUrl = this.sdkConfiguration.serverUrl; String _url = Utils.generateURL( _baseUrl, @@ -86,12 +74,15 @@ public CreateSignInTokenResponse create( Object _convertedRequest = Utils.convertToShape( request, JsonShape.DEFAULT, - new TypeReference>() {}); + new TypeReference() {}); SerializedBody _serializedRequestBody = Utils.serializeRequestBody( _convertedRequest, "request", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/SignUps.java b/src/main/java/com/clerk/backend_api/SignUps.java index ce73057..97d92a3 100644 --- a/src/main/java/com/clerk/backend_api/SignUps.java +++ b/src/main/java/com/clerk/backend_api/SignUps.java @@ -49,18 +49,6 @@ public UpdateSignUpRequestBuilder update() { return new UpdateSignUpRequestBuilder(this); } - /** - * Update a sign-up - * Update the sign-up with the given ID - * @param id The ID of the sign-up to update - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateSignUpResponse update( - String id) throws Exception { - return update(id, Optional.empty()); - } - /** * Update a sign-up * Update the sign-up with the given ID @@ -71,7 +59,7 @@ public UpdateSignUpResponse update( */ public UpdateSignUpResponse update( String id, - Optional requestBody) throws Exception { + UpdateSignUpRequestBody requestBody) throws Exception { UpdateSignUpRequest request = UpdateSignUpRequest .builder() @@ -96,6 +84,9 @@ public UpdateSignUpResponse update( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/Users.java b/src/main/java/com/clerk/backend_api/Users.java index fd76b36..23db468 100644 --- a/src/main/java/com/clerk/backend_api/Users.java +++ b/src/main/java/com/clerk/backend_api/Users.java @@ -1898,25 +1898,6 @@ public UpdateUserMetadataRequestBuilder updateMetadata() { return new UpdateUserMetadataRequestBuilder(this); } - /** - * Merge and update a user's metadata - * Update a user's metadata attributes by merging existing values with the provided parameters. - * - * This endpoint behaves differently than the *Update a user* endpoint. - * Metadata values will not be replaced entirely. - * Instead, a deep merge will be performed. - * 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 userId The ID of the user whose metadata will be updated and merged - * @return The response from the API call - * @throws Exception if the API call fails - */ - public UpdateUserMetadataResponse updateMetadata( - String userId) throws Exception { - return updateMetadata(userId, Optional.empty()); - } - /** * Merge and update a user's metadata * Update a user's metadata attributes by merging existing values with the provided parameters. @@ -1934,7 +1915,7 @@ public UpdateUserMetadataResponse updateMetadata( */ public UpdateUserMetadataResponse updateMetadata( String userId, - Optional requestBody) throws Exception { + UpdateUserMetadataRequestBody requestBody) throws Exception { UpdateUserMetadataRequest request = UpdateUserMetadataRequest .builder() @@ -1959,6 +1940,9 @@ public UpdateUserMetadataResponse updateMetadata( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -2550,19 +2534,6 @@ public VerifyPasswordRequestBuilder verifyPassword() { return new VerifyPasswordRequestBuilder(this); } - /** - * Verify the password of a user - * Check that the user's password matches the supplied input. - * Useful for custom auth flows and re-verification. - * @param userId The ID of the user for whom to verify the password - * @return The response from the API call - * @throws Exception if the API call fails - */ - public VerifyPasswordResponse verifyPassword( - String userId) throws Exception { - return verifyPassword(userId, Optional.empty()); - } - /** * Verify the password of a user * Check that the user's password matches the supplied input. @@ -2574,7 +2545,7 @@ public VerifyPasswordResponse verifyPassword( */ public VerifyPasswordResponse verifyPassword( String userId, - Optional requestBody) throws Exception { + VerifyPasswordRequestBody requestBody) throws Exception { VerifyPasswordRequest request = VerifyPasswordRequest .builder() @@ -2599,6 +2570,9 @@ public VerifyPasswordResponse verifyPassword( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", @@ -2718,21 +2692,6 @@ public VerifyTOTPRequestBuilder verifyTOTP() { return new VerifyTOTPRequestBuilder(this); } - /** - * Verify a TOTP or backup code for a user - * Verify that the provided TOTP or backup code is valid for the user. - * Verifying a backup code will result it in being consumed (i.e. it will - * become invalid). - * Useful for custom auth flows and re-verification. - * @param userId The ID of the user for whom to verify the TOTP - * @return The response from the API call - * @throws Exception if the API call fails - */ - public VerifyTOTPResponse verifyTOTP( - String userId) throws Exception { - return verifyTOTP(userId, Optional.empty()); - } - /** * Verify a TOTP or backup code for a user * Verify that the provided TOTP or backup code is valid for the user. @@ -2746,7 +2705,7 @@ public VerifyTOTPResponse verifyTOTP( */ public VerifyTOTPResponse verifyTOTP( String userId, - Optional requestBody) throws Exception { + VerifyTOTPRequestBody requestBody) throws Exception { VerifyTOTPRequest request = VerifyTOTPRequest .builder() @@ -2771,6 +2730,9 @@ public VerifyTOTPResponse verifyTOTP( "requestBody", "json", false); + if (_serializedRequestBody == null) { + throw new Exception("Request body is required"); + } _req.setBody(Optional.ofNullable(_serializedRequestBody)); _req.addHeader("Accept", "application/json") .addHeader("user-agent", diff --git a/src/main/java/com/clerk/backend_api/models/operations/AddDomainRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/AddDomainRequestBuilder.java index cd80401..83723a8 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/AddDomainRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/AddDomainRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class AddDomainRequestBuilder { - private Optional request = Optional.empty(); + private AddDomainRequestBody request; private final SDKMethodInterfaces.MethodCallAddDomain sdk; public AddDomainRequestBuilder(SDKMethodInterfaces.MethodCallAddDomain sdk) { this.sdk = sdk; } - - public AddDomainRequestBuilder request(AddDomainRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public AddDomainRequestBuilder request(Optional request) { + public AddDomainRequestBuilder request(AddDomainRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/ChangeProductionInstanceDomainRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ChangeProductionInstanceDomainRequestBuilder.java index fc807fe..094b996 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ChangeProductionInstanceDomainRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ChangeProductionInstanceDomainRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class ChangeProductionInstanceDomainRequestBuilder { - private Optional request = Optional.empty(); + private ChangeProductionInstanceDomainRequestBody request; private final SDKMethodInterfaces.MethodCallChangeProductionInstanceDomain sdk; public ChangeProductionInstanceDomainRequestBuilder(SDKMethodInterfaces.MethodCallChangeProductionInstanceDomain sdk) { this.sdk = sdk; } - - public ChangeProductionInstanceDomainRequestBuilder request(ChangeProductionInstanceDomainRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public ChangeProductionInstanceDomainRequestBuilder request(Optional request) { + public ChangeProductionInstanceDomainRequestBuilder request(ChangeProductionInstanceDomainRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateActorTokenRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateActorTokenRequestBuilder.java index 340ceb5..b207bcb 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateActorTokenRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateActorTokenRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateActorTokenRequestBuilder { - private Optional request = Optional.empty(); + private CreateActorTokenRequestBody request; private final SDKMethodInterfaces.MethodCallCreateActorToken sdk; public CreateActorTokenRequestBuilder(SDKMethodInterfaces.MethodCallCreateActorToken sdk) { this.sdk = sdk; } - - public CreateActorTokenRequestBuilder request(CreateActorTokenRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateActorTokenRequestBuilder request(Optional request) { + public CreateActorTokenRequestBuilder request(CreateActorTokenRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateAllowlistIdentifierRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateAllowlistIdentifierRequestBuilder.java index 989f3e1..53e1e9a 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateAllowlistIdentifierRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateAllowlistIdentifierRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateAllowlistIdentifierRequestBuilder { - private Optional request = Optional.empty(); + private CreateAllowlistIdentifierRequestBody request; private final SDKMethodInterfaces.MethodCallCreateAllowlistIdentifier sdk; public CreateAllowlistIdentifierRequestBuilder(SDKMethodInterfaces.MethodCallCreateAllowlistIdentifier sdk) { this.sdk = sdk; } - - public CreateAllowlistIdentifierRequestBuilder request(CreateAllowlistIdentifierRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateAllowlistIdentifierRequestBuilder request(Optional request) { + public CreateAllowlistIdentifierRequestBuilder request(CreateAllowlistIdentifierRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateBlocklistIdentifierRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateBlocklistIdentifierRequestBuilder.java index a9ee73e..211d077 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateBlocklistIdentifierRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateBlocklistIdentifierRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateBlocklistIdentifierRequestBuilder { - private Optional request = Optional.empty(); + private CreateBlocklistIdentifierRequestBody request; private final SDKMethodInterfaces.MethodCallCreateBlocklistIdentifier sdk; public CreateBlocklistIdentifierRequestBuilder(SDKMethodInterfaces.MethodCallCreateBlocklistIdentifier sdk) { this.sdk = sdk; } - - public CreateBlocklistIdentifierRequestBuilder request(CreateBlocklistIdentifierRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateBlocklistIdentifierRequestBuilder request(Optional request) { + public CreateBlocklistIdentifierRequestBuilder request(CreateBlocklistIdentifierRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBuilder.java index 776a54b..d04c70a 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateEmailAddressRequestBuilder { - private Optional request = Optional.empty(); + private CreateEmailAddressRequestBody request; private final SDKMethodInterfaces.MethodCallCreateEmailAddress sdk; public CreateEmailAddressRequestBuilder(SDKMethodInterfaces.MethodCallCreateEmailAddress sdk) { this.sdk = sdk; } - - public CreateEmailAddressRequestBuilder request(CreateEmailAddressRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateEmailAddressRequestBuilder request(Optional request) { + public CreateEmailAddressRequestBuilder request(CreateEmailAddressRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateInvitationRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateInvitationRequestBuilder.java index 4a15b12..54a0238 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateInvitationRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateInvitationRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateInvitationRequestBuilder { - private Optional request = Optional.empty(); + private CreateInvitationRequestBody request; private final SDKMethodInterfaces.MethodCallCreateInvitation sdk; public CreateInvitationRequestBuilder(SDKMethodInterfaces.MethodCallCreateInvitation sdk) { this.sdk = sdk; } - - public CreateInvitationRequestBuilder request(CreateInvitationRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateInvitationRequestBuilder request(Optional request) { + public CreateInvitationRequestBuilder request(CreateInvitationRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateJWTTemplateRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateJWTTemplateRequestBuilder.java index 97d43c0..bc54e13 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateJWTTemplateRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateJWTTemplateRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateJWTTemplateRequestBuilder { - private Optional request = Optional.empty(); + private CreateJWTTemplateRequestBody request; private final SDKMethodInterfaces.MethodCallCreateJWTTemplate sdk; public CreateJWTTemplateRequestBuilder(SDKMethodInterfaces.MethodCallCreateJWTTemplate sdk) { this.sdk = sdk; } - - public CreateJWTTemplateRequestBuilder request(CreateJWTTemplateRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateJWTTemplateRequestBuilder request(Optional request) { + public CreateJWTTemplateRequestBuilder request(CreateJWTTemplateRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateOAuthApplicationRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateOAuthApplicationRequestBuilder.java index b280625..c2db389 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateOAuthApplicationRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateOAuthApplicationRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateOAuthApplicationRequestBuilder { - private Optional request = Optional.empty(); + private CreateOAuthApplicationRequestBody request; private final SDKMethodInterfaces.MethodCallCreateOAuthApplication sdk; public CreateOAuthApplicationRequestBuilder(SDKMethodInterfaces.MethodCallCreateOAuthApplication sdk) { this.sdk = sdk; } - - public CreateOAuthApplicationRequestBuilder request(CreateOAuthApplicationRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateOAuthApplicationRequestBuilder request(Optional request) { + public CreateOAuthApplicationRequestBuilder request(CreateOAuthApplicationRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationRequestBuilder.java index 0d7f726..9cbffb8 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateOrganizationRequestBuilder { - private Optional request = Optional.empty(); + private CreateOrganizationRequestBody request; private final SDKMethodInterfaces.MethodCallCreateOrganization sdk; public CreateOrganizationRequestBuilder(SDKMethodInterfaces.MethodCallCreateOrganization sdk) { this.sdk = sdk; } - - public CreateOrganizationRequestBuilder request(CreateOrganizationRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateOrganizationRequestBuilder request(Optional request) { + public CreateOrganizationRequestBuilder request(CreateOrganizationRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreatePhoneNumberRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreatePhoneNumberRequestBuilder.java index 2f30696..14fc697 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreatePhoneNumberRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreatePhoneNumberRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreatePhoneNumberRequestBuilder { - private Optional request = Optional.empty(); + private CreatePhoneNumberRequestBody request; private final SDKMethodInterfaces.MethodCallCreatePhoneNumber sdk; public CreatePhoneNumberRequestBuilder(SDKMethodInterfaces.MethodCallCreatePhoneNumber sdk) { this.sdk = sdk; } - - public CreatePhoneNumberRequestBuilder request(CreatePhoneNumberRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreatePhoneNumberRequestBuilder request(Optional request) { + public CreatePhoneNumberRequestBuilder request(CreatePhoneNumberRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateRedirectURLRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateRedirectURLRequestBuilder.java index beb79ed..13bf7c9 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateRedirectURLRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateRedirectURLRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateRedirectURLRequestBuilder { - private Optional request = Optional.empty(); + private CreateRedirectURLRequestBody request; private final SDKMethodInterfaces.MethodCallCreateRedirectURL sdk; public CreateRedirectURLRequestBuilder(SDKMethodInterfaces.MethodCallCreateRedirectURL sdk) { this.sdk = sdk; } - - public CreateRedirectURLRequestBuilder request(CreateRedirectURLRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateRedirectURLRequestBuilder request(Optional request) { + public CreateRedirectURLRequestBuilder request(CreateRedirectURLRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBuilder.java index 7d08ca9..01c1302 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateSAMLConnectionRequestBuilder { - private Optional request = Optional.empty(); + private CreateSAMLConnectionRequestBody request; private final SDKMethodInterfaces.MethodCallCreateSAMLConnection sdk; public CreateSAMLConnectionRequestBuilder(SDKMethodInterfaces.MethodCallCreateSAMLConnection sdk) { this.sdk = sdk; } - - public CreateSAMLConnectionRequestBuilder request(CreateSAMLConnectionRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateSAMLConnectionRequestBuilder request(Optional request) { + public CreateSAMLConnectionRequestBuilder request(CreateSAMLConnectionRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBuilder.java index 4cc8aa2..d7fcd29 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class CreateSignInTokenRequestBuilder { - private Optional request = Optional.empty(); + private CreateSignInTokenRequestBody request; private final SDKMethodInterfaces.MethodCallCreateSignInToken sdk; public CreateSignInTokenRequestBuilder(SDKMethodInterfaces.MethodCallCreateSignInToken sdk) { this.sdk = sdk; } - - public CreateSignInTokenRequestBuilder request(CreateSignInTokenRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public CreateSignInTokenRequestBuilder request(Optional request) { + public CreateSignInTokenRequestBuilder request(CreateSignInTokenRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/SDKMethodInterfaces.java b/src/main/java/com/clerk/backend_api/models/operations/SDKMethodInterfaces.java index 5fc7945..2434f27 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/SDKMethodInterfaces.java +++ b/src/main/java/com/clerk/backend_api/models/operations/SDKMethodInterfaces.java @@ -35,7 +35,7 @@ GetClientListResponse list( public interface MethodCallVerifyClient { VerifyClientResponse verify( - Optional request) throws Exception; + VerifyClientRequestBody request) throws Exception; } @@ -47,7 +47,7 @@ GetClientResponse get( public interface MethodCallCreateEmailAddress { CreateEmailAddressResponse create( - Optional request) throws Exception; + CreateEmailAddressRequestBody request) throws Exception; } @@ -66,13 +66,13 @@ DeleteEmailAddressResponse delete( public interface MethodCallUpdateEmailAddress { UpdateEmailAddressResponse update( String emailAddressId, - Optional requestBody) throws Exception; + UpdateEmailAddressRequestBody requestBody) throws Exception; } public interface MethodCallCreatePhoneNumber { CreatePhoneNumberResponse create( - Optional request) throws Exception; + CreatePhoneNumberRequestBody request) throws Exception; } @@ -91,7 +91,7 @@ DeletePhoneNumberResponse delete( public interface MethodCallUpdatePhoneNumber { UpdatePhoneNumberResponse update( String phoneNumberId, - Optional requestBody) throws Exception; + UpdatePhoneNumberRequestBody requestBody) throws Exception; } @@ -248,7 +248,7 @@ DeleteUserProfileImageResponse deleteProfileImage( public interface MethodCallUpdateUserMetadata { UpdateUserMetadataResponse updateMetadata( String userId, - Optional requestBody) throws Exception; + UpdateUserMetadataRequestBody requestBody) throws Exception; } @@ -279,14 +279,14 @@ UsersGetOrganizationInvitationsResponse getOrganizationInvitations( public interface MethodCallVerifyPassword { VerifyPasswordResponse verifyPassword( String userId, - Optional requestBody) throws Exception; + VerifyPasswordRequestBody requestBody) throws Exception; } public interface MethodCallVerifyTOTP { VerifyTOTPResponse verifyTOTP( String userId, - Optional requestBody) throws Exception; + VerifyTOTPRequestBody requestBody) throws Exception; } @@ -337,7 +337,7 @@ DeleteExternalAccountResponse deleteExternalAccount( public interface MethodCallCreateInvitation { CreateInvitationResponse create( - Optional request) throws Exception; + CreateInvitationRequestBody request) throws Exception; } @@ -414,13 +414,13 @@ public interface MethodCallListAllowlistIdentifiers { public interface MethodCallCreateAllowlistIdentifier { CreateAllowlistIdentifierResponse createAllowlistIdentifier( - Optional request) throws Exception; + CreateAllowlistIdentifierRequestBody request) throws Exception; } public interface MethodCallCreateBlocklistIdentifier { CreateBlocklistIdentifierResponse createBlocklistIdentifier( - Optional request) throws Exception; + CreateBlocklistIdentifierRequestBody request) throws Exception; } @@ -443,7 +443,7 @@ public interface MethodCallListBlocklistIdentifiers { public interface MethodCallUpdateInstanceAuthConfig { UpdateInstanceAuthConfigResponse updateInstanceSettings( - Optional request) throws Exception; + UpdateInstanceAuthConfigRequestBody request) throws Exception; } @@ -455,13 +455,13 @@ UpdateProductionInstanceDomainResponse updateDomain( public interface MethodCallChangeProductionInstanceDomain { ChangeProductionInstanceDomainResponse changeProductionInstanceDomain( - Optional request) throws Exception; + ChangeProductionInstanceDomainRequestBody request) throws Exception; } public interface MethodCallCreateActorToken { CreateActorTokenResponse create( - Optional request) throws Exception; + CreateActorTokenRequestBody request) throws Exception; } @@ -478,7 +478,7 @@ public interface MethodCallListDomains { public interface MethodCallAddDomain { AddDomainResponse add( - Optional request) throws Exception; + AddDomainRequestBody request) throws Exception; } @@ -497,19 +497,19 @@ UpdateDomainResponse update( public interface MethodCallUpdateInstance { UpdateInstanceResponse update( - Optional request) throws Exception; + UpdateInstanceRequestBody request) throws Exception; } public interface MethodCallUpdateInstanceRestrictions { UpdateInstanceRestrictionsResponse updateRestrictions( - Optional request) throws Exception; + UpdateInstanceRestrictionsRequestBody request) throws Exception; } public interface MethodCallUpdateInstanceOrganizationSettings { UpdateInstanceOrganizationSettingsResponse updateOrganizationSettings( - Optional request) throws Exception; + UpdateInstanceOrganizationSettingsRequestBody request) throws Exception; } @@ -535,7 +535,7 @@ public interface MethodCallListJWTTemplates { public interface MethodCallCreateJWTTemplate { CreateJWTTemplateResponse create( - Optional request) throws Exception; + CreateJWTTemplateRequestBody request) throws Exception; } @@ -548,7 +548,7 @@ GetJWTTemplateResponse get( public interface MethodCallUpdateJWTTemplate { UpdateJWTTemplateResponse update( String templateId, - Optional requestBody) throws Exception; + UpdateJWTTemplateRequestBody requestBody) throws Exception; } @@ -566,7 +566,7 @@ ListOrganizationsResponse list( public interface MethodCallCreateOrganization { CreateOrganizationResponse create( - Optional request) throws Exception; + CreateOrganizationRequestBody request) throws Exception; } @@ -600,7 +600,7 @@ MergeOrganizationMetadataResponse mergeMetadata( public interface MethodCallUploadOrganizationLogo { UploadOrganizationLogoResponse uploadLogo( String organizationId, - Optional requestBody) throws Exception; + UploadOrganizationLogoRequestBody requestBody) throws Exception; } @@ -687,7 +687,7 @@ UpdateOrganizationDomainResponse update( public interface MethodCallVerifyDomainProxy { VerifyDomainProxyResponse verify( - Optional request) throws Exception; + VerifyDomainProxyRequestBody request) throws Exception; } @@ -698,7 +698,7 @@ public interface MethodCallListRedirectURLs { public interface MethodCallCreateRedirectURL { CreateRedirectURLResponse create( - Optional request) throws Exception; + CreateRedirectURLRequestBody request) throws Exception; } @@ -716,7 +716,7 @@ DeleteRedirectURLResponse delete( public interface MethodCallCreateSignInToken { CreateSignInTokenResponse create( - Optional request) throws Exception; + CreateSignInTokenRequestBody request) throws Exception; } @@ -729,7 +729,7 @@ RevokeSignInTokenResponse revoke( public interface MethodCallUpdateSignUp { UpdateSignUpResponse update( String id, - Optional requestBody) throws Exception; + UpdateSignUpRequestBody requestBody) throws Exception; } @@ -742,7 +742,7 @@ ListOAuthApplicationsResponse list( public interface MethodCallCreateOAuthApplication { CreateOAuthApplicationResponse create( - Optional request) throws Exception; + CreateOAuthApplicationRequestBody request) throws Exception; } @@ -780,7 +780,7 @@ ListSAMLConnectionsResponse list( public interface MethodCallCreateSAMLConnection { CreateSAMLConnectionResponse create( - Optional request) throws Exception; + CreateSAMLConnectionRequestBody request) throws Exception; } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequest.java index 9a7ede1..7580124 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UpdateEmailAddressRequest { @@ -25,22 +23,17 @@ public class UpdateEmailAddressRequest { private String emailAddressId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private UpdateEmailAddressRequestBody requestBody; @JsonCreator public UpdateEmailAddressRequest( String emailAddressId, - Optional requestBody) { + UpdateEmailAddressRequestBody requestBody) { Utils.checkNotNull(emailAddressId, "emailAddressId"); Utils.checkNotNull(requestBody, "requestBody"); this.emailAddressId = emailAddressId; this.requestBody = requestBody; } - - public UpdateEmailAddressRequest( - String emailAddressId) { - this(emailAddressId, Optional.empty()); - } /** * The ID of the email address to update @@ -50,10 +43,9 @@ public String emailAddressId() { return emailAddressId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UpdateEmailAddressRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UpdateEmailAddressRequest withEmailAddressId(String emailAddressId) { } public UpdateEmailAddressRequest withRequestBody(UpdateEmailAddressRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UpdateEmailAddressRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String emailAddressId; - private Optional requestBody = Optional.empty(); + private UpdateEmailAddressRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder emailAddressId(String emailAddressId) { } public Builder requestBody(UpdateEmailAddressRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBuilder.java index d784cc2..17d57ed 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UpdateEmailAddressRequestBuilder { private String emailAddressId; - private Optional requestBody = Optional.empty(); + private UpdateEmailAddressRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUpdateEmailAddress sdk; public UpdateEmailAddressRequestBuilder(SDKMethodInterfaces.MethodCallUpdateEmailAddress sdk) { @@ -23,14 +22,8 @@ public UpdateEmailAddressRequestBuilder emailAddressId(String emailAddressId) { this.emailAddressId = emailAddressId; return this; } - - public UpdateEmailAddressRequestBuilder requestBody(UpdateEmailAddressRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UpdateEmailAddressRequestBuilder requestBody(Optional requestBody) { + public UpdateEmailAddressRequestBuilder requestBody(UpdateEmailAddressRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceAuthConfigRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceAuthConfigRequestBuilder.java index 3b4ad9e..a10a691 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceAuthConfigRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceAuthConfigRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class UpdateInstanceAuthConfigRequestBuilder { - private Optional request = Optional.empty(); + private UpdateInstanceAuthConfigRequestBody request; private final SDKMethodInterfaces.MethodCallUpdateInstanceAuthConfig sdk; public UpdateInstanceAuthConfigRequestBuilder(SDKMethodInterfaces.MethodCallUpdateInstanceAuthConfig sdk) { this.sdk = sdk; } - - public UpdateInstanceAuthConfigRequestBuilder request(UpdateInstanceAuthConfigRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public UpdateInstanceAuthConfigRequestBuilder request(Optional request) { + public UpdateInstanceAuthConfigRequestBuilder request(UpdateInstanceAuthConfigRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOrganizationSettingsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOrganizationSettingsRequestBuilder.java index d7a8e47..1a5600c 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOrganizationSettingsRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOrganizationSettingsRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class UpdateInstanceOrganizationSettingsRequestBuilder { - private Optional request = Optional.empty(); + private UpdateInstanceOrganizationSettingsRequestBody request; private final SDKMethodInterfaces.MethodCallUpdateInstanceOrganizationSettings sdk; public UpdateInstanceOrganizationSettingsRequestBuilder(SDKMethodInterfaces.MethodCallUpdateInstanceOrganizationSettings sdk) { this.sdk = sdk; } - - public UpdateInstanceOrganizationSettingsRequestBuilder request(UpdateInstanceOrganizationSettingsRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public UpdateInstanceOrganizationSettingsRequestBuilder request(Optional request) { + public UpdateInstanceOrganizationSettingsRequestBuilder request(UpdateInstanceOrganizationSettingsRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRequestBuilder.java index bb0e01a..b66a33b 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class UpdateInstanceRequestBuilder { - private Optional request = Optional.empty(); + private UpdateInstanceRequestBody request; private final SDKMethodInterfaces.MethodCallUpdateInstance sdk; public UpdateInstanceRequestBuilder(SDKMethodInterfaces.MethodCallUpdateInstance sdk) { this.sdk = sdk; } - - public UpdateInstanceRequestBuilder request(UpdateInstanceRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public UpdateInstanceRequestBuilder request(Optional request) { + public UpdateInstanceRequestBuilder request(UpdateInstanceRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRestrictionsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRestrictionsRequestBuilder.java index 8e7c867..ba2fc52 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRestrictionsRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceRestrictionsRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class UpdateInstanceRestrictionsRequestBuilder { - private Optional request = Optional.empty(); + private UpdateInstanceRestrictionsRequestBody request; private final SDKMethodInterfaces.MethodCallUpdateInstanceRestrictions sdk; public UpdateInstanceRestrictionsRequestBuilder(SDKMethodInterfaces.MethodCallUpdateInstanceRestrictions sdk) { this.sdk = sdk; } - - public UpdateInstanceRestrictionsRequestBuilder request(UpdateInstanceRestrictionsRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public UpdateInstanceRestrictionsRequestBuilder request(Optional request) { + public UpdateInstanceRestrictionsRequestBuilder request(UpdateInstanceRestrictionsRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequest.java index f9f2d52..168870c 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UpdateJWTTemplateRequest { @@ -25,22 +23,17 @@ public class UpdateJWTTemplateRequest { private String templateId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private UpdateJWTTemplateRequestBody requestBody; @JsonCreator public UpdateJWTTemplateRequest( String templateId, - Optional requestBody) { + UpdateJWTTemplateRequestBody requestBody) { Utils.checkNotNull(templateId, "templateId"); Utils.checkNotNull(requestBody, "requestBody"); this.templateId = templateId; this.requestBody = requestBody; } - - public UpdateJWTTemplateRequest( - String templateId) { - this(templateId, Optional.empty()); - } /** * The ID of the JWT template to update @@ -50,10 +43,9 @@ public String templateId() { return templateId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UpdateJWTTemplateRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UpdateJWTTemplateRequest withTemplateId(String templateId) { } public UpdateJWTTemplateRequest withRequestBody(UpdateJWTTemplateRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UpdateJWTTemplateRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String templateId; - private Optional requestBody = Optional.empty(); + private UpdateJWTTemplateRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder templateId(String templateId) { } public Builder requestBody(UpdateJWTTemplateRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequestBuilder.java index 6dcda7f..f3c9e7a 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateJWTTemplateRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UpdateJWTTemplateRequestBuilder { private String templateId; - private Optional requestBody = Optional.empty(); + private UpdateJWTTemplateRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUpdateJWTTemplate sdk; public UpdateJWTTemplateRequestBuilder(SDKMethodInterfaces.MethodCallUpdateJWTTemplate sdk) { @@ -23,14 +22,8 @@ public UpdateJWTTemplateRequestBuilder templateId(String templateId) { this.templateId = templateId; return this; } - - public UpdateJWTTemplateRequestBuilder requestBody(UpdateJWTTemplateRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UpdateJWTTemplateRequestBuilder requestBody(Optional requestBody) { + public UpdateJWTTemplateRequestBuilder requestBody(UpdateJWTTemplateRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequest.java index ede296f..a0ef2dc 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UpdatePhoneNumberRequest { @@ -25,22 +23,17 @@ public class UpdatePhoneNumberRequest { private String phoneNumberId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private UpdatePhoneNumberRequestBody requestBody; @JsonCreator public UpdatePhoneNumberRequest( String phoneNumberId, - Optional requestBody) { + UpdatePhoneNumberRequestBody requestBody) { Utils.checkNotNull(phoneNumberId, "phoneNumberId"); Utils.checkNotNull(requestBody, "requestBody"); this.phoneNumberId = phoneNumberId; this.requestBody = requestBody; } - - public UpdatePhoneNumberRequest( - String phoneNumberId) { - this(phoneNumberId, Optional.empty()); - } /** * The ID of the phone number to update @@ -50,10 +43,9 @@ public String phoneNumberId() { return phoneNumberId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UpdatePhoneNumberRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UpdatePhoneNumberRequest withPhoneNumberId(String phoneNumberId) { } public UpdatePhoneNumberRequest withRequestBody(UpdatePhoneNumberRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UpdatePhoneNumberRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String phoneNumberId; - private Optional requestBody = Optional.empty(); + private UpdatePhoneNumberRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder phoneNumberId(String phoneNumberId) { } public Builder requestBody(UpdatePhoneNumberRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequestBuilder.java index cc28ab9..4fcc6d0 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdatePhoneNumberRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UpdatePhoneNumberRequestBuilder { private String phoneNumberId; - private Optional requestBody = Optional.empty(); + private UpdatePhoneNumberRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUpdatePhoneNumber sdk; public UpdatePhoneNumberRequestBuilder(SDKMethodInterfaces.MethodCallUpdatePhoneNumber sdk) { @@ -23,14 +22,8 @@ public UpdatePhoneNumberRequestBuilder phoneNumberId(String phoneNumberId) { this.phoneNumberId = phoneNumberId; return this; } - - public UpdatePhoneNumberRequestBuilder requestBody(UpdatePhoneNumberRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UpdatePhoneNumberRequestBuilder requestBody(Optional requestBody) { + public UpdatePhoneNumberRequestBuilder requestBody(UpdatePhoneNumberRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java index e71b6d4..f08902d 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UpdateSignUpRequest { @@ -25,22 +23,17 @@ public class UpdateSignUpRequest { private String id; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private UpdateSignUpRequestBody requestBody; @JsonCreator public UpdateSignUpRequest( String id, - Optional requestBody) { + UpdateSignUpRequestBody requestBody) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(requestBody, "requestBody"); this.id = id; this.requestBody = requestBody; } - - public UpdateSignUpRequest( - String id) { - this(id, Optional.empty()); - } /** * The ID of the sign-up to update @@ -50,10 +43,9 @@ public String id() { return id; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UpdateSignUpRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UpdateSignUpRequest withId(String id) { } public UpdateSignUpRequest withRequestBody(UpdateSignUpRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UpdateSignUpRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String id; - private Optional requestBody = Optional.empty(); + private UpdateSignUpRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder id(String id) { } public Builder requestBody(UpdateSignUpRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequestBuilder.java index cc744b4..9f85a57 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UpdateSignUpRequestBuilder { private String id; - private Optional requestBody = Optional.empty(); + private UpdateSignUpRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUpdateSignUp sdk; public UpdateSignUpRequestBuilder(SDKMethodInterfaces.MethodCallUpdateSignUp sdk) { @@ -23,14 +22,8 @@ public UpdateSignUpRequestBuilder id(String id) { this.id = id; return this; } - - public UpdateSignUpRequestBuilder requestBody(UpdateSignUpRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UpdateSignUpRequestBuilder requestBody(Optional requestBody) { + public UpdateSignUpRequestBuilder requestBody(UpdateSignUpRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequest.java index 536ed14..62cd087 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UpdateUserMetadataRequest { @@ -25,22 +23,17 @@ public class UpdateUserMetadataRequest { private String userId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private UpdateUserMetadataRequestBody requestBody; @JsonCreator public UpdateUserMetadataRequest( String userId, - Optional requestBody) { + UpdateUserMetadataRequestBody requestBody) { Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(requestBody, "requestBody"); this.userId = userId; this.requestBody = requestBody; } - - public UpdateUserMetadataRequest( - String userId) { - this(userId, Optional.empty()); - } /** * The ID of the user whose metadata will be updated and merged @@ -50,10 +43,9 @@ public String userId() { return userId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UpdateUserMetadataRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UpdateUserMetadataRequest withUserId(String userId) { } public UpdateUserMetadataRequest withRequestBody(UpdateUserMetadataRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UpdateUserMetadataRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String userId; - private Optional requestBody = Optional.empty(); + private UpdateUserMetadataRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder userId(String userId) { } public Builder requestBody(UpdateUserMetadataRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequestBuilder.java index 485b3f4..fa0df3b 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateUserMetadataRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UpdateUserMetadataRequestBuilder { private String userId; - private Optional requestBody = Optional.empty(); + private UpdateUserMetadataRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUpdateUserMetadata sdk; public UpdateUserMetadataRequestBuilder(SDKMethodInterfaces.MethodCallUpdateUserMetadata sdk) { @@ -23,14 +22,8 @@ public UpdateUserMetadataRequestBuilder userId(String userId) { this.userId = userId; return this; } - - public UpdateUserMetadataRequestBuilder requestBody(UpdateUserMetadataRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UpdateUserMetadataRequestBuilder requestBody(Optional requestBody) { + public UpdateUserMetadataRequestBuilder requestBody(UpdateUserMetadataRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequest.java index 832f500..e411e51 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class UploadOrganizationLogoRequest { @@ -25,22 +23,17 @@ public class UploadOrganizationLogoRequest { private String organizationId; @SpeakeasyMetadata("request:mediaType=multipart/form-data") - private Optional requestBody; + private UploadOrganizationLogoRequestBody requestBody; @JsonCreator public UploadOrganizationLogoRequest( String organizationId, - Optional requestBody) { + UploadOrganizationLogoRequestBody requestBody) { Utils.checkNotNull(organizationId, "organizationId"); Utils.checkNotNull(requestBody, "requestBody"); this.organizationId = organizationId; this.requestBody = requestBody; } - - public UploadOrganizationLogoRequest( - String organizationId) { - this(organizationId, Optional.empty()); - } /** * The ID of the organization for which to upload a logo @@ -50,10 +43,9 @@ public String organizationId() { return organizationId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public UploadOrganizationLogoRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public UploadOrganizationLogoRequest withOrganizationId(String organizationId) { } public UploadOrganizationLogoRequest withRequestBody(UploadOrganizationLogoRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public UploadOrganizationLogoRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String organizationId; - private Optional requestBody = Optional.empty(); + private UploadOrganizationLogoRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder organizationId(String organizationId) { } public Builder requestBody(UploadOrganizationLogoRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequestBuilder.java index 51e71a6..de7d671 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UploadOrganizationLogoRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class UploadOrganizationLogoRequestBuilder { private String organizationId; - private Optional requestBody = Optional.empty(); + private UploadOrganizationLogoRequestBody requestBody; private final SDKMethodInterfaces.MethodCallUploadOrganizationLogo sdk; public UploadOrganizationLogoRequestBuilder(SDKMethodInterfaces.MethodCallUploadOrganizationLogo sdk) { @@ -23,14 +22,8 @@ public UploadOrganizationLogoRequestBuilder organizationId(String organizationId this.organizationId = organizationId; return this; } - - public UploadOrganizationLogoRequestBuilder requestBody(UploadOrganizationLogoRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public UploadOrganizationLogoRequestBuilder requestBody(Optional requestBody) { + public UploadOrganizationLogoRequestBuilder requestBody(UploadOrganizationLogoRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBody.java index 1c0a4cb..bec3416 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBody.java @@ -16,9 +16,6 @@ import java.util.Objects; import java.util.Optional; -/** - * VerifyClientRequestBody - Parameters. - */ public class VerifyClientRequestBody { diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBuilder.java index f46c330..8d03f2d 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyClientRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class VerifyClientRequestBuilder { - private Optional request = Optional.empty(); + private VerifyClientRequestBody request; private final SDKMethodInterfaces.MethodCallVerifyClient sdk; public VerifyClientRequestBuilder(SDKMethodInterfaces.MethodCallVerifyClient sdk) { this.sdk = sdk; } - - public VerifyClientRequestBuilder request(VerifyClientRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public VerifyClientRequestBuilder request(Optional request) { + public VerifyClientRequestBuilder request(VerifyClientRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyDomainProxyRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyDomainProxyRequestBuilder.java index d54992e..ca9b377 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyDomainProxyRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyDomainProxyRequestBuilder.java @@ -5,24 +5,17 @@ package com.clerk.backend_api.models.operations; import com.clerk.backend_api.utils.Utils; -import java.util.Optional; public class VerifyDomainProxyRequestBuilder { - private Optional request = Optional.empty(); + private VerifyDomainProxyRequestBody request; private final SDKMethodInterfaces.MethodCallVerifyDomainProxy sdk; public VerifyDomainProxyRequestBuilder(SDKMethodInterfaces.MethodCallVerifyDomainProxy sdk) { this.sdk = sdk; } - - public VerifyDomainProxyRequestBuilder request(VerifyDomainProxyRequestBody request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); - return this; - } - public VerifyDomainProxyRequestBuilder request(Optional request) { + public VerifyDomainProxyRequestBuilder request(VerifyDomainProxyRequestBody request) { Utils.checkNotNull(request, "request"); this.request = request; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequest.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequest.java index d682904..11f69c5 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class VerifyPasswordRequest { @@ -25,22 +23,17 @@ public class VerifyPasswordRequest { private String userId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private VerifyPasswordRequestBody requestBody; @JsonCreator public VerifyPasswordRequest( String userId, - Optional requestBody) { + VerifyPasswordRequestBody requestBody) { Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(requestBody, "requestBody"); this.userId = userId; this.requestBody = requestBody; } - - public VerifyPasswordRequest( - String userId) { - this(userId, Optional.empty()); - } /** * The ID of the user for whom to verify the password @@ -50,10 +43,9 @@ public String userId() { return userId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public VerifyPasswordRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public VerifyPasswordRequest withUserId(String userId) { } public VerifyPasswordRequest withRequestBody(VerifyPasswordRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public VerifyPasswordRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String userId; - private Optional requestBody = Optional.empty(); + private VerifyPasswordRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder userId(String userId) { } public Builder requestBody(VerifyPasswordRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequestBuilder.java index 9514bfb..b6b94a6 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyPasswordRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class VerifyPasswordRequestBuilder { private String userId; - private Optional requestBody = Optional.empty(); + private VerifyPasswordRequestBody requestBody; private final SDKMethodInterfaces.MethodCallVerifyPassword sdk; public VerifyPasswordRequestBuilder(SDKMethodInterfaces.MethodCallVerifyPassword sdk) { @@ -23,14 +22,8 @@ public VerifyPasswordRequestBuilder userId(String userId) { this.userId = userId; return this; } - - public VerifyPasswordRequestBuilder requestBody(VerifyPasswordRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public VerifyPasswordRequestBuilder requestBody(Optional requestBody) { + public VerifyPasswordRequestBuilder requestBody(VerifyPasswordRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequest.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequest.java index 89608bb..76748e4 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequest.java @@ -11,9 +11,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; -import java.util.Optional; public class VerifyTOTPRequest { @@ -25,22 +23,17 @@ public class VerifyTOTPRequest { private String userId; @SpeakeasyMetadata("request:mediaType=application/json") - private Optional requestBody; + private VerifyTOTPRequestBody requestBody; @JsonCreator public VerifyTOTPRequest( String userId, - Optional requestBody) { + VerifyTOTPRequestBody requestBody) { Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(requestBody, "requestBody"); this.userId = userId; this.requestBody = requestBody; } - - public VerifyTOTPRequest( - String userId) { - this(userId, Optional.empty()); - } /** * The ID of the user for whom to verify the TOTP @@ -50,10 +43,9 @@ public String userId() { return userId; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional requestBody() { - return (Optional) requestBody; + public VerifyTOTPRequestBody requestBody() { + return requestBody; } public final static Builder builder() { @@ -70,12 +62,6 @@ public VerifyTOTPRequest withUserId(String userId) { } public VerifyTOTPRequest withRequestBody(VerifyTOTPRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public VerifyTOTPRequest withRequestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -113,7 +99,7 @@ public final static class Builder { private String userId; - private Optional requestBody = Optional.empty(); + private VerifyTOTPRequestBody requestBody; private Builder() { // force use of static builder() method @@ -129,12 +115,6 @@ public Builder userId(String userId) { } public Builder requestBody(VerifyTOTPRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.ofNullable(requestBody); - return this; - } - - public Builder requestBody(Optional requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequestBuilder.java index d5c6384..1e4ff9e 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequestBuilder.java +++ b/src/main/java/com/clerk/backend_api/models/operations/VerifyTOTPRequestBuilder.java @@ -6,12 +6,11 @@ import com.clerk.backend_api.utils.Utils; import java.lang.String; -import java.util.Optional; public class VerifyTOTPRequestBuilder { private String userId; - private Optional requestBody = Optional.empty(); + private VerifyTOTPRequestBody requestBody; private final SDKMethodInterfaces.MethodCallVerifyTOTP sdk; public VerifyTOTPRequestBuilder(SDKMethodInterfaces.MethodCallVerifyTOTP sdk) { @@ -23,14 +22,8 @@ public VerifyTOTPRequestBuilder userId(String userId) { this.userId = userId; return this; } - - public VerifyTOTPRequestBuilder requestBody(VerifyTOTPRequestBody requestBody) { - Utils.checkNotNull(requestBody, "requestBody"); - this.requestBody = Optional.of(requestBody); - return this; - } - public VerifyTOTPRequestBuilder requestBody(Optional requestBody) { + public VerifyTOTPRequestBuilder requestBody(VerifyTOTPRequestBody requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this;