From 5f11aeca205ea8696adecfe3dba71869d6043746 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Aug 2026 00:24:38 +0000 Subject: [PATCH] =?UTF-8?q?##=20Java=20SDK=20Changes:=20*=20`clerk.instanc?= =?UTF-8?q?eSettings.getOrganizationSettings()`:=20=20`error`=20**Changed*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getOrgan?= =?UTF-8?q?izationMemberships()`:=20=20=20*=20=20`response.data[].publicUs?= =?UTF-8?q?erData.deprovisioned`=20**Added**=20=20=20*=20=20`error`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.clients.?= =?UTF-8?q?get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.emailAddresses.create()`:=20=20=20*=20?= =?UTF-8?q?=20`request.notifyPrimaryEmailAddressChanged`=20**Added**=20=20?= =?UTF-8?q?=20*=20=20`response.verification`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.get()`:?= =?UTF-8?q?=20=20=20*=20=20`response.verification`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.replac?= =?UTF-8?q?eRole()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.roleSets.addRoles()`:=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSe?= =?UTF-8?q?ts.replace()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.update()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.roleSets.get()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.roleSets.create()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.roleSets.list()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationPermissions.delete?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationPermissions.update()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.emailAddresses.delete()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.?= =?UTF-8?q?update()`:=20=20=20*=20=20`requestBody.notifyPrimaryEmailAddres?= =?UTF-8?q?sChanged`=20**Added**=20=20=20*=20=20`response.verification`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.emailAddresses.prepareVerification()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddr?= =?UTF-8?q?esses.attemptVerification()`:=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailAddresses.replace?= =?UTF-8?q?ForUser()`:=20=20=20*=20=20`requestBody`=20**Changed**=20=20=20?= =?UTF-8?q?*=20=20`response.verification`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.updat?= =?UTF-8?q?eOAuthApplicationSettings()`:=20=20=20*=20=20`request`=20**Chan?= =?UTF-8?q?ged**=20=20=20*=20=20`response`=20**Changed**=20=20=20*=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.phoneNumbers.get()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.delete()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.phoneNumbers.update()`:=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.prepa?= =?UTF-8?q?reVerification()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.attemptVerificati?= =?UTF-8?q?on()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.phoneNumbers.replaceForUser()`:=20=20?= =?UTF-8?q?=20*=20=20`requestBody.identificationStatus.enum(unverified)`?= =?UTF-8?q?=20**Added**=20=20=20*=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.list()`:=20=20`err?= =?UTF-8?q?or`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cler?= =?UTF-8?q?k.sessions.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.get()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.s?= =?UTF-8?q?essions.refresh()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.revoke()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.sessions.createToken()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.sessions.createTokenFromTe?= =?UTF-8?q?mplate()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.emailSmsTemplates.list()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.e?= =?UTF-8?q?mailSmsTemplates.get()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.emailSmsTemplates.revert()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.emailSmsTemplates.toggleTemplateDelivery()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.emailAndSmsTemplates.upsert()`:=20=20`error`=20**Chan?= =?UTF-8?q?ged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.templates.?= =?UTF-8?q?preview()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.list()`:=20=20=20*=20=20`response?= =?UTF-8?q?.[]`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.create()`:=20=20=20*=20=20`response`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.?= =?UTF-8?q?users.count()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.get()`:=20=20=20*=20=20`?= =?UTF-8?q?response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.update()`:=20=20=20*=20=20`respon?= =?UTF-8?q?se`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.delete()`:=20=20`error`=20**Changed**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.ban()`:=20=20?= =?UTF-8?q?=20*=20=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.unban()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.bulkBan()`:=20=20=20*=20=20`respo?= =?UTF-8?q?nse.[]`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.bulkUnban()`:=20=20=20*=20=20`res?= =?UTF-8?q?ponse.[]`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.lock()`:=20=20=20*=20=20`response?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.users.unlock()`:=20=20=20*=20=20`response`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.user?= =?UTF-8?q?s.setProfileImage()`:=20=20=20*=20=20`response`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.d?= =?UTF-8?q?eleteProfileImage()`:=20=20=20*=20=20`response`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.u?= =?UTF-8?q?pdateMetadata()`:=20=20=20*=20=20`response`=20**Changed**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.replace?= =?UTF-8?q?Metadata()`:=20=20=20*=20=20`response`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getBillingSu?= =?UTF-8?q?bscription()`:=20=20=20*=20=20`response.subscriptionItems[].pay?= =?UTF-8?q?mentMethod.paymentType.enum(payerCredits)`=20**Added**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getBillin?= =?UTF-8?q?gCreditBalance()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.adjustBillingCreditBalan?= =?UTF-8?q?ce()`:=20=20=20*=20=20`response`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getOAuthAccessTo?= =?UTF-8?q?ken()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.instanceSettings.changeDomain()`:=20=20?= =?UTF-8?q?`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?clerk.users.getOrganizationInvitations()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.ver?= =?UTF-8?q?ifyPassword()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.verifyTotp()`:=20=20`err?= =?UTF-8?q?or`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cler?= =?UTF-8?q?k.users.disableMfa()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.deleteBackupCodes()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.users.deletePasskey()`:=20=20`error`=20**Changed*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.deleteWe?= =?UTF-8?q?b3Wallet()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.users.deleteTotp()`:=20=20`error`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.d?= =?UTF-8?q?eleteExternalAccount()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.setPasswordCompromise?= =?UTF-8?q?d()`:=20=20=20*=20=20`response`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.unsetPasswordCom?= =?UTF-8?q?promised()`:=20=20=20*=20=20`response`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.users.getInstanceO?= =?UTF-8?q?rganizationMemberships()`:=20=20=20*=20=20`response.data[].publ?= =?UTF-8?q?icUserData.deprovisioned`=20**Added**=20=20=20*=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.invi?= =?UTF-8?q?tations.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.invitations.bulkCreate()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.invitations.revoke()`:=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitat?= =?UTF-8?q?ions.getAll()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitations.create?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationInvitations.list()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.organizationInvitations.bulkCreate()`:=20=20`error`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organiza?= =?UTF-8?q?tionInvitations.listPending()`:=20=20`error`=20**Changed**=20(B?= =?UTF-8?q?reaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationInvitati?= =?UTF-8?q?ons.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationInvitations.revoke()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.allowlistIdentifiers.list()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.allowlistIde?= =?UTF-8?q?ntifiers.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.allowlistIdentifiers.delete()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.blocklistIdentifiers.list()`:=20=20`error`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.blocklis?= =?UTF-8?q?tIdentifiers.create()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.blocklistIdentifiers.delete?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.betaFeatures.updateInstanceSettings()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.betaFeatures.updateProductionInstanceDomain()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.actorTokens.create()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.actorTokens.rev?= =?UTF-8?q?oke()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.domains.add()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.domains.dele?= =?UTF-8?q?te()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.domains.update()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceS?= =?UTF-8?q?ettings.update()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.updateRestric?= =?UTF-8?q?tions()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.instanceSettings.updateCommunication()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizationPermissions.get()`:=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.client?= =?UTF-8?q?s.list()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationPermissions.create()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.organizationPermissions.list()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.g?= =?UTF-8?q?etStatementPaymentAttempts()`:=20=20=20*=20=20`response.data[].?= =?UTF-8?q?paymentMethod.paymentType.enum(payerCredits)`=20**Added**=20(Br?= =?UTF-8?q?eaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.getSt?= =?UTF-8?q?atement()`:=20=20=20*=20=20`response.groups[].items[].paymentMe?= =?UTF-8?q?thod.paymentType.enum(payerCredits)`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.phoneNumbers.create()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.clients.verify()`:=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.listStateme?= =?UTF-8?q?nts()`:=20=20=20*=20=20`response.data[].groups[].items[].paymen?= =?UTF-8?q?tMethod.paymentType.enum(payerCredits)`=20**Added**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.instanceSettings.up?= =?UTF-8?q?dateOrganizationSettings()`:=20=20`error`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.createPriceTran?= =?UTF-8?q?sition()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.instanceSettings.updateInstanceProtect(?= =?UTF-8?q?)`:=20=20=20*=20=20`response.checksBypassed`=20**Added**=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.webhooks.createSvixApp()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.w?= =?UTF-8?q?ebhooks.deleteSvixApp()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.webhooks.generateSvixAuthU?= =?UTF-8?q?rl()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.jwtTemplates.create()`:=20=20`error`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.jwtT?= =?UTF-8?q?emplates.get()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.jwtTemplates.update()`:=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.jwtTemplates.delete()`:=20=20`error`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.list()`:=20=20?= =?UTF-8?q?`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?clerk.machines.create()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.get()`:=20=20`err?= =?UTF-8?q?or`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cler?= =?UTF-8?q?k.machines.update()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.delete()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.machines.getSecretKey()`:=20=20`error`=20**Changed**=20(Breaki?= =?UTF-8?q?ng=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.rotateSecretKey(?= =?UTF-8?q?)`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20*=20`clerk.machines.createScope()`:=20=20`error`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.machines.del?= =?UTF-8?q?eteScope()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizations.list()`:=20=20`error`=20*?= =?UTF-8?q?*Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organ?= =?UTF-8?q?izations.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.get()`:=20=20`er?= =?UTF-8?q?ror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cle?= =?UTF-8?q?rk.organizations.update()`:=20=20`error`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.delete()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizations.mergeMetadata()`:=20=20`error`=20**?= =?UTF-8?q?Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organi?= =?UTF-8?q?zations.replaceMetadata()`:=20=20`error`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizations.uploadLogo?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizations.deleteLogo()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.organizations.getBillingSubscription()`:=20=20=20*=20=20`respo?= =?UTF-8?q?nse.subscriptionItems[].paymentMethod.paymentType.enum(payerCre?= =?UTF-8?q?dits)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizations.getBillingCreditBalance()`:=20=20`e?= =?UTF-8?q?rror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cl?= =?UTF-8?q?erk.organizations.adjustBillingCreditBalance()`:=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationRoles.list()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.o?= =?UTF-8?q?rganizationRoles.create()`:=20=20`error`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationRoles.get()`?= =?UTF-8?q?:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizationRoles.update()`:=20=20`error`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizat?= =?UTF-8?q?ionRoles.delete()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationRoles.assignPermis?= =?UTF-8?q?sion()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationRoles.removePermission()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizationMemberships.create()`:=20=20=20*=20?= =?UTF-8?q?=20`response.publicUserData.deprovisioned`=20**Added**=20=20=20?= =?UTF-8?q?*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.organizationMemberships.list()`:=20=20=20*=20=20`?= =?UTF-8?q?response.data[].publicUserData.deprovisioned`=20**Added**=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationMemberships.update()`:=20?= =?UTF-8?q?=20=20*=20=20`response.publicUserData.deprovisioned`=20**Added*?= =?UTF-8?q?*=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationMemberships.delete()`:=20?= =?UTF-8?q?=20=20*=20=20`response.publicUserData.deprovisioned`=20**Added*?= =?UTF-8?q?*=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationMemberships.updateMetadata(?= =?UTF-8?q?)`:=20=20=20*=20=20`response.publicUserData.deprovisioned`=20**?= =?UTF-8?q?Added**=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationDomains.create()`:?= =?UTF-8?q?=20=20=20*=20=20`response.enrollmentMode.enum(enterpriseSso)`?= =?UTF-8?q?=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`?= =?UTF-8?q?error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`c?= =?UTF-8?q?lerk.organizationDomains.list()`:=20=20=20*=20=20`response.data?= =?UTF-8?q?[].enrollmentMode.enum(enterpriseSso)`=20**Added**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationDomains?= =?UTF-8?q?.update()`:=20=20=20*=20=20`response.enrollmentMode.enum(enterp?= =?UTF-8?q?riseSso)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.organizationDomains.delete()`:=20=20`er?= =?UTF-8?q?ror`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cle?= =?UTF-8?q?rk.organizationDomains.verifyOwnership()`:=20=20=20*=20=20`resp?= =?UTF-8?q?onse.enrollmentMode.enum(enterpriseSso)`=20**Added**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`error`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.organizationDomain?= =?UTF-8?q?s.listAll()`:=20=20=20*=20=20`request.enrollmentMode`=20**Chang?= =?UTF-8?q?ed**=20=20=20*=20=20`response.data[].enrollmentMode.enum(enterp?= =?UTF-8?q?riseSso)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.proxyChecks.verify()`:=20=20`error`=20*?= =?UTF-8?q?*Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.redir?= =?UTF-8?q?ectUrls.create()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.redirectUrls.get()`:=20=20`err?= =?UTF-8?q?or`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`cler?= =?UTF-8?q?k.redirectUrls.delete()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.signInTokens.create()`:=20?= =?UTF-8?q?=20=20*=20=20`request.orgId`=20**Added**=20=20=20*=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.s?= =?UTF-8?q?ignInTokens.revoke()`:=20=20`error`=20**Changed**=20(Breaking?= =?UTF-8?q?=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.signUps.get()`:=20=20`error?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.?= =?UTF-8?q?signUps.update()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthApplications.list()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.oauthApplications.create()`:=20=20`error`=20**Changed?= =?UTF-8?q?**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthApplicat?= =?UTF-8?q?ions.get()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.oauthApplications.update()`:=20=20`erro?= =?UTF-8?q?r`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk?= =?UTF-8?q?.oauthApplications.delete()`:=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.oauthApplications.uplo?= =?UTF-8?q?adLogo()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.oauthApplications.rotateSecret()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.samlConnections.list()`:=20=20=20*=20=20`response.dat?= =?UTF-8?q?a[]`=20**Changed**=20=20=20*=20=20`error`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.samlConnections.create(?= =?UTF-8?q?)`:=20=20=20*=20=20`request`=20**Changed**=20=20=20*=20=20`resp?= =?UTF-8?q?onse`=20**Changed**=20=20=20*=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.samlConnections.get()`?= =?UTF-8?q?:=20=20=20*=20=20`response`=20**Changed**=20=20=20*=20=20`error?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.?= =?UTF-8?q?samlConnections.update()`:=20=20=20*=20=20`requestBody.loginHin?= =?UTF-8?q?t`=20**Added**=20=20=20*=20=20`response`=20**Changed**=20=20=20?= =?UTF-8?q?*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.samlConnections.delete()`:=20=20`error`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseC?= =?UTF-8?q?onnections.list()`:=20=20=20*=20=20`response.data[]`=20**Change?= =?UTF-8?q?d**=20=20=20*=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConnections.create()?= =?UTF-8?q?`:=20=20=20*=20=20`request.saml.loginHint`=20**Added**=20=20=20?= =?UTF-8?q?*=20=20`response`=20**Changed**=20=20=20*=20=20`error`=20**Chan?= =?UTF-8?q?ged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterprise?= =?UTF-8?q?Connections.get()`:=20=20=20*=20=20`response`=20**Changed**=20?= =?UTF-8?q?=20=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.enterpriseConnections.update()`:=20=20?= =?UTF-8?q?=20*=20=20`requestBody.saml.loginHint`=20**Added**=20=20=20*=20?= =?UTF-8?q?=20`response`=20**Changed**=20=20=20*=20=20`error`=20**Changed*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConn?= =?UTF-8?q?ections.delete()`:=20=20`error`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`clerk.enterpriseConnections.listTest?= =?UTF-8?q?Runs()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.enterpriseConnections.createTestRun()`:?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.agentTasks.create()`:=20=20`error`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.agentTasks.revo?= =?UTF-8?q?ke()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.waitlistEntries.create()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.w?= =?UTF-8?q?aitlistEntries.bulkCreate()`:=20=20`error`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.waitlistEntries.delete?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.waitlistEntries.invite()`:=20=20`error`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.w?= =?UTF-8?q?aitlistEntries.reject()`:=20=20`error`=20**Changed**=20(Breakin?= =?UTF-8?q?g=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.listPlans()`:=20?= =?UTF-8?q?=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`clerk.billing.listPrices()`:=20=20`error`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`clerk.billing.createPrice?= =?UTF-8?q?()`:=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.billing.listSubscriptionItems()`:=20=20?= =?UTF-8?q?=20*=20=20`response.data[].paymentMethod.paymentType.enum(payer?= =?UTF-8?q?Credits)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20?= =?UTF-8?q?=20*=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`clerk.billing.cancelSubscriptionItem()`:=20?= =?UTF-8?q?=20=20*=20=20`response.paymentMethod.paymentType.enum(payerCred?= =?UTF-8?q?its)`=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*?= =?UTF-8?q?=20=20`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`clerk.billing.extendSubscriptionItemFreeTrial()`:=20=20?= =?UTF-8?q?`error`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?clerk.scimDirectories.update()`:=20**Added**=20*=20`clerk.scimD?= =?UTF-8?q?irectories.delete()`:=20**Added**=20*=20`clerk.instanceSettings?= =?UTF-8?q?.getOAuthApplicationSettings()`:=20=20`response`=20**Changed**?= =?UTF-8?q?=20*=20`clerk.scimDirectories.deleteGroupRoleMapping()`:=20**Ad?= =?UTF-8?q?ded**=20*=20`clerk.scimDirectories.replaceGroupRoleMappings()`:?= =?UTF-8?q?=20**Added**=20*=20`clerk.scimDirectories.createGroupRoleMappin?= =?UTF-8?q?g()`:=20**Added**=20*=20`clerk.scimDirectories.listGroupRoleMap?= =?UTF-8?q?pings()`:=20**Added**=20*=20`clerk.scimDirectories.rotateApiKey?= =?UTF-8?q?()`:=20**Added**=20*=20`clerk.scimDirectories.get()`:=20**Added?= =?UTF-8?q?**=20*=20`clerk.instanceSettings.getInstanceProtect()`:=20=20`r?= =?UTF-8?q?esponse.checksBypassed`=20**Added**=20*=20`clerk.scimDirectorie?= =?UTF-8?q?s.create()`:=20**Added**=20*=20`clerk.scimDirectories.list()`:?= =?UTF-8?q?=20**Added**=20*=20`clerk.oauthApplications.revokeToken()`:=20*?= =?UTF-8?q?*Added**=20*=20`clerk.users.revokeTrustedDevice()`:=20**Added**?= =?UTF-8?q?=20*=20`clerk.users.listTrustedDevices()`:=20**Added**=20*=20`c?= =?UTF-8?q?lerk.users.removePassword()`:=20**Added**?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 2050 +++++++++++------ .speakeasy/gen.yaml | 4 +- .speakeasy/workflow.lock | 12 +- README.md | 101 +- RELEASES.md | 12 +- build.gradle | 8 +- docs/models/components/Algorithm.md | 16 + .../components/BillingPaymentAttemptTotals.md | 2 +- docs/models/components/ClerkError.md | 12 +- .../ClerkErrorErrorEnterpriseAccountMeta.md | 7 - ...rErrorEnterpriseAccountVerificationMeta.md | 7 - ...rrorExternalAccountWithVerificationMeta.md | 7 - ...AccountWithVerificationVerificationMeta.md | 7 - docs/models/components/ClerkErrorErrorMeta.md | 7 - .../ClerkErrorErrorSAMLAccountMeta.md | 7 - .../CommerceCreditLedgerResponse.md | 3 +- .../components/CommercePerUnitTotal2.md | 10 + ...alTier.md => CommercePerUnitTotalTier2.md} | 2 +- docs/models/components/CommercePlan2.md | 36 + ...cePlanFee.md => CommercePlan2AnnualFee.md} | 2 +- ...ee.md => CommercePlan2AnnualMonthlyFee.md} | 2 +- ...cePlanAnnualFee.md => CommercePlan2Fee.md} | 2 +- ...cePlanObject.md => CommercePlan2Object.md} | 6 +- .../CommercePriceTransitionDetails.md | 2 +- .../CommercePriceTransitionResponse.md | 2 +- .../components/CommerceSubscriptionItem2.md | 35 + ....md => CommerceSubscriptionItem2Amount.md} | 2 +- ... => CommerceSubscriptionItem2AnnualFee.md} | 2 +- ...merceSubscriptionItem2AnnualMonthlyFee.md} | 2 +- ... CommerceSubscriptionItem2CreditAmount.md} | 2 +- .../CommerceSubscriptionItem2Credits.md | 10 + .../CommerceSubscriptionItem2Discounts.md | 9 + .../CommerceSubscriptionItem2Fee.md | 11 + ...erceSubscriptionItem2NextInvoiceAmount.md} | 2 +- ...eSubscriptionItem2NextInvoiceProration.md} | 2 +- .../CommerceSubscriptionItem2NextPayment.md | 13 + ...erceSubscriptionItem2NextPaymentAmount.md} | 2 +- ...erceSubscriptionItem2NextPaymentCredits.md | 10 + ...eSubscriptionItem2NextPaymentDiscounts.md} | 4 +- ...merceSubscriptionItem2NextPaymentPayer.md} | 2 +- ...eSubscriptionItem2NextPaymentProration.md} | 2 +- ...merceSubscriptionItem2NextPaymentTotals.md | 16 + ...riptionItem2NextPaymentTotalsProration.md} | 2 +- ....md => CommerceSubscriptionItem2Object.md} | 6 +- ...r.md => CommerceSubscriptionItem2Payer.md} | 2 +- ...> CommerceSubscriptionItem2PayerObject.md} | 6 +- ...rceSubscriptionItem2PaymentSourceObject.md | 18 + ...rceSubscriptionItem2PaymentSourceStatus.md | 19 + .../CommerceSubscriptionItem2Plan.md | 38 + ...=> CommerceSubscriptionItem2PlanObject.md} | 6 +- .../CommerceSubscriptionItem2PlanPeriod.md | 19 + ... => CommerceSubscriptionItem2Proration.md} | 2 +- ....md => CommerceSubscriptionItem2Status.md} | 6 +- .../CommerceSubscriptionItem2Totals.md | 16 + .../CommerceSubscriptionNextPayment.md | 2 +- .../CommerceSubscriptionNextPaymentTotals.md | 2 +- docs/models/components/Credit.md | 8 +- docs/models/components/EnrollmentMode.md | 3 +- .../models/components/EnterpriseConnection.md | 1 + .../components/EnterpriseConnectionMode.md | 20 + .../components/EnterpriseConnectionObject.md | 16 + .../EnterpriseConnectionSamlConnection.md | 3 +- docs/models/components/ErrorClerkError.md | 12 +- docs/models/components/ErrorMeta.md | 7 - docs/models/components/FeatureResponse2.md | 13 + ...nseObject.md => FeatureResponse2Object.md} | 6 +- docs/models/components/InstanceProtect.md | 11 +- docs/models/components/InstanceSettings.md | 16 +- docs/models/components/LoginHint.md | 11 + docs/models/components/Meta.md | 7 - docs/models/components/Mode.md | 20 + docs/models/components/NextInvoice.md | 12 +- .../components/OAuthApplicationSettings.md | 14 +- docs/models/components/One.md | 61 +- .../OrganizationMembershipPublicUserData.md | 3 +- docs/models/components/Payer.md | 30 +- docs/models/components/PaymentSource.md | 38 +- docs/models/components/PaymentType.md | 9 +- docs/models/components/Platform.md | 17 + .../components/SAMLConnectionLoginHint.md | 11 + docs/models/components/SCIMDirectory.md | 22 + .../SCIMDirectoryCustomAttributes.md | 12 + docs/models/components/SCIMDirectoryList.md | 11 + docs/models/components/SCIMDirectoryObject.md | 18 + .../models/components/SCIMGroupRoleMapping.md | 18 + .../components/SCIMGroupRoleMappingDeleted.md | 12 + .../SCIMGroupRoleMappingDeletedObject.md | 18 + .../components/SCIMGroupRoleMappingList.md | 11 + .../components/SCIMGroupRoleMappingObject.md | 18 + docs/models/components/SchemasCommercePlan.md | 36 - .../SchemasCommerceSubscriptionItem.md | 35 - ...ommerceSubscriptionItemAnnualMonthlyFee.md | 11 - .../SchemasCommerceSubscriptionItemCredits.md | 10 - ...emasCommerceSubscriptionItemNextPayment.md | 13 - ...merceSubscriptionItemNextPaymentCredits.md | 10 - ...rceSubscriptionItemNextPaymentDiscounts.md | 9 - ...mmerceSubscriptionItemNextPaymentTotals.md | 16 - ...erceSubscriptionItemPaymentSourceObject.md | 18 - ...erceSubscriptionItemPaymentSourceStatus.md | 19 - .../SchemasCommerceSubscriptionItemPlan.md | 38 - ...hemasCommerceSubscriptionItemPlanPeriod.md | 19 - .../SchemasCommerceSubscriptionItemTotals.md | 16 - .../components/SchemasFeatureResponse.md | 13 - docs/models/components/Seats.md | 8 +- docs/models/components/Totals.md | 2 +- docs/models/components/TrustedDevice.md | 18 + docs/models/components/TrustedDeviceList.md | 11 + docs/models/components/TrustedDeviceObject.md | 18 + docs/models/components/TrustedDeviceStatus.md | 17 + docs/models/components/Two.md | 61 +- ...VerificationGoogleOneTapErrorClerkError.md | 12 +- .../VerificationOauthErrorClerkError.md | 12 +- ...onOauthErrorEnterpriseAccountClerkError.md | 12 +- ...ificationSAMLErrorSAMLAccountClerkError.md | 12 +- .../VerificationSamlErrorClerkError.md | 12 +- ...ionSamlErrorEnterpriseAccountClerkError.md | 12 +- docs/models/errors/ClerkErrors.md | 2 +- docs/models/errors/Meta.md | 7 - .../CreateEmailAddressRequestBody.md | 13 +- .../CreateEnterpriseConnectionLoginHint.md | 11 + .../CreateEnterpriseConnectionMode.md | 20 + .../operations/CreateM2MTokenResponseBody.md | 8 +- .../CreateOrganizationDomainRequestBody.md | 10 +- ...reateSAMLConnectionRequestBodyLoginHint.md | 11 + .../CreateSAMLConnectionRequestBodyMode.md | 20 + .../CreateSCIMDirectoryRequestBody.md | 11 + .../operations/CreateSCIMDirectoryResponse.md | 11 + .../CreateSCIMGroupRoleMappingRequest.md | 9 + .../CreateSCIMGroupRoleMappingRequestBody.md | 10 + .../CreateSCIMGroupRoleMappingResponse.md | 11 + .../CreateSignInTokenRequestBody.md | 9 +- .../operations/DeleteSCIMDirectoryRequest.md | 8 + .../operations/DeleteSCIMDirectoryResponse.md | 11 + .../DeleteSCIMGroupRoleMappingRequest.md | 9 + .../DeleteSCIMGroupRoleMappingResponse.md | 11 + docs/models/operations/EnrollmentMode.md | 15 +- ...illingSubscriptionItemFreeTrialResponse.md | 2 +- .../operations/GetSCIMDirectoryRequest.md | 8 + .../operations/GetSCIMDirectoryResponse.md | 11 + docs/models/operations/GroupRoleMappings.md | 11 + .../models/operations/IdentificationStatus.md | 20 +- .../ListAllOrganizationDomainsRequest.md | 2 +- .../ListOrganizationDomainsRequest.md | 14 +- .../operations/ListSCIMDirectoriesRequest.md | 9 + .../operations/ListSCIMDirectoriesResponse.md | 11 + .../ListSCIMGroupRoleMappingsRequest.md | 8 + .../ListSCIMGroupRoleMappingsResponse.md | 11 + .../ListUserTrustedDevicesRequest.md | 8 + .../ListUserTrustedDevicesResponse.md | 11 + docs/models/operations/LoginHint.md | 11 + docs/models/operations/M2mTokens.md | 8 +- docs/models/operations/Mappings.md | 9 + docs/models/operations/Mode.md | 20 + docs/models/operations/One.md | 3 +- .../RemoveUserPasswordRequest.md} | 7 +- .../RemoveUserPasswordRequestBody.md | 8 + .../operations/RemoveUserPasswordResponse.md | 11 + .../ReplaceSCIMGroupRoleMappingsRequest.md | 9 + ...ReplaceSCIMGroupRoleMappingsRequestBody.md | 8 + .../ReplaceSCIMGroupRoleMappingsResponse.md | 11 + .../ReplaceUserEmailAddressRequestBody.md | 9 +- ...laceUserPhoneNumberIdentificationStatus.md | 20 +- .../ReplaceUserPhoneNumberRequestBody.md | 8 +- .../models/operations/RequestBodyLoginHint.md | 11 + docs/models/operations/RequestBodyMode.md | 20 + .../operations/RevokeM2MTokenResponseBody.md | 8 +- .../RevokeOAuthApplicationTokenRequest.md | 9 + .../RevokeOAuthApplicationTokenRequestBody.md | 8 + .../RevokeOAuthApplicationTokenResponse.md | 10 + .../RevokeUserTrustedDeviceRequest.md | 9 + .../RevokeUserTrustedDeviceResponse.md | 11 + .../RotateSCIMDirectoryAPIKeyRequest.md | 8 + .../RotateSCIMDirectoryAPIKeyResponse.md | 11 + docs/models/operations/Saml.md | 3 +- docs/models/operations/Two.md | 3 +- .../UpdateEmailAddressRequestBody.md | 9 +- .../UpdateEnterpriseConnectionLoginHint.md | 11 + .../UpdateEnterpriseConnectionMode.md | 20 + .../UpdateEnterpriseConnectionSaml.md | 3 +- ...anceOAuthApplicationSettingsRequestBody.md | 12 +- .../UpdateOrganizationDomainRequestBody.md | 8 +- .../UpdateSAMLConnectionRequestBody.md | 1 + .../operations/UpdateSCIMDirectoryRequest.md | 9 + .../UpdateSCIMDirectoryRequestBody.md | 12 + .../operations/UpdateSCIMDirectoryResponse.md | 11 + .../operations/VerifyM2MTokenResponseBody.md | 8 +- docs/sdks/billing/README.md | 4 +- docs/sdks/emailaddresses/README.md | 9 +- docs/sdks/emailandsmstemplates/README.md | 8 +- docs/sdks/emailsmstemplates/README.md | 2 +- docs/sdks/oauthapplications/README.md | 57 + docs/sdks/organizationdomains/README.md | 4 +- docs/sdks/phonenumbers/README.md | 9 +- docs/sdks/scimdirectories/README.md | 551 +++++ docs/sdks/signintokens/README.md | 2 +- docs/sdks/users/README.md | 166 ++ gradle.properties | 2 +- .../java/com/clerk/backend_api/Clerk.java | 9 + .../com/clerk/backend_api/EmailAddresses.java | 27 +- .../clerk/backend_api/OauthApplications.java | 64 + .../com/clerk/backend_api/PhoneNumbers.java | 27 +- .../clerk/backend_api/SDKConfiguration.java | 4 +- .../clerk/backend_api/ScimDirectories.java | 565 +++++ .../java/com/clerk/backend_api/Users.java | 187 ++ .../models/components/Algorithm.java | 34 + .../BillingPaymentAttemptTotals.java | 18 +- .../models/components/ClerkError.java | 20 +- .../ClerkErrorErrorEnterpriseAccountMeta.java | 58 - ...rrorEnterpriseAccountVerificationMeta.java | 58 - ...orExternalAccountWithVerificationMeta.java | 58 - ...countWithVerificationVerificationMeta.java | 58 - .../components/ClerkErrorErrorMeta.java | 58 - .../ClerkErrorErrorSAMLAccountMeta.java | 58 - .../CommerceCreditLedgerResponse.java | 81 +- ...tTotal.java => CommercePerUnitTotal2.java} | 28 +- ...er.java => CommercePerUnitTotalTier2.java} | 22 +- ...asCommercePlan.java => CommercePlan2.java} | 152 +- ...anFee.java => CommercePlan2AnnualFee.java} | 20 +- ...ava => CommercePlan2AnnualMonthlyFee.java} | 20 +- .../models/components/CommercePlan2Fee.java | 224 ++ ...anObject.java => CommercePlan2Object.java} | 10 +- .../CommercePriceTransitionDetails.java | 14 +- .../CommercePriceTransitionResponse.java | 12 +- ...em.java => CommerceSubscriptionItem2.java} | 174 +- .../CommerceSubscriptionItem2Amount.java | 228 ++ ...> CommerceSubscriptionItem2AnnualFee.java} | 20 +- ...rceSubscriptionItem2AnnualMonthlyFee.java} | 20 +- ...ommerceSubscriptionItem2CreditAmount.java} | 24 +- ... => CommerceSubscriptionItem2Credits.java} | 52 +- ...> CommerceSubscriptionItem2Discounts.java} | 34 +- ...java => CommerceSubscriptionItem2Fee.java} | 20 +- ...ceSubscriptionItem2NextInvoiceAmount.java} | 22 +- ...ubscriptionItem2NextInvoiceProration.java} | 20 +- ...CommerceSubscriptionItem2NextPayment.java} | 60 +- ...ceSubscriptionItem2NextPaymentAmount.java} | 22 +- ...eSubscriptionItem2NextPaymentCredits.java} | 52 +- ...ubscriptionItem2NextPaymentDiscounts.java} | 34 +- ...rceSubscriptionItem2NextPaymentPayer.java} | 16 +- ...ubscriptionItem2NextPaymentProration.java} | 20 +- ...ceSubscriptionItem2NextPaymentTotals.java} | 64 +- ...ptionItem2NextPaymentTotalsProration.java} | 20 +- ...a => CommerceSubscriptionItem2Object.java} | 10 +- ...va => CommerceSubscriptionItem2Payer.java} | 16 +- ...CommerceSubscriptionItem2PayerObject.java} | 10 +- ...SubscriptionItem2PaymentSourceObject.java} | 10 +- ...SubscriptionItem2PaymentSourceStatus.java} | 10 +- ...ava => CommerceSubscriptionItem2Plan.java} | 154 +- ... CommerceSubscriptionItem2PlanObject.java} | 10 +- ... CommerceSubscriptionItem2PlanPeriod.java} | 10 +- ...> CommerceSubscriptionItem2Proration.java} | 20 +- ...a => CommerceSubscriptionItem2Status.java} | 10 +- ...a => CommerceSubscriptionItem2Totals.java} | 64 +- .../CommerceSubscriptionNextPayment.java | 18 +- ...CommerceSubscriptionNextPaymentTotals.java | 18 +- .../backend_api/models/components/Credit.java | 18 +- .../models/components/EnrollmentMode.java | 3 +- .../components/EnterpriseConnection.java | 63 +- .../components/EnterpriseConnectionMode.java | 41 + .../EnterpriseConnectionObject.java | 34 + .../EnterpriseConnectionSamlConnection.java | 77 +- .../models/components/ErrorClerkError.java | 20 +- .../models/components/ErrorMeta.java | 58 - ...ureResponse.java => FeatureResponse2.java} | 34 +- ...bject.java => FeatureResponse2Object.java} | 10 +- .../models/components/InstanceProtect.java | 56 +- .../models/components/InstanceSettings.java | 51 +- .../models/components/LoginHint.java | 173 ++ .../backend_api/models/components/Meta.java | 58 - .../backend_api/models/components/Mode.java | 41 + .../models/components/NextInvoice.java | 36 +- .../components/OAuthApplicationSettings.java | 224 +- .../backend_api/models/components/One.java | 212 +- .../OrganizationMembershipPublicUserData.java | 58 +- .../backend_api/models/components/Payer.java | 14 +- .../models/components/PaymentSource.java | 28 +- .../models/components/PaymentType.java | 3 +- .../models/components/Platform.java | 35 + .../components/SAMLConnectionLoginHint.java | 173 ++ .../models/components/SCIMDirectory.java | 692 ++++++ .../SCIMDirectoryCustomAttributes.java | 378 +++ .../models/components/SCIMDirectoryList.java | 136 ++ .../components/SCIMDirectoryObject.java | 39 + .../components/SCIMGroupRoleMapping.java | 457 ++++ .../SCIMGroupRoleMappingDeleted.java | 171 ++ .../SCIMGroupRoleMappingDeletedObject.java | 39 + .../components/SCIMGroupRoleMappingList.java | 136 ++ .../SCIMGroupRoleMappingObject.java | 39 + ...merceSubscriptionItemAnnualMonthlyFee.java | 224 -- ...sCommerceSubscriptionItemCreditAmount.java | 228 -- .../backend_api/models/components/Seats.java | 18 +- .../backend_api/models/components/Totals.java | 18 +- .../models/components/TrustedDevice.java | 511 ++++ .../models/components/TrustedDeviceList.java | 136 ++ .../components/TrustedDeviceObject.java | 39 + .../components/TrustedDeviceStatus.java | 35 + .../backend_api/models/components/Two.java | 212 +- ...rificationGoogleOneTapErrorClerkError.java | 20 +- .../VerificationOauthErrorClerkError.java | 20 +- ...OauthErrorEnterpriseAccountClerkError.java | 20 +- ...icationSAMLErrorSAMLAccountClerkError.java | 20 +- .../VerificationSamlErrorClerkError.java | 20 +- ...nSamlErrorEnterpriseAccountClerkError.java | 20 +- .../models/errors/ClerkErrors.java | 22 +- .../clerk/backend_api/models/errors/Meta.java | 58 - .../CreateEmailAddressRequestBody.java | 94 +- .../CreateEnterpriseConnectionLoginHint.java | 173 ++ .../CreateEnterpriseConnectionMode.java | 41 + .../CreateOrganizationDomainRequestBody.java | 24 +- ...ateSAMLConnectionRequestBodyLoginHint.java | 173 ++ .../CreateSAMLConnectionRequestBodyMode.java | 41 + .../CreateSCIMDirectoryRequestBody.java | 276 +++ .../CreateSCIMDirectoryRequestBuilder.java | 61 + .../CreateSCIMDirectoryResponse.java | 253 ++ .../CreateSCIMGroupRoleMappingRequest.java | 130 ++ ...CreateSCIMGroupRoleMappingRequestBody.java | 223 ++ ...ateSCIMGroupRoleMappingRequestBuilder.java | 73 + .../CreateSCIMGroupRoleMappingResponse.java | 253 ++ .../CreateSignInTokenRequestBody.java | 71 +- .../DeleteSCIMDirectoryRequest.java | 101 + .../DeleteSCIMDirectoryRequestBuilder.java | 65 + .../DeleteSCIMDirectoryResponse.java | 253 ++ .../DeleteSCIMGroupRoleMappingRequest.java | 141 ++ ...eteSCIMGroupRoleMappingRequestBuilder.java | 73 + .../DeleteSCIMGroupRoleMappingResponse.java | 253 ++ .../models/operations/EnrollmentMode.java | 7 +- ...lingSubscriptionItemFreeTrialResponse.java | 48 +- .../operations/GetSCIMDirectoryRequest.java | 101 + .../GetSCIMDirectoryRequestBuilder.java | 65 + .../operations/GetSCIMDirectoryResponse.java | 253 ++ .../models/operations/GroupRoleMappings.java | 274 +++ .../operations/IdentificationStatus.java | 14 +- .../ListAllOrganizationDomainsRequest.java | 18 +- .../ListOrganizationDomainsRequest.java | 30 +- .../ListSCIMDirectoriesRequest.java | 223 ++ .../ListSCIMDirectoriesRequestBuilder.java | 111 + .../ListSCIMDirectoriesResponse.java | 253 ++ .../ListSCIMGroupRoleMappingsRequest.java | 101 + ...stSCIMGroupRoleMappingsRequestBuilder.java | 65 + .../ListSCIMGroupRoleMappingsResponse.java | 253 ++ .../ListUserTrustedDevicesRequest.java | 101 + .../ListUserTrustedDevicesRequestBuilder.java | 65 + .../ListUserTrustedDevicesResponse.java | 253 ++ .../models/operations/LoginHint.java | 173 ++ .../models/operations/Mappings.java | 141 ++ .../backend_api/models/operations/Mode.java | 41 + .../backend_api/models/operations/One.java | 75 +- .../operations/RemoveUserPasswordRequest.java | 151 ++ .../RemoveUserPasswordRequestBody.java | 140 ++ .../RemoveUserPasswordRequestBuilder.java | 79 + .../RemoveUserPasswordResponse.java | 253 ++ .../ReplaceSCIMGroupRoleMappingsRequest.java | 130 ++ ...placeSCIMGroupRoleMappingsRequestBody.java | 106 + ...ceSCIMGroupRoleMappingsRequestBuilder.java | 73 + .../ReplaceSCIMGroupRoleMappingsResponse.java | 253 ++ .../ReplaceUserEmailAddressRequestBody.java | 160 +- ...ceUserPhoneNumberIdentificationStatus.java | 14 +- .../ReplaceUserPhoneNumberRequestBody.java | 66 +- .../operations/RequestBodyLoginHint.java | 173 ++ .../models/operations/RequestBodyMode.java | 41 + .../RevokeOAuthApplicationTokenRequest.java | 130 ++ ...evokeOAuthApplicationTokenRequestBody.java | 105 + ...keOAuthApplicationTokenRequestBuilder.java | 73 + .../RevokeOAuthApplicationTokenResponse.java | 181 ++ .../RevokeUserTrustedDeviceRequest.java | 141 ++ ...RevokeUserTrustedDeviceRequestBuilder.java | 73 + .../RevokeUserTrustedDeviceResponse.java | 253 ++ .../RotateSCIMDirectoryAPIKeyRequest.java | 101 + ...tateSCIMDirectoryAPIKeyRequestBuilder.java | 65 + .../RotateSCIMDirectoryAPIKeyResponse.java | 253 ++ .../backend_api/models/operations/Saml.java | 75 +- .../backend_api/models/operations/Two.java | 75 +- .../UpdateEmailAddressRequestBody.java | 94 +- .../UpdateEnterpriseConnectionLoginHint.java | 173 ++ .../UpdateEnterpriseConnectionMode.java | 41 + .../UpdateEnterpriseConnectionSaml.java | 72 +- ...ceOAuthApplicationSettingsRequestBody.java | 272 ++- .../UpdateOrganizationDomainRequestBody.java | 24 +- .../UpdateSAMLConnectionRequestBody.java | 69 +- .../UpdateSCIMDirectoryRequest.java | 151 ++ .../UpdateSCIMDirectoryRequestBody.java | 381 +++ .../UpdateSCIMDirectoryRequestBuilder.java | 79 + .../UpdateSCIMDirectoryResponse.java | 253 ++ .../operations/CreateSCIMDirectory.java | 224 ++ .../CreateSCIMGroupRoleMapping.java | 230 ++ .../operations/CreateSignInToken.java | 2 +- .../operations/DeleteOrganizationDomain.java | 2 +- .../operations/DeleteSCIMDirectory.java | 213 ++ .../DeleteSCIMGroupRoleMapping.java | 213 ++ ...xtendBillingSubscriptionItemFreeTrial.java | 4 +- .../operations/GetSCIMDirectory.java | 213 ++ .../operations/ListSCIMDirectories.java | 216 ++ .../operations/ListSCIMGroupRoleMappings.java | 213 ++ .../operations/ListUserTrustedDevices.java | 220 ++ .../operations/RemoveUserPassword.java | 233 ++ .../ReplaceSCIMGroupRoleMappings.java | 230 ++ .../RevokeOAuthApplicationToken.java | 226 ++ .../operations/RevokeUserTrustedDevice.java | 220 ++ .../operations/RotateSCIMDirectoryAPIKey.java | 213 ++ .../operations/ToggleTemplateDelivery.java | 2 +- .../operations/UpdateOrganizationDomain.java | 2 +- .../operations/UpdateSCIMDirectory.java | 226 ++ .../operations/UpsertTemplate.java | 2 +- .../clerk/backend_api/utils/Multipart.java | 10 +- .../com/clerk/backend_api/utils/Retries.java | 15 +- .../utils/SpeakeasyHTTPClient.java | 11 +- .../backend_api/utils/StreamingParser.java | 33 +- 406 files changed, 23342 insertions(+), 3486 deletions(-) create mode 100644 docs/models/components/Algorithm.md delete mode 100644 docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorMeta.md delete mode 100644 docs/models/components/ClerkErrorErrorSAMLAccountMeta.md create mode 100644 docs/models/components/CommercePerUnitTotal2.md rename docs/models/components/{SchemasCommercePerUnitTotalTier.md => CommercePerUnitTotalTier2.md} (97%) create mode 100644 docs/models/components/CommercePlan2.md rename docs/models/components/{SchemasCommercePlanFee.md => CommercePlan2AnnualFee.md} (98%) rename docs/models/components/{SchemasCommerceSubscriptionItemFee.md => CommercePlan2AnnualMonthlyFee.md} (97%) rename docs/models/components/{SchemasCommercePlanAnnualFee.md => CommercePlan2Fee.md} (97%) rename docs/models/components/{SchemasCommercePlanObject.md => CommercePlan2Object.md} (58%) create mode 100644 docs/models/components/CommerceSubscriptionItem2.md rename docs/models/components/{SchemasCommerceSubscriptionItemAmount.md => CommerceSubscriptionItem2Amount.md} (97%) rename docs/models/components/{SchemasCommercePlanAnnualMonthlyFee.md => CommerceSubscriptionItem2AnnualFee.md} (97%) rename docs/models/components/{SchemasCommerceSubscriptionItemAnnualFee.md => CommerceSubscriptionItem2AnnualMonthlyFee.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemCreditAmount.md => CommerceSubscriptionItem2CreditAmount.md} (96%) create mode 100644 docs/models/components/CommerceSubscriptionItem2Credits.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Discounts.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Fee.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextInvoiceAmount.md => CommerceSubscriptionItem2NextInvoiceAmount.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextInvoiceProration.md => CommerceSubscriptionItem2NextInvoiceProration.md} (97%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPayment.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentAmount.md => CommerceSubscriptionItem2NextPaymentAmount.md} (96%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md rename docs/models/components/{SchemasCommerceSubscriptionItemDiscounts.md => CommerceSubscriptionItem2NextPaymentDiscounts.md} (90%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentPayer.md => CommerceSubscriptionItem2NextPaymentPayer.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentProration.md => CommerceSubscriptionItem2NextPaymentProration.md} (97%) create mode 100644 docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md rename docs/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md => CommerceSubscriptionItem2NextPaymentTotalsProration.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemObject.md => CommerceSubscriptionItem2Object.md} (57%) rename docs/models/components/{SchemasCommerceSubscriptionItemPayer.md => CommerceSubscriptionItem2Payer.md} (96%) rename docs/models/components/{SchemasCommerceSubscriptionItemPayerObject.md => CommerceSubscriptionItem2PayerObject.md} (50%) create mode 100644 docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md create mode 100644 docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md create mode 100644 docs/models/components/CommerceSubscriptionItem2Plan.md rename docs/models/components/{SchemasCommerceSubscriptionItemPlanObject.md => CommerceSubscriptionItem2PlanObject.md} (50%) create mode 100644 docs/models/components/CommerceSubscriptionItem2PlanPeriod.md rename docs/models/components/{SchemasCommerceSubscriptionItemProration.md => CommerceSubscriptionItem2Proration.md} (97%) rename docs/models/components/{SchemasCommerceSubscriptionItemStatus.md => CommerceSubscriptionItem2Status.md} (61%) create mode 100644 docs/models/components/CommerceSubscriptionItem2Totals.md create mode 100644 docs/models/components/EnterpriseConnectionMode.md create mode 100644 docs/models/components/EnterpriseConnectionObject.md delete mode 100644 docs/models/components/ErrorMeta.md create mode 100644 docs/models/components/FeatureResponse2.md rename docs/models/components/{SchemasFeatureResponseObject.md => FeatureResponse2Object.md} (53%) create mode 100644 docs/models/components/LoginHint.md delete mode 100644 docs/models/components/Meta.md create mode 100644 docs/models/components/Mode.md create mode 100644 docs/models/components/Platform.md create mode 100644 docs/models/components/SAMLConnectionLoginHint.md create mode 100644 docs/models/components/SCIMDirectory.md create mode 100644 docs/models/components/SCIMDirectoryCustomAttributes.md create mode 100644 docs/models/components/SCIMDirectoryList.md create mode 100644 docs/models/components/SCIMDirectoryObject.md create mode 100644 docs/models/components/SCIMGroupRoleMapping.md create mode 100644 docs/models/components/SCIMGroupRoleMappingDeleted.md create mode 100644 docs/models/components/SCIMGroupRoleMappingDeletedObject.md create mode 100644 docs/models/components/SCIMGroupRoleMappingList.md create mode 100644 docs/models/components/SCIMGroupRoleMappingObject.md delete mode 100644 docs/models/components/SchemasCommercePlan.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItem.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemCredits.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPlan.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md delete mode 100644 docs/models/components/SchemasCommerceSubscriptionItemTotals.md delete mode 100644 docs/models/components/SchemasFeatureResponse.md create mode 100644 docs/models/components/TrustedDevice.md create mode 100644 docs/models/components/TrustedDeviceList.md create mode 100644 docs/models/components/TrustedDeviceObject.md create mode 100644 docs/models/components/TrustedDeviceStatus.md delete mode 100644 docs/models/errors/Meta.md create mode 100644 docs/models/operations/CreateEnterpriseConnectionLoginHint.md create mode 100644 docs/models/operations/CreateEnterpriseConnectionMode.md create mode 100644 docs/models/operations/CreateSAMLConnectionRequestBodyLoginHint.md create mode 100644 docs/models/operations/CreateSAMLConnectionRequestBodyMode.md create mode 100644 docs/models/operations/CreateSCIMDirectoryRequestBody.md create mode 100644 docs/models/operations/CreateSCIMDirectoryResponse.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingRequest.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md create mode 100644 docs/models/operations/CreateSCIMGroupRoleMappingResponse.md create mode 100644 docs/models/operations/DeleteSCIMDirectoryRequest.md create mode 100644 docs/models/operations/DeleteSCIMDirectoryResponse.md create mode 100644 docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md create mode 100644 docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md create mode 100644 docs/models/operations/GetSCIMDirectoryRequest.md create mode 100644 docs/models/operations/GetSCIMDirectoryResponse.md create mode 100644 docs/models/operations/GroupRoleMappings.md create mode 100644 docs/models/operations/ListSCIMDirectoriesRequest.md create mode 100644 docs/models/operations/ListSCIMDirectoriesResponse.md create mode 100644 docs/models/operations/ListSCIMGroupRoleMappingsRequest.md create mode 100644 docs/models/operations/ListSCIMGroupRoleMappingsResponse.md create mode 100644 docs/models/operations/ListUserTrustedDevicesRequest.md create mode 100644 docs/models/operations/ListUserTrustedDevicesResponse.md create mode 100644 docs/models/operations/LoginHint.md create mode 100644 docs/models/operations/Mappings.md create mode 100644 docs/models/operations/Mode.md rename docs/models/{components/SchemasCommercePerUnitTotal.md => operations/RemoveUserPasswordRequest.md} (54%) create mode 100644 docs/models/operations/RemoveUserPasswordRequestBody.md create mode 100644 docs/models/operations/RemoveUserPasswordResponse.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md create mode 100644 docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md create mode 100644 docs/models/operations/RequestBodyLoginHint.md create mode 100644 docs/models/operations/RequestBodyMode.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenRequest.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md create mode 100644 docs/models/operations/RevokeOAuthApplicationTokenResponse.md create mode 100644 docs/models/operations/RevokeUserTrustedDeviceRequest.md create mode 100644 docs/models/operations/RevokeUserTrustedDeviceResponse.md create mode 100644 docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md create mode 100644 docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md create mode 100644 docs/models/operations/UpdateEnterpriseConnectionLoginHint.md create mode 100644 docs/models/operations/UpdateEnterpriseConnectionMode.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryRequest.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryRequestBody.md create mode 100644 docs/models/operations/UpdateSCIMDirectoryResponse.md create mode 100644 docs/sdks/scimdirectories/README.md create mode 100644 src/main/java/com/clerk/backend_api/ScimDirectories.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/Algorithm.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePerUnitTotal.java => CommercePerUnitTotal2.java} (81%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePerUnitTotalTier.java => CommercePerUnitTotalTier2.java} (86%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlan.java => CommercePlan2.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanFee.java => CommercePlan2AnnualFee.java} (90%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanAnnualMonthlyFee.java => CommercePlan2AnnualMonthlyFee.java} (88%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanObject.java => CommercePlan2Object.java} (71%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItem.java => CommerceSubscriptionItem2.java} (84%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemFee.java => CommerceSubscriptionItem2AnnualFee.java} (89%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemAnnualFee.java => CommerceSubscriptionItem2AnnualMonthlyFee.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemAmount.java => CommerceSubscriptionItem2CreditAmount.java} (88%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemCredits.java => CommerceSubscriptionItem2Credits.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemDiscounts.java => CommerceSubscriptionItem2Discounts.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommercePlanAnnualFee.java => CommerceSubscriptionItem2Fee.java} (90%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextInvoiceAmount.java => CommerceSubscriptionItem2NextInvoiceAmount.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java => CommerceSubscriptionItem2NextInvoiceProration.java} (82%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPayment.java => CommerceSubscriptionItem2NextPayment.java} (75%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentAmount.java => CommerceSubscriptionItem2NextPaymentAmount.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentCredits.java => CommerceSubscriptionItem2NextPaymentCredits.java} (59%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentDiscounts.java => CommerceSubscriptionItem2NextPaymentDiscounts.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentPayer.java => CommerceSubscriptionItem2NextPaymentPayer.java} (81%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentProration.java => CommerceSubscriptionItem2NextPaymentProration.java} (83%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextPaymentTotals.java => CommerceSubscriptionItem2NextPaymentTotals.java} (71%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemNextInvoiceProration.java => CommerceSubscriptionItem2NextPaymentTotalsProration.java} (86%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemObject.java => CommerceSubscriptionItem2Object.java} (67%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPayer.java => CommerceSubscriptionItem2Payer.java} (83%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPayerObject.java => CommerceSubscriptionItem2PayerObject.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPaymentSourceObject.java => CommerceSubscriptionItem2PaymentSourceObject.java} (62%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPaymentSourceStatus.java => CommerceSubscriptionItem2PaymentSourceStatus.java} (61%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlan.java => CommerceSubscriptionItem2Plan.java} (84%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlanObject.java => CommerceSubscriptionItem2PlanObject.java} (65%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemPlanPeriod.java => CommerceSubscriptionItem2PlanPeriod.java} (64%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemProration.java => CommerceSubscriptionItem2Proration.java} (85%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemStatus.java => CommerceSubscriptionItem2Status.java} (69%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasCommerceSubscriptionItemTotals.java => CommerceSubscriptionItem2Totals.java} (74%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionMode.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionObject.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java rename src/main/java/com/clerk/backend_api/models/components/{SchemasFeatureResponse.java => FeatureResponse2.java} (87%) rename src/main/java/com/clerk/backend_api/models/components/{SchemasFeatureResponseObject.java => FeatureResponse2Object.java} (70%) create mode 100644 src/main/java/com/clerk/backend_api/models/components/LoginHint.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/Meta.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/Mode.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/Platform.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SAMLConnectionLoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java delete mode 100644 src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/TrustedDevice.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/TrustedDeviceList.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/TrustedDeviceObject.java create mode 100644 src/main/java/com/clerk/backend_api/models/components/TrustedDeviceStatus.java delete mode 100644 src/main/java/com/clerk/backend_api/models/errors/Meta.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionLoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionMode.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyLoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyMode.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/LoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/Mappings.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/Mode.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RequestBodyLoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RequestBodyMode.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionLoginHint.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionMode.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java create mode 100644 src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java create mode 100644 src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java create mode 100644 src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ListUserTrustedDevices.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RemoveUserPassword.java create mode 100644 src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RevokeUserTrustedDevice.java create mode 100644 src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java create mode 100644 src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f4015933..4afb405b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9 management: - docChecksum: ad87fb6c641056f81814bb04bc3f9a91 + docChecksum: 02b24072d85acb936c20096395533907 docVersion: "2026-05-12" - speakeasyVersion: 1.777.0 - generationVersion: 2.903.0 - releaseVersion: 5.0.0 - configChecksum: 62422f4e77757dbb2d77bd7005168879 + speakeasyVersion: 1.791.4 + generationVersion: 2.926.8 + releaseVersion: 5.1.0 + configChecksum: a488811be4eef6fb476530277d712900 repoURL: https://github.com/clerk/clerk-sdk-java.git installationURL: https://github.com/clerk/clerk-sdk-java published: true persistentEdits: - generation_id: 39212209-43dd-4431-9df2-fc93e2786ce7 - pristine_commit_hash: d6fb4a8507b0e88e57ba8c4c36590ae4254dfd6a - pristine_tree_hash: 1a68b930d54bf1343a218a9c0ea8ad2595741359 + generation_id: 4ce6725e-803b-48a8-9828-b3cb0380e698 + pristine_commit_hash: 0979f702debfe2b131035bc184590006c00c5ee4 + pristine_tree_hash: cf0b93be1a21953e87ef267b201a3a96b405d64f features: java: additionalDependencies: 0.1.0 - additionalProperties: 0.0.1 + additionalProperties: 0.0.2 constsAndDefaults: 0.1.3 - core: 3.55.27 + core: 3.56.1 deprecations: 2.81.2 examples: 2.81.9 flattening: 2.81.1 @@ -29,9 +29,9 @@ features: globalServerURLs: 2.83.1 groups: 2.81.3 nameOverrides: 2.81.5 - nullables: 0.1.0 + nullables: 0.1.1 openEnums: 0.2.0 - retries: 0.1.2 + retries: 0.1.3 sdkHooks: 1.2.0 unions: 0.3.6 uploadStreams: 0.1.0 @@ -46,8 +46,8 @@ trackedFiles: pristine_git_object: c65a59abd80434416e18fa5b07cf3dd862084707 build.gradle: id: f07866736216 - last_write_checksum: sha1:bee48c56b269a6263de35b65e4f174c02a8173bb - pristine_git_object: 935a9133a2007076cd1cdb995baf4836e31d4a5e + last_write_checksum: sha1:c9348bf5970c37924b6c43e291d5c14658d3298a + pristine_git_object: 934aec94163662d8ace148d58d21c1882e5b4761 docs/models/components/Action.md: id: 45f4a6205564 last_write_checksum: sha1:1977fb29d97627637e448369882559ba5a35cfba @@ -92,6 +92,10 @@ trackedFiles: id: 853bcdd8071f last_write_checksum: sha1:46bc599f4e7b1d663196d1685f5a4162aea1e4b6 pristine_git_object: 8da37df260e9f8bde95abb41c44d8e1d60d818db + docs/models/components/Algorithm.md: + id: 738072b56141 + last_write_checksum: sha1:aced3d6c2d6dd0226f6ae4367ccf48aae0933402 + pristine_git_object: d21bdd5ab83cc1209abc54a6d567fa6e85179590 docs/models/components/AllowlistIdentifier.md: id: d48e8fad597f last_write_checksum: sha1:f6759e962fe0d79d73f55f7f37174d4ccc3e696a @@ -146,8 +150,8 @@ trackedFiles: pristine_git_object: d65d53b9b4a545c92bd6ff3dd216242ef4cf1269 docs/models/components/BillingPaymentAttemptTotals.md: id: 1227166e63a2 - last_write_checksum: sha1:9eecd27caca78cc02bce6620bc19794d1812bee2 - pristine_git_object: 4403221e97ca97433b206941c2f699a116b2b0a2 + last_write_checksum: sha1:0a0bb53ca14273c5fbdd2f4b131ba6bfddaa50a4 + pristine_git_object: 620623b2485828372cbf1f67e0cb0d2f04e49677 docs/models/components/BillingPaymentAttemptTotalsProration.md: id: be9af5574891 last_write_checksum: sha1:46e3ab6c30cb9e1893dd9f3f5e7ac806b8802e90 @@ -214,32 +218,8 @@ trackedFiles: pristine_git_object: 5c4b4bd245e9da656bf0f566da530b0f0c047392 docs/models/components/ClerkError.md: id: 96305ddf8e7d - last_write_checksum: sha1:89826f4416685242bf3d152002aa3133b9b79069 - pristine_git_object: 1d4de3feef1afca100982ad16d6c868f67afd906 - docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md: - id: e81f481b36ae - last_write_checksum: sha1:01a33a92d30ae6158809c167e7c891c7e7ca3dab - pristine_git_object: e12e48d273f0baf6dc79afc060eb2bb4ce5fa1ce - docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md: - id: 0beb9e9a2523 - last_write_checksum: sha1:6f22bf2352ea0258239e7502f148544d57ed5b01 - pristine_git_object: af28d7d0c644923d22fadc9f417f0ed26a7f3a2f - docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md: - id: 3ce3a082941d - last_write_checksum: sha1:95fe24d9995baa7cdc60e05cef4925dd46fdd7f4 - pristine_git_object: 498e597554ca06793299f5f9cff1ef78839d25a4 - docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md: - id: c28aa3b60aa1 - last_write_checksum: sha1:9f043b122b64b9f54018060a7b2a2db492f4adcd - pristine_git_object: ef070e0d77b9bc6f659f4b18a2662d4807a88108 - docs/models/components/ClerkErrorErrorMeta.md: - id: b5933beb7b80 - last_write_checksum: sha1:99adcd69e14f9eb25a67d28a59cafe2b1b0c2e8f - pristine_git_object: e705a2f726658e2c29a6a6b3bb42788d3dee4318 - docs/models/components/ClerkErrorErrorSAMLAccountMeta.md: - id: e32c7103119f - last_write_checksum: sha1:4821945ed376d5ca6368f283f97f49bb98f292c1 - pristine_git_object: 2fed9d861c374e00f7d59f3707c686c016cbdee5 + last_write_checksum: sha1:c5b020e02d2d0b46d11f425a701c71a07318ae0d + pristine_git_object: 287e0e33c38038a7dbc83013bdb83ccb3cc9edc1 docs/models/components/Client.md: id: f083be2bc72b last_write_checksum: sha1:ae929c4e99b50315bd52f38adaac5b3f91ccd3d9 @@ -250,8 +230,8 @@ trackedFiles: pristine_git_object: 7dec14afeb995f980b408b5491e31809d800bda1 docs/models/components/CommerceCreditLedgerResponse.md: id: 92ea5fd66f05 - last_write_checksum: sha1:1e2682453e75466b4bf20af1cfd5e1708a869e51 - pristine_git_object: 9d808794288173dc0f7546fd9a57c97f41ef87a6 + last_write_checksum: sha1:55143977c00287dc27a1d7f362dd3ec680926b0b + pristine_git_object: eb0a22365bfc3e34089c9ad93de9de14a90a542f docs/models/components/CommerceMoneyResponse.md: id: e319b813a90c last_write_checksum: sha1:6af9a266a5753b17d6cb29aba063534be800a271 @@ -280,14 +260,42 @@ trackedFiles: id: 327390e5a5b2 last_write_checksum: sha1:ffa14fbd900dac4850e2d3df78d81c96996bdf92 pristine_git_object: 728a45aefa47d7b497c4b47278d29e38b602aeb2 + docs/models/components/CommercePerUnitTotal2.md: + id: ef49d72fc593 + last_write_checksum: sha1:75a497d95ce3e9a2ceddb547eb95e93c31cf8821 + pristine_git_object: 1f11b89ee348e02fb8e153395ad6f2e74b8f953e docs/models/components/CommercePerUnitTotalTier.md: id: dfd499f2e617 last_write_checksum: sha1:cce574be27bada945c35c93bf4b23c819128f442 pristine_git_object: cc883ca746c521d825b8db3f508ac6e294f2789a + docs/models/components/CommercePerUnitTotalTier2.md: + id: 59fec76969a7 + last_write_checksum: sha1:93a96d583fd0c1412239ffc7a58b653428ab79c7 + pristine_git_object: d04e5d5f85244644a673f7302a632bf9d967f309 docs/models/components/CommercePlan.md: id: a48295712140 last_write_checksum: sha1:8fcd3cb604477af0e1feaed1082f6bb3001b2685 pristine_git_object: 515267e0588fb2a4cd52c6d31dc0509316098bf9 + docs/models/components/CommercePlan2.md: + id: f49c6a2fc12e + last_write_checksum: sha1:0a7bdffb6f41720efced36315ebc710f0b944f5e + pristine_git_object: d71495947c5d7c5c9a56af5bfe6f9900702d1318 + docs/models/components/CommercePlan2AnnualFee.md: + id: 8f40ab219475 + last_write_checksum: sha1:e87da2b404f3bb175f25153110bd4b8a052eed65 + pristine_git_object: 7ae69305c69fa127c3e8766e94f2b2cb1d703c1a + docs/models/components/CommercePlan2AnnualMonthlyFee.md: + id: 6398b60b7301 + last_write_checksum: sha1:1b7c186f918697c4f70a828d38e5728cc6cf932b + pristine_git_object: d0582c36483f9bdd994daae11d5a765d4acda174 + docs/models/components/CommercePlan2Fee.md: + id: 491e5b31ecaf + last_write_checksum: sha1:1889acb9f2e30037266f498f18242bc8f119331f + pristine_git_object: 7490f6604b8072bf39c9c3001f37e6357e1be30b + docs/models/components/CommercePlan2Object.md: + id: 60a92962f509 + last_write_checksum: sha1:d827fcaaecbd6bdddc744ba3c5246a7e06d3f1ac + pristine_git_object: 3866700e47cbcc13cde0fab5651b2696d6d98cfb docs/models/components/CommercePlanObject.md: id: fc7a3c2a66b9 last_write_checksum: sha1:1aa38d7bae7272fe94a122c72d93ad2c7c6920c7 @@ -302,12 +310,12 @@ trackedFiles: pristine_git_object: 68dca70a5ebf27e3af8d0503d553f581c36a7ee3 docs/models/components/CommercePriceTransitionDetails.md: id: a2313bad02cc - last_write_checksum: sha1:3b4f754936109b7e9111d12b6cc3e554d06bb0be - pristine_git_object: ebb11beb20596ad7d0867e9b6351b8a2bfa75d86 + last_write_checksum: sha1:b3ee41bf7364eb161719e55b0aa1e80e11d2fa50 + pristine_git_object: d941865a1545104d251786528546d7d612d0cccb docs/models/components/CommercePriceTransitionResponse.md: id: 9f75f01d7eee - last_write_checksum: sha1:9fd2f96126fec0d82c7e8d0cb2b9c77636c73cb9 - pristine_git_object: f4efc82f5ddaf6ab7f6ae441c80a7493f9867bdc + last_write_checksum: sha1:6d85e3232de683ac8d878e3fd6d46f4881118942 + pristine_git_object: 98d28126dad3ab7fcea58ef43a84f4c60d1574b2 docs/models/components/CommercePriceTransitionResponseObject.md: id: ebd27eb75f62 last_write_checksum: sha1:c0b3bf827d59fb10a9a39a26d38698ad58083b7c @@ -324,6 +332,122 @@ trackedFiles: id: a68da2a78e3b last_write_checksum: sha1:7c2fdb030dda103e27228ba8d610bd2995677c47 pristine_git_object: ef6be87bcc549b50047e8fb1a0ded604befeaebf + docs/models/components/CommerceSubscriptionItem2.md: + id: 8130e71f9271 + last_write_checksum: sha1:5f5c8b47b22789ef812569499b37694297d631f0 + pristine_git_object: d70f8690b5f865e39f0ac6b0fbb36a29e9e27770 + docs/models/components/CommerceSubscriptionItem2Amount.md: + id: 32544b13abf3 + last_write_checksum: sha1:35e99cbd698b075a98877fdf58ece4885ad7bbc3 + pristine_git_object: 1028b9271d1331030dec2a75d37d45511db0cf1c + docs/models/components/CommerceSubscriptionItem2AnnualFee.md: + id: fa5ea344cff3 + last_write_checksum: sha1:973062eb8fe25df1f2929e56438e76de00343b7e + pristine_git_object: 7d3d6a2342e7961142ba61289f347d007dc21ecd + docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md: + id: 4124da548aec + last_write_checksum: sha1:7cc528bb59088bbe0f982d19c425f2e30dbb599c + pristine_git_object: c135c4ab6ad3a88a8d7c256e0e17af1db6f00ccd + docs/models/components/CommerceSubscriptionItem2CreditAmount.md: + id: b674cc7b8b65 + last_write_checksum: sha1:0d6e0dee6e952199bc702b1948c3db01bd5f3b3a + pristine_git_object: 38a0e3b284a33efb6f64e63578041359967e87d1 + docs/models/components/CommerceSubscriptionItem2Credits.md: + id: 074b94ec9481 + last_write_checksum: sha1:9aa149e37b11f841ade0a049c0b032ebd51f8461 + pristine_git_object: ac8b9789877ff22ef49bb9195d8ba644171e0226 + docs/models/components/CommerceSubscriptionItem2Discounts.md: + id: 97bfdc89bcad + last_write_checksum: sha1:488c86477c2ac0dda04e04ddd60ab01828ed8ffd + pristine_git_object: e7f9b3d897b0c5e9c24dbd112d45ceadeecedc23 + docs/models/components/CommerceSubscriptionItem2Fee.md: + id: 9da18ae234dd + last_write_checksum: sha1:827d7f66c366beee08b9a0319631e2f76fc88391 + pristine_git_object: 13b3d125f069c6054069af2bbd4658119a554eaa + docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md: + id: 842b863ac609 + last_write_checksum: sha1:77a9f18c0f19b13c5db286d063651d9e5209c727 + pristine_git_object: 7d7415d42e2a081ef96a00b05ffb908454583b9f + docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md: + id: 3c360ee9d8c7 + last_write_checksum: sha1:b0687d8ad3a669968e9fed1c0dbcc67e506f7eeb + pristine_git_object: ae138719efd459f75c05daa060f06320ce3c2ade + docs/models/components/CommerceSubscriptionItem2NextPayment.md: + id: 1e5ed28cc8e9 + last_write_checksum: sha1:d608bea938753cfad2020dd02a13ff17a027e761 + pristine_git_object: 8bde7e00044032c4641fb68f50e57b9a16977ded + docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md: + id: 9b43a131c185 + last_write_checksum: sha1:9c9a81e9b71a9cbfea8e0857ef362aaaec03c6ed + pristine_git_object: a5033c4d287c27d24ea78d5426d92c225e41e86f + docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md: + id: 5e295de6c7d1 + last_write_checksum: sha1:a5b0979c94ee3bd99f1f3889173317141bb0231a + pristine_git_object: f67073c8c51c7576e6c63fe6fc85513424d34571 + docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md: + id: 6b36350e9bba + last_write_checksum: sha1:f0a8e330b03785183515008b81e0e3ef9c2b85c0 + pristine_git_object: 9e92b23c9cef0ec9e1684a3c604f134d14809075 + docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md: + id: 1838c7781934 + last_write_checksum: sha1:d19730e35cfa47644f3a2ed5642d99605754b75e + pristine_git_object: beac250c77259a8ba980c8046cca77b907bd93a6 + docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md: + id: bb4943843e7c + last_write_checksum: sha1:ce387d5d03fd3036f2e22445124b73f3c419e263 + pristine_git_object: 5e6fbf679d70b089139d68d5036858257d0fa29f + docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md: + id: 4e46fe592854 + last_write_checksum: sha1:75e06f3392b882fc08fa321ed7a337f376603f91 + pristine_git_object: 47ede786703a77efef0cce15ee01b92d7cf1fcf2 + docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md: + id: 00d8f3ad141e + last_write_checksum: sha1:17da4a2a8f5e47b7f4deda6f1dc6e138e9f66464 + pristine_git_object: 7eddbc71cfd9e5c1baa54d64f79f50e33eca9a5a + docs/models/components/CommerceSubscriptionItem2Object.md: + id: 99fbcf746022 + last_write_checksum: sha1:ab0a4e4939b5b14823a0ac90731a3b88464c2b0c + pristine_git_object: 0598f0e7abe042605a0b5ddd1d3ae5d64b19eebd + docs/models/components/CommerceSubscriptionItem2Payer.md: + id: ad3f94191c67 + last_write_checksum: sha1:dc7ca2ed43cd37391334d060871c3e4c3fdcdc0d + pristine_git_object: ed9d485c5e9d7361912b571d7a1a30156937890c + docs/models/components/CommerceSubscriptionItem2PayerObject.md: + id: 279693b97bdb + last_write_checksum: sha1:34e1bab1d5c4e1a9d825b58dd149313b0483780e + pristine_git_object: 389b204fbe7dc4281c92d2d599e8091917826173 + docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md: + id: 3cee7386eb85 + last_write_checksum: sha1:e9e97f183b68f4a3bab392f23c9e31e4f8c1513b + pristine_git_object: 2ae80e4d92749488abe5d98689d5303ea31f3f5f + docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md: + id: 29b4e5698dd1 + last_write_checksum: sha1:b99084554acaf59c99d5611ea357bb7c516230f2 + pristine_git_object: f2d33091a8fdad188950e4735f95e67a5f235650 + docs/models/components/CommerceSubscriptionItem2Plan.md: + id: 3db1ac069f2e + last_write_checksum: sha1:34f63003404894851ec81898635349b105501597 + pristine_git_object: 274e4e0b83dae2cf2d3966502ba0c04e6252a033 + docs/models/components/CommerceSubscriptionItem2PlanObject.md: + id: 3ae6d23b0e99 + last_write_checksum: sha1:5caa37c4ab100b91fe3f32746e3b43f441fbae13 + pristine_git_object: 7a26dab041fa8da009e0fca81c805432128ca1c5 + docs/models/components/CommerceSubscriptionItem2PlanPeriod.md: + id: 7d20f2f0c6ad + last_write_checksum: sha1:9edd22719e3e6b3f3a38092b38d0fbb52ac1f898 + pristine_git_object: 71dd6fe0aa2946ec862c53109a2406cdff2b06d6 + docs/models/components/CommerceSubscriptionItem2Proration.md: + id: 569e6940852b + last_write_checksum: sha1:b927e580ae84d392a8b49818e780128941366b77 + pristine_git_object: 4c8031470b21c5dc032138a38f9e546e1d79a998 + docs/models/components/CommerceSubscriptionItem2Status.md: + id: 4a244b57097b + last_write_checksum: sha1:33b17a7fe952396e4524259d5991797b3437bba8 + pristine_git_object: ca82cb4dab9266afc45fdec6390424a41ec7ddd7 + docs/models/components/CommerceSubscriptionItem2Totals.md: + id: eed8449a2cc8 + last_write_checksum: sha1:b3b2b75d5cf4e859be2f6a49c29df76d25c8f250 + pristine_git_object: 2dcdc1055139a8268b7f9c120daa23f089eef13d docs/models/components/CommerceSubscriptionItemAmount.md: id: b67f1afb00de last_write_checksum: sha1:829d17d6adcbffe8a294a02b9eb70d42f8be8635 @@ -398,8 +522,8 @@ trackedFiles: pristine_git_object: 487ae1f4a8a27ebcc4942a48be291c09be04fe93 docs/models/components/CommerceSubscriptionNextPayment.md: id: b1a4acb11434 - last_write_checksum: sha1:6c9f1d2d6bbcdddfb1ad982aee46dd2b943015e1 - pristine_git_object: f1ce0c22439745b47a0ff94fdf31a093da55a7e4 + last_write_checksum: sha1:430cd3245cf15ae38d45fbfaef8f285d70b7fecb + pristine_git_object: 7650717ff613e9f665a3d5fad04e6e8c841517ca docs/models/components/CommerceSubscriptionNextPaymentCredits.md: id: 20578a14d2d0 last_write_checksum: sha1:03ad289897409736cf718b712015e96498310ead @@ -418,8 +542,8 @@ trackedFiles: pristine_git_object: 439d262bd3a88e68b7918648b65eca3e7d32ce58 docs/models/components/CommerceSubscriptionNextPaymentTotals.md: id: 733b333ff87a - last_write_checksum: sha1:39fe89637ebf875f947b29b55de1dfbac497fca7 - pristine_git_object: dad851c1e5acd3d3e70918527600cc0abd8f638d + last_write_checksum: sha1:cacea739148f6fdb54a65807f06a85225a5ce30d + pristine_git_object: daca277124b62c037d3433bad520dd693cc6ba6b docs/models/components/CommerceSubscriptionNextPaymentTotalsProration.md: id: 838d7b416f53 last_write_checksum: sha1:c56ce2f116931f3d67dade315aa1bc30686267f3 @@ -458,8 +582,8 @@ trackedFiles: pristine_git_object: 2609e887e5a0bea78ad284e25ae5f564cd30445f docs/models/components/Credit.md: id: e4dd1ec0fb7a - last_write_checksum: sha1:a27884a6d2fe66044c5c49aaf5b63e236a48f498 - pristine_git_object: 3f11bb6fe1d7c67827d2e7aa49078393ac035c9e + last_write_checksum: sha1:7ebaeaff7a580acf76310ff9be67f8634f84c725 + pristine_git_object: ff1ea1cd65c310914b1b35050830a135c9fd95c7 docs/models/components/Credits.md: id: 09bf15355372 last_write_checksum: sha1:461c6d09ce0f17cd49dd0bd242d8722659493dc1 @@ -514,8 +638,8 @@ trackedFiles: pristine_git_object: 5d0afae5702be5a9254bb59c9fcc185a0caaffa8 docs/models/components/EnrollmentMode.md: id: b4d9b51b3b4d - last_write_checksum: sha1:9597e71738a086b2ac18f0356500e36ef379be69 - pristine_git_object: e95ee5d636d0cc52093e52b1e3d987f788a7c9e0 + last_write_checksum: sha1:f4cd12826ef26691f21f517cb93adbd5d8c59318 + pristine_git_object: 5b8886c85afc3364381af0396969287f1a9fa8e3 docs/models/components/EnterpriseAccount.md: id: 83576d42e40d last_write_checksum: sha1:3f58938ac61a3b450830717c15752dac930c8169 @@ -546,12 +670,20 @@ trackedFiles: pristine_git_object: cf8e917986b5d219451a9d8ec895642ba7d7f366 docs/models/components/EnterpriseConnection.md: id: 52b0603697c6 - last_write_checksum: sha1:651d431e649c243fa0ed6d85d8d9c2222a50818c - pristine_git_object: 4bc9b166e04bd048e5f0d56cda50820f6e7d050c + last_write_checksum: sha1:b6ab25d0af4780841f83f22275d8d9211156312d + pristine_git_object: a01ee80850b9e4cf5220b80323cd36fcc8b3998f + docs/models/components/EnterpriseConnectionMode.md: + id: b2adf98a335c + last_write_checksum: sha1:6e80fd5b6ef102bf17e12c533901c0fac2d85019 + pristine_git_object: d2fad8040b0ce2805bbbd70ed974c8b534c52ab8 + docs/models/components/EnterpriseConnectionObject.md: + id: 98bb8e0af6ec + last_write_checksum: sha1:2ef62c9bd6355ae89e3c210db735f2c737037695 + pristine_git_object: 2ebcccb38dc5ef800537a32014e1bece7b7482dc docs/models/components/EnterpriseConnectionSamlConnection.md: id: f409e82a9932 - last_write_checksum: sha1:f95183898fcaa1f1726c66889abfceb033b68eff - pristine_git_object: a3f39215dfa25eb34a3a8de92824db2c8f48a861 + last_write_checksum: sha1:e91cf77f984980827de09b58713d64f29b9b9624 + pristine_git_object: 7ab278e8447119e752f1cf4f54dc0f2c48657b5f docs/models/components/EnterpriseConnectionTestRun.md: id: 0ed8395614a8 last_write_checksum: sha1:b82fda57a3fc81ae38708b0f5cefa776a94a12f5 @@ -578,12 +710,8 @@ trackedFiles: pristine_git_object: d92caf20d811dd7a4dd5a5184698d55f201d9643 docs/models/components/ErrorClerkError.md: id: c61488e774ca - last_write_checksum: sha1:449c4922ac104b915bed26b4eb7c76fccd3ffa2d - pristine_git_object: 43ef06343f8b59a418ce7c4734060cea0622deec - docs/models/components/ErrorMeta.md: - id: ea77f8dea729 - last_write_checksum: sha1:74bf9c9aeb68bd55bf2755bd8ca361ad4a3e3d87 - pristine_git_object: e498afa4b687e2d1c1abfa0d7b0fedd1d51002a0 + last_write_checksum: sha1:310a246c41205f77da64e3f378b9f4b3531f6644 + pristine_git_object: f4c70c223dfdedc643700f3afaba3f6aa2582374 docs/models/components/ExtendFreeTrialRequest.md: id: 27c5473f5368 last_write_checksum: sha1:011ff5e7acbfc804abdcf9800c0ed03c0b1be480 @@ -608,6 +736,14 @@ trackedFiles: id: c43f526e957e last_write_checksum: sha1:4c6a5b13fc05c9d308e483047765dfc685125921 pristine_git_object: e4bf8b15335160bcb50794c092ac581a2d605945 + docs/models/components/FeatureResponse2.md: + id: 536e06420d8a + last_write_checksum: sha1:ec18c63db55ed3e2e14bcd30f62b8ccb5f8584e5 + pristine_git_object: 6e48d8b6fd51d1e1230928686a1a0285eddd6172 + docs/models/components/FeatureResponse2Object.md: + id: 0497dbb3d722 + last_write_checksum: sha1:d1ee26460172aea9fe418816e58c1d9d524a0709 + pristine_git_object: f0c59c84a51d3e2b9040ee47c8fd2b1d9114afb5 docs/models/components/FeatureResponseObject.md: id: daf1f231056c last_write_checksum: sha1:a9609482161804cd4b192891d3320997a787a3ba @@ -658,8 +794,8 @@ trackedFiles: pristine_git_object: c100f0fa537e64beeb1df23d4669b74581f4f65a docs/models/components/InstanceProtect.md: id: 5526cd7682a9 - last_write_checksum: sha1:ee9bca90024bdff1bae9607b41f2c9a44e0c6448 - pristine_git_object: c7fb1d006c8296dd5b875d95bc2a4dd838cb7a7b + last_write_checksum: sha1:77692060a54c38d258a628841cd4c5018cd42fad + pristine_git_object: c1449172e80a81551d1ec8255f74cab2d5a90911 docs/models/components/InstanceProtectObject.md: id: da628a04397d last_write_checksum: sha1:abf766d6bc95f0ad8aebb257fe77a34d1c28ba73 @@ -674,8 +810,8 @@ trackedFiles: pristine_git_object: 7307a183193bb236a6730503abc9a664b4fcc58e docs/models/components/InstanceSettings.md: id: 8aa3ff5b98f1 - last_write_checksum: sha1:591b8206932eb0ea3dac1ac62d2bb9db8d96064e - pristine_git_object: e1a099afbaec2da1cacb56f5503dbc768e5f0d9a + last_write_checksum: sha1:bc4e4af0107cb061a54c0b65f5c54237aafa6b6a + pristine_git_object: ee0eff92e3f799c0ec414cd70fccad8e64728f5d docs/models/components/InstanceSettingsObject.md: id: 574134b9c90f last_write_checksum: sha1:4ba0e4d59943e598d063867f2898d8cafd655b87 @@ -724,6 +860,10 @@ trackedFiles: id: d9512dfe3805 last_write_checksum: sha1:f5cd8f8400d64825c0cec4a64cd69c3a347615e8 pristine_git_object: 1e76d2d610444f47cfc26a5403f5dd2c63f5af46 + docs/models/components/LoginHint.md: + id: 1e08fd7fd57e + last_write_checksum: sha1:8890b26580a2dfae52d9f16b32533a2a8a25c097 + pristine_git_object: 7cfaeca644c4dfeefa32ba83931faa8051cbb2bc docs/models/components/Logs.md: id: 1137e410fc02 last_write_checksum: sha1:0f658469973b3b0917b6689b185e04deda1554eb @@ -788,18 +928,18 @@ trackedFiles: id: 88b7a90a4d0c last_write_checksum: sha1:94f163498bfcffcfdbd951623fada465002b687a pristine_git_object: 0161d4df35fdc5259687b22254802b6495611d41 - docs/models/components/Meta.md: - id: 10f732375a7b - last_write_checksum: sha1:15ebd1eb87ca29dca40f7a85b187c7119e9bc5f8 - pristine_git_object: 93f98d6ad4d1504e6a3849971be592f31f4eea76 + docs/models/components/Mode.md: + id: 5cbf4ccfdc29 + last_write_checksum: sha1:3a190a5006e5696eb1a67ff9b347d849b50b9402 + pristine_git_object: bf38ff665397ea55ac56458a709dc8c52aadc3c3 docs/models/components/NextAction.md: id: c06e3b257338 last_write_checksum: sha1:2c09813dc84f5c3b0d0d7adb7deaf29ea01ef9ea pristine_git_object: 44967dcf22e8db5e770d39862de814e862ec4f9a docs/models/components/NextInvoice.md: id: b4ae679a9b6c - last_write_checksum: sha1:778c4fa295c0ef0eded4d6a45f14fec41aa02cd9 - pristine_git_object: 1afdbee4f022241d78c488fdbd0e1d8a5e572486 + last_write_checksum: sha1:6f008e8714a937d207db425fdce2c77d874c39d4 + pristine_git_object: 271470f16d6c769b5d15bfaa4e883d28c4e4d54e docs/models/components/NextPayment.md: id: 1e2fd926524a last_write_checksum: sha1:dc34357c263121a840cfabf296cc5b3c7602cdb9 @@ -826,8 +966,8 @@ trackedFiles: pristine_git_object: 08cf61471ff915385dea966e1b34eb1a2fd8db54 docs/models/components/OAuthApplicationSettings.md: id: b259cb5a3038 - last_write_checksum: sha1:a943679e31089711d7018b15c90c154f47b10788 - pristine_git_object: df6f20324d15341673d7b2b30e2bd13a42cad4e7 + last_write_checksum: sha1:4da74c80291695505521367a402063ec595d19a7 + pristine_git_object: 118ef7dad0273f1dcd46d4b6a82535e0b89113da docs/models/components/OAuthApplicationSettingsObject.md: id: befa70a22487 last_write_checksum: sha1:867255360318858fdde96d5ee3ff2d1b88afc132 @@ -858,8 +998,8 @@ trackedFiles: pristine_git_object: 258dfb42c183da0c2570c97b4a51664c65ee67aa docs/models/components/One.md: id: d3f531a81437 - last_write_checksum: sha1:81731d5a6bd16d1261bd2d6320beea46946bfc67 - pristine_git_object: 8b55d934fd9d1d079d60657b07f974ccd658ae8a + last_write_checksum: sha1:fbbaa11d18c325b7c7953a3dcbcee8096bcf1624 + pristine_git_object: ca49ddd0619c5763b302a602b9dba3c386dbdc0e docs/models/components/Organization.md: id: 63e359b91c0e last_write_checksum: sha1:6077b50f98e25ecd198f73bb8dea7a2e30bd8fef @@ -930,8 +1070,8 @@ trackedFiles: pristine_git_object: 5bcb188212d7796c402a119df6b7a5b1be932ab7 docs/models/components/OrganizationMembershipPublicUserData.md: id: e1375992d7b9 - last_write_checksum: sha1:b4efc9a7c23ffd374fc48b393c945fb8a04f45ba - pristine_git_object: 75d9c2e5ff3fc05032771c284150c063e879d34a + last_write_checksum: sha1:1bf793d84114ad82dc5f32dce2545abc1c50abca + pristine_git_object: a19c1eea7dc17563585a27df2ff6e37861b24717 docs/models/components/OrganizationMemberships.md: id: 673d1b3a30bf last_write_checksum: sha1:5564081c89bddd5fd049e0e6597939ca0401e9cf @@ -1010,20 +1150,20 @@ trackedFiles: pristine_git_object: 9da56253026478253013412c5acbb8ac0892538c docs/models/components/Payer.md: id: 7ec14f3e0056 - last_write_checksum: sha1:a4942b7d134dc12ff4a4288ab20cdfebf753fec4 - pristine_git_object: cbce6e74944a28174cc9adc4d2f2400754594c4a + last_write_checksum: sha1:dab2a258882618d47fe4b4590d334c80fe9f2c9d + pristine_git_object: 42a584b2f6e11e8b1209d06cb1641f0acf3e2ca1 docs/models/components/PaymentMethod.md: id: 1b54b132ff41 last_write_checksum: sha1:d0f9cd71b02634209b4a0e2251d88b0e230117f3 pristine_git_object: 0feb73b9f74906109394724dca37688696d483de docs/models/components/PaymentSource.md: id: 148c041a53ff - last_write_checksum: sha1:2dfb15a228ceb602316e01c370bbc4642f919f99 - pristine_git_object: 691b5be5ab1c63ae0303afb1eaaaaea93fe02d93 + last_write_checksum: sha1:be2408e7e59d10da2d787d653710135f19452fd1 + pristine_git_object: 370c089181b64d80bd6c0336281fffb4540fbdff docs/models/components/PaymentType.md: id: c9b9b9c30eff - last_write_checksum: sha1:3ab2bb793f73ce6a858c698f634150face7aff3b - pristine_git_object: faf66ed9c28ebb23ed80079c8bca076a0429a53d + last_write_checksum: sha1:2e83d3b21d430084f96a77cb3733987dd498765b + pristine_git_object: b4cd9485cfbdf7ae10cfca9b7b011f07bee6b997 docs/models/components/Permission.md: id: 76bcd7648c7a last_write_checksum: sha1:e15b8c36074819c4b9e070a0f0a553b40e7a1e3f @@ -1056,6 +1196,10 @@ trackedFiles: id: b895ce843fef last_write_checksum: sha1:1a6f5aa02a8a41d1c5b2174ea3dd0c3afb8914bf pristine_git_object: 735a46351f0cbd1d32d3b5f41b4a9ab025fa0cf1 + docs/models/components/Platform.md: + id: a13ad4c7df42 + last_write_checksum: sha1:2c8247a5f22af092bb85d3a5151c64c5dca22479 + pristine_git_object: 652f1e2cdc29a64c6bd0508a2ce1d6157e0c1694 docs/models/components/PreviousSubscriptionItemStatus.md: id: fd2512ef99fd last_write_checksum: sha1:b682d861f484c18b8de3c72928ea267f6e3074aa @@ -1180,6 +1324,10 @@ trackedFiles: id: ef0eb6799812 last_write_checksum: sha1:0ad32df26dc303706546b8438751aee2e4727ec3 pristine_git_object: 971d714b56032ae1acfa4e259496e6505c29d143 + docs/models/components/SAMLConnectionLoginHint.md: + id: 84bf385efc06 + last_write_checksum: sha1:c5882a061fcc6fa76bac30c7e5e2cc86e1c588b1 + pristine_git_object: 78f367585f9a5a74495f18ffaa10745e22beacee docs/models/components/SAMLConnectionObject.md: id: d1dad3f5caeb last_write_checksum: sha1:bc281f033d34e66c66f983c39c45241c2459b2e0 @@ -1188,170 +1336,54 @@ trackedFiles: id: e1127314b7f6 last_write_checksum: sha1:23ad5226b21cc7a6a8b61ba7783ef127579cd1a3 pristine_git_object: e7255db1f7784cb6f843bd508360a0608079fb99 + docs/models/components/SCIMDirectory.md: + id: 295157804cd1 + last_write_checksum: sha1:0a2c828ff353ee7eca54c8a1e65eba9e94c4d0e6 + pristine_git_object: d1d5c9e02db0cc3581f090dacdbd2c3d49a19754 + docs/models/components/SCIMDirectoryCustomAttributes.md: + id: 84c93e590bfc + last_write_checksum: sha1:981bee925e231a9975aafa36b6538349a3aa3802 + pristine_git_object: 856f62a2eed4af4c4d5558bd5e93b8548e2ef1b9 + docs/models/components/SCIMDirectoryList.md: + id: d34c1c523dd8 + last_write_checksum: sha1:a964ca114d292c9f9424e79292be8d490a46d2ed + pristine_git_object: 9d027d3f260d9c7aae5996d02649c2bdb2efedc8 + docs/models/components/SCIMDirectoryObject.md: + id: d8ec1c9c10c7 + last_write_checksum: sha1:f2236d8fa8f77af0488e25fc1f0015e9ec606902 + pristine_git_object: d8c6ae4b208764fdeef28d71cfe024afa99f323b + docs/models/components/SCIMGroupRoleMapping.md: + id: ebd70d16aac8 + last_write_checksum: sha1:c98c338dc0fba9dfe0a8329a68de2b5e64481291 + pristine_git_object: f4e811ec569171e460915338d2621a3b16c6490f + docs/models/components/SCIMGroupRoleMappingDeleted.md: + id: c26466d9e3e4 + last_write_checksum: sha1:3e47593ee47c27e41bc20cfee28a8ad1596b983c + pristine_git_object: 3faa017aba87e69176030211bab5053645fdf1ad + docs/models/components/SCIMGroupRoleMappingDeletedObject.md: + id: 420d05deb758 + last_write_checksum: sha1:eda38941d6f2fdd165cfff833fcd6b55b4882dec + pristine_git_object: 1082875320cd8c1db6e561de3883e8ce2d9f5ec3 + docs/models/components/SCIMGroupRoleMappingList.md: + id: 4d4f110b48cf + last_write_checksum: sha1:f022b156b0d50276088ad3a37966ed19ead28919 + pristine_git_object: 6c75be92fa5f1bb75529109b715b8c8a8480b835 + docs/models/components/SCIMGroupRoleMappingObject.md: + id: 6a7ed336a29c + last_write_checksum: sha1:e073911c8cdde2e62338b497ed10e23fd815968c + pristine_git_object: 273a13e594743d7238cc0965024ef368842a59b1 docs/models/components/Saml.md: id: b76d2a069b63 last_write_checksum: sha1:7967b6bd931507e9b4e8d5052013e28deee80252 pristine_git_object: 0b1a091b76d4e18dec28d4f419998aa74d896d28 - docs/models/components/SchemasCommercePerUnitTotal.md: - id: 802aab43b562 - last_write_checksum: sha1:111679d351d32d98af5ed0cdf21cc3f0999e29cf - pristine_git_object: aeedba3f4a744b0feb6efb039406e0fd8dfb54cb - docs/models/components/SchemasCommercePerUnitTotalTier.md: - id: 057c7ccfc26c - last_write_checksum: sha1:c42683d4fbe92dbc14beb3487a52cefc0303b7ed - pristine_git_object: d22814a8d2a5a2dec7d84ce2e9ad35780283c418 - docs/models/components/SchemasCommercePlan.md: - id: bbcb2e134990 - last_write_checksum: sha1:2e2b9969405082451fb74f21869893f866c68fd5 - pristine_git_object: a104b3afea14a29ae511b610bf199460c4fcf58b - docs/models/components/SchemasCommercePlanAnnualFee.md: - id: 55c960b90956 - last_write_checksum: sha1:fd21f24b2e4162a823a01c5eacaf59418987b1cb - pristine_git_object: 5639faa669ec0915f46c87cd83c7fa02f5cefe23 - docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md: - id: c58848191f15 - last_write_checksum: sha1:b59dc63c0bf8c156571a8edb0ae6bfeaf0f49c26 - pristine_git_object: 1529a0bff51130adbce7de39cb90defc323a1df3 - docs/models/components/SchemasCommercePlanFee.md: - id: 15e8baff2d21 - last_write_checksum: sha1:a1fda29a41a6e356c394da7b029c4bf8a0047e54 - pristine_git_object: 9b61002c0e4f52b5f7a930f4c6b0f1eb8fba8b7a - docs/models/components/SchemasCommercePlanObject.md: - id: 59ab8ecb6baa - last_write_checksum: sha1:3c2bd1ecb23e1fde4ce8be6041da08214619dd5c - pristine_git_object: d1097c4c33de0e059428ccd480910befd8e60a6e - docs/models/components/SchemasCommerceSubscriptionItem.md: - id: 6702acf0062a - last_write_checksum: sha1:0826aea02ebf09d3c1defe640e4343c4cc20ba0e - pristine_git_object: 6fb77c5405c4799e946bbbd2fc313db7a4839e31 - docs/models/components/SchemasCommerceSubscriptionItemAmount.md: - id: ef4504fbf255 - last_write_checksum: sha1:983eac4d496c2fa2ab2730861ce0381810acbbbb - pristine_git_object: 36b821178a9c05f3a740e75c43c4b36ceb6941d7 - docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md: - id: 08fa88794b48 - last_write_checksum: sha1:16303d746b84252695e00da1970391513bf60777 - pristine_git_object: bbe998bf943f056f720de495626e7272c85c22e9 - docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md: - id: 60a0367c8a64 - last_write_checksum: sha1:3ddb936e3abdc43bf5b8b00f455f2abf31b87941 - pristine_git_object: 74acd4e1bdb62159b701a05fc21595c24b10fac4 - docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md: - id: 1679727584d0 - last_write_checksum: sha1:669dec7ea71ddc701090101491f7bfcbfeafbd98 - pristine_git_object: 636d3916c3e372c8ff7ae62baa6b5599ce328047 - docs/models/components/SchemasCommerceSubscriptionItemCredits.md: - id: 73e51a37a8c5 - last_write_checksum: sha1:ef09f6a307bf7161394a3146562a7446f806ea44 - pristine_git_object: 6dbebdd59db454ac3e21a3926ab29fdfd8202987 - docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md: - id: f844ea212382 - last_write_checksum: sha1:c91b49fc00d93535a514a6e132f32d04c1b5e820 - pristine_git_object: 4274f4e1af831cc1d5334bd985c369670919caa3 - docs/models/components/SchemasCommerceSubscriptionItemFee.md: - id: 966bddbf6948 - last_write_checksum: sha1:bc9276482847f1bd8ad7eff5a6e3a3ef74a851ba - pristine_git_object: 1361b4b8a87cfae82f88acde05545315e498a4fb - docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md: - id: 046171435d7c - last_write_checksum: sha1:78901897d878dd6bb058ef789b0aa5143c8c8b74 - pristine_git_object: b92414eac7f9e221a2bf0a06e814cd503bba5877 - docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md: - id: 1fd92d3a6a83 - last_write_checksum: sha1:248afc2ccb6befe87f6047d131e211ac015e1075 - pristine_git_object: 445e67be74e377851caa29755b697e47a9fa1d39 - docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md: - id: d8792a4dfacc - last_write_checksum: sha1:4a363d8439b5bff28f0f82143a06865f7abcd662 - pristine_git_object: b7227b48543ce2bd98727f087b42db22a9fd26f3 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md: - id: 0189ba3a1197 - last_write_checksum: sha1:69d1ddbce33fb9787efe163076a1a4156babad49 - pristine_git_object: 4689ffdcbbb5d006086203984e3d2645763b3864 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md: - id: c2ac4f80cd45 - last_write_checksum: sha1:a5d79183e1218f1ffbb5812de1dc8882531f7ef3 - pristine_git_object: 7e5b0876f04e7b20872bd7d1b490617095e9f26d - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md: - id: 8b119459ff47 - last_write_checksum: sha1:fdfe2facf81ad608644da9603e4cb83fff59ebaf - pristine_git_object: 399b4cdb25ea576ea022768f16b4c25e11d60270 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md: - id: 74241a4b5cf6 - last_write_checksum: sha1:44037c8018fe10c942461f390d0f1479bc1f0636 - pristine_git_object: 4f58f15362c49fa36ec1905dd9147d9ef026de03 - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md: - id: 8dff54bf6c16 - last_write_checksum: sha1:e49ee216c03bf998880f94f15364d1230876ff6b - pristine_git_object: e974a5a6f9bcb22fe823386cd153652f8ba912dc - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md: - id: bce0140a2507 - last_write_checksum: sha1:6ee63b0f26c12cc6c072918499de9a9bf09de537 - pristine_git_object: cf0b09df95239054aed99409e644e265a17bba0b - docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md: - id: 14495b4b5ae1 - last_write_checksum: sha1:671a86b0cae78f0a5b9a003ff1c57af0a2c94d6b - pristine_git_object: d788c0b7aa7162657fc5f98297a17a5f39550182 - docs/models/components/SchemasCommerceSubscriptionItemObject.md: - id: 1df8f0b71a44 - last_write_checksum: sha1:30eab9fc0f0a79ef72773946ed79eb8002bc7a3c - pristine_git_object: bb419cb0b55898a93057e3f660bf204215d66e39 - docs/models/components/SchemasCommerceSubscriptionItemPayer.md: - id: 2f7bb9ecc3d7 - last_write_checksum: sha1:97e6a27cb6744154ffa3950ac5e884eefe3c220b - pristine_git_object: 1fbc09130f3be4cbd1264fb9ab6753b88449cf34 - docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md: - id: c7c1aed23c16 - last_write_checksum: sha1:3f22c3e61b3446a8e1cab9dfca0dd6390ca81e4f - pristine_git_object: c67a07446ade99d74a8c5fa9acfd50edce2f03d7 - docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md: - id: af4ec587e2f3 - last_write_checksum: sha1:237f44976b6213e0ea2f73248e5e160acdc8605e - pristine_git_object: eca4d7f57834424cd80c56936fd524c2824edef7 - docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md: - id: ba8237d1d410 - last_write_checksum: sha1:f67d34ac710a191e6b3fd0054fbb7a4283a30b7c - pristine_git_object: d3fbd4161f1a1320a1d6f9683188a75f2a438dc2 - docs/models/components/SchemasCommerceSubscriptionItemPlan.md: - id: 69ac88c04e13 - last_write_checksum: sha1:e3b869deebceae0911f52b3fec0165e8f897ecc9 - pristine_git_object: f2a84b6817537ac30681bd29981c4271b8e2713e - docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md: - id: d15859ed7564 - last_write_checksum: sha1:fcb254e7caa31460387d813c2c8b81f4157f5048 - pristine_git_object: 2d2a25f26aae06be456bbb551b2242fce9c66ef9 - docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md: - id: 72f48521e52d - last_write_checksum: sha1:ae04643ac2b48fd366c0ca86f1534b2dbd66e17a - pristine_git_object: 5226c0910b4462edaf2b5969a9950b4891beb9ff - docs/models/components/SchemasCommerceSubscriptionItemProration.md: - id: 6e1c0ee0366a - last_write_checksum: sha1:d034078eee3b4e3db9adb6a41d261cecf14f04a7 - pristine_git_object: 3f100e413dfe8ce554420d862838368cfa409031 - docs/models/components/SchemasCommerceSubscriptionItemStatus.md: - id: 54fec716b374 - last_write_checksum: sha1:22f569eef82a282ff512d080401369c8fb23a155 - pristine_git_object: 3769ff5d4af3702c8f53d966f647271883d1f997 - docs/models/components/SchemasCommerceSubscriptionItemTotals.md: - id: 575154eb4de7 - last_write_checksum: sha1:d2e150a0a98cc38f98c4d5ec15c8ba422439b282 - pristine_git_object: cd8b588f28a264fb506368006224f488140ad344 - docs/models/components/SchemasFeatureResponse.md: - id: febdae5288f3 - last_write_checksum: sha1:85bca4481b794a30c6e6bbed4ff39c9ad584e24e - pristine_git_object: 3671ee20f41c4331aad705dfdd317ae32d0c372a - docs/models/components/SchemasFeatureResponseObject.md: - id: 2eea7e58babc - last_write_checksum: sha1:d217a0f4ff4d23fc8c26f1b14c464278feeaf9ce - pristine_git_object: aa0095ba3ce275489bd563c6802a922cee70717d docs/models/components/Scim.md: id: 15d999cacc52 last_write_checksum: sha1:6a0a6366f85e04f554d553575766c849043f65a2 pristine_git_object: 13c4087101ffe926f65ac6626a8bf739c8e4be48 docs/models/components/Seats.md: id: ca6ade4bd7ea - last_write_checksum: sha1:51ad9dea69a72d73ae76dbb383956947f0b6d818 - pristine_git_object: c2c05c2d67dfa61a2ee9a9c120ec37b951330ef4 + last_write_checksum: sha1:e168a6abad2bf8167b74160443da1d98b43cacd5 + pristine_git_object: 18a54364ad25ee62fa9aeeceee6f00732f43bfad docs/models/components/Security.md: id: 3878f0f84029 last_write_checksum: sha1:10ed49e1ccadf80fc08408c46bd326e0df89c317 @@ -1470,12 +1502,28 @@ trackedFiles: pristine_git_object: 2b447b070f03ffd99a036bd27379313b7c4f367e docs/models/components/Totals.md: id: d837cc2544f0 - last_write_checksum: sha1:6a1a533f02f4f4ddcac18d4a47291c75d3636c93 - pristine_git_object: 75f051f1ca7020e76659aad1fa524948b7c7eda4 + last_write_checksum: sha1:e95dcf5374cad47677480fbeda0e7b8b3316c690 + pristine_git_object: 32414b67378ed5dc391026b42cdc6614795db6f6 + docs/models/components/TrustedDevice.md: + id: 534b72159d5b + last_write_checksum: sha1:84efe6c3e3c95633a3c5db5c688116501aab2e18 + pristine_git_object: 4af9c5e9a008ef80312d164a28fddf9c04b42b2e + docs/models/components/TrustedDeviceList.md: + id: 7e3acf2c6e92 + last_write_checksum: sha1:11b57b9a73bd5cf2af708da802ae3c55b0c4c11d + pristine_git_object: 4ca8b303ac4aa6034e41b3ba483080b7888e5447 + docs/models/components/TrustedDeviceObject.md: + id: f5f8284c6adf + last_write_checksum: sha1:363a644e2a5f15aa59f4f8e8bf76bebb6f4aff55 + pristine_git_object: 3b1e4e11a3e5979be71807359bba2f9d4fe38cae + docs/models/components/TrustedDeviceStatus.md: + id: ef0dacb6a1f1 + last_write_checksum: sha1:83f9f6886051c4dfcc156fc994dd85c804c376c0 + pristine_git_object: 3ff94326f9a591bcf1a9c5c2e6d620e08319da78 docs/models/components/Two.md: id: d40a2aa6dcb3 - last_write_checksum: sha1:863a212b94d91eae5e4b983d9ef404fc427df4ce - pristine_git_object: 3a3cb546151c099cfde01c894c68fce2cbfad279 + last_write_checksum: sha1:1c6297c0d526092bca63f1e27ff28fd812982c87 + pristine_git_object: 8de92d235bc1a37c0920bb76c394005e7ac62649 docs/models/components/Type.md: id: 8c0a5144d92e last_write_checksum: sha1:2ccd40c0fdb1f9e4aad32b76883508b31299e01b @@ -1558,8 +1606,8 @@ trackedFiles: pristine_git_object: 375df38f3f47162e0f31c5b96a746b0726b792f3 docs/models/components/VerificationGoogleOneTapErrorClerkError.md: id: f19d74b305de - last_write_checksum: sha1:e8b34cbb0afa92b22697d011200526ad76d2cbf6 - pristine_git_object: f6ea715c617687121e9ff950a90f6e3314fa09fc + last_write_checksum: sha1:057249b6640ec4a528268e803f19d89e737913e2 + pristine_git_object: e127ba4abf9daf95fcfc515852dfc90d88a67043 docs/models/components/VerificationGoogleOneTapVerificationError.md: id: 6e98856a545c last_write_checksum: sha1:d8c7563c19683321633d01e20036345d5a201ac9 @@ -1586,12 +1634,12 @@ trackedFiles: pristine_git_object: e7be9844acba84b4c390f8daace68240f85eb73f docs/models/components/VerificationOauthErrorClerkError.md: id: 5e02db2aeecc - last_write_checksum: sha1:bc93a76a46c4816faee0c6a605fd7e428f171622 - pristine_git_object: c1585841fb6ffe17d71d57d628705056ab614c7e + last_write_checksum: sha1:23d6485a9bd5b02359cf73f938ff752d2a6fa571 + pristine_git_object: adc5b8ea54d7f7e69772d57d84099c7438907da8 docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md: id: 6674e395478c - last_write_checksum: sha1:42f46f0340fce95fb56288fa81b395aa8da02022 - pristine_git_object: 41eb739e5864a2ff1f74cfb6003a099473d1d0d1 + last_write_checksum: sha1:6203a4605a922ce293264d08fa966340827a1c1a + pristine_git_object: 7c6faa1335e254cded7507fe2207815a802bc52a docs/models/components/VerificationOauthVerificationEnterpriseAccountError.md: id: 78baad5d6d02 last_write_checksum: sha1:bd4ec60b62082b7d2a66a905bba54db94fa1cab1 @@ -1662,8 +1710,8 @@ trackedFiles: pristine_git_object: 0b351d56f771349cd5b3b74236c2a2efb1b017c3 docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md: id: 6d95cbf81329 - last_write_checksum: sha1:3866d31ba87da18cb6b372070cb94b74938a5c32 - pristine_git_object: 514bca5faa13b670ca863f131f3e7bb67b07dff2 + last_write_checksum: sha1:36d52752f71e290ede1b9a5a30379648aaa22865 + pristine_git_object: e177a50cdfe8317aee383cb8984c15cb7c6cecab docs/models/components/VerificationSAMLVerificationEmailAddressSAML.md: id: 1af16c83b2ea last_write_checksum: sha1:0998a5c43ed4aeddf6828ae64ffbd4b55e74aad7 @@ -1690,12 +1738,12 @@ trackedFiles: pristine_git_object: 34fdcd3c084c24b6f24d3e6bd0c301e468410690 docs/models/components/VerificationSamlErrorClerkError.md: id: e8169c58fe2b - last_write_checksum: sha1:839ecfb8d23c2a71008dfd34a066b1526150a937 - pristine_git_object: 63ff0a97baed0696a7bc5f34c2c720ab37d41c1b + last_write_checksum: sha1:40758d8278c0d49a93fae1182fb9572a85e0dfe2 + pristine_git_object: 8f0c06d59f7192d18b8c75c720e904c6c098896c docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md: id: b83731d5d224 - last_write_checksum: sha1:a65fad7af1f232350ee5119c47e112984d19d86c - pristine_git_object: c6dcc00aa564b27290a73bc53db4b63955e33242 + last_write_checksum: sha1:c6293bc2b3ce04754b57885e6ab619111fda6822 + pristine_git_object: cbff1ec34bb2a8398fa3a4b117215ca9b32f3943 docs/models/components/VerificationSamlVerificationEnterpriseAccountError.md: id: 738eeb969be5 last_write_checksum: sha1:0d1e77fda90b0aa9469675391ad44d967f20525f @@ -1850,8 +1898,8 @@ trackedFiles: pristine_git_object: 02b0ab6a9db6a41b2a9fea4e42938fbb88148589 docs/models/errors/ClerkErrors.md: id: acaea502d84f - last_write_checksum: sha1:9f95a73885ba5de25abdc73538d09d6a6ca12882 - pristine_git_object: 76fd97129c20ce2d45ed011db77b8c6e79bcfdf4 + last_write_checksum: sha1:a34b4bf4675f3c24a871c1b450542dd810af8e11 + pristine_git_object: a9f48db71b70a2ff4631b1fbd0e71eef1e4e81c4 docs/models/errors/CreateAPIKeyAPIKeysErrors.md: id: e9dcc82ff4ba last_write_checksum: sha1:6e2213fafd5a4002d0e560e90266e0260e2b9f40 @@ -2004,10 +2052,6 @@ trackedFiles: id: f18e29ba30cc last_write_checksum: sha1:45141974ea720be5529a63f472e9aec126830ece pristine_git_object: 3fc36fc129b6aeaf804b51bd84025826f77f0ad8 - docs/models/errors/Meta.md: - id: 32db157f93ab - last_write_checksum: sha1:15ebd1eb87ca29dca40f7a85b187c7119e9bc5f8 - pristine_git_object: 93f98d6ad4d1504e6a3849971be592f31f4eea76 docs/models/errors/RevokeAPIKeyAPIKeysErrors.md: id: a44d96b46dbe last_write_checksum: sha1:ee24356cb74b1dfd0904fead4efbc721815c5711 @@ -2338,8 +2382,8 @@ trackedFiles: pristine_git_object: 7f5fcc06fb3a4416cf76b47ba56b7514ecb08850 docs/models/operations/CreateEmailAddressRequestBody.md: id: fef6b6411fae - last_write_checksum: sha1:6b9684340b79946fbb176919a90ab90ed5d1b64b - pristine_git_object: a550d4ffee296119cb4d1614a8db615ecdfbbbe8 + last_write_checksum: sha1:ca0734ecbc07e824e7f596d297ba0ab8b348808e + pristine_git_object: 0cc4a1aa2e82d1ab1c89b6b38fba7037c505d474 docs/models/operations/CreateEmailAddressResponse.md: id: 6c6b0e4bf6b5 last_write_checksum: sha1:79b4eb71c8647effe603dc4c4084a9d88a8013f6 @@ -2348,6 +2392,14 @@ trackedFiles: id: d7aad87f04dc last_write_checksum: sha1:ba6510a4df31f4dafd7a1476ab4f5ed8ae02e31b pristine_git_object: a1c83c589326522b9092e9135a53593d8cd6a1c8 + docs/models/operations/CreateEnterpriseConnectionLoginHint.md: + id: eb5aeb8aecc4 + last_write_checksum: sha1:ceb4b5cf39b741ed55f7144a7b4eb292e9ab6f26 + pristine_git_object: 7b5a7260aeaf7ed230f4bdaca2ad5774fa9f56ff + docs/models/operations/CreateEnterpriseConnectionMode.md: + id: c685f3767c59 + last_write_checksum: sha1:5d93d31da33d66ae4d43531746c529c5254db0bc + pristine_git_object: 551323b79084b87742298d34ff1dca27ae2b1457 docs/models/operations/CreateEnterpriseConnectionRequestBody.md: id: 3c97ef7d2d21 last_write_checksum: sha1:7511c1c014a02788729e39e90dc56d8fa8d73ff1 @@ -2394,8 +2446,8 @@ trackedFiles: pristine_git_object: a14b39eac5efac7307723a76c9ee50ab831285b4 docs/models/operations/CreateM2MTokenResponseBody.md: id: 96d2178e83f4 - last_write_checksum: sha1:839bd134ff8b5c850185aae3328dffaa73373c77 - pristine_git_object: 34f2fafa0912204eb324660e8fa1dea8a367c5d0 + last_write_checksum: sha1:0060f386e834fc18e0937c7dad8c757edda840d2 + pristine_git_object: 5ef8c1b045d70e14424750e94155de95b5388aa2 docs/models/operations/CreateMachineRequestBody.md: id: 159d07dd46aa last_write_checksum: sha1:014c6d49d26cd298da5abd5e8ff05658c1d2d14b @@ -2430,8 +2482,8 @@ trackedFiles: pristine_git_object: 7c7901c59042308701865e1ceabdff1049c81669 docs/models/operations/CreateOrganizationDomainRequestBody.md: id: c4860fcb8866 - last_write_checksum: sha1:5f2939115102d62b66610ecad7b06629644300f7 - pristine_git_object: d3389b5a9e35c927e1933f7625a03acace0f1b8c + last_write_checksum: sha1:9da2091875597087383239eb9714fb99b04ce850 + pristine_git_object: f33d0a7e28e45f302698650e7f128acef5268796 docs/models/operations/CreateOrganizationDomainResponse.md: id: 5eaf6e15ed12 last_write_checksum: sha1:dca3028b27d6afdcdc58288b5ed564c36842d98b @@ -2528,6 +2580,14 @@ trackedFiles: id: e5da583f5701 last_write_checksum: sha1:4e268d8def0bf2477ab41a6e35801f0da13ebe1b pristine_git_object: cb9f82410a341bcefc4c69b2eb7192972436abb0 + docs/models/operations/CreateSAMLConnectionRequestBodyLoginHint.md: + id: 3170d0c234b1 + last_write_checksum: sha1:3fdcdc60607395513b46feac98652d8423311a1e + pristine_git_object: d8e17963d691319b935782bf3f948af4c01e6788 + docs/models/operations/CreateSAMLConnectionRequestBodyMode.md: + id: 8a959218cba1 + last_write_checksum: sha1:9887763324d06041ef7ab36da56ed520ae6ff5d2 + pristine_git_object: 50cfc61610467b792911a445d9ed3dad980b848c docs/models/operations/CreateSAMLConnectionRequestBodyProvider.md: id: 4f9ad800088e last_write_checksum: sha1:f2f1cd39f83bd6c2d3d8aefea65ad6398eb8e949 @@ -2536,6 +2596,26 @@ trackedFiles: id: 9eb33bb7672c last_write_checksum: sha1:5da0e627c0ae0c168dd12fe345361b90272b16bd pristine_git_object: cbd0838e798955d3a0fa63acde48393dbd165710 + docs/models/operations/CreateSCIMDirectoryRequestBody.md: + id: cc1afa296572 + last_write_checksum: sha1:f975690cb2f51726ae343f99a6814c83603615e1 + pristine_git_object: b6e0266dbf6c283ab78e6bbc6543379d3e5973cf + docs/models/operations/CreateSCIMDirectoryResponse.md: + id: 076ca624a505 + last_write_checksum: sha1:25e15b6b29c9661f2ab432e8366a2291511b504b + pristine_git_object: ea2d41a0adcc25db6b76be09e89f08b826152a59 + docs/models/operations/CreateSCIMGroupRoleMappingRequest.md: + id: f2d3bf9900c8 + last_write_checksum: sha1:95dfdb4ab95eae5963522ff435eafb4b837c88a4 + pristine_git_object: 624ffc85208ba970164655b79fc275d448c7e331 + docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md: + id: 2e433b354497 + last_write_checksum: sha1:1653e9f908a09bad1793e64223a8f2217100a3b8 + pristine_git_object: 5250ec29e66dceeaa462f97e85ba06c10aac2c10 + docs/models/operations/CreateSCIMGroupRoleMappingResponse.md: + id: 30fbb160341f + last_write_checksum: sha1:aec3c8e515dd71f14bacf9577dc9a23e633e5893 + pristine_git_object: 309eaa29dc428f38aaba30b9e449c35b156ce63d docs/models/operations/CreateSessionRequestBody.md: id: 3af611cc3a88 last_write_checksum: sha1:1cf575f20c6ba5750e1ab0e3b3423c9ae1acc874 @@ -2582,8 +2662,8 @@ trackedFiles: pristine_git_object: 4c4467ba9b9d3e58e789f44fc749098b48c457bc docs/models/operations/CreateSignInTokenRequestBody.md: id: a418aa7fbd35 - last_write_checksum: sha1:2a66697d483fcf03ac52647e22c10837a8326443 - pristine_git_object: 34354484a09465277de8c31fa09325682b8fa6b3 + last_write_checksum: sha1:208590b0b204d108edaa2226b8efe6322366133f + pristine_git_object: 0798307d4b04421c24179b992c19804f1cd8a283 docs/models/operations/CreateSignInTokenResponse.md: id: 6cb20152dc8f last_write_checksum: sha1:34ec10a81e3cb7f7b38433b824e9a3b2ad1ef1dd @@ -2800,6 +2880,22 @@ trackedFiles: id: 4aabc6b2dba4 last_write_checksum: sha1:2b929bcbf3e7df8c172145296f0d84411f7d8c24 pristine_git_object: 4ac767e978ba4dcbfa17e9c688ff64967499751c + docs/models/operations/DeleteSCIMDirectoryRequest.md: + id: b47edf3b3a9c + last_write_checksum: sha1:c19b834053dfabcbdbb27153f14ba5a7a105ad55 + pristine_git_object: 31a928acde1af2713a282bc02fa11232593e28a9 + docs/models/operations/DeleteSCIMDirectoryResponse.md: + id: 6b807998ecd0 + last_write_checksum: sha1:23158edfe7719fc6455b04d0c60a65519355fef6 + pristine_git_object: bc8dfd53ed97b9094d07a882ee001650788c7e53 + docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md: + id: df099e59a705 + last_write_checksum: sha1:6667133067cad6a0a44b73bcb0c6900b882dc3f7 + pristine_git_object: 75261c1979e97528eca09ea6f6b5b929e6f28e4c + docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md: + id: 76d9dc0b7bc0 + last_write_checksum: sha1:93dafff73da7a4c6f9c4408ad077d2cb3ec78a46 + pristine_git_object: 0db0ec8ac9e60bcd362e537f02fe8454d64b7c79 docs/models/operations/DeleteSvixAppResponse.md: id: 021fc7dc23e6 last_write_checksum: sha1:c9594df72ef0fd347d2ee3f54159624d27f06c6a @@ -2858,16 +2954,16 @@ trackedFiles: pristine_git_object: 5ae6e1044ead8a801b4c5d36046c922e74980fbf docs/models/operations/EnrollmentMode.md: id: 57cf9d7511dd - last_write_checksum: sha1:88837c2ddfd18ee213e979073b2f74bf5455ffde - pristine_git_object: 025654a5350b755e59fa85ff42db65c9dcede7d9 + last_write_checksum: sha1:c0bfe6bd454ccb3301aa539b4c2844f4e3a5eebb + pristine_git_object: 94b2ff9d5012480b08f6bb14c508daba052b22e7 docs/models/operations/ExtendBillingSubscriptionItemFreeTrialRequest.md: id: 5d081be94920 last_write_checksum: sha1:9b0850bbdea43f4f24f655e2e0d04fc0e84a3953 pristine_git_object: 2d61ad178df8a02ccbda467a4a3d0c06e32fb4b8 docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md: id: c702837592a8 - last_write_checksum: sha1:21e290d9c1c58125a3ea6946f00f7a5e531f9ad4 - pristine_git_object: 82e399b0796a43bc9d36d33c1533fb051ea53cf1 + last_write_checksum: sha1:926f7200c950afb380e4c46a8715d398420fc76d + pristine_git_object: d8c7c9c78b9a67f80fda4901132bf09cd699116f docs/models/operations/File.md: id: 355eea942956 last_write_checksum: sha1:7953e0ab989e40fddf8c8f61d528e099868816e8 @@ -3176,6 +3272,14 @@ trackedFiles: id: 025529e1d94a last_write_checksum: sha1:e881ffb059c3ce03c4ee258d09ea7c79c39eb338 pristine_git_object: 7a652a7d1a1e3d3c71d41a144386767852b5f482 + docs/models/operations/GetSCIMDirectoryRequest.md: + id: cf404a5cd815 + last_write_checksum: sha1:664aebe0a875349b2b3abdce2aaa08941a30bb30 + pristine_git_object: c089034f40fbd2fa824ce57d1021642ff345b8c3 + docs/models/operations/GetSCIMDirectoryResponse.md: + id: e99819471523 + last_write_checksum: sha1:b826cb178434e33200714cbb6e1c8c4830271769 + pristine_git_object: d27457ab735acb4cf0c7fa62c2f2906d802f49f2 docs/models/operations/GetSessionListRequest.md: id: 3ba597756590 last_write_checksum: sha1:4d020549bef79a2459b94e4c7411a249cd94b3be @@ -3256,10 +3360,14 @@ trackedFiles: id: 3a1e2921fc87 last_write_checksum: sha1:486ee36f742e37380433b63762a9338c68b536cb pristine_git_object: 83291c8d060d403f839f418290830e2ccabece62 + docs/models/operations/GroupRoleMappings.md: + id: 3db2e82b5fc1 + last_write_checksum: sha1:b26c63cf47036aaafe36a966135ab59026b75ba2 + pristine_git_object: c90766c644dc52f3c2f0f6e1ab4dc99c625f5362 docs/models/operations/IdentificationStatus.md: id: 428fb727b92f - last_write_checksum: sha1:1e0a7effc59605c14d33debd0c1ce19f86b6b70e - pristine_git_object: f5f441b84353a2a1eaf80b768c9897bc5d66d0ff + last_write_checksum: sha1:0693c85049fe59a499b377f705cd16b3d68be053 + pristine_git_object: 193667ca37b641ddbef74d4bf070daad92aae249 docs/models/operations/IncludeInvalid.md: id: c4d6abe83366 last_write_checksum: sha1:530aa361b7510564e223a5c4e00a763de01ec448 @@ -3286,8 +3394,8 @@ trackedFiles: pristine_git_object: d4d301b44f8bbebcc847569aa849a57fa6799758 docs/models/operations/ListAllOrganizationDomainsRequest.md: id: 8fe742884347 - last_write_checksum: sha1:f5c9c253029149b08710d1e93f46c3c36f1360a8 - pristine_git_object: c0c83f3444838dc098bb83718a9aba209c4ba565 + last_write_checksum: sha1:a1e7dffe9f4f11fee98c1a51751715d81a430e56 + pristine_git_object: b2b649cf3aa435180de096b9050e3d5012269dc7 docs/models/operations/ListAllOrganizationDomainsResponse.md: id: 4401bc46477c last_write_checksum: sha1:bf46556c3fd767381eec9d95b83ce92335fec190 @@ -3378,8 +3486,8 @@ trackedFiles: pristine_git_object: 11a5b0f9e6c6e69c384b637c6e8d2d1d995aecb9 docs/models/operations/ListOrganizationDomainsRequest.md: id: b22a7ea0161d - last_write_checksum: sha1:8007ee6973fa16ca19d4b14274303e31ca39f257 - pristine_git_object: 57590245a303fbfa1c439fa369a9b86aadbad540 + last_write_checksum: sha1:96a5112381589e1c6413da69c801115a997b63c3 + pristine_git_object: 3edb0fd9f8cc07772e4adf14946902a85b4d3628 docs/models/operations/ListOrganizationDomainsResponse.md: id: d57e53acdab5 last_write_checksum: sha1:c0ea2200300fa91bd7bbc8a400e4390365cd2fe7 @@ -3460,6 +3568,30 @@ trackedFiles: id: 209accab83a1 last_write_checksum: sha1:cb4c1d3bb527359367156ad402d5a339e3cb8b13 pristine_git_object: 943e01b94eba6c999be38f03d644f94ba5a8e173 + docs/models/operations/ListSCIMDirectoriesRequest.md: + id: f18ee9b568a4 + last_write_checksum: sha1:8eccd2931302e3d32cc066f90cc2b8a2297fe7ea + pristine_git_object: 46b57e144c6484f76a28f56ef912955b5916ea18 + docs/models/operations/ListSCIMDirectoriesResponse.md: + id: e311c7c8872f + last_write_checksum: sha1:80a136ab2949da5f65d94390edb193645f6d67c3 + pristine_git_object: d8cce0d0b6abff0cd71f5ca7ac6207ebebd2de2c + docs/models/operations/ListSCIMGroupRoleMappingsRequest.md: + id: c6521266cf0b + last_write_checksum: sha1:882ba05c31ec538c1c3e6d9da32f7cb657010ea8 + pristine_git_object: 0d2d308f505409a1aede3da5e9704ca189ac400d + docs/models/operations/ListSCIMGroupRoleMappingsResponse.md: + id: b6fa4df2f0ab + last_write_checksum: sha1:3b09758eb7758c47e23d42a9292ba07289a2e8ba + pristine_git_object: e278e943b0a7b937123700cfc25bb1ffa8722f19 + docs/models/operations/ListUserTrustedDevicesRequest.md: + id: a4d5e4a54dcb + last_write_checksum: sha1:e70d760a89172c22a0779c73c7f86cc61da01552 + pristine_git_object: 8298ab709a528544dc29f98ad48a26fa3db9d206 + docs/models/operations/ListUserTrustedDevicesResponse.md: + id: 89c5c6a2da09 + last_write_checksum: sha1:8b9cbe4330a3fbe032f14fae9d27372ea2156507 + pristine_git_object: f1373eab415a92191ed598ffbc766b1fe416eac0 docs/models/operations/ListWaitlistEntriesQueryParamStatus.md: id: 48644eb6f76d last_write_checksum: sha1:fbaf3a2520f8218f2c702e640e215fa590cde6f4 @@ -3480,10 +3612,18 @@ trackedFiles: id: b1195769e0c9 last_write_checksum: sha1:77448e2839497df6f273985f34bdb1add6553b90 pristine_git_object: fe51dd513a4737242d34510cb0750334d4bf5c47 + docs/models/operations/LoginHint.md: + id: ce812c6c0b63 + last_write_checksum: sha1:5bdd8577c933c327acbbacbcd5d7ae7b5214deb8 + pristine_git_object: 781867fd72ac10d61f2daed5c8a254d912715fae docs/models/operations/M2mTokens.md: id: e0d1d8f4f021 - last_write_checksum: sha1:23a0b147ef5179a5bed35dae07f57e1ef62e754e - pristine_git_object: 2b059972404b4916887aa40eec0e65b0def27ecb + last_write_checksum: sha1:76e9bd1b3ad1ab33b36f9c57f0c36a499e9dbb53 + pristine_git_object: 3f7b0aa43ea4525d3e7b2f0a35257c95748b8a98 + docs/models/operations/Mappings.md: + id: e1257e0bbc7b + last_write_checksum: sha1:11b2d7f1c2684b1fab2c3a3ce1ce00780c83f9f2 + pristine_git_object: df3b0b55e0eefe2753b2a9bcb594422388df480c docs/models/operations/MergeOrganizationMetadataRequest.md: id: 249c0102b81f last_write_checksum: sha1:fa8f8e0e3662091ec15060a50a5dce5da7d86af4 @@ -3496,6 +3636,10 @@ trackedFiles: id: 19f264b9414c last_write_checksum: sha1:cb9bbad0ee5fca0e990d3007fde6f1b81c18d098 pristine_git_object: b83647d4c893737e53396cc3fd74f47082db3982 + docs/models/operations/Mode.md: + id: 358c58226154 + last_write_checksum: sha1:674e18428d0362e98528efdf1ed951545d452867 + pristine_git_object: c055f06022e5718e2191a9b6a1b56a329a23e476 docs/models/operations/Object.md: id: 8cf691682353 last_write_checksum: sha1:142f382d088c9fc38c38498d20a32d2070d011ff @@ -3510,8 +3654,8 @@ trackedFiles: pristine_git_object: 3bbb97f740fe8cf723cf30560b6227cbc514142b docs/models/operations/One.md: id: dd07ece0a93e - last_write_checksum: sha1:eeb2844d55d15e8480f7a16687b2e66dc0007c77 - pristine_git_object: 7f9e3d7a3b809852accf7115de2cf129ec618d2f + last_write_checksum: sha1:c0dc2e642415c37cdb8531f97dd211fee6eb6e17 + pristine_git_object: c2b30690ccf575f6e5bf11a7506afb8a3267211b docs/models/operations/PathParamTemplateType.md: id: da086ca6fa0d last_write_checksum: sha1:ceec3ed17f4d76faa1298b8893472a2830ec63b0 @@ -3604,6 +3748,18 @@ trackedFiles: id: 4819218d8e1c last_write_checksum: sha1:a75ef91c92cbf1861074982630ee352e5432161d pristine_git_object: 060d87af7a89a060f4ea7bd241beeedb1d95a7d9 + docs/models/operations/RemoveUserPasswordRequest.md: + id: 8ce1e55abc30 + last_write_checksum: sha1:186eb230a788d8c2b5d31fe9f80076c3c9974051 + pristine_git_object: d19fe8f514a22661e2f5dee0a1ce04737eaa6c17 + docs/models/operations/RemoveUserPasswordRequestBody.md: + id: 9408d81b6b38 + last_write_checksum: sha1:e7d0c289a70b0fdc6b0a1b5d55d3a672752593d9 + pristine_git_object: dfec28c33812359f701e3e4df4a39d3869de30b1 + docs/models/operations/RemoveUserPasswordResponse.md: + id: 3533dd6434cc + last_write_checksum: sha1:fea11bed970a5d3836565dceace9c97b59959f96 + pristine_git_object: 0370fe916440b1418e85fa62dd2461671b9d9b78 docs/models/operations/ReplaceOrganizationMetadataRequest.md: id: 93d882426dab last_write_checksum: sha1:2c768e6d979a2e62aa64a3194604b43097ee331d @@ -3640,14 +3796,26 @@ trackedFiles: id: 1fa68a8b21ec last_write_checksum: sha1:57a93824c2afe526ffdd01fbdee9bd75d1cd0f6a pristine_git_object: e60c3e279f6c3715bd69b1db1c9de6901bf2a2c2 + docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md: + id: 6704c0444209 + last_write_checksum: sha1:4ef0b0e9be8da3235614b17574a134ca2538883f + pristine_git_object: d6b430377ece9a7f1a88e68ac06c65078c488c33 + docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md: + id: 42fb6057e237 + last_write_checksum: sha1:0e17a3c767a7c6c1a2865f0333dd828cfabaa29e + pristine_git_object: 589b3a7c12a180d92ec0213654eeefe8a96b8bfb + docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md: + id: f5db8f00c851 + last_write_checksum: sha1:4def070b4110cd4a472fc8d9bb10b44e74635a6a + pristine_git_object: 40b2f7705b794b91bbfe71db2dd74e90935dc29e docs/models/operations/ReplaceUserEmailAddressRequest.md: id: d88a2a1baf5c last_write_checksum: sha1:2b62447bc19be94b481e5dde6ce7d0d55b6a40e0 pristine_git_object: 473336fb7426a0afdeb65a8679e6d3dd210b029e docs/models/operations/ReplaceUserEmailAddressRequestBody.md: id: b1dbf45f207c - last_write_checksum: sha1:461dea03ac3f2a35176f63764807ad5bf8954491 - pristine_git_object: 4ccc622b6bb397079ea9e71872b3929203d0b382 + last_write_checksum: sha1:2f395098dd2fa68d89107abe152b668d0bbad386 + pristine_git_object: aa9aa6f3e6b7ddd81c5bfea75eaf6c03e419dd2b docs/models/operations/ReplaceUserEmailAddressResponse.md: id: 352ca78309e3 last_write_checksum: sha1:15dfba40d664d3a4447ab740c7b19d3449126228 @@ -3666,16 +3834,16 @@ trackedFiles: pristine_git_object: 8619653e216c5f47a02acff0d1347a0e993a00e6 docs/models/operations/ReplaceUserPhoneNumberIdentificationStatus.md: id: 0c8eb069c863 - last_write_checksum: sha1:b4509ba17d6ede474f269a8f322d0c81d7f2156c - pristine_git_object: 2987eb412470daf41b4b81fd6ba018b17e166872 + last_write_checksum: sha1:84d50a7d0482ae79a821869626e5c6828ebe4b62 + pristine_git_object: d25d350959b4a9454caaea8d99b44ee9ad61c4a7 docs/models/operations/ReplaceUserPhoneNumberRequest.md: id: 471e7f5a08db last_write_checksum: sha1:7ac02d701c441b12e5911c6a16be4184371e8142 pristine_git_object: 5eb8076be341ee9f399b2c1cecd07f14e616acda docs/models/operations/ReplaceUserPhoneNumberRequestBody.md: id: ca615536a82a - last_write_checksum: sha1:191072f4161c3e956a639e255bdaf1dea075ccdb - pristine_git_object: 15cd938af26234de60dd7cf4bfe845a542c423c1 + last_write_checksum: sha1:3964dc926f8a6d78731e9006b7e60f5cecc7ef98 + pristine_git_object: bd97a3e6b5e235893be5ff5da053fccd77f17801 docs/models/operations/ReplaceUserPhoneNumberResponse.md: id: 38180622ec0c last_write_checksum: sha1:f8ab294ce4d5a953300f3198e4d05e73f4fbe7af @@ -3688,6 +3856,14 @@ trackedFiles: id: 090e92783d2a last_write_checksum: sha1:642d82dd03ba45c461ce95e2443cbc8399a8e8d0 pristine_git_object: fed9c07b0d57a9f45f971f70c381ee140d8e2239 + docs/models/operations/RequestBodyLoginHint.md: + id: 5d61024a2a95 + last_write_checksum: sha1:24ece2325bef9a6da5b5d590c7e448f570e8a603 + pristine_git_object: 878f5ac55a2cfc235ed5f0d13396b529d2f86ca3 + docs/models/operations/RequestBodyMode.md: + id: abfded425224 + last_write_checksum: sha1:bfe462d3754a5b6170b0bae261d7af3a4815f749 + pristine_git_object: 796f79b43600249ea6b6932aa2ee7d7c12986b2a docs/models/operations/RequestBodyProvider.md: id: 7448fffa88d0 last_write_checksum: sha1:3ad2b7a8dd89c8d949c78ae80e20d6ec21b4d799 @@ -3798,8 +3974,20 @@ trackedFiles: pristine_git_object: c4200196f6fd8fdde998c8d4e2f76d9959b3a122 docs/models/operations/RevokeM2MTokenResponseBody.md: id: eb29b0774ac8 - last_write_checksum: sha1:5c7590c61f1642c5b57cd7c88e7a7c65e97530c9 - pristine_git_object: 713ab49ccb463c527f5adc1cab13e1dac5d2f432 + last_write_checksum: sha1:1103fd4442fa5ae1ff48a8c4f9fc359f230234e1 + pristine_git_object: 604209d18eba77908d41bc1ff30cd551f57e165f + docs/models/operations/RevokeOAuthApplicationTokenRequest.md: + id: 6305690f573e + last_write_checksum: sha1:fc632c26c1248abef0309256db2cc7cafbcb5062 + pristine_git_object: 11ef4da37d4e9a536f7db7df3604c388e7b177ce + docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md: + id: 5f804e8a95ab + last_write_checksum: sha1:1975dc008272c06107745ca7a2bd93c1af6ccb2a + pristine_git_object: 0d3d86e949cfff3ff1ac0ebc5b2f0591794c3b90 + docs/models/operations/RevokeOAuthApplicationTokenResponse.md: + id: f08ab9ea6f12 + last_write_checksum: sha1:3bce192217f0a22ba98cdc31377c895f5a1ebc10 + pristine_git_object: 8633a5bc7bb46531e91cd9eb0e7b6e148eee21f2 docs/models/operations/RevokeOrganizationInvitationRequest.md: id: b67c06bec2a1 last_write_checksum: sha1:9d5e46bfac7f52dbf718f150cd620798a8213191 @@ -3828,6 +4016,14 @@ trackedFiles: id: a34dc62af815 last_write_checksum: sha1:89f2e91fcabbe3372e0bc9a6d71f95fb07a8c83d pristine_git_object: e72ea07c8e8bb96f6ed61189fe10497407e0d1e6 + docs/models/operations/RevokeUserTrustedDeviceRequest.md: + id: 4fd24104df03 + last_write_checksum: sha1:39214739d43835c4c07cbe209fb29fcd4e2dbf24 + pristine_git_object: f28bb4c037795e0b333dec7982df565f91d27b0c + docs/models/operations/RevokeUserTrustedDeviceResponse.md: + id: d599b7476969 + last_write_checksum: sha1:4a08266e4ef0f4f72f422a204e4d5e4245535c4a + pristine_git_object: 946c2e255785f42503c1d4af1b2f57681643d819 docs/models/operations/RotateMachineSecretKeyRequest.md: id: 0d6ebb9e8b9d last_write_checksum: sha1:a7dd4e8ecef47ca95d5f009e1c91cf5c894f07e3 @@ -3848,10 +4044,18 @@ trackedFiles: id: e9cc72f12824 last_write_checksum: sha1:aed20e03d5f8e9d6481d0cf4d89a00cc0aacf67a pristine_git_object: 9d5dea39dae93ad1992665fc11532d560823e5e2 + docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md: + id: 03b7a531ea41 + last_write_checksum: sha1:903147ee3bc3cdc9973a38698c12bdb50fa12a45 + pristine_git_object: 052a100f7894b52c029f2385e7dfa6a9b5d02052 + docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md: + id: b571cdc1fde5 + last_write_checksum: sha1:13f79bca4093ff9161bfeb9b1bf7113bf8b12e48 + pristine_git_object: 6dd15dd79923aa191382cbd38eec6baaf0c0482c docs/models/operations/Saml.md: id: b7d65d3ef2ad - last_write_checksum: sha1:e6aa85bdd8b2344cac34b18309a7f5d40b233603 - pristine_git_object: dfcb1cf8b8f3cc3efa6686c527016243d6b680ed + last_write_checksum: sha1:bac37e65036151c6d3d41dd4711a1435b22a1978 + pristine_git_object: b3e5f2ddf16cc8172f5129bef11e6d631d9b47fd docs/models/operations/SetUserPasswordCompromisedRequest.md: id: 887ca7c0a4f1 last_write_checksum: sha1:b281a3ad578f7c71b5117d3b81ec5f1c582ec17a @@ -3910,8 +4114,8 @@ trackedFiles: pristine_git_object: 709cd630bace0dbd79a159f5816369a1fde3a64e docs/models/operations/Two.md: id: 54b772cbc4e6 - last_write_checksum: sha1:d1c99da93f0f40321adfc944be7b7ff4acaa33c6 - pristine_git_object: 688c5aebec6f8a03a6e7a9fbc304c888e3ee8d2c + last_write_checksum: sha1:e5712cef5df08d7c204c4ea7f0e7651bfab186a8 + pristine_git_object: acc5a530d59107359451915a32cc38118c366672 docs/models/operations/Type.md: id: b7dc6280f202 last_write_checksum: sha1:a2dec108f5d9b63645da00f99fd74ce4373dab7b @@ -3978,8 +4182,8 @@ trackedFiles: pristine_git_object: 175bc40d195ab68983a72ebc4a4ba2923132ef2c docs/models/operations/UpdateEmailAddressRequestBody.md: id: 65d8933f61d3 - last_write_checksum: sha1:6b0896f407299be133fb02be3d7041fe44a94cdc - pristine_git_object: 607d4b4ff594e30d2a715cfba6ab32b33640f34f + last_write_checksum: sha1:f61c50e0ba4619ab3cdaf001f0ee1bd07682d763 + pristine_git_object: b4ceace906e3a8cf243f6ef7723316398be53c0c docs/models/operations/UpdateEmailAddressResponse.md: id: 7decd22601a4 last_write_checksum: sha1:79dc502fd92ae75025020c48fbdf4363fb6debd1 @@ -3992,6 +4196,14 @@ trackedFiles: id: 68a3d7f3f5f8 last_write_checksum: sha1:da65ab95d2945337be8d9cc767f32998afae14f8 pristine_git_object: 7b187e2d98c1d0796994a4f13b9504bb23583470 + docs/models/operations/UpdateEnterpriseConnectionLoginHint.md: + id: 2874bcf558ee + last_write_checksum: sha1:738d960a12bccb9779b44a971e35c7f5ea83fc56 + pristine_git_object: 62a427e7586c94c47a6380120d67f10b3a2ca451 + docs/models/operations/UpdateEnterpriseConnectionMode.md: + id: 9027e147d7ec + last_write_checksum: sha1:ca7bf7146fb23d7b5596ee602c8f209bb47c0533 + pristine_git_object: bf5de9da529bb42fe4111eeda86ac1d2128bafdd docs/models/operations/UpdateEnterpriseConnectionOidc.md: id: 0bd4e80b07b2 last_write_checksum: sha1:72359b4fef17e3e86fff9a10b8a6e826c982d4cb @@ -4010,8 +4222,8 @@ trackedFiles: pristine_git_object: b965173a93c41a2079002339306be68ff867bd98 docs/models/operations/UpdateEnterpriseConnectionSaml.md: id: d214627f6764 - last_write_checksum: sha1:974d7fc6c3642b56ad9533fb3dba61474376a0a5 - pristine_git_object: 16f825d0a0dc7e4b9c584ada9c44f25e7bdc6aa8 + last_write_checksum: sha1:d13833550f31727c52339a3656b11152f3058051 + pristine_git_object: 18266dcb714b78ea98c9ac7d3e332ec96f90f31c docs/models/operations/UpdateInstanceAuthConfigRequestBody.md: id: ea0404441470 last_write_checksum: sha1:6fbcb569ad7fa518ccc3e04b668eb9ac6a5d9f5e @@ -4030,8 +4242,8 @@ trackedFiles: pristine_git_object: fa9b397c10affd9ac6dedee0b17b00342ef22d26 docs/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.md: id: bec8dec22ddd - last_write_checksum: sha1:b11311c2b5b09d1ccb590317c5eec00ac9e4ec2b - pristine_git_object: da30d2b1465f5e3749dd5671b9474ff7858c7ad4 + last_write_checksum: sha1:c261e64ba26f7236a9f555f02cb26a2df4744033 + pristine_git_object: 4a3385e62cadc591abfc59dd5600a1c981ef4496 docs/models/operations/UpdateInstanceOAuthApplicationSettingsResponse.md: id: f267fc163865 last_write_checksum: sha1:1ec62dc25d8012952136094538fed225099b3cf9 @@ -4114,8 +4326,8 @@ trackedFiles: pristine_git_object: f7193b191ba28dab61e597c34d8fe5691c32f291 docs/models/operations/UpdateOrganizationDomainRequestBody.md: id: 33f07196b9d1 - last_write_checksum: sha1:3bec185795496f2bf9a9e26883a6c14ae64ef4b6 - pristine_git_object: 9f685a8eece248df111701820245c479b4d1cf6e + last_write_checksum: sha1:0d42c81f86f8d9dadd8ad9fa5d8f27878f26a79d + pristine_git_object: db683ea76fbdc579691fb52e32fd63fc8b9853e7 docs/models/operations/UpdateOrganizationDomainResponse.md: id: 03814f5327a6 last_write_checksum: sha1:9b9abb30a4085f5176221cc7b2dd6164778a8b00 @@ -4222,12 +4434,24 @@ trackedFiles: pristine_git_object: 364b971d7257bdeb2bb7099feb65696ed9304fe1 docs/models/operations/UpdateSAMLConnectionRequestBody.md: id: aae18b158e8b - last_write_checksum: sha1:81c020c852501cff909807b3044c99c3f52146b9 - pristine_git_object: 80d60bd85aa7410633d8ffab7d9d2121c44aa686 + last_write_checksum: sha1:0db13e39fee09324be23b61f606846e90ae73b20 + pristine_git_object: ee701db47f82046d3ca56b9f00329cab841e6728 docs/models/operations/UpdateSAMLConnectionResponse.md: id: a3c0670b6120 last_write_checksum: sha1:304b4e11f5836fac4a28183e91b35025f60046d2 pristine_git_object: 4f8b898415db20885caf64cdc7f95909e860fc13 + docs/models/operations/UpdateSCIMDirectoryRequest.md: + id: 3d6bba177783 + last_write_checksum: sha1:c38a6506400ad8e309035d2e5fe92cc3f9e9b983 + pristine_git_object: 0d96a0c4ac3265a6ae1f63b1e5503ba9fbccbb2b + docs/models/operations/UpdateSCIMDirectoryRequestBody.md: + id: 40c7e596911e + last_write_checksum: sha1:3ec128d5b02ba649bcf020ba14ffd997ee97f748 + pristine_git_object: c01180ae028721ba2ea79845af7ab0eb20cc2763 + docs/models/operations/UpdateSCIMDirectoryResponse.md: + id: 3dd2e62d1106 + last_write_checksum: sha1:080be23fc1590899231e7a07dc6bd4e880757bdf + pristine_git_object: 11f18a91296b39a2e27c90d7849e2a26d69612c5 docs/models/operations/UpdateSignUpRequest.md: id: e27519a34655 last_write_checksum: sha1:853e9f34f3f12b94f716fdd409cffdb70119c6d3 @@ -4410,8 +4634,8 @@ trackedFiles: pristine_git_object: cb04a463c7f4499966613a48bdc376019c4200e1 docs/models/operations/VerifyM2MTokenResponseBody.md: id: 1c3d2d063bda - last_write_checksum: sha1:f7e91802ad28e46fc9d5ed65961a2843df6aa8d1 - pristine_git_object: 3c7c3d48c57d271e27c3393ea59964404d4ad06d + last_write_checksum: sha1:41f5a05e5bdad866fa012c8d78d69de92d4dfa4e + pristine_git_object: c859238fd7fa283afdbf2b8e53a9042767cabeae docs/models/operations/VerifyOAuthAccessTokenRequestBody.md: id: ea9cad688ef9 last_write_checksum: sha1:028d851b1bfa6b2d5a76e4bbe5e1f6e45542f5c1 @@ -4490,8 +4714,8 @@ trackedFiles: pristine_git_object: c2ab6e9891fad07a124eb7337002b3375f04b0ff docs/sdks/billing/README.md: id: dc915331dd9d - last_write_checksum: sha1:4046687e73947fcb681273ebc1f40152de1a8fd7 - pristine_git_object: 4264f7f767425dacdad5cc2bae40c87e32025aa3 + last_write_checksum: sha1:1f0be60ff3882c883e627428ad3e2ec49946582f + pristine_git_object: 4c317f100902c104a5441e41a3e6cdc8d161ded3 docs/sdks/blocklistidentifiers/README.md: id: c7e007a1e760 last_write_checksum: sha1:eccb6bf4da4a74ab77f0fa37478458589ce96b27 @@ -4506,16 +4730,16 @@ trackedFiles: pristine_git_object: afae3fa37ede54db928cebc6365e9f24615a3f82 docs/sdks/emailaddresses/README.md: id: f5fd208070d3 - last_write_checksum: sha1:50af00758f9921779eec76fa2d5efd5c41948b12 - pristine_git_object: 70007a3f53415463fb7953f7885aa8043a7b7a1b + last_write_checksum: sha1:1441f68bd79e238ae5e0296cdd90bc9ca74c4998 + pristine_git_object: 5e9bc1913627e3ed8ceb8e2f9f0dd6076fc1e56f docs/sdks/emailandsmstemplates/README.md: id: f97f5a6195f4 - last_write_checksum: sha1:8017a821d1f7ad3f1d61c786ab0702aa4740e326 - pristine_git_object: 5f52425c3e63f9ec6cd03fa40176c6d05fae449f + last_write_checksum: sha1:263a6cb6612b19476dc9c0ab739de69c48d4fa45 + pristine_git_object: 6ec9235d9c1e52e7e5f6c724f62a6d7754ba9797 docs/sdks/emailsmstemplates/README.md: id: 7d9a6ae619bd - last_write_checksum: sha1:efa2d99292840d414ead2b51064d12f2c24c37e5 - pristine_git_object: a895c1617aab48ad91e5c706bacdc23e870311c5 + last_write_checksum: sha1:58bb6caf6c6e94423d3712cbd91c2c9fd34eaec0 + pristine_git_object: 27b41f5efd5bab802d4a544f5bac733252cd4250 docs/sdks/enterpriseconnections/README.md: id: 05389ef24544 last_write_checksum: sha1:ea18bb2f3d97a148ae93531c2e971832cbe12962 @@ -4554,12 +4778,12 @@ trackedFiles: pristine_git_object: f53b4c25dde82ca37206c6d750e1b39f88feaf37 docs/sdks/oauthapplications/README.md: id: 8962667a62b1 - last_write_checksum: sha1:af30d872613bfe21d6a546f4b3565aa96d753d19 - pristine_git_object: 70b35fdb5fdd914daa4c2e81208a53ef3bd79f0d + last_write_checksum: sha1:4b98e42a683c6a432408e4f34a351aa552ad4f8e + pristine_git_object: 974edface2ac73d0863054de25f8ee4299c1391e docs/sdks/organizationdomains/README.md: id: a256821053b6 - last_write_checksum: sha1:ce4445dc731f2bffcb3e05119b02c9253f9aaba6 - pristine_git_object: 4bc63e3f98b4b62c7771d3c393aa576314148e5f + last_write_checksum: sha1:78d240bfd259446fe1a2ac54787188dee1843a69 + pristine_git_object: 30e37d2b9a9427b4d160f9c6839693600bff7226 docs/sdks/organizationinvitations/README.md: id: 289d4104fbb9 last_write_checksum: sha1:c100e8e5af1c660057524709707eefbc04a47291 @@ -4582,8 +4806,8 @@ trackedFiles: pristine_git_object: e5014e78c10919fdc85b4873a2c12029896d018c docs/sdks/phonenumbers/README.md: id: bfed92f30c8c - last_write_checksum: sha1:7ce8c496d3ceee484150986f6c61152cdbe9e2d7 - pristine_git_object: 88b6ea9e6f64abc2374974918a7113f5fd844770 + last_write_checksum: sha1:30ec3517da1c7e4a25cf1cdff33215221d20f9ad + pristine_git_object: 69e0254fae57eb110358010b7e620ab04320cd4e docs/sdks/proxychecks/README.md: id: b7b7c7dd6d7b last_write_checksum: sha1:2d9dc8f9cbfa45249fc7cbd0fa729a6520eb4e29 @@ -4600,14 +4824,18 @@ trackedFiles: id: c10bb4446e9b last_write_checksum: sha1:99ec17cadfdcbf3094ba745a0bbc9642d8e144dc pristine_git_object: 906b17e8f133dae3f515076698621ecd19445194 + docs/sdks/scimdirectories/README.md: + id: 78ae8c1a63c0 + last_write_checksum: sha1:4607fbcdcef5331c7104011a3c1ce0954b1c498f + pristine_git_object: c5e9eb34c81f75b2671480ddd89237659077e55e docs/sdks/sessions/README.md: id: 57ad62844f79 last_write_checksum: sha1:2f49edccab12e69d351ada28016c854c007cdb2e pristine_git_object: 5af8f59f349e0893bb6fccd293ecdf894fff96d4 docs/sdks/signintokens/README.md: id: 1fc872e39b51 - last_write_checksum: sha1:ece9c5f13a49857f5da5314271d04aece8709390 - pristine_git_object: 0c7334823ab59a235d6558868eab7a9e7be6864e + last_write_checksum: sha1:3601da5bce43f76ce929b365c478deff40f12532 + pristine_git_object: 0cfb9dae6f709618f15e7ff43a9e0259f50ecb3c docs/sdks/signups/README.md: id: 48342132ac81 last_write_checksum: sha1:b33fd93ed73b89b806652cdbb27d742d9f6e7aec @@ -4622,8 +4850,8 @@ trackedFiles: pristine_git_object: 9ee3bca6022fca25977862c6abda580f3def47c1 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:9719d3f07e4ddf1aee78a9bff6bc3443ee5dc0ee - pristine_git_object: dc92a7a5de4b50ee6aacc44e67e5a018d358d5d5 + last_write_checksum: sha1:9db0b481692aa70b598788cde03a0198e6d18748 + pristine_git_object: dde91100882bc8b81d26cb7932aa3610991a4e5d docs/sdks/waitlistentries/README.md: id: a4b511c18a9a last_write_checksum: sha1:eeef8b5b3c90024d3d0b5df790786dac86e9988c @@ -4634,8 +4862,8 @@ trackedFiles: pristine_git_object: 45f47ee13644598aaf91efff776b5e331d062373 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:dc5ad9b3eb00efdbcff3bb0d70da0e5e96a2f7d0 - pristine_git_object: 3cd7a5f63fcff2751bf6d77766affeebc0ac142d + last_write_checksum: sha1:896687d43d799fd9860bd268f9babf04758d6e18 + pristine_git_object: 89b4d90e466d40ac76b0a827d43a8d42b5f05d94 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -4694,8 +4922,8 @@ trackedFiles: pristine_git_object: 5bf02163324a409051fe6b8395ab523a4bd34c67 src/main/java/com/clerk/backend_api/Clerk.java: id: f98667576bff - last_write_checksum: sha1:203193f96f39c4c215f7917e5201419f1dac2ed6 - pristine_git_object: 773c40aaf2497dc4387ef67cf47a9b9933ed8620 + last_write_checksum: sha1:54f2dbf2221aecafa1165af87019720c3af7b95d + pristine_git_object: 54389ef4bdd27098b38651c8c884e94a35d01afc src/main/java/com/clerk/backend_api/Clients.java: id: 2b86a17ff763 last_write_checksum: sha1:2c7b3fff8cd457b51317ca1197ced5003f028465 @@ -4706,8 +4934,8 @@ trackedFiles: pristine_git_object: 88147167b275430ad91039cf855a088f6c290f34 src/main/java/com/clerk/backend_api/EmailAddresses.java: id: bfe4e0517e19 - last_write_checksum: sha1:92322b84d9dd9c3c515ac7e261b667246e331f0c - pristine_git_object: 631cdd4f03cc4ed68cfce49837ad8227c4b2133a + last_write_checksum: sha1:9ed051f6e3bc31b91977ffc1c63e38cdbda44724 + pristine_git_object: 690989a95a64d59325c0d4c34f61d2d7f8e6486f src/main/java/com/clerk/backend_api/EmailAndSmsTemplates.java: id: c69179b3cb66 last_write_checksum: sha1:bf5a0d616f06004d7293151fe51987fa00ccb6f0 @@ -4754,8 +4982,8 @@ trackedFiles: pristine_git_object: 8f102b8c622d560fbaca16d37d9427fdd7a14358 src/main/java/com/clerk/backend_api/OauthApplications.java: id: e3cea00cfded - last_write_checksum: sha1:1af911e89601c536b22978dac3b5c9de0c3a64c4 - pristine_git_object: dd70f88558ffc5a8cac42255d088aec24a33c9be + last_write_checksum: sha1:6adcbcab21390e4c02e0ecd8128581ce58db3b4f + pristine_git_object: 939293e47260a0894ab9e9858c0ac1f33726bf85 src/main/java/com/clerk/backend_api/OrganizationDomains.java: id: ec98099a9e10 last_write_checksum: sha1:30cee25117f29d1450c1580fdfe11dd232a61c8b @@ -4782,8 +5010,8 @@ trackedFiles: pristine_git_object: ac5f251a98304ff8ae6502f9bbda4a7591f45d8b src/main/java/com/clerk/backend_api/PhoneNumbers.java: id: a9bababa47f8 - last_write_checksum: sha1:62b03a539a4075df8df29d6cf4365cffcba09bea - pristine_git_object: bf9e09beb04bd503bebe7e0f980133c7e4b262c7 + last_write_checksum: sha1:126d2fbad0709daaf645876d13149c4d2fb2f730 + pristine_git_object: 3af70936fb9cc8e38b2cd5dfdeda9f3cfcb0ae80 src/main/java/com/clerk/backend_api/ProxyChecks.java: id: b3073c31ab8f last_write_checksum: sha1:1ae509f5cc48dbc3cda44f92f28b250688691c1e @@ -4798,12 +5026,16 @@ trackedFiles: pristine_git_object: 40597c8205e6e12003fcdad6e1d4f084c674effd src/main/java/com/clerk/backend_api/SDKConfiguration.java: id: 02084533ec5b - last_write_checksum: sha1:c02dc719d1d24bddf4a54a12e2bd8f7aa2491813 - pristine_git_object: 4794d32bcedce36c0cf775371a4c78b24b995aa6 + last_write_checksum: sha1:6e8ddc921adf4ae06235c3238aa7af0a2c2c2f9e + pristine_git_object: 82763958924b0514ebbe0a8dea32b20eed3e0a46 src/main/java/com/clerk/backend_api/SamlConnections.java: id: 4bbf4e5d0a3c last_write_checksum: sha1:2e48c2a616261bcc34ae98b7f96b9eacfa8cdee6 pristine_git_object: 7f76add10087f3751b550ebf83bcac1aea639b0a + src/main/java/com/clerk/backend_api/ScimDirectories.java: + id: ac0b05772a9a + last_write_checksum: sha1:c027d080106e336f9332cd4e8356cc32b35ad78e + pristine_git_object: 56c22e5d0acb6d560cbddd5ba3f3e830ce408e6f src/main/java/com/clerk/backend_api/SecuritySource.java: id: 4010c3f377dc last_write_checksum: sha1:860f7ae6b19ce596e37ac476536164f66a68de78 @@ -4830,8 +5062,8 @@ trackedFiles: pristine_git_object: 2d6d35e80ad878256a7a1a71c241668889c0e0e6 src/main/java/com/clerk/backend_api/Users.java: id: 25ce71c73baa - last_write_checksum: sha1:65b9f8744424b068cc6302cb4ed25b1e89b75e87 - pristine_git_object: 089dac5de1e730ae9cdccc4b64de54c8ba08bbfb + last_write_checksum: sha1:6b5363303846bdef53468a46da01bb3c7939fb62 + pristine_git_object: 1c456baaf36f2e91430f0e15a848a0bc99d03dad src/main/java/com/clerk/backend_api/WaitlistEntries.java: id: 5008ff59b95b last_write_checksum: sha1:47fa5ea495bc9740ea46051ec71a584b5c6a64fe @@ -4884,6 +5116,10 @@ trackedFiles: id: 0f79027758e4 last_write_checksum: sha1:10c2105722cf4f5ac906af62312a23e152ff2afb pristine_git_object: ae0a25a8e20d4928b526262ac0e339151b7b82b2 + src/main/java/com/clerk/backend_api/models/components/Algorithm.java: + id: c75069b20d93 + last_write_checksum: sha1:baf195f77e555bcc4e41f8147b6d3b2bc3c9fddd + pristine_git_object: d9523717aa11c9d33df7b9c36bc44866c5042bdd src/main/java/com/clerk/backend_api/models/components/AllowlistIdentifier.java: id: 913b9f03f234 last_write_checksum: sha1:e24e9259536580ff579cdb9703b35567d259df55 @@ -4938,8 +5174,8 @@ trackedFiles: pristine_git_object: babc2558940ec7891afef0e591cc9358ba3f7c15 src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java: id: a46d490f2a94 - last_write_checksum: sha1:5e35746b17a051e89876d186b3b73d064e33733e - pristine_git_object: 9e3129aef3ab099195f9f3eff753d815279824f7 + last_write_checksum: sha1:552dbb0f9a7cde2f019fb64c5ccc7a8a4b268cbf + pristine_git_object: ec28242becc7e71b456f39aba02ac407c0967be0 src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotalsProration.java: id: 4f0675cbb0ae last_write_checksum: sha1:c9bf8f28779741ce6d7741c2bb0bccfae5afeca3 @@ -5006,32 +5242,8 @@ trackedFiles: pristine_git_object: a8ad439891bebc11e38b6e5c838b77899b339b85 src/main/java/com/clerk/backend_api/models/components/ClerkError.java: id: f1831dcc96b5 - last_write_checksum: sha1:d66aca4917302d70c8a9506cccaef23b9e2daff6 - pristine_git_object: 13355bb05b11295606b05c7be4c189aff5a55a73 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java: - id: b735527265f6 - last_write_checksum: sha1:ec0fa27435ffff7d6d866c30624d5e9feb480751 - pristine_git_object: 9c08edf5332ae9480c8d498abdf212af44cf1a5f - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java: - id: 74eef1cb8f04 - last_write_checksum: sha1:87c0d68e76cf710fce9d38f4e78d42712f35c2d4 - pristine_git_object: 8034b5dcc57fb52123a1eb861f7a2ac66ac1ffaa - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java: - id: f3634eb6b13b - last_write_checksum: sha1:2ca6afc9abad68bfac2ef826f28f9ece6e008799 - pristine_git_object: 742fe99a9e20f8f9f5eebe99a32dc984433f8172 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java: - id: 8ec4529d2cbe - last_write_checksum: sha1:cdf61424fc984cab0b90ebeff5c9011dfb0ef406 - pristine_git_object: dfbac8452c883e9dae62ac85705be9d4a3a4a4e9 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java: - id: bed7e8bfd3d5 - last_write_checksum: sha1:dbdd85ff6804f9ce62aad24132ef53245bdc4a37 - pristine_git_object: 66476fdde1ed5cad8826a18d6705002cd11f5ce1 - src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java: - id: d5aed0bb35b2 - last_write_checksum: sha1:b20f97db7ea1b259ab72d832bf8659315b2f9a79 - pristine_git_object: 259b3df8ed0c0a4de61ff0628c8799c945ed73d0 + last_write_checksum: sha1:f707545d9916b0920a6387768a488d0d3a9aacda + pristine_git_object: fea937df0ff4d102ae8d84e4699397678e3be571 src/main/java/com/clerk/backend_api/models/components/Client.java: id: 22a9bbe493d1 last_write_checksum: sha1:cd684c05b20a9b218778721698d6799c909dd798 @@ -5042,8 +5254,8 @@ trackedFiles: pristine_git_object: 0b07f7315ce750e5ae6b1554aca81405b74d508e src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java: id: 5f288173e67d - last_write_checksum: sha1:224cd1c328b6941d97ea3dad992e1e47f84d7270 - pristine_git_object: 9897c305c4419d9f9535e65ac8067cf32a199b4a + last_write_checksum: sha1:51fbc66561dbc66edd4e0fdbe1b2a844da323779 + pristine_git_object: 9d6d3b312adc11e3d1926d0f64d34f7d7139e0a9 src/main/java/com/clerk/backend_api/models/components/CommerceMoneyResponse.java: id: d933e5826c61 last_write_checksum: sha1:b75b7ff5374b24b8a829520df371ba303012a0ca @@ -5072,14 +5284,42 @@ trackedFiles: id: 6515df030843 last_write_checksum: sha1:2465aef0460dcc64e360b7ecb84f53863a3a8a63 pristine_git_object: 0e84d03ea6e2306200f16cc6a9dead5620f0fcdc + src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java: + id: 9d8bfdeaf059 + last_write_checksum: sha1:dadc68cb2103ee157a37829f2a6b85705cf5ce82 + pristine_git_object: 3d32a069cddb4841ce83a1fd3ee614dde5fe8dcd src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier.java: id: bb62fa3a4fdd last_write_checksum: sha1:25308857925f6689b5cfe37c67e10620ee02a038 pristine_git_object: d409b81152298571287ae94c4faa0e892235881c + src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java: + id: 896a43461f85 + last_write_checksum: sha1:60764f89d40423aabbc4a3f3455feba374538963 + pristine_git_object: 369ac250316110ceb92d8d21396d13f259c51a17 src/main/java/com/clerk/backend_api/models/components/CommercePlan.java: id: 6e833bc1df44 last_write_checksum: sha1:e7d66f7ca0b0e4c1dddec73546851002ab0a98b7 pristine_git_object: cbbefbc67362b206baafe02ceeb619276741b446 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java: + id: 3330bfc127cf + last_write_checksum: sha1:273462857cab2905f6af488c996a15cfee40e4b7 + pristine_git_object: cb1dce84198f976c155af951b0baef74de735e77 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java: + id: a5612fb757d5 + last_write_checksum: sha1:3aec4a1c8bd2b35f2ab658be00230312ec904caf + pristine_git_object: 557a29a82dc9a3778efe95747eb5e93cb8c34faa + src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java: + id: 7f156d079bdd + last_write_checksum: sha1:d85da50bfc1531c5edbd32fe6b50935f8d82e665 + pristine_git_object: 629d51763e3153c3f16d450f4f811c5750fe99f3 + src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java: + id: 58ff146a6c51 + last_write_checksum: sha1:76a9b8d670d2bbe355623dbe4963ec71c2268525 + pristine_git_object: eafd8542dd936a996b1bf60d5ada1b52e25c2c9f + src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java: + id: 2610d84b92d1 + last_write_checksum: sha1:a648dc4b04456f12da388d97e6baa8e37692fede + pristine_git_object: eeb0f31b684f92661b7a8e1bea40d50bb13afb30 src/main/java/com/clerk/backend_api/models/components/CommercePlanObject.java: id: ff1817bc1c25 last_write_checksum: sha1:695d3e84e57b4d1612a7fce17196bf581a32bd80 @@ -5094,12 +5334,12 @@ trackedFiles: pristine_git_object: 6ef412189eb6cce3cbde88d32532824f08a4564d src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java: id: 583ae4d27e14 - last_write_checksum: sha1:44caadfb630132bd540e9242a165a58495fed8fc - pristine_git_object: 31c56a5b926ed55c8f80be90309d4401ec840c56 + last_write_checksum: sha1:2ec13770453d1eb16f2e3d327a5cdb2f08301c7c + pristine_git_object: 9f0b50b7b46a39de678fa9d901c91fbf04cc4a96 src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java: id: dea8ff9ec633 - last_write_checksum: sha1:b11e3be295b97da0cb3d669cb9d517138bb155f4 - pristine_git_object: 68e238e0b1924a731758e3d237af89b8f00bd7c4 + last_write_checksum: sha1:3d606cee4de67afba377f8fb7615872141543be2 + pristine_git_object: f67bdc30d5a8317f84e7d47641cd6eb9b87d2110 src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponseObject.java: id: 4f3cff860dee last_write_checksum: sha1:079618ede7e94b9c45dcde5f6d2b9eb3ce63e190 @@ -5116,6 +5356,122 @@ trackedFiles: id: 4305da067df5 last_write_checksum: sha1:6b684213257d65b056f53777633b8747794cb55a pristine_git_object: c7cbb23d243ce000c98918512f0d56cb01b52c4e + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java: + id: 0e40d0e53a34 + last_write_checksum: sha1:ea79a35b00d136006dcab85ab73fe7d810dfefca + pristine_git_object: ed8336cda6b118c698d23c72a82a4e5931bcf7c1 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java: + id: d6b1bfb596eb + last_write_checksum: sha1:7c81ddd7bc0b2d39fe09b77decbb91c6269c8867 + pristine_git_object: 04633e94498b469039baac5a249d84c82171a25c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java: + id: 3457464bfd86 + last_write_checksum: sha1:cf423be1f8555e4e262caa4222d8d5b2fe8d5bb0 + pristine_git_object: 8eb056d2cf9b85f51c68bd1c0cc653e7c33ccde9 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java: + id: 6b4a693ba448 + last_write_checksum: sha1:6b7af69de19afe8506fac176e27aec104442aadb + pristine_git_object: c7386acd05ac1a05d241350cddf2dd0773c0e06a + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java: + id: 7a6c071830dd + last_write_checksum: sha1:6f8b2a6989d8ec1c4720cce02f6e5c9441a53358 + pristine_git_object: 5bb5a816e98002bb84f637aba0586d1246991d6a + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java: + id: 356c119e1145 + last_write_checksum: sha1:805c66e1fe7fe13ca4816eed5b86cb3f67fb9108 + pristine_git_object: 94ee5f36a9934ba80e63b97a2e768e43def3a594 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java: + id: 73cc9ed6adf5 + last_write_checksum: sha1:fe3eaea5cb8e6d84878322235f73d5b2e86709db + pristine_git_object: be98826969864d5309e5450c576c827729785a22 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java: + id: c716950d6c60 + last_write_checksum: sha1:738b3a85bfe6dc10b4807e6ac94fbe433cee5649 + pristine_git_object: 5c52fb7493bd3eb27c2ea21b3fb7e8045ebb8a90 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java: + id: b97440868803 + last_write_checksum: sha1:ca6e4f6362bfc48e6c65076f2f9604e89a61d9e1 + pristine_git_object: b14c94a6fa7416bccf24f9ce3a6789abb34a523b + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java: + id: c093246944af + last_write_checksum: sha1:f03b33b34d12531b43cfdc72ced3fe2701b96b94 + pristine_git_object: 8376086e749095f50dc2b098818f963915be135c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java: + id: 8e2a3fcfa3ab + last_write_checksum: sha1:eb027c02fb21bd8e173223f111b8636f03838a7e + pristine_git_object: 6883eda55dfec0364f2cc8d1260cea6bbf0c6f6b + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java: + id: 18595b568483 + last_write_checksum: sha1:8bfe56709cfe39718901bfda44279f9906f60f7b + pristine_git_object: a8088102a0430ee71bbbb6733eeed02d2952ce06 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java: + id: 44c0fec2345d + last_write_checksum: sha1:07d2093307fa3f50baed3146b5209bd121992704 + pristine_git_object: a5b63bd7195ddaf40bd3877bfb739873cbbcade9 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java: + id: f3c86cab7b77 + last_write_checksum: sha1:2215d35996cd196dc44dd10b2ea6cba422939402 + pristine_git_object: 01fcafb6b136c26961c47a26276194f102cb6857 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java: + id: 954251c6294b + last_write_checksum: sha1:dd6020680dea73eeb38a4162e50a3338dc4f10ac + pristine_git_object: 431ea3b6ac04266cade918af9cb40a2e9bae8138 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java: + id: 58bbe66a6631 + last_write_checksum: sha1:89b1c49a3e96a4bd9919002d6488b5421c3fc07e + pristine_git_object: 76e59b877985f788ef6602644dc751520d973563 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java: + id: f82f99fdf693 + last_write_checksum: sha1:defc66e78de9f6ede3dd549631d5ed87aa1de1a3 + pristine_git_object: 299a438749bdef25d5b85005481d1437ad6a566f + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java: + id: 4351f00921b1 + last_write_checksum: sha1:0cf2a5d43ac91be83c066ea0e58f96065fec10ea + pristine_git_object: ff38bc5d2a5d3d3408408b79709d46ddfe4fa02d + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java: + id: 63833485b5d3 + last_write_checksum: sha1:04bf892cd90d1b77bcae8366963d98787efba97f + pristine_git_object: 22c1319c3affb1504882a66f3510951342cb3d86 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java: + id: b5af9c41637f + last_write_checksum: sha1:e754f35080b43a9d31cdf670b20512a5787d8eb8 + pristine_git_object: 038858cbe0ca43db8599054b79d28f1e7d6aa15d + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java: + id: 409d00c0d939 + last_write_checksum: sha1:a93e9b0d00163cc57d236a63979f1a737cacb960 + pristine_git_object: 36d9e1f67c60aa993d277001c62f18df0d3dfb3f + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java: + id: ece58dd05e4e + last_write_checksum: sha1:448c3bc9a2c3a6b11758bc305f5fa35b80aaf0b0 + pristine_git_object: b3bec50c16582036206e5f51a80fbc54f5cde151 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java: + id: 8081f6c7b8ef + last_write_checksum: sha1:6d8d409e9c0a7513ad5d75ace069d87485a0e33d + pristine_git_object: 939507e696d987477e781cbcc1ff950255db86fe + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java: + id: ac992ab5d908 + last_write_checksum: sha1:9ad3f912740b13ca8bcb1aa6144dd120249cdd0f + pristine_git_object: 4ab446b1dc3d3314461bb2daae2bf6c616cd1e88 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java: + id: 6eb62a7185ec + last_write_checksum: sha1:d05d9d644a0afaee0353a7741362522734fc4fad + pristine_git_object: 32dac3cf4c13ba36d9a280d22bf96d3530cba9b3 + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java: + id: 0381df8c12d8 + last_write_checksum: sha1:a4712d4193319ccf1547cce4d22dba3cbdd8971b + pristine_git_object: 4658f5d5ba3b675f9bdc654115594f13a65bd92e + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java: + id: d550f2d887a2 + last_write_checksum: sha1:f505a1079e6b19bf1a91176c23ce0b5e04afb4e6 + pristine_git_object: d517dbdc2cfae41d75cade2800729ca773d8f35c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java: + id: 9448215c6c15 + last_write_checksum: sha1:4f99981cda7b5dbe0fbb24669199cc97d8763d9f + pristine_git_object: 09f06f01da6ea2b0131da314f2fff0a5c3a3d83c + src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java: + id: 1c3312640757 + last_write_checksum: sha1:661972182f184e06758c1e88784fb59e2d61dc34 + pristine_git_object: ed93db51eeb595d248a94df85136e28a202c7e85 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItemAmount.java: id: f07650771472 last_write_checksum: sha1:f5481748d0fa1b038eeebd77ab13749de2b116e5 @@ -5190,8 +5546,8 @@ trackedFiles: pristine_git_object: 69dbdc0083dc85eb566642c5b20837c1828bd0dd src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java: id: "267411602068" - last_write_checksum: sha1:c94cdce3b115833935ea02c077f5cb5fc28031ee - pristine_git_object: 799cfa8e6cb02b3e4e81ca8a77b348be6abede95 + last_write_checksum: sha1:8790e764bba7c9b37f2ded9720f22001d68e101b + pristine_git_object: 9cf9904a2b7246145df4537b16d85cadeeb3c4b2 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentCredits.java: id: d37241d3e942 last_write_checksum: sha1:6cd7cffd9b3a50c4bd7b56be75efe0ebeff50941 @@ -5210,8 +5566,8 @@ trackedFiles: pristine_git_object: 6e7d2c94db63773c1ab74027f11aa764d135412e src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java: id: 6a7861c4558d - last_write_checksum: sha1:c5e1a6dc6018af052b681493fc0a786283a404c7 - pristine_git_object: 67c58898380dc8357c529cf320187dd52cd4379c + last_write_checksum: sha1:b4ace79545fbdaf409f0eae0b4ed4f2bb36bd154 + pristine_git_object: 726050863498c00dc113441676dc2b58ae95b1d3 src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotalsProration.java: id: d9c0d404e531 last_write_checksum: sha1:713170a51a65857ea9b3fbd09e107bc0db8fa55d @@ -5250,8 +5606,8 @@ trackedFiles: pristine_git_object: 766b14046b5e62f35220e99d025205b02c7a5b71 src/main/java/com/clerk/backend_api/models/components/Credit.java: id: def2e06cb64b - last_write_checksum: sha1:c588382eaf0d1ac252bd26ef14debf985044eecc - pristine_git_object: 4250798fc3a57a2edfcb39b736ae01e6c81ff9c6 + last_write_checksum: sha1:c74e06199c1e452fa5407b413e0945b3dc72e46d + pristine_git_object: 23519fca56d396f789af1cef98608930e24df345 src/main/java/com/clerk/backend_api/models/components/Credits.java: id: 1fd43b20955e last_write_checksum: sha1:4362331cf98472e1ed3b30ebf7104a3a2ced2774 @@ -5306,8 +5662,8 @@ trackedFiles: pristine_git_object: 5c186f49e0e31a8c5fe5d1db427129f54821d5ac src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java: id: 4dd4016495ce - last_write_checksum: sha1:306c468671f6c0b2bec17a147adf6bc8ebe97a26 - pristine_git_object: f298e70e69121b1795fc1fb54d1d18f4f71b748c + last_write_checksum: sha1:5e4340943697b5bbdee758e8f61768aba1ae01e2 + pristine_git_object: b86f48996aa0863af490414c0e0b6ea3b3075592 src/main/java/com/clerk/backend_api/models/components/EnterpriseAccount.java: id: 13ca497b02e7 last_write_checksum: sha1:a31225ed8aae6454398f2b5623c5acfad31b7bbc @@ -5342,12 +5698,20 @@ trackedFiles: pristine_git_object: 5dae9b1285acda773e446ffa1a226a09555edfd1 src/main/java/com/clerk/backend_api/models/components/EnterpriseConnection.java: id: c5171edcab7d - last_write_checksum: sha1:db61a0de3b41010eb99042074d20027426978c56 - pristine_git_object: 0741f84159f6256b92f2423d88e2a7b6ca0e06d4 + last_write_checksum: sha1:5c0321ff43ddd2b8f46b124360af682ba79e5de4 + pristine_git_object: 2f218b77cb2c1d62490bf2490af22642ef2b0707 + src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionMode.java: + id: fbacd6b30343 + last_write_checksum: sha1:f9a4576bf081bd63aec254a2c97bde092a92a859 + pristine_git_object: a0e4ba24737d02c53b141fa7761d18f4f6891af2 + src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionObject.java: + id: 90dbeb61926f + last_write_checksum: sha1:28227d2b4f0fd8fc254273efddb4f9f1fcfb2001 + pristine_git_object: cf8f355b739cfea4a4c73361dabf622e31c65012 src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionSamlConnection.java: id: 0a6f86d0cd4d - last_write_checksum: sha1:1d689447c9eb3332fd6c832fd3607b55301ae691 - pristine_git_object: 48758faa066b71bd9fde20eefc04747bbf63a93b + last_write_checksum: sha1:2ce1e54a2bf05497a17e6ab992dabf7f406c1bd3 + pristine_git_object: a9cddf29dd720fbcb3789a5ff6ca268fa609d571 src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionTestRun.java: id: e4600cadec23 last_write_checksum: sha1:aa1c8441b6cd6c705bbcb8c9f27e2d972352cf34 @@ -5374,12 +5738,8 @@ trackedFiles: pristine_git_object: cdf5ab8ed8e1c63ec4e3e137910d3c19d28f210f src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java: id: 58db4dfbcc55 - last_write_checksum: sha1:d83f1f9ba75e958f2e05ecab60dd11b388ece0a6 - pristine_git_object: f76c802817607baf0a03a72152e987fbf2496883 - src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java: - id: ae9036341904 - last_write_checksum: sha1:ced618d1288b8f595bd3e72ac9c0c0536f68fd80 - pristine_git_object: be91029e5c4240ffbb9a4511ecf265e46cab4d15 + last_write_checksum: sha1:71a90cc075c676f3e5a59e9f50e33631ec7090b4 + pristine_git_object: 6b1fd2d2d318183562523084ee990c63c0509a78 src/main/java/com/clerk/backend_api/models/components/ExtendFreeTrialRequest.java: id: c7c83486adec last_write_checksum: sha1:1b750e070ac962fefd45897505660ce657f50cca @@ -5408,6 +5768,14 @@ trackedFiles: id: e41961b4d49c last_write_checksum: sha1:2b8489c3c0cf114b756b36f5c795791bcab2831f pristine_git_object: 338f1946c6e44ad3351ea0641f47f708950dbde8 + src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java: + id: a812baf096e0 + last_write_checksum: sha1:d0faf18bf26bbdab0e6989f079950ec559566a2a + pristine_git_object: 9b50488dd07eae1c314f70fbfb089e3ec2109bad + src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java: + id: f27084cf0def + last_write_checksum: sha1:7383d0a4e72c58ddc6c0e5ec919af1415deecdbf + pristine_git_object: 02ac4687dd1d03833b0b0cb4c3752b700c63c54d src/main/java/com/clerk/backend_api/models/components/FeatureResponseObject.java: id: 9cf467d6207f last_write_checksum: sha1:2c893aba7f0324ea47a786a5d4f0e3c7cd31da50 @@ -5458,8 +5826,8 @@ trackedFiles: pristine_git_object: 311ccc2cb0de8a54038ddde8f0bd1904d15383e9 src/main/java/com/clerk/backend_api/models/components/InstanceProtect.java: id: e4d1a27e38c8 - last_write_checksum: sha1:b413c9f653d178eb992b48a5061ded7494fa5876 - pristine_git_object: 8705ebedc9aa3203f410a55a1c42e6b2d5ecbabb + last_write_checksum: sha1:bd1bb649e859fed02629f93ff116039498fca424 + pristine_git_object: fbd141165455f20454ae5646b9765f6741313246 src/main/java/com/clerk/backend_api/models/components/InstanceProtectObject.java: id: ea1363cfe862 last_write_checksum: sha1:043c984e2cedb67464db7f3861b0d4b5451f99b3 @@ -5474,8 +5842,8 @@ trackedFiles: pristine_git_object: f79336e8139bd8b5577ef8b33575071afb9531eb src/main/java/com/clerk/backend_api/models/components/InstanceSettings.java: id: 9a85627382ab - last_write_checksum: sha1:2c6c8e2d34ac74f47a728873b35612035f62c099 - pristine_git_object: 2ecb46170ab4d6760e0c8c8794bd07fdcef74c73 + last_write_checksum: sha1:380079c4e93851af9b38318164db6934648a792b + pristine_git_object: 6676160c75d3c05a60a3fd534acf9d3fa108ac32 src/main/java/com/clerk/backend_api/models/components/InstanceSettingsObject.java: id: a49f787f14ae last_write_checksum: sha1:721273b6059c889670fce821f229e7f73a47d0d4 @@ -5524,6 +5892,10 @@ trackedFiles: id: fcfda9810ba8 last_write_checksum: sha1:81aed52543ad72516a2a70435ba32745833e6f1e pristine_git_object: 8eb145f14c57c27ae0dfd1fa9b577d83177534a7 + src/main/java/com/clerk/backend_api/models/components/LoginHint.java: + id: cdfe74d1d3da + last_write_checksum: sha1:72d8b83807352d36beb50d55ac1bd7f7faac3157 + pristine_git_object: 9f5dbc6bb01929f7a69c009dc7934793d486d816 src/main/java/com/clerk/backend_api/models/components/Logs.java: id: b8f2eafcbd0d last_write_checksum: sha1:ac01dd2e73daf9d9f7cef59b476cc41cb6369e81 @@ -5588,18 +5960,18 @@ trackedFiles: id: 163285db5e3d last_write_checksum: sha1:f1994d4bc3647b59eab8bd393da83e2ef323e4bc pristine_git_object: 1074ea741005b06bee602818e8ad41c0c26be5c3 - src/main/java/com/clerk/backend_api/models/components/Meta.java: - id: 295ff0b65ecc - last_write_checksum: sha1:048d414861635478cc4ae97586931d20fdaf93eb - pristine_git_object: 8d5b29869e08b8b9595361b12deeed377fe41ab7 + src/main/java/com/clerk/backend_api/models/components/Mode.java: + id: d2a18043a2e5 + last_write_checksum: sha1:b5c4ec85e6d46fe1c9dac5ed41ee2bc10c465e79 + pristine_git_object: 336e2ff43a0d47418d0cfc8aede9124bfc600104 src/main/java/com/clerk/backend_api/models/components/NextAction.java: id: 61102596a7de last_write_checksum: sha1:81e334068786ef6e54db5bb5070bc174db4bec2d pristine_git_object: 71135fad536e85b8aa8aa5a46f7cdd33be06b0a9 src/main/java/com/clerk/backend_api/models/components/NextInvoice.java: id: 7031aa3307dd - last_write_checksum: sha1:9fbd25b44b40b008b00dd7e0aa22dd3fe7ff95d4 - pristine_git_object: 9789270b531d720d7d6b91454b53b5f8a8acbbec + last_write_checksum: sha1:662e2e50c8984889c6f7cc18816d3c248ef76f7b + pristine_git_object: dd37044ffebfd31241cc7de53f869e500b925b9e src/main/java/com/clerk/backend_api/models/components/NextPayment.java: id: 6c1b81a1079c last_write_checksum: sha1:a1f6c3b32ba28527af5548ddd221602086bb6491 @@ -5626,8 +5998,8 @@ trackedFiles: pristine_git_object: 71dcf636edb6dae93d6e9dea0531e43494604de9 src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettings.java: id: 66bca493e987 - last_write_checksum: sha1:fd316179a295ae0f7acd7cd69e1d7d5a9943651a - pristine_git_object: b99a4f8373fd9dc9558fde1522579799294870f6 + last_write_checksum: sha1:e119ccb66ec4c59e858b4680ffaca5cb852b5c8e + pristine_git_object: 33658c34048d7c4051e35f6b8baa3b1a772a6fbe src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettingsObject.java: id: 906db9fc8c6c last_write_checksum: sha1:4b3da2ebf4f8ddb693f91bce1013368b7a69f60c @@ -5658,8 +6030,8 @@ trackedFiles: pristine_git_object: 4ef52982b34c89129612219e5ad35931c5c85caa src/main/java/com/clerk/backend_api/models/components/One.java: id: 25664b29e93c - last_write_checksum: sha1:e2d428d0831ea5653643af4e38a4477977215eb8 - pristine_git_object: b44ca479665309123bb04a81c8f86f062c3da9ed + last_write_checksum: sha1:20976f310bf00c161f345f6ff1b4cd8447ba0756 + pristine_git_object: 0acd34001623a5c41ef920eb8b279de82b968b0f src/main/java/com/clerk/backend_api/models/components/Organization.java: id: ab23b4c09b18 last_write_checksum: sha1:8c859714425963945b5eda95c49bf645f3119133 @@ -5730,8 +6102,8 @@ trackedFiles: pristine_git_object: fc8fc7ca7946dfbbd9d783d01051f603bb231c51 src/main/java/com/clerk/backend_api/models/components/OrganizationMembershipPublicUserData.java: id: f3031de5a8a3 - last_write_checksum: sha1:95b92d71c54f6edd63a58e242dc1cb9da1f01302 - pristine_git_object: 093f17560fc30d4990d068276f62ee67c8a06fa9 + last_write_checksum: sha1:c023e19e0a40e15aee96b98de205cd8bb1b99a63 + pristine_git_object: b8252c3b1026b478a9707c8eedf9ea4f5b3c70c7 src/main/java/com/clerk/backend_api/models/components/OrganizationMemberships.java: id: d5aa1e0322e5 last_write_checksum: sha1:b8042e5243423cff6b042de5295c09cd48a26750 @@ -5814,20 +6186,20 @@ trackedFiles: pristine_git_object: 0a687008b294d5c44d3ef06caeb32740dda2e995 src/main/java/com/clerk/backend_api/models/components/Payer.java: id: cb204c41f302 - last_write_checksum: sha1:64286ad2af233f55304fb8ee272a26c882083585 - pristine_git_object: c70c619c753d63001c775554b204acf80aa7f990 + last_write_checksum: sha1:8f94947b829d26a9d22d8e4009128d0d7cd1937c + pristine_git_object: 05a412097899abf6b89b4eb5f4f227086e1e243c src/main/java/com/clerk/backend_api/models/components/PaymentMethod.java: id: cd9859b69606 last_write_checksum: sha1:c95028baac197a4c63a1bba2103fd3020d5f2402 pristine_git_object: 0d77df6694452de79fa6b54d8cbe1d65f5b373f6 src/main/java/com/clerk/backend_api/models/components/PaymentSource.java: id: 3b701977570e - last_write_checksum: sha1:747c81e57ba0b97e2b9e000bbc18eb3fc20e8d94 - pristine_git_object: 520e17f7cc4570146f81ba5a13e2fa686eb22cdb + last_write_checksum: sha1:717a57ae9089bffa47604a73cc9e9949d3c23247 + pristine_git_object: b389153d35527d060d4c51c937a962c6258bbc85 src/main/java/com/clerk/backend_api/models/components/PaymentType.java: id: b280d5f13826 - last_write_checksum: sha1:2ccdb6f6cbc8a607fc7ba4135b178847b7ccbc8a - pristine_git_object: f48d2b27984f5ec646727526b413221612a892e1 + last_write_checksum: sha1:2875ad9c0ab97c916fb463ff800384ad43feda1a + pristine_git_object: 85eecbf5bf40c455c7aa45feac4e7d71342f46c1 src/main/java/com/clerk/backend_api/models/components/Permission.java: id: 5cc05c614f41 last_write_checksum: sha1:cfe6f8469c141dff20f7ed4add64ddbd3c4afae2 @@ -5864,6 +6236,10 @@ trackedFiles: id: 481bf73e47ea last_write_checksum: sha1:07a21bea66559446e5e7bb99e84b03767bec1e0d pristine_git_object: 6ccd850705adc12e85afb9bce9cca4d73f568ef7 + src/main/java/com/clerk/backend_api/models/components/Platform.java: + id: 9c0cf8138ba0 + last_write_checksum: sha1:9fca138752ee9a6c11cc8daf46174ff419224489 + pristine_git_object: 28faed3f68707cb32cc9bf6d42c923d2381ad86a src/main/java/com/clerk/backend_api/models/components/PreviousSubscriptionItemStatus.java: id: 64b67a309928 last_write_checksum: sha1:a2973b1f71d3392b4c382f7c170ff02263cbddf4 @@ -5992,6 +6368,10 @@ trackedFiles: id: f8380d50e3c4 last_write_checksum: sha1:6d5a3ca37e8536e139ba573bf41b67c74acf3635 pristine_git_object: 6cec15ba462c2230f22da3dbb7a8cb0adc73b5b8 + src/main/java/com/clerk/backend_api/models/components/SAMLConnectionLoginHint.java: + id: b57e74f29397 + last_write_checksum: sha1:f5df44b1b7f729539652acb1dc0ce6e3318269ca + pristine_git_object: 0e430a73d13d98b826ab0a096a9adea635a11009 src/main/java/com/clerk/backend_api/models/components/SAMLConnectionObject.java: id: a5ea2ecd46ab last_write_checksum: sha1:addf1cfe7f1681402a37b37e5f29cb8edc2119f7 @@ -6000,170 +6380,54 @@ trackedFiles: id: 4634531430d2 last_write_checksum: sha1:d7379f6ea40397ab76efbab176f9295e5392a3c8 pristine_git_object: eedb7412ca285e9cc78f042c43219b6dc900d649 + src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java: + id: 1bf405970832 + last_write_checksum: sha1:55444bb476184c5312e66462ebb5ece774ac0bd6 + pristine_git_object: a3e3597d3eee253138453bce66ec0a01fd4da83c + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java: + id: 86f475fb75e1 + last_write_checksum: sha1:360d7a5bcfa5002950055ade4b76126e87555fd8 + pristine_git_object: e63ee7d59b3092570cfa432972da3f10b993e548 + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java: + id: 8d1b721f402c + last_write_checksum: sha1:0a0ac048dde083f6f87ab44100b2ecf58dd198e4 + pristine_git_object: 9d8bec1f41dd832f385b37fdab1b3e8030317c7f + src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java: + id: bfc6a8c582c4 + last_write_checksum: sha1:d42c22eb9cccab1fcbcf414ae1738805a6907cd4 + pristine_git_object: cc436a7ed2992005e228fc614617d00edaf457ae + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java: + id: b99542ec85ee + last_write_checksum: sha1:819f425d09bfa6f9e4d838f8beb10eeb9a5d8e1e + pristine_git_object: c2305a757b0b0b412729b7f7140eb62d1ad614fb + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java: + id: d101c88a0c3b + last_write_checksum: sha1:5293877e2f17cf6b2f27be03424373479aa0301f + pristine_git_object: 8e1ffea55ecdc2b496848b6de9ab47555c252b4f + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java: + id: 184b6751f659 + last_write_checksum: sha1:64b8f38ef43bfc188f8f8723909f559da0f11abf + pristine_git_object: 5b3bea2c6271139ec3c707f7ea554eea5a7199bf + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java: + id: 926acb44a435 + last_write_checksum: sha1:0663160b9b9a230774f61d975e1ff3c6538e976b + pristine_git_object: 305244dc5006fa10d92ce8b4a46cc20abf90d910 + src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java: + id: 78f5f936d411 + last_write_checksum: sha1:9f233584f6b73401ffa1926fbe6dff2168536b43 + pristine_git_object: 9a785b47653b83f43a0377cb7e37a7ef68968c33 src/main/java/com/clerk/backend_api/models/components/Saml.java: id: 47564546a8f5 last_write_checksum: sha1:699784c9e31206f2ee92cae0fed32e0348e758bf pristine_git_object: f75b35326a853c27b07e80bb49c240b9de10f94e - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java: - id: 716e515bc5c5 - last_write_checksum: sha1:838f4e1c2f69b0993d2c5f0aaec9686aa8788563 - pristine_git_object: 1de3553898ac4241a8050f33514e572b2f2475e7 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java: - id: 4957ebab14a7 - last_write_checksum: sha1:03f5c754488c539c16d9297ded17cff6d888f9f1 - pristine_git_object: d706dcc96b6e6446eacfe9cc0426e498e134d7ef - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java: - id: 0cc05a9fb2d4 - last_write_checksum: sha1:0d8b69fb2ec6d29e51296caaa8d9907b0cc17202 - pristine_git_object: 7f9afaabfb48db9ec8f98024c656ecbb0fe59fc0 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java: - id: 9825c9a0db06 - last_write_checksum: sha1:acf50bc0a88ed84f2f2b158bccf9ed9b4fa8d994 - pristine_git_object: a0de8a27dd1b6dd80f64cbbe87d85cc7762d13f5 - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java: - id: cebec920123d - last_write_checksum: sha1:068a2f5a736f59dab10d97d7e46f13d10a312f32 - pristine_git_object: e794b899c8229f39797c46fdb03a5708dd42d48d - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java: - id: 16a7ccdfcdc8 - last_write_checksum: sha1:3cd4d074c6efb76ea3a95487bd171883b739e888 - pristine_git_object: 56fc4d809f9c025b9e6de5d57deb8f2e5ed162fc - src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java: - id: 968a9659ca61 - last_write_checksum: sha1:6dbc00d4a217713d9befbbe8748342563b837673 - pristine_git_object: ac1736cc32e01a7d1ca723bcf77ffec34da27994 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java: - id: 608d6cf24aa0 - last_write_checksum: sha1:a84ee0225f01673351ac7a4f5678dd640726c22e - pristine_git_object: 1e546859f171227fd20e22df9d8020d2400247d2 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java: - id: 8c6f7cfe8bb5 - last_write_checksum: sha1:7f2856c69aecfd2db97a9eb70d413488940c8527 - pristine_git_object: 6924ad8be6edebf0da51b238c106e943f27459c9 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java: - id: 6507372be6e1 - last_write_checksum: sha1:efd6fd3aa0c2cd33d61088279c1e1f92f58ab2e1 - pristine_git_object: 1f6d6a774b0911d4a36742d85cacf7e60d098235 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java: - id: 2ec846c61666 - last_write_checksum: sha1:9352d0191aa485cbe882a855a91c496b9b2592c5 - pristine_git_object: 69442456f7f7e97a4571d5ab416b77a61bd8b145 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java: - id: 5bb07592e559 - last_write_checksum: sha1:43762089f3a789a3e772488153e74e0b3b2bf871 - pristine_git_object: 6455b82d8a67d5de2f0983cba2b642845880452d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java: - id: f1ead136a9f6 - last_write_checksum: sha1:de6a5c1dd62eca118b4cb252744432343c64d3c7 - pristine_git_object: 068ae38b94d58a2e6c6644ae960100dbb88d3c3b - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java: - id: 352c0157533a - last_write_checksum: sha1:fd5916bf41a85399780477a7b99701623feb6dd3 - pristine_git_object: 78da3cfd9bf00683e98b516a7dafa26b13e92914 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java: - id: 43028752584b - last_write_checksum: sha1:8fb73cffc30c9337dc59676519618f6db7e6dfc2 - pristine_git_object: fb3c20fd13816025b103061562f4a46d6dabff7e - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java: - id: ceb0632495b6 - last_write_checksum: sha1:cb0e2e7df2082a2c77779d02024098d4764b9551 - pristine_git_object: e856a532b9c02bfbaeddcc0be4ae4addb994b032 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java: - id: c20316005f1e - last_write_checksum: sha1:81253c07a76c4132a7f959c441a5211ccd21a5af - pristine_git_object: be16e369ec9adfb3ed15fe3e900411a71d27ae89 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java: - id: 01dddd94c55a - last_write_checksum: sha1:6c54d64512f4aa98210e3d9ca46af2e1fb42df69 - pristine_git_object: e203189d5b1292b4b3f770fe400e01543a210595 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java: - id: c14ca560f270 - last_write_checksum: sha1:44096a7b9d6aec882e0aac13c7b5ad1d7dd203fa - pristine_git_object: 88c2cb4965d5e69df582ca6ad2946bcb1ac50435 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java: - id: 98ecf096f6ec - last_write_checksum: sha1:e7fcfaee5bf7d51c8ce1adcfc4bf74d7b854457a - pristine_git_object: e548d4af6a71fb35e075aaa236004c06e88c0a5d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java: - id: c09b64d27d43 - last_write_checksum: sha1:0489e498376284ae70e2bbe1fc007c7fa67d7e99 - pristine_git_object: 0f6c3f2056dad6af8d36db946913f1b33fa7fe2d - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java: - id: c150724cc70a - last_write_checksum: sha1:e8dce4213c07c0c4f0c61fe41b0ff2613cb62b1e - pristine_git_object: a89876764999d33ed2c4830c5062a95561d2f6c0 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java: - id: 035df956f74d - last_write_checksum: sha1:27166f45294533a6b099fbf4a68ad08e979fe98d - pristine_git_object: 9336045dd1122528aba37caa98d2b13673e8b655 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java: - id: bba1a5bf88d6 - last_write_checksum: sha1:f61f4df4ba8e9e69ca02e56f7aae5912ad7132ee - pristine_git_object: 07b44a7a0b647f125485e530440add3e8c6e5fbc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java: - id: "207991478293" - last_write_checksum: sha1:cc247f78e675ccc911becffa2fcd6876324cef4c - pristine_git_object: 6bf07131eb2aea3ae96ab0399ea29cf8b0ed53fc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java: - id: d0f047b5d449 - last_write_checksum: sha1:6816a1969fea6af2843c96b0dbc1064b542d981b - pristine_git_object: a7f3f67e91cb96c04bed7e17a175796374a99544 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java: - id: 74bc06bd3879 - last_write_checksum: sha1:5061d3c31c0f46a3ef513182901b728fa3e8f7bf - pristine_git_object: 166c01ae1ff3e06de93db97cd918efa8f3e971ec - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java: - id: 9c991a6faea4 - last_write_checksum: sha1:2424c2ad9c8039be5126d3a4e5dd642334f1aafc - pristine_git_object: 1b7b0fdc5e42660664591365e91257aebf28e11e - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java: - id: e65bbc0aa1dd - last_write_checksum: sha1:0b2ff0ccb2561dc6a34c330cf1c86f366cc02b57 - pristine_git_object: 2a039b438d5a552fb3a7f1d87f0426d0351496da - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java: - id: 0cc1cfe48732 - last_write_checksum: sha1:c0f6a11add2114fcc09526a8c8711d02cf8c8775 - pristine_git_object: 69ba00907d7229220f41784ee1804ebb05e704dc - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java: - id: 1601d14866cb - last_write_checksum: sha1:f80e3a6b2ce7a12ce0a1ed238e222f113abaf3cc - pristine_git_object: 237ecd7da066399dfff3071e8cb7d91fb6411a63 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java: - id: 2cd9ed12bfc5 - last_write_checksum: sha1:69f36893ce758cf1b7b66fddde94ed3134cb8e34 - pristine_git_object: 535036c64187744ee470fa7432ee2e4f60828325 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java: - id: 05137c926d24 - last_write_checksum: sha1:b0ee2d4db82f864b97f4dc351b6642c61adc5c9f - pristine_git_object: 0036ba7e3d765bb0fd0097bcb140cfea6951e575 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java: - id: 61870a406fff - last_write_checksum: sha1:d2188d8e57c558ac7f714c2f878906cd8e4e4314 - pristine_git_object: 6cf59f66d59a7eeabe1b4fda7566bbb0c3138007 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java: - id: bbee3fbb8905 - last_write_checksum: sha1:dd0f9041e1a813f88f9684868ce95044904342d1 - pristine_git_object: 21103ceeee8f994421eabbd02b1adfce1a66aa33 - src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java: - id: df3cd66addec - last_write_checksum: sha1:4633d939a0c9eaf8aa2f71139742cef0414ca9e9 - pristine_git_object: 85b4664389e4224d06320ba60dbb72acce649092 - src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java: - id: 599152e6cbc3 - last_write_checksum: sha1:d01a9e0be7250572fae63529a67eb1a37e29d997 - pristine_git_object: 0dabf600e1ace02b729ce96a55f361a8d213f731 - src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java: - id: bb857764be22 - last_write_checksum: sha1:3f1f7b767a9917139b7a692f4b934053cf327442 - pristine_git_object: 0a20ffc71a06ff214b49df5adcce99c405f76aba src/main/java/com/clerk/backend_api/models/components/Scim.java: id: 602a309b40a5 last_write_checksum: sha1:dadc2ed92b51d6bc03450db9fc34556c59575aaf pristine_git_object: 33344e519e7f3d4db7aa1dc2505bcfc0c057c07f src/main/java/com/clerk/backend_api/models/components/Seats.java: id: a2587836532d - last_write_checksum: sha1:705ccb5a6e6f5f5f9c5271096a437708bde260af - pristine_git_object: 990e1c6af7eb9d1c0dc6a237bd27dec0c5230715 + last_write_checksum: sha1:aa244297c0e31aa8b51ee17e81a1bda8f221770d + pristine_git_object: e8c3d7ebe94a571654f17c4a2d5f1161ad10ce91 src/main/java/com/clerk/backend_api/models/components/Security.java: id: f5c22fa96300 last_write_checksum: sha1:cccd86e428763a6d05632a797fedc1952ae7945b @@ -6282,12 +6546,28 @@ trackedFiles: pristine_git_object: c33ae3370efcb945a884cf6356b2f5e260106245 src/main/java/com/clerk/backend_api/models/components/Totals.java: id: 8b62f4637066 - last_write_checksum: sha1:fee537efae9bd20d8668d4617ae774d87d50a5e9 - pristine_git_object: 52776546a64b17122aad9bf044424434cac10c32 + last_write_checksum: sha1:8e6c206d53e837115eb41969488cf707cfaaee47 + pristine_git_object: c1e8e26753259cccbeafd7a5ecaafbd423cb1eaf + src/main/java/com/clerk/backend_api/models/components/TrustedDevice.java: + id: 9426145c7218 + last_write_checksum: sha1:cb0d0ea9d464a34f9cc1a5ac3b6e9b85d05472b9 + pristine_git_object: c8f62ab928b4c0b870b68faea5b28c99f8ff61aa + src/main/java/com/clerk/backend_api/models/components/TrustedDeviceList.java: + id: 35ccba1b48f1 + last_write_checksum: sha1:a49534aacde85894e8ff9eea4fa32787d3356802 + pristine_git_object: 21071a43f12f10a7245c8071d586b3a49278b971 + src/main/java/com/clerk/backend_api/models/components/TrustedDeviceObject.java: + id: f37093ca07ee + last_write_checksum: sha1:5e4c4bfa2acd0a53fdf2d90d203878b5c602fbb7 + pristine_git_object: 8b3e0af9a1ed3ccf48d5580ce0695b8339315558 + src/main/java/com/clerk/backend_api/models/components/TrustedDeviceStatus.java: + id: e5b44d73f359 + last_write_checksum: sha1:a88c1a72fed1809381366b426a3b0936c9be2ba6 + pristine_git_object: c8073966762fbc7632eb59e441ca45182ed986d7 src/main/java/com/clerk/backend_api/models/components/Two.java: id: c2c940050402 - last_write_checksum: sha1:6dcd2c3985e4afc49be8b3b339b639a6bb5b6b91 - pristine_git_object: fde05af7661cdec34dd8913607b6a52c47c5a406 + last_write_checksum: sha1:3bf5f5831a01883da7b532948b88fe4a1e8d6261 + pristine_git_object: a1ad2522bda2898489aeb050236e23e51c833b38 src/main/java/com/clerk/backend_api/models/components/Type.java: id: 9855581d6485 last_write_checksum: sha1:6f669f1911ab8e55bbc33703d7f94c283df2d958 @@ -6398,8 +6678,8 @@ trackedFiles: pristine_git_object: c5ee7000bdf3ccfcf266582f0b1650457f521ad7 src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java: id: eb109fd9552f - last_write_checksum: sha1:8296a2083891ec5161bab5df70a4e412183abd4d - pristine_git_object: b62b74ab9cec553509ea6ce5d0bb04216aa97dac + last_write_checksum: sha1:c7481c3a3f1eabb0ad8623364d9f8ef212009d81 + pristine_git_object: 200a73fd09d4159f272a5199378c6a3d0e245f35 src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapVerificationError.java: id: ba86839a238c last_write_checksum: sha1:be02f55548e47259fa255d0eeb83de891f5f24f7 @@ -6426,12 +6706,12 @@ trackedFiles: pristine_git_object: 6cba6d6956ec1c1488aab1c200e30e3a61ef505e src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java: id: ff19d8840156 - last_write_checksum: sha1:a3d441b252f72dad40851d0624aa5ed2130d1a23 - pristine_git_object: fe814f55ac2de3bf13544bd3ec3ec033e42f4076 + last_write_checksum: sha1:d1b65b19a8ea3dfe0a81c3cbe9bf7e22e7986d6e + pristine_git_object: 1ac45de6cfc0702d5f62c339e8a989d79248c2d7 src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java: id: 9f9743f60dab - last_write_checksum: sha1:ad7d435d33d674db46c5d7483842535ccd26efc4 - pristine_git_object: be604a96211de956c8b3b4f8abe383505f45151c + last_write_checksum: sha1:e00b930d1a7d25600474c07dcbffe6cfa768df81 + pristine_git_object: 9896ddaefd161801081be81866cb345cc3abe832 src/main/java/com/clerk/backend_api/models/components/VerificationOauthVerificationEnterpriseAccountError.java: id: 3d16745840b2 last_write_checksum: sha1:66272acce02a67f1bd220cc8f229240c47d2aa8a @@ -6502,8 +6782,8 @@ trackedFiles: pristine_git_object: 792ac449336f4d42fab378cafc0750109e7b3eac src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java: id: 2ce7f73cbe37 - last_write_checksum: sha1:cc46d2863d750ac7c44970eecbe2fbd985a316d5 - pristine_git_object: c56001626462da922925938813ef913c4a8a9e5c + last_write_checksum: sha1:1870eed22a9e3ddf1c8e1103f3c06c19aa0cee7a + pristine_git_object: c53120651cbaca609a1c55c63ebe075985cb0bca src/main/java/com/clerk/backend_api/models/components/VerificationSAMLVerificationEmailAddressSAML.java: id: 32532625dbb9 last_write_checksum: sha1:1a985cd61d5c2b9dce10011844ea7382b64e6470 @@ -6530,12 +6810,12 @@ trackedFiles: pristine_git_object: 8e5f07cd7c5ce8f263a0a4e39db2a523887a53ef src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java: id: 895f787d2923 - last_write_checksum: sha1:4bf510284b2d71fe5b5743e1797a9770760e21d6 - pristine_git_object: ad3a531433c7b79baf594f1dfccecd3e8609df4a + last_write_checksum: sha1:a378ad8af492eac66eb934a10c6923bebff11521 + pristine_git_object: 37d962347403fb2e2c408f3669e5176e7d985aaf src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java: id: 7c75291348fe - last_write_checksum: sha1:606436b5a3de30843ffad8fd04be39b1460bbdb0 - pristine_git_object: 04484d5c09f1b8ea29f6f76b766d9d993a2d71fd + last_write_checksum: sha1:5096e1fab9a8b46429af465f40ee9b10e78ecc1d + pristine_git_object: 8b4fba883517804568327717d2f5f84e7c314a20 src/main/java/com/clerk/backend_api/models/components/VerificationSamlVerificationEnterpriseAccountError.java: id: 255db8445a50 last_write_checksum: sha1:1916a40f2e5888a4bf05920ea76118669e170132 @@ -6710,8 +6990,8 @@ trackedFiles: pristine_git_object: 67a329b27851b3974741a9c0fe1ac00f2519ccab src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java: id: 2def47eec248 - last_write_checksum: sha1:d07ecc5d63e55898c7058772011cc226c6527985 - pristine_git_object: 89eeb7f55c77785f0cd4e2811c99400b2b0cd355 + last_write_checksum: sha1:0182e37f773c4204a3ac725d7d22d70a387fa7e2 + pristine_git_object: ea75353ae9d02fa015938f977736f4831ae9457e src/main/java/com/clerk/backend_api/models/errors/CreateAPIKeyAPIKeysErrors.java: id: 80e3e5525201 last_write_checksum: sha1:8e3f5b2cf40032c7d2e881c585f563669890cf6a @@ -6864,10 +7144,6 @@ trackedFiles: id: b27ee499780c last_write_checksum: sha1:a1c39121633cded859ce409a6ad4c0e0dad06903 pristine_git_object: 8b4d88a230094765e640f7e12e1a3db880688f09 - src/main/java/com/clerk/backend_api/models/errors/Meta.java: - id: 4e29b42bb82c - last_write_checksum: sha1:c8a6ec446328929279f645a3be103ef1bab852d8 - pristine_git_object: 113d04e52d254e722e81097dcc6bf22455518fef src/main/java/com/clerk/backend_api/models/errors/RevokeAPIKeyAPIKeysErrors.java: id: 5fa7e9f691f8 last_write_checksum: sha1:e4d361832f51ff449914583c60cacb9c7b99f9d6 @@ -7282,8 +7558,8 @@ trackedFiles: pristine_git_object: be48dfb7361c857cdbd1b08596d877506343b77e src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBody.java: id: 6091930d63d3 - last_write_checksum: sha1:453fee47c3c0ad43786590519fcd0186b364b3a4 - pristine_git_object: d9caf8d75fcd6b98cf91285ec72e6e06f5c5618b + last_write_checksum: sha1:c1fb3a98b0c8aea2a9286bdfa7f96e2bc67ba25b + pristine_git_object: 3d3012b78c18638b457c2541287579a22024ee76 src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBuilder.java: id: 2c810a75cb31 last_write_checksum: sha1:e8c17065d7fe173cf78e15fcf1fa4209b13af744 @@ -7296,6 +7572,14 @@ trackedFiles: id: a8ea4e3f7139 last_write_checksum: sha1:efbb5d1fa6b89a2802e2ecc6610e880396d50548 pristine_git_object: f975289bcd9e79adf95a37d81de556fd1e1433f6 + src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionLoginHint.java: + id: 4eb4439103c0 + last_write_checksum: sha1:4a94b090c905ca60a4ceb54f071b9e0db14822a2 + pristine_git_object: 6beb5b0d9489dd1ca6ce11f57f0bc252af6fa6ab + src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionMode.java: + id: 1ecf0d31a660 + last_write_checksum: sha1:cc304234ad99a37510fd8cab78f929d69b33a455 + pristine_git_object: 1ef6532182b0fc9700957b751958854d1e47639c src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionRequestBody.java: id: f072bc25b93f last_write_checksum: sha1:5b8a1409a0c52924d6cc42de7e99527c75920941 @@ -7410,8 +7694,8 @@ trackedFiles: pristine_git_object: bfbcb282e97a18cf6f778487ebc3a612d8c0866d src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java: id: 20f05406b667 - last_write_checksum: sha1:654633f3d704500645ebf42788021e53b29e9903 - pristine_git_object: 6aa5ab2f702477243e492f4c70d64d07269df644 + last_write_checksum: sha1:f71f1e5689cd204f42da3420be43b8002552be1c + pristine_git_object: 30b071a35fa285503bef017bf591847d3fb48be8 src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBuilder.java: id: 3142f2dfb41b last_write_checksum: sha1:eea207283d9b4084ec44fde3716bd61d170f78fd @@ -7548,6 +7832,14 @@ trackedFiles: id: 8aba56621486 last_write_checksum: sha1:31590a4a856fb3e1293a9383ae91ae1b8a85a3ab pristine_git_object: e42808fdae0c3705ba6cea35a43151c7bd35893c + src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyLoginHint.java: + id: 3e8fd2bb989c + last_write_checksum: sha1:e5868821d1e4779357423c8fcd76280575da7b41 + pristine_git_object: c25bd04462ab1a182ecfc5bac47eaad98b09b39b + src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyMode.java: + id: 93e0d5e7fb44 + last_write_checksum: sha1:9a6b90953cbd48b4fb78100537fc4f10c72062ac + pristine_git_object: da00b1ec0a602680ba343876514ad618ac1cb758 src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyProvider.java: id: 5c64241517b2 last_write_checksum: sha1:e7a87aac8d9ad3103bfdc63ea175acf468535126 @@ -7560,6 +7852,34 @@ trackedFiles: id: c18b79105609 last_write_checksum: sha1:80538f5fca5ef4fa48882e78cfa86305a1bb8859 pristine_git_object: 26b4735a10850d7f126da8169bba793e47677f70 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java: + id: 927aa3de289f + last_write_checksum: sha1:b78179c9e8245f9b4054f0519048378ad725cd47 + pristine_git_object: 4ee9aa5fed5309d2d83f5a9d957576a53f6e2f3e + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java: + id: 47fe861e138c + last_write_checksum: sha1:b94b365257b4714d00d88ffd64ca07c700c731e9 + pristine_git_object: 6409e9a39a9eb04406edb64359afb92487f1f7eb + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java: + id: 6ba6af85d1db + last_write_checksum: sha1:1804a2e70a1b981bcd73408ec23d4b655d7d5e8d + pristine_git_object: 89eaf58801a6099338ae9b148894ad22bd0dc122 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java: + id: 1b00b9d59424 + last_write_checksum: sha1:90e576c8ed938b685a1ffd568410347f540785b2 + pristine_git_object: 73afa2a07107bfc6c351b7c75e442be9e1bbe79e + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java: + id: 666cc928c726 + last_write_checksum: sha1:768d7e67aa8fff8d120b35d4abd00ca8ed29343d + pristine_git_object: 101781d77ea573e27aa9f44a674604ce7ee893ee + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java: + id: 3e8b806ae0a0 + last_write_checksum: sha1:254f4464cc6435131b3425e787a3f0c1779d611a + pristine_git_object: eb9e6b828e445029bbd3f814261b1431f12cbb47 + src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java: + id: 61ba5ca0ee1b + last_write_checksum: sha1:cdb3c63c95d38af7dbaedd38baf0bd28d18fedf8 + pristine_git_object: 7fd56f3317c8d6f725db9567abf9b6925491a96b src/main/java/com/clerk/backend_api/models/operations/CreateSessionRequestBody.java: id: 19d364357585 last_write_checksum: sha1:4e8665a9587737be6be9f93a68edfcde93c327bb @@ -7618,8 +7938,8 @@ trackedFiles: pristine_git_object: a99b5a4667afb0cb1ed0bf3969b637c5c4c02da3 src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBody.java: id: c96bd47fb7cf - last_write_checksum: sha1:60fbc592a97c0a4b476f004182ac0a09e0b64a2d - pristine_git_object: 249a33d5556d6be99db3cea591a4b8751b26737b + last_write_checksum: sha1:6d304db8e3d29364f65d179c44b76e622e6254d9 + pristine_git_object: 67686699653d13f421871ea5e1151c551b47da75 src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBuilder.java: id: 0494fedb5ffd last_write_checksum: sha1:a8f67ef7564b7a94b52bf03f5e00ad675329e378 @@ -7940,6 +8260,30 @@ trackedFiles: id: 160035ffad08 last_write_checksum: sha1:feebad0bc74049be07fca912a770e3cf9356db05 pristine_git_object: aa3297ad5191130cf5893cee88dd9e704a9721b8 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java: + id: 706eb3b38129 + last_write_checksum: sha1:4be9f30ca16de03b43afeb7313c12262823f4739 + pristine_git_object: 0d9744cc17f7d8c32d726978920f2f912580a188 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java: + id: bd8176f65051 + last_write_checksum: sha1:a4593fb6dd51be362f9ecb616597766e5328b5d9 + pristine_git_object: 903c1f8c6fad903446c13a2693822ac650b77330 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java: + id: f6375be482f4 + last_write_checksum: sha1:eb18d8220908118c27be3984e5eb898ddf3bc640 + pristine_git_object: b4552e647e2fbd53356a0f6a5595940ed50af3c1 + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java: + id: 18f5b99a1ccc + last_write_checksum: sha1:69da9165a06b38fd82cf091521c5c7ede6fcbb53 + pristine_git_object: 3ff97fb42021f5a5d1a5c70840d2f5c126b8857b + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java: + id: ae5930e764f5 + last_write_checksum: sha1:4e458723bf1f4407bd1b71b37572e295e96e0409 + pristine_git_object: 4c983495b64922ac07c30c2161f45c7646a34d8b + src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java: + id: 9462d5cbae83 + last_write_checksum: sha1:c4bec5fb7c341f83dbffe997b57c1fad47fde327 + pristine_git_object: 7a5e174a785fce061528f01e28c0180cd7810bd4 src/main/java/com/clerk/backend_api/models/operations/DeleteSvixAppRequestBuilder.java: id: d14ed5b127b3 last_write_checksum: sha1:8728923dc0b47cd6619c65748eb968f33783c9f7 @@ -8022,8 +8366,8 @@ trackedFiles: pristine_git_object: 888d2936e4be3e6bdf5ee61a67204ee6bb59c6e2 src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java: id: df0169409318 - last_write_checksum: sha1:21ed4ebefa6d84ac1d50d9a5ced3e2aa8cf924ae - pristine_git_object: 7a7e9411a72dbd4c1cdc13af6ab5d3a05e7b07a0 + last_write_checksum: sha1:0303ffdfc7d1b40ba4ddc8fc19eb1d3603b0979c + pristine_git_object: 93d5a91b4d8c31a10e54006f1a5a23aa290da136 src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialRequest.java: id: a6b713ac73ae last_write_checksum: sha1:8bdef75ca0fcdbd46c42423448dd5c32f8c59501 @@ -8034,8 +8378,8 @@ trackedFiles: pristine_git_object: 57f07d783a3f5bdce6cafe2eeac488bc218e0087 src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java: id: 52d39dcd384c - last_write_checksum: sha1:efe7137bdf4cf348dfe67152bbcba888206ef545 - pristine_git_object: 75c97ccfcae42fadaaeb87cce9102cdad2ed5795 + last_write_checksum: sha1:2c9e6dfee21444b2e99ad38a96712a50d20ae621 + pristine_git_object: fcbf157c319e2b1e52f8bbcd9868949638e59ae9 src/main/java/com/clerk/backend_api/models/operations/File.java: id: 98483022839b last_write_checksum: sha1:654df3e2da8c3f2a9a912add35d87de801c32b7f @@ -8492,6 +8836,18 @@ trackedFiles: id: 0b074386f37c last_write_checksum: sha1:3de284b4bf2f64c546b2652c9792f833d80ced15 pristine_git_object: e77500090a35f7de01e24fd7f7d09f6a71fb4d6b + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java: + id: 9387d087de0d + last_write_checksum: sha1:b4e24bd9d4ded06be1be5b9835fea733734449ce + pristine_git_object: 9094480fcb8300b0fae7395c8e22ab199d61b744 + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java: + id: 551fa00394ab + last_write_checksum: sha1:3246b55b7755023b84699d187540cc3dd358317f + pristine_git_object: 79b835c689f80a32e3fbbf386b6509e09c048d69 + src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java: + id: dc94649273ff + last_write_checksum: sha1:7911f59da86c4029f0204fca8ce6a32a19b15e01 + pristine_git_object: d3d30f9044afe49db601af9c4788e8606d420099 src/main/java/com/clerk/backend_api/models/operations/GetSessionListRequest.java: id: acedfb00c1ef last_write_checksum: sha1:18d468b7636dc5823d7298cac48e6836452af6ea @@ -8612,10 +8968,14 @@ trackedFiles: id: b7a20b05bb7a last_write_checksum: sha1:b09df2c6197af3582645d0bdac9e6361ba64d3d3 pristine_git_object: 9be8e29a4ef75feed7e57d7d5193ac03833fe091 + src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java: + id: 02b0d82cea90 + last_write_checksum: sha1:1c63609825f3f8f84c322375ee020b58b1e12234 + pristine_git_object: 67bc2d3a64f2c3028ae5f7148ff3a468bcecc1ff src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java: id: c219651f34ad - last_write_checksum: sha1:7e9a37e72574f0b5cad7b4bb7ab77667702be3fc - pristine_git_object: 02caea4e529cfe61b3f2e015afda8282ad51cac0 + last_write_checksum: sha1:c665995728144347d2694ad6092c0e256fe4d54c + pristine_git_object: 34bfc69ae36f61b5ef545d9fff256a16b2991e0c src/main/java/com/clerk/backend_api/models/operations/IncludeInvalid.java: id: 7c75a6d68f21 last_write_checksum: sha1:61e4ed03f2bf9d1cfbeffe974f389be787560e1e @@ -8650,8 +9010,8 @@ trackedFiles: pristine_git_object: 7e5b6883796565cc0f7f5587c02aca3e0b9c91f5 src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java: id: 766b0fa94730 - last_write_checksum: sha1:141b04686d2bccee631bbeba64c045a0ec684a42 - pristine_git_object: 36a81d41c1a41fcd5c57be442f1b8858164c5e46 + last_write_checksum: sha1:e545221c6b2e5aa6298dd910ad028f38aba31021 + pristine_git_object: 513cf95fe1ad2105cc128526636df02f41bccda5 src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequestBuilder.java: id: 180c5b7afeeb last_write_checksum: sha1:f9b72627843174a747129977aad72865acce623e @@ -8786,8 +9146,8 @@ trackedFiles: pristine_git_object: 4d3d9166af5afe38945ff9f5b9e978a086d72da5 src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java: id: c1cc63148fe0 - last_write_checksum: sha1:2c4501e7da5464387de927e913a0fec89816d4e0 - pristine_git_object: 910052841771e621301fc1fc0f8cb49d774190cd + last_write_checksum: sha1:20a05448f884f4bd4da624f4ed0d5ab2fe592133 + pristine_git_object: 45a0e2538d99bc8716efec6f5fbb50538c3a6c20 src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequestBuilder.java: id: 0f60ed2139a3 last_write_checksum: sha1:86fa3300ea566596eaa2139223ffd16500a6ce39 @@ -8908,6 +9268,42 @@ trackedFiles: id: 417aa11436de last_write_checksum: sha1:dfa24b348da429cf7f1805f78fa03b9012c5b6c8 pristine_git_object: 4a05efb4b4fdd256937df6bb82a31dd5c9df639d + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java: + id: 7701f3b70c14 + last_write_checksum: sha1:3566db536ef6a452a30b2b78e3e268d2f8ec5a4d + pristine_git_object: 388614ecf49a7ab47e734d3c8a63dbc6e40f0edd + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java: + id: 1437f4fdbf86 + last_write_checksum: sha1:49e2331d6550d1c0c77dd218e934c2f88cdd3841 + pristine_git_object: b7bc05a87601cc2a948207a9dea5e7186bce38c2 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java: + id: 531ca5977822 + last_write_checksum: sha1:f014c21d955bc59e1c98aab8f011043dcdd639f0 + pristine_git_object: 7258b5fc6f380b4555b3b49dc6f3a2c02ad0d7a8 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java: + id: 3bba41ff6386 + last_write_checksum: sha1:341e09dff9326f2e2e962b9805f0372f05b92569 + pristine_git_object: 3a67ae55726e836d22f4a65ad1568efa7aca8f58 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java: + id: 4ef967041de8 + last_write_checksum: sha1:b68a11e8102c67b00cac53eef5d9aebb349d0ac6 + pristine_git_object: 74d10dac690de95621f10b106a5b9b789d7771c9 + src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java: + id: b76f98f5d86d + last_write_checksum: sha1:8ca139876dc8f703373c870afccc4caff3edf733 + pristine_git_object: 384f0ae9376e73b9cda88cf9906fd98168328a27 + src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequest.java: + id: a04dd3e5676d + last_write_checksum: sha1:0649a8748355c39b3d4f7ec5dc7d6d380a039641 + pristine_git_object: 06ac9a7fe083f2b84850a081bb3a717b2e3048f3 + src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequestBuilder.java: + id: ddb9f389c6f1 + last_write_checksum: sha1:6e89d4c19bc628694a327d4cb8d3dbdcd8684901 + pristine_git_object: eb3e37414ab8884578e52bc733aff866c2f637f8 + src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesResponse.java: + id: 8f02995947da + last_write_checksum: sha1:fccc77388dc8bd9bc835a5fe90a8f12a3fb8e248 + pristine_git_object: 7b31b6a9672f5cea03d0713b86f30fdb4041b459 src/main/java/com/clerk/backend_api/models/operations/ListWaitlistEntriesQueryParamStatus.java: id: 9903976fe99a last_write_checksum: sha1:20b926592adf932393c8abd813b406302ddf6757 @@ -8936,10 +9332,18 @@ trackedFiles: id: 87caf8852420 last_write_checksum: sha1:123983eb1968efd5458add707d5de9dd1e9959e7 pristine_git_object: 7e635c2d02a36dc2485e1554fe2c061533f8dc4f + src/main/java/com/clerk/backend_api/models/operations/LoginHint.java: + id: e526db9979c6 + last_write_checksum: sha1:ef7e5e47025e49e2e69cf163ee09115c77ef98b2 + pristine_git_object: 1e5d31053f83d117438b0277f7ae7a0603f31d1c src/main/java/com/clerk/backend_api/models/operations/M2mTokens.java: id: 5492e1984a32 last_write_checksum: sha1:6e4c80f86150c688908bc93d895ac277a13b3982 pristine_git_object: 646ac10c74bc0a631fcfbe1e1c8315d853b48435 + src/main/java/com/clerk/backend_api/models/operations/Mappings.java: + id: f05cd53a36b7 + last_write_checksum: sha1:bef3398f3b45fd1867d564a9bd5763bccb1b9013 + pristine_git_object: f58d9b9730717f1f79b0a4e6cc00c1567d9c0a5e src/main/java/com/clerk/backend_api/models/operations/MergeOrganizationMetadataRequest.java: id: 137e3a07daac last_write_checksum: sha1:59471a399bcfe20e514f94681956fc54687e2841 @@ -8956,6 +9360,10 @@ trackedFiles: id: deea7c290449 last_write_checksum: sha1:05ae668b4c9e51f224bd815033d2efaf21f2473c pristine_git_object: dc74a8c7889457265441cfba1288f4051e886cd2 + src/main/java/com/clerk/backend_api/models/operations/Mode.java: + id: 2574f279dc50 + last_write_checksum: sha1:1da1d2542ae450dcbbae34388c3b418562199537 + pristine_git_object: a178b95d9da44cb6191d74051374a424fcf72da7 src/main/java/com/clerk/backend_api/models/operations/Object.java: id: 49863d01685a last_write_checksum: sha1:c8c777820c698d3373693f96953f13ff4dc62769 @@ -8970,8 +9378,8 @@ trackedFiles: pristine_git_object: 9af24deb436dbf26ef1ebb0ac96469282b9746fa src/main/java/com/clerk/backend_api/models/operations/One.java: id: c5fb0cdd0e7e - last_write_checksum: sha1:0ce3e84475be30d2441b00ae47cc217c0dcaae29 - pristine_git_object: af385330b916707ac09aa83ef23c44735d61683e + last_write_checksum: sha1:1f3fc5bb41e69fda70f71ccc189a3d5327222ce8 + pristine_git_object: 6f8137fba034d17ba12e52a4fbc7b451d3f53e59 src/main/java/com/clerk/backend_api/models/operations/PathParamTemplateType.java: id: 20fdfdf68a07 last_write_checksum: sha1:0af836fa41c5a3e00f26f75771c51c9a7600a637 @@ -9088,6 +9496,22 @@ trackedFiles: id: 796f88359b4b last_write_checksum: sha1:bbe23193580a0edb3284bb026661ddc465eedb16 pristine_git_object: 7ad6f26378cfa9da4857e0d76366fcd80a0d42ba + src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequest.java: + id: 59d26271710a + last_write_checksum: sha1:d5c7f380fce0b6db4ee3262c148fc745c9aeb507 + pristine_git_object: c771c9ab54a268c3be947fc058e6d29c9f26fc0a + src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBody.java: + id: c57359b60a43 + last_write_checksum: sha1:3e825fed39268f88e0c7545d0c630782816fa03f + pristine_git_object: 7d2869cc02f5c35cb07faeca3927d69f4232833a + src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBuilder.java: + id: 75919cfe53fd + last_write_checksum: sha1:200947937f102aaa336dcb36de6ed7bf314874b0 + pristine_git_object: dd106e1b3e9386636485e54b28ec042389f8358c + src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordResponse.java: + id: c8ee3238aa00 + last_write_checksum: sha1:f98d327b8f1f48dd31ea25e99dc36bf5ffd67972 + pristine_git_object: 4bdef28af0f5c0ecd1d18489c1837164b2f294a1 src/main/java/com/clerk/backend_api/models/operations/ReplaceOrganizationMetadataRequest.java: id: b1e7bb8b518e last_write_checksum: sha1:da054a2eff1eab86ce755536c8c9c5e1f420fa40 @@ -9136,14 +9560,30 @@ trackedFiles: id: 00e2d44a953c last_write_checksum: sha1:1f5722be4ddbfb0f16ce2234833907089cdcd946 pristine_git_object: 06a62763a0677de94e07e97b8ede99191e04653e + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java: + id: 3175567f3286 + last_write_checksum: sha1:3a47f012439cd7dcbec5644524033a467485ded3 + pristine_git_object: 849532ade56d4b6d4505c635dfe9f7908651fe7e + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java: + id: d0c8716e51be + last_write_checksum: sha1:cfdaf5afcce137a50eb69c407947e22c3dbbb019 + pristine_git_object: 9c693b0c75cdb38f1f9e1966bd94d0ee44780171 + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java: + id: 26be8aae75ed + last_write_checksum: sha1:656e7171c05c8c61ed9f559954a1a81ddebe63c3 + pristine_git_object: b794d79ef198dcf0afae17fa18c0eff1785effe8 + src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java: + id: 3127de11bdbd + last_write_checksum: sha1:bb09d9d37c3976fc7835aa1bc72cf09db440595b + pristine_git_object: bdc05654917d4cb768c87c6e1074fe1550b60b1d src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequest.java: id: d15ff37beb42 last_write_checksum: sha1:f3fa3b4dcd927d3a9c31dec45b6f17901e667953 pristine_git_object: be32a0b0a3eb068092c80092a66389b969d6a7aa src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBody.java: id: b3049fca258d - last_write_checksum: sha1:53bc2356da4e856e384da0c70d017020033d06c7 - pristine_git_object: b05895e5432072e3e6b143fc0f55e02cb4e8ffbb + last_write_checksum: sha1:639885a69398a1c851ba23c77cd88b921338c658 + pristine_git_object: 4ed5ed92ba2335a9ca3963b9415e20647e4467bd src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBuilder.java: id: e04782c20015 last_write_checksum: sha1:550f2bd18e4d88dca8c77dbc9dba31ea0900f3f6 @@ -9170,16 +9610,16 @@ trackedFiles: pristine_git_object: 00653d00cb1129b37bb2127c6a06a35f0043749e src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberIdentificationStatus.java: id: 2916703e30fd - last_write_checksum: sha1:fa4b0a845a62e41076c1d8578c319a4e4f3760e7 - pristine_git_object: 7499affb769058b61d235ecf3e7ccd47777d1bc5 + last_write_checksum: sha1:7aecdb7fad26850da911d22a34903008b889b187 + pristine_git_object: e182d0a1127fd22ffca450b142862230e2416840 src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequest.java: id: d19dff7160fc last_write_checksum: sha1:4c5bb24b9e6fa881fae6495a0e6c89f7777715dc pristine_git_object: 3cd11d32af664b709683e21e33fee06645017d27 src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBody.java: id: a0f243f623b3 - last_write_checksum: sha1:8ec9484d26324f5626e83b1b380c1d30fb4d41db - pristine_git_object: 545de420773b11799411a4d9e544dd5dd38bbea1 + last_write_checksum: sha1:a551c11f08a645ae5947d6148dc65865c9861da0 + pristine_git_object: 96f7044cc25b3dca14776418e4961b20bcf1c7de src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBuilder.java: id: a5a892086072 last_write_checksum: sha1:1cae1141211367515723d3c6e7032663ca328fa1 @@ -9196,6 +9636,14 @@ trackedFiles: id: 88f506d7615f last_write_checksum: sha1:31087730a6ce8a6ecda16fbb496e434a375b0238 pristine_git_object: b3d3082cd4a99a45c8932f09482821ab175dc0d1 + src/main/java/com/clerk/backend_api/models/operations/RequestBodyLoginHint.java: + id: f412f6a223d1 + last_write_checksum: sha1:041409a0cf3a81218f88933994f82900b9e2cd4a + pristine_git_object: c9c81cae9e486b399e4ab3996784072ac6edbf2e + src/main/java/com/clerk/backend_api/models/operations/RequestBodyMode.java: + id: 7fbf728707d3 + last_write_checksum: sha1:99beaa6d7ef3804ac62792dcaec84816135de77f + pristine_git_object: 8bf05c51fbe74b5eb308d3190f123ca4d193adb5 src/main/java/com/clerk/backend_api/models/operations/RequestBodyProvider.java: id: 410aef85d754 last_write_checksum: sha1:df82f3052c40d664f03a1a0f4bdba84933769c58 @@ -9336,6 +9784,22 @@ trackedFiles: id: 68097cc003b9 last_write_checksum: sha1:c4d5984f3ab774a9cd0eb44ddcd5044a75b8f8aa pristine_git_object: 77f2ab228dab4237d60cb7fc2b4519b567a36046 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java: + id: "933664561669" + last_write_checksum: sha1:4b2e11151dc940ebb44cf65fe60c35efec5a6050 + pristine_git_object: 26dafd5b83096ac5f7f15f45de056ca0a3a2d535 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java: + id: 77d772087f70 + last_write_checksum: sha1:e4c43bf334d2ab6a529a22e0de75c121d0e062a6 + pristine_git_object: 8a0ebfa94c29e1e7ae089523c2065b686524c473 + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java: + id: e4692cdfdcab + last_write_checksum: sha1:d8190f9de97cef0433327931831647e9b81f4c2e + pristine_git_object: d7a25c470966bc9af7ae157cb9e8145f148627ab + src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java: + id: 26db6b42e42f + last_write_checksum: sha1:8a4f7e62258f1498ce7e79ae67a3cfc2f7d490ef + pristine_git_object: 8d26d7eda1e1540cdd94ddb22c1c9fa6b6c7706f src/main/java/com/clerk/backend_api/models/operations/RevokeOrganizationInvitationRequest.java: id: 1c182b196d96 last_write_checksum: sha1:121c6b1f5078bba69862234475a760bb61732964 @@ -9376,6 +9840,18 @@ trackedFiles: id: 6962bef54a91 last_write_checksum: sha1:92444e22f759334ac348c97877a5a9f96afecffc pristine_git_object: 7b8b2880af52da779487f580cf168fc06ce00452 + src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequest.java: + id: 4bc67fa8d02c + last_write_checksum: sha1:80672aeea3e5ac9544c2623924bf57a6a6924cee + pristine_git_object: 981631075e8fef1438cac31711eff8ecfd3af0f8 + src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequestBuilder.java: + id: c5cd52e48e35 + last_write_checksum: sha1:c90eee896fb1703c643c1cb6aa6c9ee28c6b3e50 + pristine_git_object: 9153b4e09472411ec4e831d71a9f2fe5b07416f3 + src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceResponse.java: + id: 032fa541bbee + last_write_checksum: sha1:e5f4eeef30e7485367e5b0635feb27f4a0104e95 + pristine_git_object: 961371060d2755bf3566b6aa0a5f2a1af283868d src/main/java/com/clerk/backend_api/models/operations/RotateMachineSecretKeyRequest.java: id: 34fc2a383d00 last_write_checksum: sha1:2668e2461143ca7f88751f3036fb73bc1d9d7982 @@ -9404,10 +9880,22 @@ trackedFiles: id: a482243e59ef last_write_checksum: sha1:1b74124164e8b7a8b58a3092034e05491f929201 pristine_git_object: 22b038dda3f23bda3ecff657e61197699739c63e + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java: + id: c1bd9d14a8c9 + last_write_checksum: sha1:1edd17b2d8b23d7f4c77c1421ea8ca04fd8bf27b + pristine_git_object: 981c7321bd0722a45c18f83fac6d00a97e217dde + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java: + id: eb14c612eeec + last_write_checksum: sha1:697a46c3a021f202a325df55eb1e6f513270e84f + pristine_git_object: 591d70b8293d48c4023be1d6507469f2d36ef7f4 + src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java: + id: d9cd9b2dc506 + last_write_checksum: sha1:aecd910efe82e6ed6974cfa6fe7d963e9f1fdb56 + pristine_git_object: 0dc887ac50b2856abef40d37d5fdb104cdb4e6e4 src/main/java/com/clerk/backend_api/models/operations/Saml.java: id: c607aedffd6d - last_write_checksum: sha1:c70c49a7a89e8c1320021bce183dd1f38326e43b - pristine_git_object: 98c1d02ede1b105f3102e998491d8c82c6d25569 + last_write_checksum: sha1:075aee94e0bb614aac92b4f5065bed9f138708c1 + pristine_git_object: 282025449be153868166c2cafde03e50ba583794 src/main/java/com/clerk/backend_api/models/operations/SetUserPasswordCompromisedRequest.java: id: "653826163e99" last_write_checksum: sha1:111d5e7a41a5376d14ec20e5b8e28d3d3c8000f8 @@ -9478,8 +9966,8 @@ trackedFiles: pristine_git_object: c687ec7361301d525966df452edf2b40be0cc509 src/main/java/com/clerk/backend_api/models/operations/Two.java: id: f202567f2b0f - last_write_checksum: sha1:1e2fa2a4f8d5957446b1eb24cd10bc74228392e6 - pristine_git_object: 6364f767fc0e391e1f0e0b6628b1cfbd67cb843f + last_write_checksum: sha1:e33a0b14a4b80a9dfd5d5ae0f0511751f376ea5d + pristine_git_object: bfb4f3519f1697146c793f25632fbb1e4dfbcb08 src/main/java/com/clerk/backend_api/models/operations/Type.java: id: 5e75db56a1d8 last_write_checksum: sha1:58b93246597737ce1cc3e5760081470a75694119 @@ -9566,8 +10054,8 @@ trackedFiles: pristine_git_object: f70be0f59745abbce2435a0b6e9ebf68c5abbb2e src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBody.java: id: 0b37e14c2650 - last_write_checksum: sha1:2ffc4b7560c187075bf46bef022e7287a0e05ddb - pristine_git_object: b89a51eb16cc8aa75a48f56d082831a16e0487bf + last_write_checksum: sha1:b732751201e0fbf0a663539143def3182e4d309b + pristine_git_object: c71056cdfd26277bc15fbc6713e090d281cd1dce src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBuilder.java: id: 248d7d3bef52 last_write_checksum: sha1:7a935489c2dac951ac524e9d265b699ab03a85ac @@ -9584,6 +10072,14 @@ trackedFiles: id: a57a0c26c677 last_write_checksum: sha1:0dcf0566c8afade82238b0c87b4e78a76de706f0 pristine_git_object: 1bc751389dee15d04ca5179e02d003fdbcf36cb7 + src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionLoginHint.java: + id: 408444d4088f + last_write_checksum: sha1:daa14c31865c0d339cde58201018eaa5b27d7e5e + pristine_git_object: 1dc29de3b6d30e143b4d88cc2a4c39b18c409244 + src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionMode.java: + id: 4d71bf8704c3 + last_write_checksum: sha1:6133e6b6fbedd287068c67ae79a1595c933a666c + pristine_git_object: 66a798fc57a4480a001b59f70eb98a65005b0045 src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionOidc.java: id: c738172f95b0 last_write_checksum: sha1:2ae22bee8d1d5b3add9162b12b464e6db96633b8 @@ -9606,8 +10102,8 @@ trackedFiles: pristine_git_object: a999f2db1ffc855f1bea263c71ab0488ca5a9182 src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionSaml.java: id: d511eaa9d897 - last_write_checksum: sha1:cf3b0ba2cd489fab801b8d4b2a83aee5ecd5fa8d - pristine_git_object: 21c78c96c948f95366b7fed94fa8626c7fd10ca1 + last_write_checksum: sha1:451ec843d18b79773688a291cf0f2ceea6ac10f4 + pristine_git_object: 92bd073af20b2da81cc3c7f1e6fa1a5633cf3e37 src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceAuthConfigRequestBody.java: id: 8b89cdacdc0f last_write_checksum: sha1:603cdbdcc9289e51e3cbe6d3cd320414703032fd @@ -9634,8 +10130,8 @@ trackedFiles: pristine_git_object: 5d0295d0a563908c4e8b18305b986ca6e15db446 src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.java: id: 0c961826415a - last_write_checksum: sha1:6ac105dc58ad681e31df044f22f2256773e969e0 - pristine_git_object: 21fca160e56022355a1bcf43463654fd72f7e336 + last_write_checksum: sha1:99190d6216984f287de64c7ed4b5c281b4f9842b + pristine_git_object: a924ea11d7211e2fe836b36851857c140d9ec14a src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBuilder.java: id: fb050bd009b9 last_write_checksum: sha1:0ad2374667b98ca41a2dc0e945acc3056df49727 @@ -9750,8 +10246,8 @@ trackedFiles: pristine_git_object: 0368ac7941a7e154a9f46e0cda505168f1afff98 src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java: id: 921916dfe6c7 - last_write_checksum: sha1:2d4f001f428b426b41193e866b1d756be50fd9be - pristine_git_object: 5b936d777eec2be77e2561d0c8726b7b5afb3989 + last_write_checksum: sha1:f7399edb182050aeacaa8d704567fc4096c58143 + pristine_git_object: abad25125e65acda25fa741204906b0bdc8da024 src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBuilder.java: id: c9818dc72b60 last_write_checksum: sha1:b4e984a81a443abbed8341295a43904aebe85e07 @@ -9894,8 +10390,8 @@ trackedFiles: pristine_git_object: 83d8c5355bbe4786c1407ea0c12819d8c97453b6 src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBody.java: id: bceab83d4780 - last_write_checksum: sha1:769043c5e4a39e11497f1cf7d2266b7e49bf4328 - pristine_git_object: bfd2f7c57d164d364f228daa439836f50bbc5d97 + last_write_checksum: sha1:44d82181bfba99fa01a732eaea8f5fc46dd913ad + pristine_git_object: 30f8c90b642044122591ba40ef8033bce814fb0c src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBuilder.java: id: 5cb21a6bd2a2 last_write_checksum: sha1:d7e1c17386826c77b6ad93c6b5ea28735045118e @@ -9904,6 +10400,22 @@ trackedFiles: id: 971f014abb9a last_write_checksum: sha1:11e04eb76315d54df5d79bd38a913d689996c0bc pristine_git_object: b0d85f7b59a812215172017c9a07ea3f0f8e6d56 + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java: + id: 2fecdea53c05 + last_write_checksum: sha1:3d874bb278a7967b4f57303dc682764eee4ad026 + pristine_git_object: a044062bf3d5f893fa22ae1e47157fd204d28e7b + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java: + id: 008e0cc8f703 + last_write_checksum: sha1:4a1e7f413f61b830b21ed55a14d7ced8ba3914d0 + pristine_git_object: 431e3243aec1188301ea84c3ec47e6b17cf11512 + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java: + id: 56e009d2d255 + last_write_checksum: sha1:9a061b18e8e449c7780a44a1317065ecbf28b3f2 + pristine_git_object: e40c6b6eae8317a3d4afc04533affe6f57b8057b + src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java: + id: 38815e34be5d + last_write_checksum: sha1:1fe9fc4dc5a2704a1f8b96037df55747a2d0ca72 + pristine_git_object: 34fe6ab599d6696b16486574c25097bed5a975d8 src/main/java/com/clerk/backend_api/models/operations/UpdateSignUpRequest.java: id: 9f014705982e last_write_checksum: sha1:e156058e8b0f098c6ea30ad3f8d6e349634b0d37 @@ -10380,6 +10892,14 @@ trackedFiles: id: 4edb673c888a last_write_checksum: sha1:beb5c82a48a32e3d5c5b1b9deb2352dc65c6276a pristine_git_object: 1bab7eee553ad914096c00a83eeb7751d385cb1f + src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java: + id: e8806044427d + last_write_checksum: sha1:f82518434073c4f2ab9234e0635314a12bf131de + pristine_git_object: 1e230c10ef0ae08b14d2b0cd028a23f300359310 + src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java: + id: 181ddc32d5ae + last_write_checksum: sha1:1c862f2c561e201f98df6985d9f1f74d94fd0d29 + pristine_git_object: 6e851b42a0b92d1e41cb0f81f1f313053e5380eb src/main/java/com/clerk/backend_api/operations/CreateSession.java: id: f4ad9d6266da last_write_checksum: sha1:8009aa44276bc0ffa5919e5665f1140d9c8e214d @@ -10394,8 +10914,8 @@ trackedFiles: pristine_git_object: 6ec94ff1689b2a83813ceced8085c5be688ac582 src/main/java/com/clerk/backend_api/operations/CreateSignInToken.java: id: 4311b2fab4ee - last_write_checksum: sha1:26c34f1e86b722c79319e5194eb7f2fa0e1e7c5a - pristine_git_object: 479c8a39038e92d64e7b3eb6e9a8831ede2a2586 + last_write_checksum: sha1:44d6726c26647ab1523ff3f5f9d01de58959b4de + pristine_git_object: 10c18f013cb9ce1b0fc378cf81b00dfdfdd52d65 src/main/java/com/clerk/backend_api/operations/CreateSvixApp.java: id: e6b4db67d05a last_write_checksum: sha1:e63e58f0b8ee73a08fe9ec1ba9dce623d3b01e26 @@ -10466,8 +10986,8 @@ trackedFiles: pristine_git_object: cc73303b84aae5603c85b22845b7fd9eb54d1c1d src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java: id: cb005feb55bd - last_write_checksum: sha1:fe69a88efe0336b7f7e5ebfb000cf3f5cbbff682 - pristine_git_object: d6a129634a0046f0a5e1bc43f3fc7c512b6a75fa + last_write_checksum: sha1:0835d6e9db4bfc1de9ac7d207bfa5d45ed2946fa + pristine_git_object: 0417b0a3d8d3fb75f90e6e296450a2a51f2a3fb3 src/main/java/com/clerk/backend_api/operations/DeleteOrganizationLogo.java: id: 2f32d2392f43 last_write_checksum: sha1:18fb2396d6ca8527054f3fa3398f70302d41d8c9 @@ -10496,6 +11016,14 @@ trackedFiles: id: 479eec9a300a last_write_checksum: sha1:a2f167433a034006ead71f8ed1522b1eb11e9669 pristine_git_object: 5e88829ba0362da5adb013e44e278c88894d60a3 + src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java: + id: 48f23e186924 + last_write_checksum: sha1:0ad6735cad2a2ca23c77e5536808c650e4ca6500 + pristine_git_object: a22ad6932aec8ba00ee20180af0a0f0e39ab4fb3 + src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java: + id: 4abfe5f1e49e + last_write_checksum: sha1:d080762920f5cfa181be93c12eb7c028a1e47c1a + pristine_git_object: b50358a905878169e24a170cf76194bea2e02eef src/main/java/com/clerk/backend_api/operations/DeleteSvixApp.java: id: 39e1094f42e3 last_write_checksum: sha1:a068d3dfbc5c3421c56a174b532718c0b205981f @@ -10522,8 +11050,8 @@ trackedFiles: pristine_git_object: 9db0b2d5909e5492080f4d980fa8a20704cb0515 src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java: id: 8a22492c67db - last_write_checksum: sha1:0918b0b10f2cc29fa0cf057e5da58da07b31e985 - pristine_git_object: 947776c61f8d3ecc0332c9d30b73e8f70e385350 + last_write_checksum: sha1:cceb3efff4be8e8828274d7314af63078ff17aaa + pristine_git_object: 8a88c4c874d94aa310f24e17e087ddeea182c23b src/main/java/com/clerk/backend_api/operations/GenerateSvixAuthURL.java: id: 606af8560231 last_write_checksum: sha1:a8192ce7808a56cac1da00bd0e6ac46c31b88505 @@ -10672,6 +11200,10 @@ trackedFiles: id: e8313f92d7be last_write_checksum: sha1:bf14568cee6b60b4bae7b33aacdedbe97222a45a pristine_git_object: 254e1f646f7d4588851088adbfa439c4101c6352 + src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java: + id: 70298e0fea8b + last_write_checksum: sha1:393df047e2b9cb25606365750ac0d00d1dfd1bdb + pristine_git_object: 1c333f42a0f7697a343fa9d0547421648b99a804 src/main/java/com/clerk/backend_api/operations/GetSession.java: id: 6e6a44effefb last_write_checksum: sha1:932e3ba2c91f1e341aad1ab9987d33a2550933a7 @@ -10804,6 +11336,18 @@ trackedFiles: id: 91cf652e2cce last_write_checksum: sha1:0bb949a4de68c98a2dd1d00b90b151ba1dafe2f5 pristine_git_object: a5b6e8b33ca9618f9d3a951a0426a5e088294365 + src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java: + id: 1df3efe156a3 + last_write_checksum: sha1:cb6a11123e2673d965eab032d1214eb32583b0d3 + pristine_git_object: 3d59fa4655e5c13b309c25d9b55dce4bebd81ecc + src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java: + id: 45402baebe43 + last_write_checksum: sha1:7e674714c3116f4c354297e52fefad6198378beb + pristine_git_object: 9006db3c28c07ba7002f0ce0e1aa9f450521d648 + src/main/java/com/clerk/backend_api/operations/ListUserTrustedDevices.java: + id: 0729f23067f1 + last_write_checksum: sha1:baf133a834be30d6ede759b96963380c754c4171 + pristine_git_object: 881d7fc0d076e9c8a02a6103d629d65526d6e1c2 src/main/java/com/clerk/backend_api/operations/ListWaitlistEntries.java: id: a7c7ab1432a0 last_write_checksum: sha1:e27f7f93941224f3e22c6af70f85557a1be16d6e @@ -10844,6 +11388,10 @@ trackedFiles: id: 34d78fc010eb last_write_checksum: sha1:e7734248cb239386bb143408d1351d3614286808 pristine_git_object: bd39917d4252da04c2fbb11a37eebbf515fc3683 + src/main/java/com/clerk/backend_api/operations/RemoveUserPassword.java: + id: b0eb4619a91a + last_write_checksum: sha1:eded8c299db30e5a49ba4f20f230c3cdca6b95b2 + pristine_git_object: 1d79de25b768854dacaafa31eb903a0b721feff7 src/main/java/com/clerk/backend_api/operations/ReplaceOrganizationMetadata.java: id: d66bfff5ef93 last_write_checksum: sha1:4f4b6dc723b367d9c42ef1ebb0df37fe4ff5572b @@ -10856,6 +11404,10 @@ trackedFiles: id: 4685d3d93913 last_write_checksum: sha1:577250c9adace1d94a74d33c78833bf18e06f762 pristine_git_object: a83ee7da1eae47c4dba174f374e402f65308101a + src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java: + id: 3d330cd270be + last_write_checksum: sha1:f498c02977b92e95027d2374ac65c25955e15c13 + pristine_git_object: 1222e2edc87da6ce1d9259e60cb17edd6a354639 src/main/java/com/clerk/backend_api/operations/ReplaceUserEmailAddress.java: id: 21f44ab1e3c7 last_write_checksum: sha1:4eded30429b55626ac5da0aca8aad3a02b957d0b @@ -10896,6 +11448,10 @@ trackedFiles: id: "065062335344" last_write_checksum: sha1:b8288521546da8bf7e7313fad483564d7d1cfe2f pristine_git_object: 72fb6d1a0cb0ba6a422643ece882688bcf5b86ac + src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java: + id: 8e2e2e2c23ff + last_write_checksum: sha1:53fe1026ff1656e8899743a481d61cec78143177 + pristine_git_object: 2b815f1f8669a34de5a815ca3fe58316541b42a7 src/main/java/com/clerk/backend_api/operations/RevokeOrganizationInvitation.java: id: e2460f45e3a7 last_write_checksum: sha1:d5536ebad6f4a357f4a30c63224eaff36ac4de5d @@ -10908,6 +11464,10 @@ trackedFiles: id: 9fdbfbe89f55 last_write_checksum: sha1:eaea11ba713d69cbee6532863ead145bf6be2186 pristine_git_object: 35706bbe496c2527e79c602bd87d24c642d79066 + src/main/java/com/clerk/backend_api/operations/RevokeUserTrustedDevice.java: + id: 416f8932aece + last_write_checksum: sha1:92d1ce5d1bdcd9ef1521feac00618f8544df3618 + pristine_git_object: 6b030a17de09ba0928b9163a4f85a310569119e6 src/main/java/com/clerk/backend_api/operations/RotateMachineSecretKey.java: id: bdc89baefe14 last_write_checksum: sha1:54661c8c911f04657e2fd084c9587999608c1a4b @@ -10916,6 +11476,10 @@ trackedFiles: id: a47ec79458f3 last_write_checksum: sha1:139cafae157f73effecf43600b53e0c0bce1e1cf pristine_git_object: 72edc264e6c354f0c6cc34d2f90909c3d4e3e146 + src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java: + id: 7fcf6e174293 + last_write_checksum: sha1:614e56e6684a2ac8d00f8f02eefca75643fe4af6 + pristine_git_object: de6e06b2b1af562f3bec313c881f1d1872699779 src/main/java/com/clerk/backend_api/operations/SetUserPasswordCompromised.java: id: ee1a563f1165 last_write_checksum: sha1:3cb8683c956a534d0a1b2165bfd881e97cd6ecb1 @@ -10926,8 +11490,8 @@ trackedFiles: pristine_git_object: 9d06ff1a72091c391c5794b5cc8b4dc34d084f9e src/main/java/com/clerk/backend_api/operations/ToggleTemplateDelivery.java: id: 8ba914952961 - last_write_checksum: sha1:78695a4f7df061807f24b9df7af63af896b21e52 - pristine_git_object: f3c6c9951f66a29314b1aa17cb49c58a22219d12 + last_write_checksum: sha1:4f5e89448e803319471fcd09268e2e1f6336d1f5 + pristine_git_object: c768750c1fdbf9558dd9088a7b75d2654b249803 src/main/java/com/clerk/backend_api/operations/UnbanUser.java: id: 1c2bc66c7dda last_write_checksum: sha1:597e98ed9a052ca90800508c80286064b253a32e @@ -11002,8 +11566,8 @@ trackedFiles: pristine_git_object: 96690699d482867f0764395dcb02631efb7072cf src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java: id: 530678453bb2 - last_write_checksum: sha1:35b5fdd3fd0afcbead65684d954f83d784edd19d - pristine_git_object: edc5e36ebdf6b2eab0c2e1f3c1bff3560fb3f4a6 + last_write_checksum: sha1:33f8134072aa6d955025e4e0fbb6eb533536885e + pristine_git_object: 787385b585106a51c49af578d2099d782f69d20b src/main/java/com/clerk/backend_api/operations/UpdateOrganizationMembership.java: id: 595486627b78 last_write_checksum: sha1:974e78fac5b4d6e0546480489f1ee2b17b9065b9 @@ -11036,6 +11600,10 @@ trackedFiles: id: 1f0aa6f8f36e last_write_checksum: sha1:40e231380667d3e63066366197ef202b218a703f pristine_git_object: 136c4d630c5b7049e513fca02390ad4341cf5017 + src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java: + id: 498185ea2a74 + last_write_checksum: sha1:bced5ffa4d6d1c2be74ca1acc2d13225218ab2ee + pristine_git_object: 9f938e9d470b39844238733aae8d650ec546315c src/main/java/com/clerk/backend_api/operations/UpdateSignUp.java: id: 991f1428a4c4 last_write_checksum: sha1:fd272bd8284f5159e5e868b188495ebb9f62fae3 @@ -11058,8 +11626,8 @@ trackedFiles: pristine_git_object: 4e95920237149fae6614bee7e0e1beb706e647b3 src/main/java/com/clerk/backend_api/operations/UpsertTemplate.java: id: 3dff60c75c70 - last_write_checksum: sha1:62b54d2ffceb6fa1911e0c7dfb2c5d79dae7b5e8 - pristine_git_object: 3403c1ba6bedba06ba3c615189e993803fef6924 + last_write_checksum: sha1:3112f972dd6e8cd34ac335acf858ba98ca4189f0 + pristine_git_object: fa1b2f4d7a0dd74c006c70ce262933aae4fc0dd9 src/main/java/com/clerk/backend_api/operations/UserPasskeyDelete.java: id: caf0593eded2 last_write_checksum: sha1:888c6ae507d35ffd60238b680ea521f0e6be0d69 @@ -11222,8 +11790,8 @@ trackedFiles: pristine_git_object: 0a1c9ee4027e9b7404cde076d70119bf3302cb36 src/main/java/com/clerk/backend_api/utils/Multipart.java: id: 3a0d2a46fb71 - last_write_checksum: sha1:5ddc532763be5e66e167c521bd48d7c773d262fc - pristine_git_object: 9cc680c5b31451fd78e81f4d26708064b5d1d419 + last_write_checksum: sha1:528287641e464e12e9d334f70c37f8f06463fae2 + pristine_git_object: 2f4fe8c2ac828dc5ce941ab507a7ac15ed94894e src/main/java/com/clerk/backend_api/utils/MultipartFormMetadata.java: id: c0b1b5159460 last_write_checksum: sha1:c89b0f5b7cc5f97ae75a20ffea60416d9fc67e3b @@ -11286,8 +11854,8 @@ trackedFiles: pristine_git_object: 85b490f98af5019ac690e99666299603b5d5a162 src/main/java/com/clerk/backend_api/utils/Retries.java: id: c9baeabc6035 - last_write_checksum: sha1:b5199a84cbb6bbe0efa0b6d785df3385c092997b - pristine_git_object: 8a74b2e24a53e901136410e5c919a606d9665c08 + last_write_checksum: sha1:148e6046dfe36350a137f82498605691503c68bd + pristine_git_object: 6f35e37b68c2ea67184b3d5626b16aef420402fb src/main/java/com/clerk/backend_api/utils/RetryConfig.java: id: 2f5de881247e last_write_checksum: sha1:4aa076595bfb458d033b673310724c771351a51d @@ -11310,8 +11878,8 @@ trackedFiles: pristine_git_object: 1fea18c2f6d08a7b79e4b5e5ae9226182225dc4f src/main/java/com/clerk/backend_api/utils/SpeakeasyHTTPClient.java: id: 678948581fa8 - last_write_checksum: sha1:c157b2ab850ce0a18e8c1c3bd42196167bbf0af8 - pristine_git_object: 4f34a98e0b52eaae42e3a76f6128216c56cfb465 + last_write_checksum: sha1:d271829c706aa65e77e45cfc1a5fdaeb11f5d58e + pristine_git_object: bce0929f1652db1d88de09d997a98f701621430f src/main/java/com/clerk/backend_api/utils/SpeakeasyLogger.java: id: f2df135fc99d last_write_checksum: sha1:a270951046fc99d1ffc09c8c9cd70c9e649b6077 @@ -11322,8 +11890,8 @@ trackedFiles: pristine_git_object: 73ee16946f04977271657d3c494b54bb231ad07f src/main/java/com/clerk/backend_api/utils/StreamingParser.java: id: fa9472e645a6 - last_write_checksum: sha1:46888f1ddf691cce9adb2bbc409d38459f6bb155 - pristine_git_object: 6ee37f5c618627b995fe569bf17cfc169463ff8d + last_write_checksum: sha1:b789cf36243517a2215775f4a8ed2487d949ff50 + pristine_git_object: a941e3c401607e20b9a09f27f161ed3f19813e8e src/main/java/com/clerk/backend_api/utils/TypedObject.java: id: 70226547eb53 last_write_checksum: sha1:07d31379490553698ae8bd99d2bd7e1fc86f19e2 @@ -12521,6 +13089,8 @@ examples: application/json: {"object": "sign_in_token", "id": "", "status": "pending", "user_id": "", "created_at": 682178, "updated_at": 757356} "404": application/json: {"errors": []} + "403": + application/json: {"errors": []} RevokeSignInToken: speakeasy-default-revoke-sign-in-token: parameters: @@ -12629,7 +13199,7 @@ examples: speakeasy-default-create-SAML-connection: responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domains": ["", ""], "idp_entity_id": "", "idp_sso_url": "https://sleepy-onset.com", "idp_certificate": "", "acs_url": "https://electric-department.net/", "sp_entity_id": "", "sp_metadata_url": "https://ambitious-handover.name", "active": false, "provider": "", "user_count": 392413, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": false, "force_authn": false, "created_at": 660655, "updated_at": 853312} + application/json: {"object": "saml_connection", "id": "", "name": "", "domains": ["", ""], "idp_entity_id": "", "idp_sso_url": "https://sleepy-onset.com", "idp_certificate": "", "idp_certificate_issued_at": 316399, "idp_certificate_expires_at": 117921, "acs_url": "https://electric-department.net/", "sp_entity_id": "", "sp_metadata_url": "https://ambitious-handover.name", "active": false, "provider": "", "user_count": 392413, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": false, "force_authn": false, "login_hint": {"mode": "custom_attribute"}, "created_at": 660655, "updated_at": 853312} "402": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} GetSAMLConnection: @@ -12639,7 +13209,7 @@ examples: saml_connection_id: "" responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "blushing-hawk.biz", "idp_entity_id": "", "idp_sso_url": "https://dazzling-numeric.biz/", "idp_certificate": "", "acs_url": "https://hollow-harp.name/", "sp_entity_id": "", "sp_metadata_url": "https://unconscious-pine.net/", "active": false, "provider": "", "user_count": 583235, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": true, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": true, "created_at": 223312, "updated_at": 905550} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "blushing-hawk.biz", "idp_entity_id": "", "idp_sso_url": "https://dazzling-numeric.biz/", "idp_certificate": "", "idp_certificate_issued_at": 220400, "idp_certificate_expires_at": 301496, "acs_url": "https://hollow-harp.name/", "sp_entity_id": "", "sp_metadata_url": "https://unconscious-pine.net/", "active": false, "provider": "", "user_count": 583235, "sync_user_attributes": false, "allow_subdomains": true, "allow_idp_initiated": true, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": true, "login_hint": {"mode": "custom_attribute"}, "created_at": 223312, "updated_at": 905550} "402": application/json: {"errors": []} UpdateSAMLConnection: @@ -12651,7 +13221,7 @@ examples: application/json: {} responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inborn-turret.net", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": false, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "created_at": 423360, "updated_at": 825888} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inborn-turret.net", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "idp_certificate_issued_at": 760462, "idp_certificate_expires_at": 468954, "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": false, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "login_hint": {"mode": "email_address"}, "created_at": 423360, "updated_at": 825888} "402": application/json: {"errors": []} DeleteSAMLConnection: @@ -13309,12 +13879,12 @@ examples: speakeasy-default-get-instance-protect: responses: "200": - application/json: {"object": "instance_protect", "rules_enabled": true, "specter_enabled": true} + application/json: {"object": "instance_protect", "rules_enabled": true, "specter_enabled": true, "checks_bypassed": true} UpdateInstanceProtect: speakeasy-default-update-instance-protect: responses: "200": - application/json: {"object": "instance_protect", "rules_enabled": true, "specter_enabled": true} + application/json: {"object": "instance_protect", "rules_enabled": true, "specter_enabled": true, "checks_bypassed": true} "422": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} CreateBulkWaitlistEntries: @@ -13462,7 +14032,7 @@ examples: application/json: {"amount": 562473, "action": "decrease", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 372899, "currency": "Djibouti Franc", "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 562473, "amount_formatted": "", "currency": "Lilangeni", "currency_symbol": "₪"}, "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} "400": application/json: {"errors": []} "500": @@ -13471,12 +14041,12 @@ examples: speakeasy-default-get-instance-O-auth-application-settings: responses: "200": - application/json: {"object": "oauth_application_settings", "dynamic_oauth_client_registration": false, "oauth_jwt_access_tokens": false} + application/json: {"object": "oauth_application_settings", "dynamic_oauth_client_registration": false, "default_scopes": ["", ""], "oauth_jwt_access_tokens": false, "client_id_metadata_documents_advertised": false, "client_id_metadata_documents_only_allow_pre_registered_clients": false, "client_id_metadata_documents_block_implicitly_allowed_clients": true} UpdateInstanceOAuthApplicationSettings: speakeasy-default-update-instance-O-auth-application-settings: responses: "200": - application/json: {"object": "oauth_application_settings", "dynamic_oauth_client_registration": false, "oauth_jwt_access_tokens": false} + application/json: {"object": "oauth_application_settings", "dynamic_oauth_client_registration": false, "default_scopes": ["", "", ""], "oauth_jwt_access_tokens": false, "client_id_metadata_documents_advertised": false, "client_id_metadata_documents_only_allow_pre_registered_clients": true, "client_id_metadata_documents_block_implicitly_allowed_clients": false} "422": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} GetOrganizationBillingCreditBalance: @@ -13500,7 +14070,7 @@ examples: application/json: {"amount": 245081, "action": "increase", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 741420, "currency": "Hong Kong Dollar", "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 245081, "amount_formatted": "", "currency": "Pound Sterling", "currency_symbol": "₨"}, "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} "400": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} "500": @@ -13540,14 +14110,14 @@ examples: offset: 0 responses: "200": - application/json: {"data": [{"id": "", "name": "", "provider": "", "active": false, "domains": [""], "created_at": 240579, "updated_at": 395895}], "total_count": 730912} + application/json: {"data": [{"object": "enterprise_connection", "id": "", "name": "", "provider": "", "active": false, "domains": [""], "created_at": 240579, "updated_at": 395895}], "total_count": 730912} "402": application/json: {"errors": []} CreateEnterpriseConnection: speakeasy-default-create-enterprise-connection: responses: "201": - application/json: {"id": "", "name": "", "provider": "", "active": true, "domains": ["", ""], "created_at": 885509, "updated_at": 123882} + application/json: {"object": "enterprise_connection", "id": "", "name": "", "provider": "", "active": true, "domains": ["", ""], "created_at": 885509, "updated_at": 123882} "402": application/json: {"errors": []} GetEnterpriseConnection: @@ -13557,7 +14127,7 @@ examples: enterprise_connection_id: "" responses: "200": - application/json: {"id": "", "name": "", "provider": "", "active": true, "domains": ["", "", ""], "created_at": 815472, "updated_at": 13898} + application/json: {"object": "enterprise_connection", "id": "", "name": "", "provider": "", "active": true, "domains": ["", "", ""], "created_at": 815472, "updated_at": 13898} "402": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} UpdateEnterpriseConnection: @@ -13569,7 +14139,7 @@ examples: application/json: {} responses: "200": - application/json: {"id": "", "name": "", "provider": "", "active": false, "domains": [], "created_at": 266017, "updated_at": 675395} + application/json: {"object": "enterprise_connection", "id": "", "name": "", "provider": "", "active": false, "domains": [], "created_at": 266017, "updated_at": 675395} "400": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} DeleteEnterpriseConnection: @@ -13614,7 +14184,7 @@ examples: path: user_id: "" requestBody: - application/json: {"email_address": "Ines83@gmail.com", "identification_status": "verified"} + application/json: {"email_address": "Ines83@gmail.com", "identification_status": "verified", "notify_primary_email_address_changed": false} responses: "200": application/json: {"object": "email_address", "email_address": "Leda_Rippin-Schneider@hotmail.com", "reserved": true, "verification": {"object": "verification_saml", "status": "verified", "strategy": "saml", "attempts": 566515}, "linked_to": [{"type": "", "id": ""}], "created_at": 884737, "updated_at": 419267} @@ -13766,9 +14336,159 @@ examples: application/json: {"errors": [{"message": "some details about the error", "long_message": "some details about the error", "code": "some_error_code"}]} "404": application/json: {"errors": []} + RemoveUserPassword: + speakeasy-default-remove-user-password: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"id": "", "object": "user", "external_id": "", "primary_email_address_id": "", "primary_phone_number_id": "", "primary_web3_wallet_id": "", "username": "Ola.Kuhlman", "first_name": "Demetrius", "last_name": "Wiegand", "has_image": true, "public_metadata": {}, "email_addresses": [], "phone_numbers": [{"object": "phone_number", "phone_number": "227.996.7471 x97723", "reserved": false, "verification": null, "linked_to": [], "created_at": 933058, "updated_at": 141454}], "web3_wallets": [{"object": "web3_wallet", "web3_wallet": "", "verification": {"object": "verification_admin", "status": "verified", "strategy": "admin", "attempts": null, "expire_at": 527817}, "created_at": 838199, "updated_at": 691934}], "passkeys": [], "password_enabled": true, "two_factor_enabled": true, "totp_enabled": false, "backup_code_enabled": false, "mfa_enabled_at": 124671, "mfa_disabled_at": 847099, "external_accounts": [], "saml_accounts": [], "enterprise_accounts": [{"id": "", "object": "enterprise_account", "provider": "", "active": true, "email_address": "Vanessa_Kling-Dietrich@gmail.com", "verification": {"object": "verification_ticket", "status": "expired", "strategy": "ticket", "attempts": 474595, "expire_at": 312084}}], "last_sign_in_at": 387527, "banned": false, "locked": false, "lockout_expires_in_seconds": 880763, "verification_attempts_remaining": 250628, "updated_at": 855989, "created_at": 994927, "delete_self_enabled": false, "create_organization_enabled": false, "last_active_at": 1700690400000, "legal_accepted_at": 1700690400000, "bypass_client_trust": false} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + "500": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListUserTrustedDevices: + speakeasy-default-list-user-trusted-devices: + parameters: + path: + user_id: "" + responses: + "200": + application/json: {"data": [], "total_count": 583006} + "403": + application/json: {"errors": []} + "500": + application/json: {"errors": []} + RevokeUserTrustedDevice: + speakeasy-default-revoke-user-trusted-device: + parameters: + path: + user_id: "" + trusted_device_id: "" + responses: + "200": + application/json: {"object": "trusted_device", "id": "", "platform": "android", "app_identifier": "", "algorithm": "ES256", "status": "revoked", "created_at": 329261, "updated_at": 295607} + "403": + application/json: {"errors": []} + "500": + application/json: {"errors": []} + RevokeOAuthApplicationToken: + speakeasy-default-revoke-O-auth-application-token: + parameters: + path: + oauth_application_id: "" + requestBody: + application/json: {"token": ""} + responses: + "400": + application/json: {"errors": []} + ListSCIMDirectories: + speakeasy-default-list-SCIM-directories: + parameters: + query: + limit: 10 + offset: 0 + responses: + "200": + application/json: {"data": [], "total_count": 918911} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + CreateSCIMDirectory: + speakeasy-default-create-SCIM-directory: + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://impressive-edge.com", "provider": "", "enabled": true, "group_role_mapping_enabled": false, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 544088, "updated_at": 199872} + "400": + application/json: {"errors": []} + GetSCIMDirectory: + speakeasy-default-get-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://soft-bid.net/", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 576030, "updated_at": 886523} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + UpdateSCIMDirectory: + speakeasy-default-update-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://that-cornet.info", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {}, "created_at": 347329, "updated_at": 547962} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteSCIMDirectory: + speakeasy-default-delete-SCIM-directory: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "", "deleted": true} + "401": + application/json: {"errors": []} + RotateSCIMDirectoryAPIKey: + speakeasy-default-rotate-SCIM-directory-API-key: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"object": "scim_directory", "id": "", "name": "", "endpoint_url": "https://deep-palate.name", "provider": "", "enabled": false, "group_role_mapping_enabled": true, "attribute_mapping": {"key": "", "key1": "", "key2": ""}, "created_at": 802215, "updated_at": 738998} + "401": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + ListSCIMGroupRoleMappings: + speakeasy-default-list-SCIM-group-role-mappings: + parameters: + path: + scim_directory_id: "" + responses: + "200": + application/json: {"data": [{"object": "scim_group_role_mapping", "id": "", "scim_directory_id": "", "scim_group_id": "", "scim_group_display_name": "", "precedence": 444367, "created_at": 84318, "updated_at": 370083}], "total_count": 326127} + "401": + application/json: {"errors": []} + CreateSCIMGroupRoleMapping: + speakeasy-default-create-SCIM-group-role-mapping: + parameters: + path: + scim_directory_id: "" + requestBody: + application/json: {"scim_group_id": "", "role_id": ""} + responses: + "200": + application/json: {"object": "scim_group_role_mapping", "id": "", "scim_directory_id": "", "scim_group_id": "", "scim_group_display_name": "", "precedence": 722732, "created_at": 186067, "updated_at": 806389} + "400": + application/json: {"errors": []} + ReplaceSCIMGroupRoleMappings: + speakeasy-default-replace-SCIM-group-role-mappings: + parameters: + path: + scim_directory_id: "" + requestBody: + application/json: {"mappings": []} + responses: + "200": + application/json: {"data": [], "total_count": 158568} + "400": + application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} + DeleteSCIMGroupRoleMapping: + speakeasy-default-delete-SCIM-group-role-mapping: + parameters: + path: + scim_directory_id: "" + mapping_id: "" + responses: + "200": + application/json: {"object": "scim_group_role_mapping", "id": "", "deleted": true} + "400": + application/json: {"errors": []} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `clerk.organizationDomains.listAll()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `clerk.users.create()`: \n * `request` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n * `error.status[402]` **Added**\n* `clerk.users.setProfileImage()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.update()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.list()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.create()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.organizations.update()`: `requestBody` **Changed** (Breaking ⚠️)\n* `clerk.users.unsetPasswordCompromised()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.unlock()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.updateMetadata()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteProfileImage()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.setPasswordCompromised()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.lock()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkUnban()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkBan()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.users.unban()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.create()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.get()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.update()`: `response.verification` **Changed** (Breaking ⚠️)\n* `clerk.users.ban()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.update()`: \n * `requestBody` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `clerk.users.get()`: `response` **Changed** (Breaking ⚠️)\n* `clerk.users.list()`: `response.[]` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.attemptVerification()`: **Added**\n* `clerk.phoneNumbers.replaceForUser()`: **Added**\n* `clerk.phoneNumbers.get()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.phoneNumbers.create()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.adminPortalLinkTokens.revokeAdminPortalLinkToken()`: **Added**\n* `clerk.adminPortalLinkTokens.createAdminPortalLinkToken()`: **Added**\n* `clerk.enterpriseConnections.createTestRun()`: **Added**\n* `clerk.enterpriseConnections.listTestRuns()`: **Added**\n* `clerk.organizationDomains.verifyOwnership()`: **Added**\n* `clerk.billing.listSubscriptionItems()`: `response.data[]` **Changed**\n* `clerk.organizations.replaceMetadata()`: **Added**\n* `clerk.instanceSettings.getOrganizationSettings()`: **Added**\n* `clerk.users.getBillingSubscription()`: `response` **Changed**\n* `clerk.instanceSettings.updateCommunication()`: **Added**\n* `clerk.instanceSettings.getCommunication()`: **Added**\n* `clerk.instanceSettings.update()`: \n * `request.preferredSignInStrategyWhenPasswordRequired` **Added**\n* `clerk.instanceSettings.updateOrganizationSettings()`: `error.status[403]` **Added**\n* `clerk.users.replaceMetadata()`: **Added**\n* `clerk.organizations.getBillingSubscription()`: `response` **Changed**\n* `clerk.phoneNumbers.update()`: `response.verification.union(verification_otp).channel` **Added**\n* `clerk.phoneNumbers.attemptVerification()`: **Added**\n* `clerk.phoneNumbers.prepareVerification()`: **Added**\n* `clerk.emailAddresses.prepareVerification()`: **Added**\n* `clerk.samlConnections.create()`: `error.status[409]` **Added**\n* `clerk.samlConnections.update()`: `error.status[409]` **Added**\n* `clerk.enterpriseConnections.list()`: `response.data[]` **Changed**\n* `clerk.enterpriseConnections.create()`: \n * `request.customAttributes[].multiValued` **Added**\n * `response` **Changed**\n * `error.status[409]` **Added**\n* `clerk.enterpriseConnections.get()`: `response` **Changed**\n* `clerk.enterpriseConnections.update()`: \n * `requestBody.customAttributes[].multiValued` **Added**\n * `response` **Changed**\n* `clerk.billing.listPrices()`: `response.data[].supportedBillingPeriods` **Added**\n* `clerk.billing.createPrice()`: \n * `request.supportedBillingPeriods` **Added**\n * `response.supportedBillingPeriods` **Added**\n* `clerk.emailAddresses.replaceForUser()`: **Added**\n* `clerk.billing.cancelSubscriptionItem()`: `response` **Changed**\n* `clerk.billing.extendSubscriptionItemFreeTrial()`: `response` **Changed**\n* `clerk.billing.createPriceTransition()`: `response` **Changed**\n* `clerk.billing.listStatements()`: `response.data[].groups[].items[].totals.discounts` **Added**\n* `clerk.billing.getStatement()`: `response.groups[].items[].totals.discounts` **Added**\n* `clerk.billing.getStatementPaymentAttempts()`: `response.data[].totals.discounts` **Added**\n* `clerk.m2m.createToken()`: \n * `request.minRemainingTtlSeconds` **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `clerk.instanceSettings.getOrganizationSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOrganizationMemberships()`: \n * `response.data[].publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.create()`: \n * `request.notifyPrimaryEmailAddressChanged` **Added**\n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.get()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.replaceRole()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.addRoles()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.replace()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.roleSets.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.update()`: \n * `requestBody.notifyPrimaryEmailAddressChanged` **Added**\n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.prepareVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.attemptVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAddresses.replaceForUser()`: \n * `requestBody` **Changed**\n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateOAuthApplicationSettings()`: \n * `request` **Changed**\n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.prepareVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.attemptVerification()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.replaceForUser()`: \n * `requestBody.identificationStatus.enum(unverified)` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.refresh()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.createToken()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.sessions.createTokenFromTemplate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.revert()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailSmsTemplates.toggleTemplateDelivery()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.emailAndSmsTemplates.upsert()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.templates.preview()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.list()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.create()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.count()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.get()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.update()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.ban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkBan()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.bulkUnban()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.lock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unlock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.setProfileImage()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteProfileImage()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.updateMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.replaceMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getBillingSubscription()`: \n * `response.subscriptionItems[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getBillingCreditBalance()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.adjustBillingCreditBalance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOAuthAccessToken()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.changeDomain()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getOrganizationInvitations()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.verifyPassword()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.verifyTotp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.disableMfa()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteBackupCodes()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deletePasskey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteWeb3Wallet()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteTotp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.deleteExternalAccount()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.users.setPasswordCompromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.unsetPasswordCompromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.users.getInstanceOrganizationMemberships()`: \n * `response.data[].publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.invitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.getAll()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.listPending()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationInvitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.allowlistIdentifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.blocklistIdentifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.betaFeatures.updateInstanceSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.betaFeatures.updateProductionInstanceDomain()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.actorTokens.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.actorTokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.add()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.domains.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateRestrictions()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateCommunication()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationPermissions.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.getStatementPaymentAttempts()`: \n * `response.data[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.getStatement()`: \n * `response.groups[].items[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.phoneNumbers.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.clients.verify()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listStatements()`: \n * `response.data[].groups[].items[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateOrganizationSettings()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.createPriceTransition()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.instanceSettings.updateInstanceProtect()`: \n * `response.checksBypassed` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.webhooks.createSvixApp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.webhooks.deleteSvixApp()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.webhooks.generateSvixAuthUrl()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.jwtTemplates.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.getSecretKey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.rotateSecretKey()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.createScope()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.machines.deleteScope()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.mergeMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.replaceMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.uploadLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.deleteLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.getBillingSubscription()`: \n * `response.subscriptionItems[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.getBillingCreditBalance()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizations.adjustBillingCreditBalance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.assignPermission()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationRoles.removePermission()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.create()`: \n * `response.publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.list()`: \n * `response.data[].publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.update()`: \n * `response.publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.delete()`: \n * `response.publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationMemberships.updateMetadata()`: \n * `response.publicUserData.deprovisioned` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.create()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.list()`: \n * `response.data[].enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.update()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.verifyOwnership()`: \n * `response.enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.organizationDomains.listAll()`: \n * `request.enrollmentMode` **Changed**\n * `response.data[].enrollmentMode.enum(enterpriseSso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.proxyChecks.verify()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.redirectUrls.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signInTokens.create()`: \n * `request.orgId` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.signInTokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signUps.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.signUps.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.list()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.get()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.update()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.uploadLogo()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.oauthApplications.rotateSecret()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.list()`: \n * `response.data[]` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.create()`: \n * `request` **Changed**\n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.get()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.update()`: \n * `requestBody.loginHint` **Added**\n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.samlConnections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.list()`: \n * `response.data[]` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.create()`: \n * `request.saml.loginHint` **Added**\n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.get()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.update()`: \n * `requestBody.saml.loginHint` **Added**\n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.listTestRuns()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.enterpriseConnections.createTestRun()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.agentTasks.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.agentTasks.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.create()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.bulkCreate()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.delete()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.invite()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.waitlistEntries.reject()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listPlans()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listPrices()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.createPrice()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.listSubscriptionItems()`: \n * `response.data[].paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.cancelSubscriptionItem()`: \n * `response.paymentMethod.paymentType.enum(payerCredits)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `clerk.billing.extendSubscriptionItemFreeTrial()`: `error` **Changed** (Breaking ⚠️)\n* `clerk.scimDirectories.update()`: **Added**\n* `clerk.scimDirectories.delete()`: **Added**\n* `clerk.instanceSettings.getOAuthApplicationSettings()`: `response` **Changed**\n* `clerk.scimDirectories.deleteGroupRoleMapping()`: **Added**\n* `clerk.scimDirectories.replaceGroupRoleMappings()`: **Added**\n* `clerk.scimDirectories.createGroupRoleMapping()`: **Added**\n* `clerk.scimDirectories.listGroupRoleMappings()`: **Added**\n* `clerk.scimDirectories.rotateApiKey()`: **Added**\n* `clerk.scimDirectories.get()`: **Added**\n* `clerk.instanceSettings.getInstanceProtect()`: `response.checksBypassed` **Added**\n* `clerk.scimDirectories.create()`: **Added**\n* `clerk.scimDirectories.list()`: **Added**\n* `clerk.oauthApplications.revokeToken()`: **Added**\n* `clerk.users.revokeTrustedDevice()`: **Added**\n* `clerk.users.listTrustedDevices()`: **Added**\n* `clerk.users.removePassword()`: **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7d33f2ca..c6022aaf 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 5.0.0 + version: 5.1.0 additionalDependencies: [] additionalPlugins: [] artifactID: backend-api @@ -50,8 +50,10 @@ java: generateOptionalUnionAccessors: false generateSpringBootStarter: true generateUnionDocs: false + getterStyle: presence-aware githubURL: github.com/owner/repo groupID: com.clerk + httpClient: jdk imports: option: openapi paths: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f8022539..453414f5 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.777.0 +speakeasyVersion: 1.791.4 sources: clerk-java-sdk: sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717 - sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29 + sourceRevisionDigest: sha256:ea628d8ad8afceca9586dc216664091cd56e3ea3899deb84b9c8bb2c87aa347e + sourceBlobDigest: sha256:e2556ac3926af5c3653d92806b21463d99d7703835ec1a56b11befb310293926 tags: - latest - "2026-05-12" @@ -11,10 +11,10 @@ targets: clerk-java: source: clerk-java-sdk sourceNamespace: clerk-java-sdk - sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717 - sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29 + sourceRevisionDigest: sha256:ea628d8ad8afceca9586dc216664091cd56e3ea3899deb84b9c8bb2c87aa347e + sourceBlobDigest: sha256:e2556ac3926af5c3653d92806b21463d99d7703835ec1a56b11befb310293926 codeSamplesNamespace: clerk-java-sdk-code-samples - codeSamplesRevisionDigest: sha256:32607a6473b6c49509d6ece1b9e94b3a87ac3637e18aa700d8b08c90997c9cd9 + codeSamplesRevisionDigest: sha256:94a70d852572b152d53068c89148a5b8989175493b8bdda8dfb5ecfcacc2c9c7 my-first-target: source: clerk-java-sdk sourceNamespace: clerk-java-sdk diff --git a/README.md b/README.md index 6228c631..b6c31c29 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.clerk:backend-api:5.0.0' +implementation 'com.clerk:backend-api:5.1.0' ``` Maven: @@ -61,7 +61,7 @@ Maven: com.clerk backend-api - 5.0.0 + 5.1.0 ``` @@ -381,6 +381,7 @@ public class MachineAuthentication { * [delete](docs/sdks/oauthapplications/README.md#delete) - Delete an OAuth application * [uploadLogo](docs/sdks/oauthapplications/README.md#uploadlogo) - Upload a logo for the OAuth application * [rotateSecret](docs/sdks/oauthapplications/README.md#rotatesecret) - Rotate the client secret of the given OAuth application +* [revokeToken](docs/sdks/oauthapplications/README.md#revoketoken) - Revoke an OAuth application token ### [OrganizationDomains](docs/sdks/organizationdomains/README.md) @@ -481,6 +482,19 @@ public class MachineAuthentication { * [~~update~~](docs/sdks/samlconnections/README.md#update) - Update a SAML Connection :warning: **Deprecated** * [~~delete~~](docs/sdks/samlconnections/README.md#delete) - Delete a SAML Connection :warning: **Deprecated** +### [ScimDirectories](docs/sdks/scimdirectories/README.md) + +* [list](docs/sdks/scimdirectories/README.md#list) - List all SCIM directories +* [create](docs/sdks/scimdirectories/README.md#create) - Create a SCIM directory +* [get](docs/sdks/scimdirectories/README.md#get) - Retrieve a SCIM directory +* [update](docs/sdks/scimdirectories/README.md#update) - Update a SCIM directory +* [delete](docs/sdks/scimdirectories/README.md#delete) - Delete a SCIM directory +* [rotateApiKey](docs/sdks/scimdirectories/README.md#rotateapikey) - Rotate a SCIM directory's API key +* [listGroupRoleMappings](docs/sdks/scimdirectories/README.md#listgrouprolemappings) - List SCIM group role mappings +* [createGroupRoleMapping](docs/sdks/scimdirectories/README.md#creategrouprolemapping) - Create a SCIM group role mapping +* [replaceGroupRoleMappings](docs/sdks/scimdirectories/README.md#replacegrouprolemappings) - Replace SCIM group role mappings +* [deleteGroupRoleMapping](docs/sdks/scimdirectories/README.md#deletegrouprolemapping) - Delete a SCIM group role mapping + ### [Sessions](docs/sdks/sessions/README.md) * [list](docs/sdks/sessions/README.md#list) - List all sessions @@ -533,11 +547,14 @@ public class MachineAuthentication { * [getOAuthAccessToken](docs/sdks/users/README.md#getoauthaccesstoken) - Retrieve the OAuth access token of a user * [getOrganizationMemberships](docs/sdks/users/README.md#getorganizationmemberships) - Retrieve all memberships for a user * [getOrganizationInvitations](docs/sdks/users/README.md#getorganizationinvitations) - Retrieve all invitations for a user +* [removePassword](docs/sdks/users/README.md#removepassword) - Remove a user's password * [verifyPassword](docs/sdks/users/README.md#verifypassword) - Verify the password of a user * [verifyTotp](docs/sdks/users/README.md#verifytotp) - Verify a TOTP or backup code for a user * [disableMfa](docs/sdks/users/README.md#disablemfa) - Disable a user's MFA methods * [deleteBackupCodes](docs/sdks/users/README.md#deletebackupcodes) - Disable all user's Backup codes * [deletePasskey](docs/sdks/users/README.md#deletepasskey) - Delete a user passkey +* [listTrustedDevices](docs/sdks/users/README.md#listtrusteddevices) - List a user's trusted devices +* [revokeTrustedDevice](docs/sdks/users/README.md#revoketrusteddevice) - Revoke a user's trusted device * [deleteWeb3Wallet](docs/sdks/users/README.md#deleteweb3wallet) - Delete a user web3 wallet * [deleteTOTP](docs/sdks/users/README.md#deletetotp) - Delete all the user's TOTPs * [deleteExternalAccount](docs/sdks/users/README.md#deleteexternalaccount) - Delete External Account @@ -663,12 +680,14 @@ Handling errors in this SDK should largely match your expectations. All operatio package hello.world; import com.clerk.backend_api.Clerk; -import com.clerk.backend_api.models.errors.*; +import com.clerk.backend_api.models.errors.ClerkError; +import com.clerk.backend_api.models.errors.ClerkErrors; import com.clerk.backend_api.models.operations.VerifyClientResponse; import java.io.UncheckedIOException; import java.lang.Exception; -import java.util.List; -import java.util.Optional; +import java.lang.Object; +import java.lang.String; +import java.util.*; public class Application { @@ -705,7 +724,7 @@ public class Application { // Check error data fields e.data().ifPresent(payload -> { List errors = payload.errors(); - Optional meta = payload.meta(); + Optional> meta = payload.meta(); }); } @@ -736,41 +755,41 @@ public class Application { many more subclasses in the JDK platform). **Inherit from [`ClerkError`](./src/main/java/models/errors/ClerkError.java)**: -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeysResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* -* [`com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 223 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeysResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetApiKeySecretResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyApiKeyResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenResponseBody.java): 400 Bad Request. Status code `400`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseBody.java): 401 Unauthorized. Status code `401`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponseResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseBody.java): 403 Forbidden. Status code `403`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAdminPortalLinkTokenAdminPortalLinkTokensResponse404ResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeysAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.UpdateAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.DeleteAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetAPIKeySecretAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyAPIKeyAPIKeysResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.GetM2MTokensM2mResponseResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.RevokeM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyM2MTokenM2mResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.VerifyOAuthAccessTokenOauthAccessTokensResponseBody.java): 404 Not Found. Status code `404`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAdminPortalLinkTokenAdminPortalLinkTokensResponse409ResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateAPIKeyAPIKeysResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 237 methods.* +* [`com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody`](./src/main/java/models/errors/com.clerk.backend_api.models.errors.CreateM2MTokenM2mResponseBody.java): 409 Conflict. Status code `409`. Applicable to 1 of 237 methods.* diff --git a/RELEASES.md b/RELEASES.md index 13bcc368..189d168b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -428,4 +428,14 @@ Based on: ### Generated - [java v5.0.0] . ### Releases -- [Maven Central v5.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.0 - . \ No newline at end of file +- [Maven Central v5.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.0 - . + +## 2026-08-06 00:22:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.791.4 (2.926.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v5.1.0] . +### Releases +- [Maven Central v5.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.1.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 935a9133..934aec94 100644 --- a/build.gradle +++ b/build.gradle @@ -74,10 +74,10 @@ javadocJar { } dependencies { - api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2' + api 'com.fasterxml.jackson.core:jackson-annotations:2.22' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.1' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.0' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.0' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'commons-io:commons-io:2.18.0' implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0' diff --git a/docs/models/components/Algorithm.md b/docs/models/components/Algorithm.md new file mode 100644 index 00000000..d21bdd5a --- /dev/null +++ b/docs/models/components/Algorithm.md @@ -0,0 +1,16 @@ +# Algorithm + +## Example Usage + +```java +import com.clerk.backend_api.models.components.Algorithm; + +Algorithm value = Algorithm.ES256; +``` + + +## Values + +| Name | Value | +| ------- | ------- | +| `ES256` | ES256 | \ No newline at end of file diff --git a/docs/models/components/BillingPaymentAttemptTotals.md b/docs/models/components/BillingPaymentAttemptTotals.md index 4403221e..620623b2 100644 --- a/docs/models/components/BillingPaymentAttemptTotals.md +++ b/docs/models/components/BillingPaymentAttemptTotals.md @@ -11,6 +11,6 @@ Totals breakdown for this payment attempt. | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/BillingPaymentAttemptCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/BillingPaymentAttemptDiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/ClerkError.md b/docs/models/components/ClerkError.md index 1d4de3fe..287e0e33 100644 --- a/docs/models/components/ClerkError.md +++ b/docs/models/components/ClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md b/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md deleted file mode 100644 index e12e48d2..00000000 --- a/docs/models/components/ClerkErrorErrorEnterpriseAccountMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorEnterpriseAccountMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md b/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md deleted file mode 100644 index af28d7d0..00000000 --- a/docs/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorEnterpriseAccountVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md b/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md deleted file mode 100644 index 498e5975..00000000 --- a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorExternalAccountWithVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md b/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md deleted file mode 100644 index ef070e0d..00000000 --- a/docs/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorExternalAccountWithVerificationVerificationMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorMeta.md b/docs/models/components/ClerkErrorErrorMeta.md deleted file mode 100644 index e705a2f7..00000000 --- a/docs/models/components/ClerkErrorErrorMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md b/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md deleted file mode 100644 index 2fed9d86..00000000 --- a/docs/models/components/ClerkErrorErrorSAMLAccountMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorErrorSAMLAccountMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/CommerceCreditLedgerResponse.md b/docs/models/components/CommerceCreditLedgerResponse.md index 9d808794..eb0a2236 100644 --- a/docs/models/components/CommerceCreditLedgerResponse.md +++ b/docs/models/components/CommerceCreditLedgerResponse.md @@ -10,8 +10,7 @@ A credit ledger entry. | `object` | *String* | :heavy_check_mark: | String representing the object's type. Always "commerce_credit_ledger". | | `id` | *String* | :heavy_check_mark: | Unique identifier for the ledger entry. | | `payerId` | *String* | :heavy_check_mark: | The ID of the payer whose balance was adjusted. | -| `amount` | *long* | :heavy_check_mark: | The signed credit amount. Positive for increases, negative for decreases. | -| `currency` | *String* | :heavy_check_mark: | The currency code of the credit adjustment. | +| `amount` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `sourceType` | *String* | :heavy_check_mark: | The type of source that originated the adjustment (e.g. "grant"). | | `sourceId` | *String* | :heavy_check_mark: | The ID of the source that originated the adjustment. | | `note` | *JsonNullable\* | :heavy_minus_sign: | An optional note attached to the ledger entry. | diff --git a/docs/models/components/CommercePerUnitTotal2.md b/docs/models/components/CommercePerUnitTotal2.md new file mode 100644 index 00000000..1f11b89e --- /dev/null +++ b/docs/models/components/CommercePerUnitTotal2.md @@ -0,0 +1,10 @@ +# CommercePerUnitTotal2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `name` | *String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | +| `blockSize` | *long* | :heavy_check_mark: | Number of units included in each pricing block | +| `tiers` | List\<[CommercePerUnitTotalTier2](../../models/components/CommercePerUnitTotalTier2.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePerUnitTotalTier.md b/docs/models/components/CommercePerUnitTotalTier2.md similarity index 97% rename from docs/models/components/SchemasCommercePerUnitTotalTier.md rename to docs/models/components/CommercePerUnitTotalTier2.md index d22814a8..d04e5d5f 100644 --- a/docs/models/components/SchemasCommercePerUnitTotalTier.md +++ b/docs/models/components/CommercePerUnitTotalTier2.md @@ -1,4 +1,4 @@ -# SchemasCommercePerUnitTotalTier +# CommercePerUnitTotalTier2 ## Fields diff --git a/docs/models/components/CommercePlan2.md b/docs/models/components/CommercePlan2.md new file mode 100644 index 00000000..d7149594 --- /dev/null +++ b/docs/models/components/CommercePlan2.md @@ -0,0 +1,36 @@ +# CommercePlan2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `object` | [CommercePlan2Object](../../models/components/CommercePlan2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Optional\](../../models/components/CommercePlan2Fee.md) | :heavy_check_mark: | N/A | +| `annualMonthlyFee` | [Optional\](../../models/components/CommercePlan2AnnualMonthlyFee.md) | :heavy_check_mark: | N/A | +| `annualFee` | [Optional\](../../models/components/CommercePlan2AnnualFee.md) | :heavy_check_mark: | N/A | +| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | +| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | +| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | +| `features` | List\<[FeatureResponse2](../../models/components/FeatureResponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePlanFee.md b/docs/models/components/CommercePlan2AnnualFee.md similarity index 98% rename from docs/models/components/SchemasCommercePlanFee.md rename to docs/models/components/CommercePlan2AnnualFee.md index 9b61002c..7ae69305 100644 --- a/docs/models/components/SchemasCommercePlanFee.md +++ b/docs/models/components/CommercePlan2AnnualFee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanFee +# CommercePlan2AnnualFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemFee.md b/docs/models/components/CommercePlan2AnnualMonthlyFee.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemFee.md rename to docs/models/components/CommercePlan2AnnualMonthlyFee.md index 1361b4b8..d0582c36 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemFee.md +++ b/docs/models/components/CommercePlan2AnnualMonthlyFee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemFee +# CommercePlan2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/SchemasCommercePlanAnnualFee.md b/docs/models/components/CommercePlan2Fee.md similarity index 97% rename from docs/models/components/SchemasCommercePlanAnnualFee.md rename to docs/models/components/CommercePlan2Fee.md index 5639faa6..7490f660 100644 --- a/docs/models/components/SchemasCommercePlanAnnualFee.md +++ b/docs/models/components/CommercePlan2Fee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualFee +# CommercePlan2Fee ## Fields diff --git a/docs/models/components/SchemasCommercePlanObject.md b/docs/models/components/CommercePlan2Object.md similarity index 58% rename from docs/models/components/SchemasCommercePlanObject.md rename to docs/models/components/CommercePlan2Object.md index d1097c4c..3866700e 100644 --- a/docs/models/components/SchemasCommercePlanObject.md +++ b/docs/models/components/CommercePlan2Object.md @@ -1,13 +1,13 @@ -# SchemasCommercePlanObject +# CommercePlan2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommercePlanObject; +import com.clerk.backend_api.models.components.CommercePlan2Object; -SchemasCommercePlanObject value = SchemasCommercePlanObject.COMMERCE_PLAN; +CommercePlan2Object value = CommercePlan2Object.COMMERCE_PLAN; ``` diff --git a/docs/models/components/CommercePriceTransitionDetails.md b/docs/models/components/CommercePriceTransitionDetails.md index ebb11beb..d941865a 100644 --- a/docs/models/components/CommercePriceTransitionDetails.md +++ b/docs/models/components/CommercePriceTransitionDetails.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `previousPlan` | [SchemasCommercePlan](../../models/components/SchemasCommercePlan.md) | :heavy_check_mark: | N/A | +| `previousPlan` | [CommercePlan2](../../models/components/CommercePlan2.md) | :heavy_check_mark: | N/A | | `previousPrice` | [BillingPriceResponse](../../models/components/BillingPriceResponse.md) | :heavy_check_mark: | N/A | | `effectiveAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) when the new price takes effect. | | `effectiveMode` | [EffectiveMode](../../models/components/EffectiveMode.md) | :heavy_check_mark: | When the new price takes effect. | diff --git a/docs/models/components/CommercePriceTransitionResponse.md b/docs/models/components/CommercePriceTransitionResponse.md index f4efc82f..98d28126 100644 --- a/docs/models/components/CommercePriceTransitionResponse.md +++ b/docs/models/components/CommercePriceTransitionResponse.md @@ -8,5 +8,5 @@ A commerce price transition. | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `object` | [CommercePriceTransitionResponseObject](../../models/components/CommercePriceTransitionResponseObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `subscriptionItem` | [SchemasCommerceSubscriptionItem](../../models/components/SchemasCommerceSubscriptionItem.md) | :heavy_check_mark: | N/A | +| `subscriptionItem` | [CommerceSubscriptionItem2](../../models/components/CommerceSubscriptionItem2.md) | :heavy_check_mark: | N/A | | `transition` | [CommercePriceTransitionDetails](../../models/components/CommercePriceTransitionDetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2.md b/docs/models/components/CommerceSubscriptionItem2.md new file mode 100644 index 00000000..d70f8690 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2.md @@ -0,0 +1,35 @@ +# CommerceSubscriptionItem2 + +A commerce subscription item. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2Object](../../models/components/CommerceSubscriptionItem2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the subscription item. | +| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `status` | [CommerceSubscriptionItem2Status](../../models/components/CommerceSubscriptionItem2Status.md) | :heavy_check_mark: | Current status of the subscription item. | +| `credit` | [JsonNullable\](../../models/components/Credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | +| `planId` | *String* | :heavy_check_mark: | Unique identifier for the associated plan. | +| `priceId` | *Optional\* | :heavy_minus_sign: | Unique identifier for the associated price | +| `plan` | [Optional\](../../models/components/CommerceSubscriptionItem2Plan.md) | :heavy_check_mark: | The associated commerce plan. | +| `planPeriod` | [CommerceSubscriptionItem2PlanPeriod](../../models/components/CommerceSubscriptionItem2PlanPeriod.md) | :heavy_check_mark: | The billing period for this subscription. | +| `paymentSourceId` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | +| `paymentSource` | [JsonNullable\](../../models/components/PaymentSource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | +| `lifetimePaid` | [JsonNullable\](../../models/components/LifetimePaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Amount.md) | :heavy_minus_sign: | Current amount for this subscription. | +| `nextInvoice` | [JsonNullable\](../../models/components/NextInvoice.md) | :heavy_minus_sign: | Information about the next invoice. | +| `nextPayment` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPayment.md) | :heavy_minus_sign: | Information about the next payment. | +| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `payer` | [JsonNullable\](../../models/components/Payer.md) | :heavy_minus_sign: | The payer associated with this subscription. | +| `isFreeTrial` | *boolean* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | +| `periodStart` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | +| `periodEnd` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | +| `prorationDate` | *String* | :heavy_check_mark: | Date used for proration calculations. | +| `canceledAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | +| `pastDueAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | +| `endedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAmount.md b/docs/models/components/CommerceSubscriptionItem2Amount.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemAmount.md rename to docs/models/components/CommerceSubscriptionItem2Amount.md index 36b82117..1028b927 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2Amount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAmount +# CommerceSubscriptionItem2Amount Current amount for this subscription. diff --git a/docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md b/docs/models/components/CommerceSubscriptionItem2AnnualFee.md similarity index 97% rename from docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md rename to docs/models/components/CommerceSubscriptionItem2AnnualFee.md index 1529a0bf..7d3d6a23 100644 --- a/docs/models/components/SchemasCommercePlanAnnualMonthlyFee.md +++ b/docs/models/components/CommerceSubscriptionItem2AnnualFee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualMonthlyFee +# CommerceSubscriptionItem2AnnualFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md b/docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md rename to docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md index bbe998bf..c135c4ab 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemAnnualFee.md +++ b/docs/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAnnualFee +# CommerceSubscriptionItem2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md b/docs/models/components/CommerceSubscriptionItem2CreditAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md rename to docs/models/components/CommerceSubscriptionItem2CreditAmount.md index 636d3916..38a0e3b2 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemCreditAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2CreditAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemCreditAmount +# CommerceSubscriptionItem2CreditAmount Credit amount. diff --git a/docs/models/components/CommerceSubscriptionItem2Credits.md b/docs/models/components/CommerceSubscriptionItem2Credits.md new file mode 100644 index 00000000..ac8b9789 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Credits.md @@ -0,0 +1,10 @@ +# CommerceSubscriptionItem2Credits + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2Proration.md) | :heavy_check_mark: | N/A | +| `payer` | [Optional\](../../models/components/CommerceSubscriptionItem2Payer.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Discounts.md b/docs/models/components/CommerceSubscriptionItem2Discounts.md new file mode 100644 index 00000000..e7f9b3d8 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Discounts.md @@ -0,0 +1,9 @@ +# CommerceSubscriptionItem2Discounts + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextInvoiceProration.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Fee.md b/docs/models/components/CommerceSubscriptionItem2Fee.md new file mode 100644 index 00000000..13b3d125 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Fee.md @@ -0,0 +1,11 @@ +# CommerceSubscriptionItem2Fee + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `amount` | *long* | :heavy_check_mark: | The amount in cents. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md b/docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md rename to docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md index b92414ea..7d7415d4 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2NextInvoiceAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextInvoiceAmount +# CommerceSubscriptionItem2NextInvoiceAmount Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md b/docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md rename to docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md index 445e67be..ae138719 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextInvoiceProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextInvoiceProration +# CommerceSubscriptionItem2NextInvoiceProration ## Fields diff --git a/docs/models/components/CommerceSubscriptionItem2NextPayment.md b/docs/models/components/CommerceSubscriptionItem2NextPayment.md new file mode 100644 index 00000000..8bde7e00 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPayment.md @@ -0,0 +1,13 @@ +# CommerceSubscriptionItem2NextPayment + +Information about the next payment. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | +| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md index 4689ffdc..a5033c4d 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentAmount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentAmount +# CommerceSubscriptionItem2NextPaymentAmount Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. diff --git a/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md new file mode 100644 index 00000000..f67073c8 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentCredits.md @@ -0,0 +1,10 @@ +# CommerceSubscriptionItem2NextPaymentCredits + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentProration.md) | :heavy_check_mark: | N/A | +| `payer` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentPayer.md) | :heavy_check_mark: | N/A | +| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md similarity index 90% rename from docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md index 4274f4e1..9e92b23c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemDiscounts.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md @@ -1,9 +1,9 @@ -# SchemasCommerceSubscriptionItemDiscounts +# CommerceSubscriptionItem2NextPaymentDiscounts ## Fields | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.md) | :heavy_check_mark: | N/A | +| `proration` | [Optional\](../../models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md) | :heavy_check_mark: | N/A | | `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md index 4f58f153..beac250c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentPayer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentPayer +# CommerceSubscriptionItem2NextPaymentPayer ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md index e974a5a6..5e6fbf67 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentProration +# CommerceSubscriptionItem2NextPaymentProration ## Fields diff --git a/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md new file mode 100644 index 00000000..47ede786 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotals.md @@ -0,0 +1,16 @@ +# CommerceSubscriptionItem2NextPaymentTotals + +Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentCredits.md) | :heavy_minus_sign: | N/A | +| `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextPaymentDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md rename to docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md index d788c0b7..7eddbc71 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md +++ b/docs/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentTotalsProration +# CommerceSubscriptionItem2NextPaymentTotalsProration ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemObject.md b/docs/models/components/CommerceSubscriptionItem2Object.md similarity index 57% rename from docs/models/components/SchemasCommerceSubscriptionItemObject.md rename to docs/models/components/CommerceSubscriptionItem2Object.md index bb419cb0..0598f0e7 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemObject.md +++ b/docs/models/components/CommerceSubscriptionItem2Object.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemObject +# CommerceSubscriptionItem2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2Object; -SchemasCommerceSubscriptionItemObject value = SchemasCommerceSubscriptionItemObject.COMMERCE_SUBSCRIPTION_ITEM; +CommerceSubscriptionItem2Object value = CommerceSubscriptionItem2Object.COMMERCE_SUBSCRIPTION_ITEM; ``` diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPayer.md b/docs/models/components/CommerceSubscriptionItem2Payer.md similarity index 96% rename from docs/models/components/SchemasCommerceSubscriptionItemPayer.md rename to docs/models/components/CommerceSubscriptionItem2Payer.md index 1fbc0913..ed9d485c 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPayer.md +++ b/docs/models/components/CommerceSubscriptionItem2Payer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemPayer +# CommerceSubscriptionItem2Payer ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md b/docs/models/components/CommerceSubscriptionItem2PayerObject.md similarity index 50% rename from docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md rename to docs/models/components/CommerceSubscriptionItem2PayerObject.md index c67a0744..389b204f 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPayerObject.md +++ b/docs/models/components/CommerceSubscriptionItem2PayerObject.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemPayerObject +# CommerceSubscriptionItem2PayerObject String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPayerObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PayerObject; -SchemasCommerceSubscriptionItemPayerObject value = SchemasCommerceSubscriptionItemPayerObject.COMMERCE_PAYER; +CommerceSubscriptionItem2PayerObject value = CommerceSubscriptionItem2PayerObject.COMMERCE_PAYER; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md b/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md new file mode 100644 index 00000000..2ae80e4d --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PaymentSourceObject.md @@ -0,0 +1,18 @@ +# CommerceSubscriptionItem2PaymentSourceObject + +String representing the object's type. Objects of the same type share the same value. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PaymentSourceObject; + +CommerceSubscriptionItem2PaymentSourceObject value = CommerceSubscriptionItem2PaymentSourceObject.COMMERCE_SOURCE; +``` + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `COMMERCE_SOURCE` | commerce_source | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md b/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md new file mode 100644 index 00000000..f2d33091 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PaymentSourceStatus.md @@ -0,0 +1,19 @@ +# CommerceSubscriptionItem2PaymentSourceStatus + +Status of the payment source. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PaymentSourceStatus; + +CommerceSubscriptionItem2PaymentSourceStatus value = CommerceSubscriptionItem2PaymentSourceStatus.ACTIVE; +``` + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `ACTIVE` | active | +| `DISCONNECTED` | disconnected | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionItem2Plan.md b/docs/models/components/CommerceSubscriptionItem2Plan.md new file mode 100644 index 00000000..274e4e0b --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Plan.md @@ -0,0 +1,38 @@ +# CommerceSubscriptionItem2Plan + +The associated commerce plan. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PlanObject](../../models/components/CommerceSubscriptionItem2PlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Optional\](../../models/components/CommerceSubscriptionItem2Fee.md) | :heavy_check_mark: | N/A | +| `annualMonthlyFee` | [Optional\](../../models/components/CommerceSubscriptionItem2AnnualMonthlyFee.md) | :heavy_check_mark: | N/A | +| `annualFee` | [Optional\](../../models/components/CommerceSubscriptionItem2AnnualFee.md) | :heavy_check_mark: | N/A | +| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | +| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | +| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | +| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | +| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | +| `features` | List\<[FeatureResponse2](../../models/components/FeatureResponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md b/docs/models/components/CommerceSubscriptionItem2PlanObject.md similarity index 50% rename from docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md rename to docs/models/components/CommerceSubscriptionItem2PlanObject.md index 2d2a25f2..7a26dab0 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlanObject.md +++ b/docs/models/components/CommerceSubscriptionItem2PlanObject.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemPlanObject +# CommerceSubscriptionItem2PlanObject String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPlanObject; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PlanObject; -SchemasCommerceSubscriptionItemPlanObject value = SchemasCommerceSubscriptionItemPlanObject.COMMERCE_PLAN; +CommerceSubscriptionItem2PlanObject value = CommerceSubscriptionItem2PlanObject.COMMERCE_PLAN; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md b/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md new file mode 100644 index 00000000..71dd6fe0 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2PlanPeriod.md @@ -0,0 +1,19 @@ +# CommerceSubscriptionItem2PlanPeriod + +The billing period for this subscription. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2PlanPeriod; + +CommerceSubscriptionItem2PlanPeriod value = CommerceSubscriptionItem2PlanPeriod.MONTH; +``` + + +## Values + +| Name | Value | +| -------- | -------- | +| `MONTH` | month | +| `ANNUAL` | annual | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemProration.md b/docs/models/components/CommerceSubscriptionItem2Proration.md similarity index 97% rename from docs/models/components/SchemasCommerceSubscriptionItemProration.md rename to docs/models/components/CommerceSubscriptionItem2Proration.md index 3f100e41..4c803147 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemProration.md +++ b/docs/models/components/CommerceSubscriptionItem2Proration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemProration +# CommerceSubscriptionItem2Proration ## Fields diff --git a/docs/models/components/SchemasCommerceSubscriptionItemStatus.md b/docs/models/components/CommerceSubscriptionItem2Status.md similarity index 61% rename from docs/models/components/SchemasCommerceSubscriptionItemStatus.md rename to docs/models/components/CommerceSubscriptionItem2Status.md index 3769ff5d..ca82cb4d 100644 --- a/docs/models/components/SchemasCommerceSubscriptionItemStatus.md +++ b/docs/models/components/CommerceSubscriptionItem2Status.md @@ -1,13 +1,13 @@ -# SchemasCommerceSubscriptionItemStatus +# CommerceSubscriptionItem2Status Current status of the subscription item. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemStatus; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2Status; -SchemasCommerceSubscriptionItemStatus value = SchemasCommerceSubscriptionItemStatus.ACTIVE; +CommerceSubscriptionItem2Status value = CommerceSubscriptionItem2Status.ACTIVE; ``` diff --git a/docs/models/components/CommerceSubscriptionItem2Totals.md b/docs/models/components/CommerceSubscriptionItem2Totals.md new file mode 100644 index 00000000..2dcdc105 --- /dev/null +++ b/docs/models/components/CommerceSubscriptionItem2Totals.md @@ -0,0 +1,16 @@ +# CommerceSubscriptionItem2Totals + +Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Credits.md) | :heavy_minus_sign: | N/A | +| `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Discounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionNextPayment.md b/docs/models/components/CommerceSubscriptionNextPayment.md index f1ce0c22..7650717f 100644 --- a/docs/models/components/CommerceSubscriptionNextPayment.md +++ b/docs/models/components/CommerceSubscriptionNextPayment.md @@ -7,5 +7,5 @@ | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | `date` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of the next payment date. | | `amount` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | | `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/CommerceSubscriptionNextPaymentTotals.md b/docs/models/components/CommerceSubscriptionNextPaymentTotals.md index dad851c1..daca2771 100644 --- a/docs/models/components/CommerceSubscriptionNextPaymentTotals.md +++ b/docs/models/components/CommerceSubscriptionNextPaymentTotals.md @@ -11,6 +11,6 @@ Breakdown of the recurring amount that will be billed at renewal (base fee + per | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/CommerceSubscriptionNextPaymentDiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/Credit.md b/docs/models/components/Credit.md index 3f11bb6f..ff1ea1cd 100644 --- a/docs/models/components/Credit.md +++ b/docs/models/components/Credit.md @@ -5,7 +5,7 @@ Credit information (only available in PaymentAttempt events). ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemCreditAmount.md) | :heavy_minus_sign: | Credit amount. | -| `cycleRemainingPercent` | *Optional\* | :heavy_minus_sign: | Percentage of the billing cycle remaining. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2CreditAmount.md) | :heavy_minus_sign: | Credit amount. | +| `cycleRemainingPercent` | *Optional\* | :heavy_minus_sign: | Percentage of the billing cycle remaining. | \ No newline at end of file diff --git a/docs/models/components/EnrollmentMode.md b/docs/models/components/EnrollmentMode.md index e95ee5d6..5b8886c8 100644 --- a/docs/models/components/EnrollmentMode.md +++ b/docs/models/components/EnrollmentMode.md @@ -17,4 +17,5 @@ EnrollmentMode value = EnrollmentMode.MANUAL_INVITATION; | ---------------------- | ---------------------- | | `MANUAL_INVITATION` | manual_invitation | | `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | \ No newline at end of file diff --git a/docs/models/components/EnterpriseConnection.md b/docs/models/components/EnterpriseConnection.md index 4bc9b166..a01ee808 100644 --- a/docs/models/components/EnterpriseConnection.md +++ b/docs/models/components/EnterpriseConnection.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `object` | [EnterpriseConnectionObject](../../models/components/EnterpriseConnectionObject.md) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | The enterprise connection ID | | `name` | *String* | :heavy_check_mark: | The display name of the connection | | `provider` | *String* | :heavy_check_mark: | N/A | diff --git a/docs/models/components/EnterpriseConnectionMode.md b/docs/models/components/EnterpriseConnectionMode.md new file mode 100644 index 00000000..d2fad804 --- /dev/null +++ b/docs/models/components/EnterpriseConnectionMode.md @@ -0,0 +1,20 @@ +# EnterpriseConnectionMode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.components.EnterpriseConnectionMode; + +EnterpriseConnectionMode value = EnterpriseConnectionMode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/components/EnterpriseConnectionObject.md b/docs/models/components/EnterpriseConnectionObject.md new file mode 100644 index 00000000..2ebcccb3 --- /dev/null +++ b/docs/models/components/EnterpriseConnectionObject.md @@ -0,0 +1,16 @@ +# EnterpriseConnectionObject + +## Example Usage + +```java +import com.clerk.backend_api.models.components.EnterpriseConnectionObject; + +EnterpriseConnectionObject value = EnterpriseConnectionObject.ENTERPRISE_CONNECTION; +``` + + +## Values + +| Name | Value | +| ----------------------- | ----------------------- | +| `ENTERPRISE_CONNECTION` | enterprise_connection | \ No newline at end of file diff --git a/docs/models/components/EnterpriseConnectionSamlConnection.md b/docs/models/components/EnterpriseConnectionSamlConnection.md index a3f39215..7ab278e8 100644 --- a/docs/models/components/EnterpriseConnectionSamlConnection.md +++ b/docs/models/components/EnterpriseConnectionSamlConnection.md @@ -18,4 +18,5 @@ Present when the enterprise connection uses SAML | `active` | *Optional\* | :heavy_minus_sign: | Whether the SAML connection is active | | `allowIdpInitiated` | *Optional\* | :heavy_minus_sign: | Whether IdP-initiated SSO is allowed | | `allowSubdomains` | *Optional\* | :heavy_minus_sign: | Whether subdomains are allowed for domain matching | -| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Whether to force re-authentication | \ No newline at end of file +| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Whether to force re-authentication | +| `loginHint` | [Optional\](../../models/components/LoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | \ No newline at end of file diff --git a/docs/models/components/ErrorClerkError.md b/docs/models/components/ErrorClerkError.md index 43ef0634..f4c70c22 100644 --- a/docs/models/components/ErrorClerkError.md +++ b/docs/models/components/ErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ErrorMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ErrorMeta.md b/docs/models/components/ErrorMeta.md deleted file mode 100644 index e498afa4..00000000 --- a/docs/models/components/ErrorMeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ErrorMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/FeatureResponse2.md b/docs/models/components/FeatureResponse2.md new file mode 100644 index 00000000..6e48d8b6 --- /dev/null +++ b/docs/models/components/FeatureResponse2.md @@ -0,0 +1,13 @@ +# FeatureResponse2 + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `object` | [FeatureResponse2Object](../../models/components/FeatureResponse2Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the feature. | +| `name` | *String* | :heavy_check_mark: | The name of the feature. | +| `description` | *String* | :heavy_check_mark: | The description of the feature. | +| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the feature. | +| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/SchemasFeatureResponseObject.md b/docs/models/components/FeatureResponse2Object.md similarity index 53% rename from docs/models/components/SchemasFeatureResponseObject.md rename to docs/models/components/FeatureResponse2Object.md index aa0095ba..f0c59c84 100644 --- a/docs/models/components/SchemasFeatureResponseObject.md +++ b/docs/models/components/FeatureResponse2Object.md @@ -1,13 +1,13 @@ -# SchemasFeatureResponseObject +# FeatureResponse2Object String representing the object's type. Objects of the same type share the same value. ## Example Usage ```java -import com.clerk.backend_api.models.components.SchemasFeatureResponseObject; +import com.clerk.backend_api.models.components.FeatureResponse2Object; -SchemasFeatureResponseObject value = SchemasFeatureResponseObject.FEATURE; +FeatureResponse2Object value = FeatureResponse2Object.FEATURE; ``` diff --git a/docs/models/components/InstanceProtect.md b/docs/models/components/InstanceProtect.md index c7fb1d00..c1449172 100644 --- a/docs/models/components/InstanceProtect.md +++ b/docs/models/components/InstanceProtect.md @@ -5,8 +5,9 @@ Success ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `object` | [InstanceProtectObject](../../models/components/InstanceProtectObject.md) | :heavy_check_mark: | N/A | -| `rulesEnabled` | *boolean* | :heavy_check_mark: | N/A | -| `specterEnabled` | *boolean* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `object` | [InstanceProtectObject](../../models/components/InstanceProtectObject.md) | :heavy_check_mark: | N/A | +| `rulesEnabled` | *boolean* | :heavy_check_mark: | N/A | +| `specterEnabled` | *boolean* | :heavy_check_mark: | N/A | +| `checksBypassed` | *boolean* | :heavy_check_mark: | Whether the instance has opted out of the Protect prerequisite checks, asserting its setup already meets the requirements. | \ No newline at end of file diff --git a/docs/models/components/InstanceSettings.md b/docs/models/components/InstanceSettings.md index e1a099af..ee0eff92 100644 --- a/docs/models/components/InstanceSettings.md +++ b/docs/models/components/InstanceSettings.md @@ -5,11 +5,11 @@ InstanceSettings Server API ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `object` | [Optional\](../../models/components/InstanceSettingsObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | -| `restrictedToAllowlist` | *Optional\* | :heavy_minus_sign: | N/A | -| `fromEmailAddress` | *Optional\* | :heavy_minus_sign: | N/A | -| `progressiveSignUp` | *Optional\* | :heavy_minus_sign: | N/A | -| `enhancedEmailDeliverability` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Optional\](../../models/components/InstanceSettingsObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | +| `restrictedToAllowlist` | *Optional\* | :heavy_minus_sign: | N/A | +| `fromEmailAddress` | *Optional\* | :heavy_minus_sign: | N/A | +| `progressiveSignUp` | *Optional\* | :heavy_minus_sign: | N/A | +| ~~`enhancedEmailDeliverability`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated. When enabled, production authentication emails for this instance are sent through Clerk's legacy managed email delivery path. This setting is being retired; use the instance's configured email sending domain instead.
| \ No newline at end of file diff --git a/docs/models/components/LoginHint.md b/docs/models/components/LoginHint.md new file mode 100644 index 00000000..7cfaeca6 --- /dev/null +++ b/docs/models/components/LoginHint.md @@ -0,0 +1,11 @@ +# LoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [EnterpriseConnectionMode](../../models/components/EnterpriseConnectionMode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/components/Meta.md b/docs/models/components/Meta.md deleted file mode 100644 index 93f98d6a..00000000 --- a/docs/models/components/Meta.md +++ /dev/null @@ -1,7 +0,0 @@ -# Meta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/Mode.md b/docs/models/components/Mode.md new file mode 100644 index 00000000..bf38ff66 --- /dev/null +++ b/docs/models/components/Mode.md @@ -0,0 +1,20 @@ +# Mode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.components.Mode; + +Mode value = Mode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/components/NextInvoice.md b/docs/models/components/NextInvoice.md index 1afdbee4..271470f1 100644 --- a/docs/models/components/NextInvoice.md +++ b/docs/models/components/NextInvoice.md @@ -5,9 +5,9 @@ Information about the next invoice. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | -| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | -| `totals` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `amount` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2NextInvoiceAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | +| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | +| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `totals` | [JsonNullable\](../../models/components/CommerceSubscriptionItem2Totals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/OAuthApplicationSettings.md b/docs/models/components/OAuthApplicationSettings.md index df6f2032..118ef7da 100644 --- a/docs/models/components/OAuthApplicationSettings.md +++ b/docs/models/components/OAuthApplicationSettings.md @@ -5,8 +5,12 @@ Success ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `object` | [OAuthApplicationSettingsObject](../../models/components/OAuthApplicationSettingsObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `dynamicOauthClientRegistration` | *boolean* | :heavy_check_mark: | Whether dynamic OAuth client registration is enabled for the instance (RFC 7591). | -| `oauthJwtAccessTokens` | *boolean* | :heavy_check_mark: | Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access tokens). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [OAuthApplicationSettingsObject](../../models/components/OAuthApplicationSettingsObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `dynamicOauthClientRegistration` | *boolean* | :heavy_check_mark: | Whether dynamic OAuth client registration is enabled for the instance (RFC 7591). | +| `defaultScopes` | List\<*String*> | :heavy_check_mark: | Default scopes. | +| `oauthJwtAccessTokens` | *boolean* | :heavy_check_mark: | Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access tokens). | +| `clientIdMetadataDocumentsAdvertised` | *boolean* | :heavy_check_mark: | Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization server metadata. | +| `clientIdMetadataDocumentsOnlyAllowPreRegisteredClients` | *boolean* | :heavy_check_mark: | When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered clients remain admitted; deleting a client makes it unknown again. | +| `clientIdMetadataDocumentsBlockImplicitlyAllowedClients` | *boolean* | :heavy_check_mark: | When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. | \ No newline at end of file diff --git a/docs/models/components/One.md b/docs/models/components/One.md index 8b55d934..ca49ddd0 100644 --- a/docs/models/components/One.md +++ b/docs/models/components/One.md @@ -3,32 +3,35 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `object` | [SAMLConnectionObject](../../models/components/SAMLConnectionObject.md) | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | List\<*String*> | :heavy_minus_sign: | N/A | -| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | -| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | -| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | -| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `acsUrl` | *String* | :heavy_check_mark: | N/A | -| `spEntityId` | *String* | :heavy_check_mark: | N/A | -| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | -| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | -| `active` | *boolean* | :heavy_check_mark: | N/A | -| `provider` | *String* | :heavy_check_mark: | N/A | -| `userCount` | *long* | :heavy_check_mark: | N/A | -| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | -| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | -| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | -| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | -| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | -| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SAMLConnectionObject](../../models/components/SAMLConnectionObject.md) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | List\<*String*> | :heavy_minus_sign: | N/A | +| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | +| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificateIssuedAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idpCertificateExpiresAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `acsUrl` | *String* | :heavy_check_mark: | N/A | +| `spEntityId` | *String* | :heavy_check_mark: | N/A | +| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | +| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | +| `active` | *boolean* | :heavy_check_mark: | N/A | +| `provider` | *String* | :heavy_check_mark: | N/A | +| `userCount` | *long* | :heavy_check_mark: | N/A | +| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | +| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | +| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | +| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | +| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | +| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `loginHint` | [SAMLConnectionLoginHint](../../models/components/SAMLConnectionLoginHint.md) | :heavy_check_mark: | Configuration for the login_hint sent to the IdP on SSO sign-in | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/OrganizationMembershipPublicUserData.md b/docs/models/components/OrganizationMembershipPublicUserData.md index 75d9c2e5..a19c1eea 100644 --- a/docs/models/components/OrganizationMembershipPublicUserData.md +++ b/docs/models/components/OrganizationMembershipPublicUserData.md @@ -15,4 +15,5 @@ An organization membership with public user data populated | `hasImage` | *boolean* | :heavy_check_mark: | N/A | | `identifier` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `username` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `banned` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `banned` | *Optional\* | :heavy_minus_sign: | N/A | +| `deprovisioned` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/Payer.md b/docs/models/components/Payer.md index cbce6e74..42a584b2 100644 --- a/docs/models/components/Payer.md +++ b/docs/models/components/Payer.md @@ -5,18 +5,18 @@ The payer associated with this subscription. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPayerObject](../../models/components/SchemasCommerceSubscriptionItemPayerObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `userId` | *Optional\* | :heavy_minus_sign: | User ID for user-type payers. | -| `firstName` | *String* | :heavy_check_mark: | First name of the payer. | -| `lastName` | *String* | :heavy_check_mark: | Last name of the payer. | -| `email` | *String* | :heavy_check_mark: | Email address of the payer. | -| `organizationId` | *Optional\* | :heavy_minus_sign: | Organization ID for org-type payers. | -| `organizationName` | *Optional\* | :heavy_minus_sign: | Organization name for org-type payers. | -| `imageUrl` | *String* | :heavy_check_mark: | URL of the payer's image/avatar. | -| `creditsBalance` | [Optional\](../../models/components/CommerceMoneyResponse.md) | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PayerObject](../../models/components/CommerceSubscriptionItem2PayerObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `userId` | *Optional\* | :heavy_minus_sign: | User ID for user-type payers. | +| `firstName` | *String* | :heavy_check_mark: | First name of the payer. | +| `lastName` | *String* | :heavy_check_mark: | Last name of the payer. | +| `email` | *String* | :heavy_check_mark: | Email address of the payer. | +| `organizationId` | *Optional\* | :heavy_minus_sign: | Organization ID for org-type payers. | +| `organizationName` | *Optional\* | :heavy_minus_sign: | Organization name for org-type payers. | +| `imageUrl` | *String* | :heavy_check_mark: | URL of the payer's image/avatar. | +| `creditsBalance` | [Optional\](../../models/components/CommerceMoneyResponse.md) | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file diff --git a/docs/models/components/PaymentSource.md b/docs/models/components/PaymentSource.md index 691b5be5..370c0891 100644 --- a/docs/models/components/PaymentSource.md +++ b/docs/models/components/PaymentSource.md @@ -5,22 +5,22 @@ The payment source associated with this subscription. ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPaymentSourceObject](../../models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | -| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `paymentMethod` | [PaymentMethod](../../models/components/PaymentMethod.md) | :heavy_check_mark: | The payment method type. | -| `isDefault` | *JsonNullable\* | :heavy_minus_sign: | Whether this is the default payment source for the payer. | -| `gateway` | *String* | :heavy_check_mark: | The payment gateway. | -| `gatewayExternalId` | *String* | :heavy_check_mark: | External ID in the payment gateway. | -| `gatewayExternalAccountId` | *JsonNullable\* | :heavy_minus_sign: | External account ID in the payment gateway. | -| `last4` | *String* | :heavy_check_mark: | Last 4 digits of the card (for card payment sources). | -| `status` | [SchemasCommerceSubscriptionItemPaymentSourceStatus](../../models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md) | :heavy_check_mark: | Status of the payment source. | -| `walletType` | *String* | :heavy_check_mark: | Type of wallet (if applicable). | -| `cardType` | *String* | :heavy_check_mark: | Type of card (if applicable). | -| `expiryYear` | *Optional\* | :heavy_minus_sign: | Card expiration year (for card payment sources). | -| `expiryMonth` | *Optional\* | :heavy_minus_sign: | Card expiration month (for card payment sources). | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was last updated. | -| `isRemovable` | *JsonNullable\* | :heavy_minus_sign: | Whether this payment source can be removed. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `object` | [CommerceSubscriptionItem2PaymentSourceObject](../../models/components/CommerceSubscriptionItem2PaymentSourceObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | +| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | +| `paymentMethod` | [PaymentMethod](../../models/components/PaymentMethod.md) | :heavy_check_mark: | The payment method type. | +| `isDefault` | *JsonNullable\* | :heavy_minus_sign: | Whether this is the default payment source for the payer. | +| `gateway` | *String* | :heavy_check_mark: | The payment gateway. | +| `gatewayExternalId` | *String* | :heavy_check_mark: | External ID in the payment gateway. | +| `gatewayExternalAccountId` | *JsonNullable\* | :heavy_minus_sign: | External account ID in the payment gateway. | +| `last4` | *String* | :heavy_check_mark: | Last 4 digits of the card (for card payment sources). | +| `status` | [CommerceSubscriptionItem2PaymentSourceStatus](../../models/components/CommerceSubscriptionItem2PaymentSourceStatus.md) | :heavy_check_mark: | Status of the payment source. | +| `walletType` | *String* | :heavy_check_mark: | Type of wallet (if applicable). | +| `cardType` | *String* | :heavy_check_mark: | Type of card (if applicable). | +| `expiryYear` | *Optional\* | :heavy_minus_sign: | Card expiration year (for card payment sources). | +| `expiryMonth` | *Optional\* | :heavy_minus_sign: | Card expiration month (for card payment sources). | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payment source was last updated. | +| `isRemovable` | *JsonNullable\* | :heavy_minus_sign: | Whether this payment source can be removed. | \ No newline at end of file diff --git a/docs/models/components/PaymentType.md b/docs/models/components/PaymentType.md index faf66ed9..b4cd9485 100644 --- a/docs/models/components/PaymentType.md +++ b/docs/models/components/PaymentType.md @@ -13,7 +13,8 @@ PaymentType value = PaymentType.CARD; ## Values -| Name | Value | -| ------ | ------ | -| `CARD` | card | -| `LINK` | link | \ No newline at end of file +| Name | Value | +| --------------- | --------------- | +| `CARD` | card | +| `LINK` | link | +| `PAYER_CREDITS` | payer-credits | \ No newline at end of file diff --git a/docs/models/components/Platform.md b/docs/models/components/Platform.md new file mode 100644 index 00000000..652f1e2c --- /dev/null +++ b/docs/models/components/Platform.md @@ -0,0 +1,17 @@ +# Platform + +## Example Usage + +```java +import com.clerk.backend_api.models.components.Platform; + +Platform value = Platform.IOS; +``` + + +## Values + +| Name | Value | +| --------- | --------- | +| `IOS` | ios | +| `ANDROID` | android | \ No newline at end of file diff --git a/docs/models/components/SAMLConnectionLoginHint.md b/docs/models/components/SAMLConnectionLoginHint.md new file mode 100644 index 00000000..78f36758 --- /dev/null +++ b/docs/models/components/SAMLConnectionLoginHint.md @@ -0,0 +1,11 @@ +# SAMLConnectionLoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [Mode](../../models/components/Mode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectory.md b/docs/models/components/SCIMDirectory.md new file mode 100644 index 00000000..d1d5c9e0 --- /dev/null +++ b/docs/models/components/SCIMDirectory.md @@ -0,0 +1,22 @@ +# SCIMDirectory + +A SCIM directory configuration for provisioning users via SCIM protocol. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SCIMDirectoryObject](../../models/components/SCIMDirectoryObject.md) | :heavy_check_mark: | String representing the object's type. Always "scim_directory". | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the SCIM directory. | +| `name` | *String* | :heavy_check_mark: | A human-friendly name for the SCIM directory. | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the associated enterprise connection. | +| `endpointUrl` | *String* | :heavy_check_mark: | The SCIM endpoint URL for this directory. | +| `provider` | *String* | :heavy_check_mark: | The identity provider for this SCIM directory. | +| `enabled` | *boolean* | :heavy_check_mark: | Whether the SCIM directory is enabled. | +| `groupRoleMappingEnabled` | *boolean* | :heavy_check_mark: | Whether group-to-role mapping is enabled for this SCIM directory. | +| `attributeMapping` | Map\ | :heavy_check_mark: | Mapping of user attributes to the SCIM attribute paths they are extracted from. | +| `customAttributes` | List\<[SCIMDirectoryCustomAttributes](../../models/components/SCIMDirectoryCustomAttributes.md)> | :heavy_minus_sign: | Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the custom attributes feature to be enabled for the instance. | +| `apiKey` | *JsonNullable\* | :heavy_minus_sign: | The API key for authenticating SCIM requests. Only returned when the directory is created or the key is rotated. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp when the SCIM directory was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp when the SCIM directory was last updated. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryCustomAttributes.md b/docs/models/components/SCIMDirectoryCustomAttributes.md new file mode 100644 index 00000000..856f62a2 --- /dev/null +++ b/docs/models/components/SCIMDirectoryCustomAttributes.md @@ -0,0 +1,12 @@ +# SCIMDirectoryCustomAttributes + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | Display name for the custom attribute | +| `key` | *Optional\* | :heavy_minus_sign: | Key used to store the attribute in the user's public/private/unsafe metadata | +| `ssoPath` | *Optional\* | :heavy_minus_sign: | Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) | +| `scimPath` | *Optional\* | :heavy_minus_sign: | GJSON path to extract the attribute value from SCIM user resources | +| `multiValued` | *Optional\* | :heavy_minus_sign: | When true, the attribute supports multiple values; values from the IdP are written to public_metadata as an array. Defaults to false. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryList.md b/docs/models/components/SCIMDirectoryList.md new file mode 100644 index 00000000..9d027d3f --- /dev/null +++ b/docs/models/components/SCIMDirectoryList.md @@ -0,0 +1,11 @@ +# SCIMDirectoryList + +A list of SCIM directories + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `data` | List\<[SCIMDirectory](../../models/components/SCIMDirectory.md)> | :heavy_check_mark: | N/A | +| `totalCount` | *long* | :heavy_check_mark: | Total number of SCIM directories. | \ No newline at end of file diff --git a/docs/models/components/SCIMDirectoryObject.md b/docs/models/components/SCIMDirectoryObject.md new file mode 100644 index 00000000..d8c6ae4b --- /dev/null +++ b/docs/models/components/SCIMDirectoryObject.md @@ -0,0 +1,18 @@ +# SCIMDirectoryObject + +String representing the object's type. Always "scim_directory". + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMDirectoryObject; + +SCIMDirectoryObject value = SCIMDirectoryObject.SCIM_DIRECTORY; +``` + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `SCIM_DIRECTORY` | scim_directory | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMapping.md b/docs/models/components/SCIMGroupRoleMapping.md new file mode 100644 index 00000000..f4e811ec --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMapping.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMapping + +A mapping from a SCIM group to an organization role. Members of the group are assigned the role; the lowest-precedence match wins when a user belongs to multiple mapped groups. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `object` | [SCIMGroupRoleMappingObject](../../models/components/SCIMGroupRoleMappingObject.md) | :heavy_check_mark: | String representing the object's type. Always "scim_group_role_mapping". | +| `id` | *String* | :heavy_check_mark: | Unique identifier for the SCIM group role mapping. | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory this mapping belongs to. | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `scimGroupDisplayName` | *String* | :heavy_check_mark: | The display name of the SCIM group, as reported by the identity provider. | +| `role` | [Optional\](../../models/components/Role.md) | :heavy_minus_sign: | N/A | +| `precedence` | *long* | :heavy_check_mark: | Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped groups. | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of when the mapping was created. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (milliseconds) of when the mapping was last updated. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingDeleted.md b/docs/models/components/SCIMGroupRoleMappingDeleted.md new file mode 100644 index 00000000..3faa017a --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingDeleted.md @@ -0,0 +1,12 @@ +# SCIMGroupRoleMappingDeleted + +A SCIM group role mapping was deleted. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `object` | [SCIMGroupRoleMappingDeletedObject](../../models/components/SCIMGroupRoleMappingDeletedObject.md) | :heavy_check_mark: | String representing the object's type. | +| `id` | *String* | :heavy_check_mark: | The ID of the deleted SCIM group role mapping. | +| `deleted` | *boolean* | :heavy_check_mark: | Whether the SCIM group role mapping was successfully deleted. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingDeletedObject.md b/docs/models/components/SCIMGroupRoleMappingDeletedObject.md new file mode 100644 index 00000000..10828753 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingDeletedObject.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMappingDeletedObject + +String representing the object's type. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeletedObject; + +SCIMGroupRoleMappingDeletedObject value = SCIMGroupRoleMappingDeletedObject.SCIM_GROUP_ROLE_MAPPING; +``` + + +## Values + +| Name | Value | +| ------------------------- | ------------------------- | +| `SCIM_GROUP_ROLE_MAPPING` | scim_group_role_mapping | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingList.md b/docs/models/components/SCIMGroupRoleMappingList.md new file mode 100644 index 00000000..6c75be92 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingList.md @@ -0,0 +1,11 @@ +# SCIMGroupRoleMappingList + +A list of SCIM group role mappings, ordered by precedence. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `data` | List\<[SCIMGroupRoleMapping](../../models/components/SCIMGroupRoleMapping.md)> | :heavy_check_mark: | N/A | +| `totalCount` | *long* | :heavy_check_mark: | Total number of SCIM group role mappings in the directory. | \ No newline at end of file diff --git a/docs/models/components/SCIMGroupRoleMappingObject.md b/docs/models/components/SCIMGroupRoleMappingObject.md new file mode 100644 index 00000000..273a13e5 --- /dev/null +++ b/docs/models/components/SCIMGroupRoleMappingObject.md @@ -0,0 +1,18 @@ +# SCIMGroupRoleMappingObject + +String representing the object's type. Always "scim_group_role_mapping". + +## Example Usage + +```java +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingObject; + +SCIMGroupRoleMappingObject value = SCIMGroupRoleMappingObject.SCIM_GROUP_ROLE_MAPPING; +``` + + +## Values + +| Name | Value | +| ------------------------- | ------------------------- | +| `SCIM_GROUP_ROLE_MAPPING` | scim_group_role_mapping | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePlan.md b/docs/models/components/SchemasCommercePlan.md deleted file mode 100644 index a104b3af..00000000 --- a/docs/models/components/SchemasCommercePlan.md +++ /dev/null @@ -1,36 +0,0 @@ -# SchemasCommercePlan - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommercePlanObject](../../models/components/SchemasCommercePlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Optional\](../../models/components/SchemasCommercePlanFee.md) | :heavy_check_mark: | N/A | -| `annualMonthlyFee` | [Optional\](../../models/components/SchemasCommercePlanAnnualMonthlyFee.md) | :heavy_check_mark: | N/A | -| `annualFee` | [Optional\](../../models/components/SchemasCommercePlanAnnualFee.md) | :heavy_check_mark: | N/A | -| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | -| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | -| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | -| `features` | List\<[SchemasFeatureResponse](../../models/components/SchemasFeatureResponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItem.md b/docs/models/components/SchemasCommerceSubscriptionItem.md deleted file mode 100644 index 6fb77c54..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItem.md +++ /dev/null @@ -1,35 +0,0 @@ -# SchemasCommerceSubscriptionItem - -A commerce subscription item. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemObject](../../models/components/SchemasCommerceSubscriptionItemObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the subscription item. | -| `instanceId` | *String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `status` | [SchemasCommerceSubscriptionItemStatus](../../models/components/SchemasCommerceSubscriptionItemStatus.md) | :heavy_check_mark: | Current status of the subscription item. | -| `credit` | [JsonNullable\](../../models/components/Credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | -| `planId` | *String* | :heavy_check_mark: | Unique identifier for the associated plan. | -| `priceId` | *Optional\* | :heavy_minus_sign: | Unique identifier for the associated price | -| `plan` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemPlan.md) | :heavy_check_mark: | The associated commerce plan. | -| `planPeriod` | [SchemasCommerceSubscriptionItemPlanPeriod](../../models/components/SchemasCommerceSubscriptionItemPlanPeriod.md) | :heavy_check_mark: | The billing period for this subscription. | -| `paymentSourceId` | *String* | :heavy_check_mark: | Unique identifier for the payment source. | -| `paymentSource` | [JsonNullable\](../../models/components/PaymentSource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | -| `lifetimePaid` | [JsonNullable\](../../models/components/LifetimePaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemAmount.md) | :heavy_minus_sign: | Current amount for this subscription. | -| `nextInvoice` | [JsonNullable\](../../models/components/NextInvoice.md) | :heavy_minus_sign: | Information about the next invoice. | -| `nextPayment` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPayment.md) | :heavy_minus_sign: | Information about the next payment. | -| `payerId` | *String* | :heavy_check_mark: | Unique identifier for the payer. | -| `payer` | [JsonNullable\](../../models/components/Payer.md) | :heavy_minus_sign: | The payer associated with this subscription. | -| `isFreeTrial` | *boolean* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | -| `periodStart` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | -| `periodEnd` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | -| `prorationDate` | *String* | :heavy_check_mark: | Date used for proration calculations. | -| `canceledAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | -| `pastDueAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | -| `endedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md b/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md deleted file mode 100644 index 74acd4e1..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md +++ /dev/null @@ -1,11 +0,0 @@ -# SchemasCommerceSubscriptionItemAnnualMonthlyFee - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `amount` | *long* | :heavy_check_mark: | The amount in cents. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemCredits.md b/docs/models/components/SchemasCommerceSubscriptionItemCredits.md deleted file mode 100644 index 6dbebdd5..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemCredits.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommerceSubscriptionItemCredits - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemProration.md) | :heavy_check_mark: | N/A | -| `payer` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemPayer.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md deleted file mode 100644 index b7227b48..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPayment.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPayment - -Information about the next payment. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | -| `date` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | -| `totals` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md deleted file mode 100644 index 7e5b0876..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentCredits - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentProration.md) | :heavy_check_mark: | N/A | -| `payer` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md deleted file mode 100644 index 399b4cdb..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md +++ /dev/null @@ -1,9 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentDiscounts - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `proration` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.md) | :heavy_check_mark: | N/A | -| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md b/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md deleted file mode 100644 index cf0b09df..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.md +++ /dev/null @@ -1,16 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentTotals - -Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | -| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | -| `credits` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.md) | :heavy_minus_sign: | N/A | -| `discounts` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md b/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md deleted file mode 100644 index eca4d7f5..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.md +++ /dev/null @@ -1,18 +0,0 @@ -# SchemasCommerceSubscriptionItemPaymentSourceObject - -String representing the object's type. Objects of the same type share the same value. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPaymentSourceObject; - -SchemasCommerceSubscriptionItemPaymentSourceObject value = SchemasCommerceSubscriptionItemPaymentSourceObject.COMMERCE_SOURCE; -``` - - -## Values - -| Name | Value | -| ----------------- | ----------------- | -| `COMMERCE_SOURCE` | commerce_source | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md b/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md deleted file mode 100644 index d3fbd416..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.md +++ /dev/null @@ -1,19 +0,0 @@ -# SchemasCommerceSubscriptionItemPaymentSourceStatus - -Status of the payment source. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPaymentSourceStatus; - -SchemasCommerceSubscriptionItemPaymentSourceStatus value = SchemasCommerceSubscriptionItemPaymentSourceStatus.ACTIVE; -``` - - -## Values - -| Name | Value | -| -------------- | -------------- | -| `ACTIVE` | active | -| `DISCONNECTED` | disconnected | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlan.md b/docs/models/components/SchemasCommerceSubscriptionItemPlan.md deleted file mode 100644 index f2a84b68..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlan.md +++ /dev/null @@ -1,38 +0,0 @@ -# SchemasCommerceSubscriptionItemPlan - -The associated commerce plan. - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [SchemasCommerceSubscriptionItemPlanObject](../../models/components/SchemasCommerceSubscriptionItemPlanObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemFee.md) | :heavy_check_mark: | N/A | -| `annualMonthlyFee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.md) | :heavy_check_mark: | N/A | -| `annualFee` | [Optional\](../../models/components/SchemasCommerceSubscriptionItemAnnualFee.md) | :heavy_check_mark: | N/A | -| `amount` | *long* | :heavy_check_mark: | The amount in cents for the plan. | -| `amountFormatted` | *String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annualMonthlyAmount` | *long* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annualMonthlyAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annualAmount` | *long* | :heavy_check_mark: | The total annual amount in cents. | -| `annualAmountFormatted` | *String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currencySymbol` | *String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *String* | :heavy_check_mark: | The description of the commerce plan. | -| `productId` | *String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `isDefault` | *boolean* | :heavy_check_mark: | Whether this is the default plan. | -| `isRecurring` | *boolean* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publiclyVisible` | *boolean* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `hasBaseFee` | *boolean* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payerType` | List\<*String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `forPayerType` | *String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Optional\* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Optional\* | :heavy_minus_sign: | The billing interval. | -| `features` | List\<[SchemasFeatureResponse](../../models/components/SchemasFeatureResponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `freeTrialEnabled` | *Optional\* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `freeTrialDays` | *JsonNullable\* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md b/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md deleted file mode 100644 index 5226c091..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemPlanPeriod.md +++ /dev/null @@ -1,19 +0,0 @@ -# SchemasCommerceSubscriptionItemPlanPeriod - -The billing period for this subscription. - -## Example Usage - -```java -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItemPlanPeriod; - -SchemasCommerceSubscriptionItemPlanPeriod value = SchemasCommerceSubscriptionItemPlanPeriod.MONTH; -``` - - -## Values - -| Name | Value | -| -------- | -------- | -| `MONTH` | month | -| `ANNUAL` | annual | \ No newline at end of file diff --git a/docs/models/components/SchemasCommerceSubscriptionItemTotals.md b/docs/models/components/SchemasCommerceSubscriptionItemTotals.md deleted file mode 100644 index cd8b588f..00000000 --- a/docs/models/components/SchemasCommerceSubscriptionItemTotals.md +++ /dev/null @@ -1,16 +0,0 @@ -# SchemasCommerceSubscriptionItemTotals - -Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | -| `credits` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemCredits.md) | :heavy_minus_sign: | N/A | -| `discounts` | [JsonNullable\](../../models/components/SchemasCommerceSubscriptionItemDiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/SchemasFeatureResponse.md b/docs/models/components/SchemasFeatureResponse.md deleted file mode 100644 index 3671ee20..00000000 --- a/docs/models/components/SchemasFeatureResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasFeatureResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `object` | [SchemasFeatureResponseObject](../../models/components/SchemasFeatureResponseObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *String* | :heavy_check_mark: | Unique identifier for the feature. | -| `name` | *String* | :heavy_check_mark: | The name of the feature. | -| `description` | *String* | :heavy_check_mark: | The description of the feature. | -| `slug` | *String* | :heavy_check_mark: | The URL-friendly slug for the feature. | -| `avatarUrl` | *String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/Seats.md b/docs/models/components/Seats.md index c2c05c2d..18a54364 100644 --- a/docs/models/components/Seats.md +++ b/docs/models/components/Seats.md @@ -5,7 +5,7 @@ Seat quantity for seat-based billing. ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `quantity` | *Optional\* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | -| `tiers` | List\<[SchemasCommercePerUnitTotalTier](../../models/components/SchemasCommercePerUnitTotalTier.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `quantity` | *Optional\* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | +| `tiers` | List\<[CommercePerUnitTotalTier2](../../models/components/CommercePerUnitTotalTier2.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file diff --git a/docs/models/components/Totals.md b/docs/models/components/Totals.md index 75f051f1..32414b67 100644 --- a/docs/models/components/Totals.md +++ b/docs/models/components/Totals.md @@ -11,6 +11,6 @@ Totals for this subscription item. | `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | | `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A | -| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A | +| `perUnitTotals` | List\<[CommercePerUnitTotal2](../../models/components/CommercePerUnitTotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [JsonNullable\](../../models/components/CommerceSubscriptionItemCredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [JsonNullable\](../../models/components/Discounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/TrustedDevice.md b/docs/models/components/TrustedDevice.md new file mode 100644 index 00000000..4af9c5e9 --- /dev/null +++ b/docs/models/components/TrustedDevice.md @@ -0,0 +1,18 @@ +# TrustedDevice + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `object` | [TrustedDeviceObject](../../models/components/TrustedDeviceObject.md) | :heavy_check_mark: | String representing the object's type. | +| `id` | *String* | :heavy_check_mark: | N/A | +| `platform` | [Platform](../../models/components/Platform.md) | :heavy_check_mark: | N/A | +| `appIdentifier` | *String* | :heavy_check_mark: | N/A | +| `name` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `algorithm` | [Algorithm](../../models/components/Algorithm.md) | :heavy_check_mark: | N/A | +| `status` | [TrustedDeviceStatus](../../models/components/TrustedDeviceStatus.md) | :heavy_check_mark: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation in milliseconds. | +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of the last update in milliseconds. | +| `lastUsedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp of the last use in milliseconds. | +| `revokedAt` | *JsonNullable\* | :heavy_minus_sign: | Unix timestamp of revocation in milliseconds. | \ No newline at end of file diff --git a/docs/models/components/TrustedDeviceList.md b/docs/models/components/TrustedDeviceList.md new file mode 100644 index 00000000..4ca8b303 --- /dev/null +++ b/docs/models/components/TrustedDeviceList.md @@ -0,0 +1,11 @@ +# TrustedDeviceList + +Success + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `data` | List\<[TrustedDevice](../../models/components/TrustedDevice.md)> | :heavy_check_mark: | N/A | +| `totalCount` | *long* | :heavy_check_mark: | Total number of trusted devices | \ No newline at end of file diff --git a/docs/models/components/TrustedDeviceObject.md b/docs/models/components/TrustedDeviceObject.md new file mode 100644 index 00000000..3b1e4e11 --- /dev/null +++ b/docs/models/components/TrustedDeviceObject.md @@ -0,0 +1,18 @@ +# TrustedDeviceObject + +String representing the object's type. + +## Example Usage + +```java +import com.clerk.backend_api.models.components.TrustedDeviceObject; + +TrustedDeviceObject value = TrustedDeviceObject.TRUSTED_DEVICE; +``` + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `TRUSTED_DEVICE` | trusted_device | \ No newline at end of file diff --git a/docs/models/components/TrustedDeviceStatus.md b/docs/models/components/TrustedDeviceStatus.md new file mode 100644 index 00000000..3ff94326 --- /dev/null +++ b/docs/models/components/TrustedDeviceStatus.md @@ -0,0 +1,17 @@ +# TrustedDeviceStatus + +## Example Usage + +```java +import com.clerk.backend_api.models.components.TrustedDeviceStatus; + +TrustedDeviceStatus value = TrustedDeviceStatus.ACTIVE; +``` + + +## Values + +| Name | Value | +| --------- | --------- | +| `ACTIVE` | active | +| `REVOKED` | revoked | \ No newline at end of file diff --git a/docs/models/components/Two.md b/docs/models/components/Two.md index 3a3cb546..8de92d23 100644 --- a/docs/models/components/Two.md +++ b/docs/models/components/Two.md @@ -3,32 +3,35 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `object` | [SAMLConnection2Object](../../models/components/SAMLConnection2Object.md) | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | List\<*String*> | :heavy_check_mark: | N/A | -| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | -| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | -| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | -| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `acsUrl` | *String* | :heavy_check_mark: | N/A | -| `spEntityId` | *String* | :heavy_check_mark: | N/A | -| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | -| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | -| `active` | *boolean* | :heavy_check_mark: | N/A | -| `provider` | *String* | :heavy_check_mark: | N/A | -| `userCount` | *long* | :heavy_check_mark: | N/A | -| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | -| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | -| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | -| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | -| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | -| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [SAMLConnection2Object](../../models/components/SAMLConnection2Object.md) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | List\<*String*> | :heavy_check_mark: | N/A | +| `idpEntityId` | *Optional\* | :heavy_check_mark: | N/A | +| `idpSsoUrl` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificate` | *Optional\* | :heavy_check_mark: | N/A | +| `idpCertificateIssuedAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idpCertificateExpiresAt` | *Optional\* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idpMetadataUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `acsUrl` | *String* | :heavy_check_mark: | N/A | +| `spEntityId` | *String* | :heavy_check_mark: | N/A | +| `spMetadataUrl` | *String* | :heavy_check_mark: | N/A | +| `organizationId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `attributeMapping` | [Optional\](../../models/components/SAMLConnectionAttributeMapping.md) | :heavy_minus_sign: | N/A | +| `active` | *boolean* | :heavy_check_mark: | N/A | +| `provider` | *String* | :heavy_check_mark: | N/A | +| `userCount` | *long* | :heavy_check_mark: | N/A | +| `syncUserAttributes` | *boolean* | :heavy_check_mark: | N/A | +| `allowSubdomains` | *boolean* | :heavy_check_mark: | N/A | +| `allowIdpInitiated` | *boolean* | :heavy_check_mark: | N/A | +| `disableAdditionalIdentifications` | *boolean* | :heavy_check_mark: | N/A | +| `allowOrganizationAccountLinking` | *boolean* | :heavy_check_mark: | N/A | +| `forceAuthn` | *boolean* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `loginHint` | [SAMLConnectionLoginHint](../../models/components/SAMLConnectionLoginHint.md) | :heavy_check_mark: | Configuration for the login_hint sent to the IdP on SSO sign-in | +| `enterpriseConnectionId` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/VerificationGoogleOneTapErrorClerkError.md b/docs/models/components/VerificationGoogleOneTapErrorClerkError.md index f6ea715c..e127ba4a 100644 --- a/docs/models/components/VerificationGoogleOneTapErrorClerkError.md +++ b/docs/models/components/VerificationGoogleOneTapErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationOauthErrorClerkError.md b/docs/models/components/VerificationOauthErrorClerkError.md index c1585841..adc5b8ea 100644 --- a/docs/models/components/VerificationOauthErrorClerkError.md +++ b/docs/models/components/VerificationOauthErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md b/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md index 41eb739e..7c6faa13 100644 --- a/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md +++ b/docs/models/components/VerificationOauthErrorEnterpriseAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md b/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md index 514bca5f..e177a50c 100644 --- a/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md +++ b/docs/models/components/VerificationSAMLErrorSAMLAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorSAMLAccountMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSamlErrorClerkError.md b/docs/models/components/VerificationSamlErrorClerkError.md index 63ff0a97..8f0c06d5 100644 --- a/docs/models/components/VerificationSamlErrorClerkError.md +++ b/docs/models/components/VerificationSamlErrorClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md b/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md index c6dcc00a..cbff1ec3 100644 --- a/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md +++ b/docs/models/components/VerificationSamlErrorEnterpriseAccountClerkError.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `message` | *String* | :heavy_check_mark: | N/A | -| `longMessage` | *String* | :heavy_check_mark: | N/A | -| `code` | *String* | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/components/ClerkErrorErrorEnterpriseAccountMeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `message` | *String* | :heavy_check_mark: | N/A | +| `longMessage` | *String* | :heavy_check_mark: | N/A | +| `code` | *String* | :heavy_check_mark: | N/A | +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/ClerkErrors.md b/docs/models/errors/ClerkErrors.md index 76fd9712..a9f48db7 100644 --- a/docs/models/errors/ClerkErrors.md +++ b/docs/models/errors/ClerkErrors.md @@ -8,4 +8,4 @@ Request was not successful | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | | `errors` | List\<[ClerkError](../../models/components/ClerkError.md)> | :heavy_check_mark: | N/A | -| `meta` | [Optional\](../../models/errors/Meta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `meta` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/errors/Meta.md b/docs/models/errors/Meta.md deleted file mode 100644 index 93f98d6a..00000000 --- a/docs/models/errors/Meta.md +++ /dev/null @@ -1,7 +0,0 @@ -# Meta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/CreateEmailAddressRequestBody.md b/docs/models/operations/CreateEmailAddressRequestBody.md index a550d4ff..0cc4a1aa 100644 --- a/docs/models/operations/CreateEmailAddressRequestBody.md +++ b/docs/models/operations/CreateEmailAddressRequestBody.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID representing the user | -| `emailAddress` | *String* | :heavy_check_mark: | The new email address. Must adhere to the RFC 5322 specification for email address format. | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | When created, the email address will be marked as verified. | -| `primary` | *JsonNullable\* | :heavy_minus_sign: | Create this email address as the primary email address for the user.
Default: false, unless it is the first email address. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID representing the user | +| `emailAddress` | *String* | :heavy_check_mark: | The new email address. Must adhere to the RFC 5322 specification for email address format. | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | When created, the email address will be marked as verified. | +| `primary` | *JsonNullable\* | :heavy_minus_sign: | Create this email address as the primary email address for the user.
Default: false, unless it is the first email address. | +| `notifyPrimaryEmailAddressChanged` | *JsonNullable\* | :heavy_minus_sign: | If set to `true` and the email address is created as the user's new primary,
the previous primary email address is notified of the change.
By default, no notification is sent. | \ No newline at end of file diff --git a/docs/models/operations/CreateEnterpriseConnectionLoginHint.md b/docs/models/operations/CreateEnterpriseConnectionLoginHint.md new file mode 100644 index 00000000..7b5a7260 --- /dev/null +++ b/docs/models/operations/CreateEnterpriseConnectionLoginHint.md @@ -0,0 +1,11 @@ +# CreateEnterpriseConnectionLoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [CreateEnterpriseConnectionMode](../../models/operations/CreateEnterpriseConnectionMode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/operations/CreateEnterpriseConnectionMode.md b/docs/models/operations/CreateEnterpriseConnectionMode.md new file mode 100644 index 00000000..551323b7 --- /dev/null +++ b/docs/models/operations/CreateEnterpriseConnectionMode.md @@ -0,0 +1,20 @@ +# CreateEnterpriseConnectionMode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.operations.CreateEnterpriseConnectionMode; + +CreateEnterpriseConnectionMode value = CreateEnterpriseConnectionMode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/CreateM2MTokenResponseBody.md b/docs/models/operations/CreateM2MTokenResponseBody.md index 34f2fafa..5ef8c1b0 100644 --- a/docs/models/operations/CreateM2MTokenResponseBody.md +++ b/docs/models/operations/CreateM2MTokenResponseBody.md @@ -16,7 +16,7 @@ | `revoked` | *boolean* | :heavy_check_mark: | N/A | false | | `revocationReason` | *Optional\* | :heavy_check_mark: | N/A | Revoked by user | | `expired` | *boolean* | :heavy_check_mark: | N/A | false | -| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200 | -| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200 | -| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200 | -| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200 | \ No newline at end of file +| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200000 | +| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200000 | +| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200000 | +| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200000 | \ No newline at end of file diff --git a/docs/models/operations/CreateOrganizationDomainRequestBody.md b/docs/models/operations/CreateOrganizationDomainRequestBody.md index d3389b5a..f33d0a7e 100644 --- a/docs/models/operations/CreateOrganizationDomainRequestBody.md +++ b/docs/models/operations/CreateOrganizationDomainRequestBody.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | The name of the new domain | -| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | The name of the new domain | +| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file diff --git a/docs/models/operations/CreateSAMLConnectionRequestBodyLoginHint.md b/docs/models/operations/CreateSAMLConnectionRequestBodyLoginHint.md new file mode 100644 index 00000000..d8e17963 --- /dev/null +++ b/docs/models/operations/CreateSAMLConnectionRequestBodyLoginHint.md @@ -0,0 +1,11 @@ +# CreateSAMLConnectionRequestBodyLoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `mode` | [CreateSAMLConnectionRequestBodyMode](../../models/operations/CreateSAMLConnectionRequestBodyMode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/operations/CreateSAMLConnectionRequestBodyMode.md b/docs/models/operations/CreateSAMLConnectionRequestBodyMode.md new file mode 100644 index 00000000..50cfc616 --- /dev/null +++ b/docs/models/operations/CreateSAMLConnectionRequestBodyMode.md @@ -0,0 +1,20 @@ +# CreateSAMLConnectionRequestBodyMode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.operations.CreateSAMLConnectionRequestBodyMode; + +CreateSAMLConnectionRequestBodyMode value = CreateSAMLConnectionRequestBodyMode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMDirectoryRequestBody.md b/docs/models/operations/CreateSCIMDirectoryRequestBody.md new file mode 100644 index 00000000..b6e0266d --- /dev/null +++ b/docs/models/operations/CreateSCIMDirectoryRequestBody.md @@ -0,0 +1,11 @@ +# CreateSCIMDirectoryRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `enterpriseConnectionId` | *String* | :heavy_check_mark: | The ID of the enterprise connection to associate with this SCIM directory. | +| `name` | *Optional\* | :heavy_minus_sign: | A human-friendly name for the SCIM directory. | +| `provider` | *String* | :heavy_check_mark: | The identity provider for this SCIM directory. | +| `groupRoleMappings` | List\<[GroupRoleMappings](../../models/operations/GroupRoleMappings.md)> | :heavy_minus_sign: | Optional SCIM group to organization role mappings to create with the directory. | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMDirectoryResponse.md b/docs/models/operations/CreateSCIMDirectoryResponse.md new file mode 100644 index 00000000..ea2d41a0 --- /dev/null +++ b/docs/models/operations/CreateSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# CreateSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md b/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md new file mode 100644 index 00000000..624ffc85 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingRequest.md @@ -0,0 +1,9 @@ +# CreateSCIMGroupRoleMappingRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [CreateSCIMGroupRoleMappingRequestBody](../../models/operations/CreateSCIMGroupRoleMappingRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md b/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md new file mode 100644 index 00000000..5250ec29 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingRequestBody.md @@ -0,0 +1,10 @@ +# CreateSCIMGroupRoleMappingRequestBody + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `roleId` | *String* | :heavy_check_mark: | The ID of the organization role to assign to members of the SCIM group. | +| `precedence` | *Optional\* | :heavy_minus_sign: | The precedence for this mapping. Lower values take priority when a user belongs
to multiple mapped groups. If omitted, the mapping is appended with the
next-highest precedence. | \ No newline at end of file diff --git a/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md b/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md new file mode 100644 index 00000000..309eaa29 --- /dev/null +++ b/docs/models/operations/CreateSCIMGroupRoleMappingResponse.md @@ -0,0 +1,11 @@ +# CreateSCIMGroupRoleMappingResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMapping` | [Optional\](../../models/components/SCIMGroupRoleMapping.md) | :heavy_minus_sign: | A SCIM group role mapping | \ No newline at end of file diff --git a/docs/models/operations/CreateSignInTokenRequestBody.md b/docs/models/operations/CreateSignInTokenRequestBody.md index 34354484..0798307d 100644 --- a/docs/models/operations/CreateSignInTokenRequestBody.md +++ b/docs/models/operations/CreateSignInTokenRequestBody.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `userId` | *String* | :heavy_check_mark: | The ID of the user that can use the newly created sign in token | -| `expiresInSeconds` | *JsonNullable\* | :heavy_minus_sign: | Optional parameter to specify the life duration of the sign in token in seconds.
By default, the duration is 30 days. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user that can use the newly created sign in token | +| `orgId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the organization to activate when the user signs in.
Organizations must be enabled for the instance, and the user must be a member of the organization. | +| `expiresInSeconds` | *JsonNullable\* | :heavy_minus_sign: | Optional parameter to specify the life duration of the sign in token in seconds.
By default, the duration is 30 days. | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMDirectoryRequest.md b/docs/models/operations/DeleteSCIMDirectoryRequest.md new file mode 100644 index 00000000..31a928ac --- /dev/null +++ b/docs/models/operations/DeleteSCIMDirectoryRequest.md @@ -0,0 +1,8 @@ +# DeleteSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to delete | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMDirectoryResponse.md b/docs/models/operations/DeleteSCIMDirectoryResponse.md new file mode 100644 index 00000000..bc8dfd53 --- /dev/null +++ b/docs/models/operations/DeleteSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# DeleteSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `deletedObject` | [Optional\](../../models/components/DeletedObject.md) | :heavy_minus_sign: | Deleted Object | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md b/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md new file mode 100644 index 00000000..75261c19 --- /dev/null +++ b/docs/models/operations/DeleteSCIMGroupRoleMappingRequest.md @@ -0,0 +1,9 @@ +# DeleteSCIMGroupRoleMappingRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `mappingId` | *String* | :heavy_check_mark: | The ID of the SCIM group role mapping to delete. | \ No newline at end of file diff --git a/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md b/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md new file mode 100644 index 00000000..0db0ec8a --- /dev/null +++ b/docs/models/operations/DeleteSCIMGroupRoleMappingResponse.md @@ -0,0 +1,11 @@ +# DeleteSCIMGroupRoleMappingResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingDeleted` | [Optional\](../../models/components/SCIMGroupRoleMappingDeleted.md) | :heavy_minus_sign: | A SCIM group role mapping was deleted. | \ No newline at end of file diff --git a/docs/models/operations/EnrollmentMode.md b/docs/models/operations/EnrollmentMode.md index 025654a5..94b2ff9d 100644 --- a/docs/models/operations/EnrollmentMode.md +++ b/docs/models/operations/EnrollmentMode.md @@ -11,8 +11,13 @@ EnrollmentMode value = EnrollmentMode.MANUAL_INVITATION; ## Values -| Name | Value | -| ---------------------- | ---------------------- | -| `MANUAL_INVITATION` | manual_invitation | -| `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| Name | Value | +| ---------------------------- | ---------------------------- | +| `MANUAL_INVITATION` | manual_invitation | +| `AUTOMATIC_INVITATION` | automatic_invitation | +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | +| `MINUS_MANUAL_INVITATION` | -manual_invitation | +| `MINUS_AUTOMATIC_INVITATION` | -automatic_invitation | +| `MINUS_AUTOMATIC_SUGGESTION` | -automatic_suggestion | +| `MINUS_ENTERPRISE_SSO` | -enterprise_sso | \ No newline at end of file diff --git a/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md b/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md index 82e399b0..d8c7c9c7 100644 --- a/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md +++ b/docs/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `schemasCommerceSubscriptionItem` | [Optional\](../../models/components/SchemasCommerceSubscriptionItem.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file +| `commerceSubscriptionItem2` | [Optional\](../../models/components/CommerceSubscriptionItem2.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file diff --git a/docs/models/operations/GetSCIMDirectoryRequest.md b/docs/models/operations/GetSCIMDirectoryRequest.md new file mode 100644 index 00000000..c089034f --- /dev/null +++ b/docs/models/operations/GetSCIMDirectoryRequest.md @@ -0,0 +1,8 @@ +# GetSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to retrieve | \ No newline at end of file diff --git a/docs/models/operations/GetSCIMDirectoryResponse.md b/docs/models/operations/GetSCIMDirectoryResponse.md new file mode 100644 index 00000000..d27457ab --- /dev/null +++ b/docs/models/operations/GetSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# GetSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/GroupRoleMappings.md b/docs/models/operations/GroupRoleMappings.md new file mode 100644 index 00000000..c90766c6 --- /dev/null +++ b/docs/models/operations/GroupRoleMappings.md @@ -0,0 +1,11 @@ +# GroupRoleMappings + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `scimGroupDisplayName` | *Optional\* | :heavy_minus_sign: | Optional display name for the SCIM group. | +| `roleId` | *String* | :heavy_check_mark: | The organization role ID to assign to members of the SCIM group. | +| `precedence` | *Optional\* | :heavy_minus_sign: | The precedence for this mapping. If omitted, precedence is assigned by array order. | \ No newline at end of file diff --git a/docs/models/operations/IdentificationStatus.md b/docs/models/operations/IdentificationStatus.md index f5f441b8..193667ca 100644 --- a/docs/models/operations/IdentificationStatus.md +++ b/docs/models/operations/IdentificationStatus.md @@ -1,8 +1,15 @@ # IdentificationStatus Controls the status of the replacement email address. Defaults to `verified`. Set to -`reserved` to create it reserved (unverified but usable for sign-in and locked) -instead of verified. +`reserved` to create it reserved (unverified but usable for sign-in and locked so no +other user can claim it), or to `unverified` to create it neither usable for sign-in +nor locked. + +**Warning:** `unverified` can lock the user out of their account. An unverified email +address cannot be used to sign in, so if the user has no other verified or reserved +identifier, they will be unable to authenticate and unable to verify this address. +Prefer `reserved` unless you specifically need the address left unclaimed — for +example so that another user can also hold it until one of them verifies it. ## Example Usage @@ -15,7 +22,8 @@ IdentificationStatus value = IdentificationStatus.VERIFIED; ## Values -| Name | Value | -| ---------- | ---------- | -| `VERIFIED` | verified | -| `RESERVED` | reserved | \ No newline at end of file +| Name | Value | +| ------------ | ------------ | +| `VERIFIED` | verified | +| `RESERVED` | reserved | +| `UNVERIFIED` | unverified | \ No newline at end of file diff --git a/docs/models/operations/ListAllOrganizationDomainsRequest.md b/docs/models/operations/ListAllOrganizationDomainsRequest.md index c0c83f34..b2b649cf 100644 --- a/docs/models/operations/ListAllOrganizationDomainsRequest.md +++ b/docs/models/operations/ListAllOrganizationDomainsRequest.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `organizationId` | *Optional\* | :heavy_minus_sign: | The ID of the organization to filter domains by | | `verified` | [Optional\](../../models/operations/Verified.md) | :heavy_minus_sign: | Filter by verification status | -| `enrollmentMode` | List\<[EnrollmentMode](../../models/operations/EnrollmentMode.md)> | :heavy_minus_sign: | Filter by enrollment mode | +| `enrollmentMode` | List\<[EnrollmentMode](../../models/operations/EnrollmentMode.md)> | :heavy_minus_sign: | Filter by enrollment mode. Prefix a value with `-` to exclude it instead
(e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | | `query` | *Optional\* | :heavy_minus_sign: | Search domains by name or organization ID.
If the query starts with "org_", it will search by exact organization ID match.
Otherwise, it performs a case-insensitive partial match on the domain name.

Note: An empty string or whitespace-only value is not allowed and will result in a validation error.
| | `domains` | List\<*String*> | :heavy_minus_sign: | Filter by exact domain names. Accepts multiple values (e.g. domains=example.com&domains=test.org). | | `orderBy` | *Optional\* | :heavy_minus_sign: | Allows to return organization domains in a particular order.
At the moment, you can order the returned domains by their `name` or `created_at`.
In order to specify the direction, you can use the `+/-` symbols prepended to the property to order by.
For example, if you want domains to be returned in descending order according to their `created_at` property, you can use `-created_at`.
If you don't use `+` or `-`, then `+` is implied.
Defaults to `-created_at`.
| diff --git a/docs/models/operations/ListOrganizationDomainsRequest.md b/docs/models/operations/ListOrganizationDomainsRequest.md index 57590245..3edb0fd9 100644 --- a/docs/models/operations/ListOrganizationDomainsRequest.md +++ b/docs/models/operations/ListOrganizationDomainsRequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `organizationId` | *String* | :heavy_check_mark: | The organization ID. | -| `verified` | *Optional\* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | -| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | Filter domains by their enrollment mode | -| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `organizationId` | *String* | :heavy_check_mark: | The organization ID. | +| `verified` | *Optional\* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | +| `enrollmentMode` | *Optional\* | :heavy_minus_sign: | Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`.
Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMDirectoriesRequest.md b/docs/models/operations/ListSCIMDirectoriesRequest.md new file mode 100644 index 00000000..46b57e14 --- /dev/null +++ b/docs/models/operations/ListSCIMDirectoriesRequest.md @@ -0,0 +1,9 @@ +# ListSCIMDirectoriesRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMDirectoriesResponse.md b/docs/models/operations/ListSCIMDirectoriesResponse.md new file mode 100644 index 00000000..d8cce0d0 --- /dev/null +++ b/docs/models/operations/ListSCIMDirectoriesResponse.md @@ -0,0 +1,11 @@ +# ListSCIMDirectoriesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectoryList` | [Optional\](../../models/components/SCIMDirectoryList.md) | :heavy_minus_sign: | A list of SCIM directories | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md b/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md new file mode 100644 index 00000000..0d2d308f --- /dev/null +++ b/docs/models/operations/ListSCIMGroupRoleMappingsRequest.md @@ -0,0 +1,8 @@ +# ListSCIMGroupRoleMappingsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | \ No newline at end of file diff --git a/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md b/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md new file mode 100644 index 00000000..e278e943 --- /dev/null +++ b/docs/models/operations/ListSCIMGroupRoleMappingsResponse.md @@ -0,0 +1,11 @@ +# ListSCIMGroupRoleMappingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingList` | [Optional\](../../models/components/SCIMGroupRoleMappingList.md) | :heavy_minus_sign: | A list of SCIM group role mappings, ordered by precedence. | \ No newline at end of file diff --git a/docs/models/operations/ListUserTrustedDevicesRequest.md b/docs/models/operations/ListUserTrustedDevicesRequest.md new file mode 100644 index 00000000..8298ab70 --- /dev/null +++ b/docs/models/operations/ListUserTrustedDevicesRequest.md @@ -0,0 +1,8 @@ +# ListUserTrustedDevicesRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user whose trusted devices are returned | \ No newline at end of file diff --git a/docs/models/operations/ListUserTrustedDevicesResponse.md b/docs/models/operations/ListUserTrustedDevicesResponse.md new file mode 100644 index 00000000..f1373eab --- /dev/null +++ b/docs/models/operations/ListUserTrustedDevicesResponse.md @@ -0,0 +1,11 @@ +# ListUserTrustedDevicesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `trustedDeviceList` | [Optional\](../../models/components/TrustedDeviceList.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/models/operations/LoginHint.md b/docs/models/operations/LoginHint.md new file mode 100644 index 00000000..781867fd --- /dev/null +++ b/docs/models/operations/LoginHint.md @@ -0,0 +1,11 @@ +# LoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [Mode](../../models/operations/Mode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/operations/M2mTokens.md b/docs/models/operations/M2mTokens.md index 2b059972..3f7b0aa4 100644 --- a/docs/models/operations/M2mTokens.md +++ b/docs/models/operations/M2mTokens.md @@ -13,7 +13,7 @@ | `revoked` | *boolean* | :heavy_check_mark: | N/A | false | | `revocationReason` | *Optional\* | :heavy_check_mark: | N/A | Revoked by user | | `expired` | *boolean* | :heavy_check_mark: | N/A | false | -| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200 | -| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200 | -| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200 | -| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200 | \ No newline at end of file +| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200000 | +| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200000 | +| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200000 | +| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200000 | \ No newline at end of file diff --git a/docs/models/operations/Mappings.md b/docs/models/operations/Mappings.md new file mode 100644 index 00000000..df3b0b55 --- /dev/null +++ b/docs/models/operations/Mappings.md @@ -0,0 +1,9 @@ +# Mappings + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `scimGroupId` | *String* | :heavy_check_mark: | The SCIM group ID from the identity provider. | +| `roleId` | *String* | :heavy_check_mark: | The ID of the organization role to assign to members of the SCIM group. | \ No newline at end of file diff --git a/docs/models/operations/Mode.md b/docs/models/operations/Mode.md new file mode 100644 index 00000000..c055f060 --- /dev/null +++ b/docs/models/operations/Mode.md @@ -0,0 +1,20 @@ +# Mode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.operations.Mode; + +Mode value = Mode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/One.md b/docs/models/operations/One.md index 7f9e3d7a..c2b30690 100644 --- a/docs/models/operations/One.md +++ b/docs/models/operations/One.md @@ -16,4 +16,5 @@ | `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | The XML content of the IdP metadata file. If present, it takes priority over the corresponding individual properties | | `organizationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the organization to which users of this SAML Connection will be added | | `attributeMapping` | [JsonNullable\](../../models/operations/CreateSAMLConnectionRequestBodyAttributeMapping.md) | :heavy_minus_sign: | Define the attribute name mapping between Identity Provider and Clerk's user properties | -| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Enable or deactivate ForceAuthn | \ No newline at end of file +| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Enable or deactivate ForceAuthn | +| `loginHint` | [JsonNullable\](../../models/operations/CreateSAMLConnectionRequestBodyLoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | \ No newline at end of file diff --git a/docs/models/components/SchemasCommercePerUnitTotal.md b/docs/models/operations/RemoveUserPasswordRequest.md similarity index 54% rename from docs/models/components/SchemasCommercePerUnitTotal.md rename to docs/models/operations/RemoveUserPasswordRequest.md index aeedba3f..d19fe8f5 100644 --- a/docs/models/components/SchemasCommercePerUnitTotal.md +++ b/docs/models/operations/RemoveUserPasswordRequest.md @@ -1,10 +1,9 @@ -# SchemasCommercePerUnitTotal +# RemoveUserPasswordRequest ## Fields | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `name` | *String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | -| `blockSize` | *long* | :heavy_check_mark: | Number of units included in each pricing block | -| `tiers` | List\<[SchemasCommercePerUnitTotalTier](../../models/components/SchemasCommercePerUnitTotalTier.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file +| `userId` | *String* | :heavy_check_mark: | The ID of the user whose password to remove | +| `requestBody` | [Optional\](../../models/operations/RemoveUserPasswordRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/RemoveUserPasswordRequestBody.md b/docs/models/operations/RemoveUserPasswordRequestBody.md new file mode 100644 index 00000000..dfec28c3 --- /dev/null +++ b/docs/models/operations/RemoveUserPasswordRequestBody.md @@ -0,0 +1,8 @@ +# RemoveUserPasswordRequestBody + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `signOutOfOtherSessions` | *Optional\* | :heavy_minus_sign: | Set to `true` to revoke all of the user's active sessions after removing the password. | \ No newline at end of file diff --git a/docs/models/operations/RemoveUserPasswordResponse.md b/docs/models/operations/RemoveUserPasswordResponse.md new file mode 100644 index 00000000..0370fe91 --- /dev/null +++ b/docs/models/operations/RemoveUserPasswordResponse.md @@ -0,0 +1,11 @@ +# RemoveUserPasswordResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `user` | [Optional\](../../models/components/User.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md new file mode 100644 index 00000000..d6b43037 --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequest.md @@ -0,0 +1,9 @@ +# ReplaceSCIMGroupRoleMappingsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [ReplaceSCIMGroupRoleMappingsRequestBody](../../models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md new file mode 100644 index 00000000..589b3a7c --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md @@ -0,0 +1,8 @@ +# ReplaceSCIMGroupRoleMappingsRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `mappings` | List\<[Mappings](../../models/operations/Mappings.md)> | :heavy_check_mark: | The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all mappings. | \ No newline at end of file diff --git a/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md b/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md new file mode 100644 index 00000000..40b2f770 --- /dev/null +++ b/docs/models/operations/ReplaceSCIMGroupRoleMappingsResponse.md @@ -0,0 +1,11 @@ +# ReplaceSCIMGroupRoleMappingsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimGroupRoleMappingList` | [Optional\](../../models/components/SCIMGroupRoleMappingList.md) | :heavy_minus_sign: | A list of SCIM group role mappings, ordered by precedence. | \ No newline at end of file diff --git a/docs/models/operations/ReplaceUserEmailAddressRequestBody.md b/docs/models/operations/ReplaceUserEmailAddressRequestBody.md index 4ccc622b..aa9aa6f3 100644 --- a/docs/models/operations/ReplaceUserEmailAddressRequestBody.md +++ b/docs/models/operations/ReplaceUserEmailAddressRequestBody.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `emailAddress` | *String* | :heavy_check_mark: | The new email address. Must adhere to the RFC 5322 specification for email address format. | -| `identificationStatus` | [Optional\](../../models/operations/IdentificationStatus.md) | :heavy_minus_sign: | Controls the status of the replacement email address. Defaults to `verified`. Set to
`reserved` to create it reserved (unverified but usable for sign-in and locked)
instead of verified. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `emailAddress` | *String* | :heavy_check_mark: | The new email address. Must adhere to the RFC 5322 specification for email address format. | +| `identificationStatus` | [Optional\](../../models/operations/IdentificationStatus.md) | :heavy_minus_sign: | Controls the status of the replacement email address. Defaults to `verified`. Set to
`reserved` to create it reserved (unverified but usable for sign-in and locked so no
other user can claim it), or to `unverified` to create it neither usable for sign-in
nor locked.

**Warning:** `unverified` can lock the user out of their account. An unverified email
address cannot be used to sign in, so if the user has no other verified or reserved
identifier, they will be unable to authenticate and unable to verify this address.
Prefer `reserved` unless you specifically need the address left unclaimed — for
example so that another user can also hold it until one of them verifies it. | +| `notifyPrimaryEmailAddressChanged` | *JsonNullable\* | :heavy_minus_sign: | If set to `true`, the user's previous primary email address is notified that the
primary email address has changed. No notification is sent when the replacement
is the user's current primary email address. By default, no notification is sent. | \ No newline at end of file diff --git a/docs/models/operations/ReplaceUserPhoneNumberIdentificationStatus.md b/docs/models/operations/ReplaceUserPhoneNumberIdentificationStatus.md index 2987eb41..d25d3509 100644 --- a/docs/models/operations/ReplaceUserPhoneNumberIdentificationStatus.md +++ b/docs/models/operations/ReplaceUserPhoneNumberIdentificationStatus.md @@ -1,8 +1,15 @@ # ReplaceUserPhoneNumberIdentificationStatus Controls the status of the replacement phone number. Defaults to `verified`. Set to -`reserved` to create it reserved (unverified but usable for sign-in and locked) -instead of verified. +`reserved` to create it reserved (unverified but usable for sign-in and locked so no +other user can claim it), or to `unverified` to create it neither usable for sign-in +nor locked. + +**Warning:** `unverified` can lock the user out of their account. An unverified phone +number cannot be used to sign in, so if the user has no other verified or reserved +identifier, they will be unable to authenticate and unable to verify this number. +Prefer `reserved` unless you specifically need the number left unclaimed — for +example so that another user can also hold it until one of them verifies it. ## Example Usage @@ -15,7 +22,8 @@ ReplaceUserPhoneNumberIdentificationStatus value = ReplaceUserPhoneNumberIdentif ## Values -| Name | Value | -| ---------- | ---------- | -| `VERIFIED` | verified | -| `RESERVED` | reserved | \ No newline at end of file +| Name | Value | +| ------------ | ------------ | +| `VERIFIED` | verified | +| `RESERVED` | reserved | +| `UNVERIFIED` | unverified | \ No newline at end of file diff --git a/docs/models/operations/ReplaceUserPhoneNumberRequestBody.md b/docs/models/operations/ReplaceUserPhoneNumberRequestBody.md index 15cd938a..bd97a3e6 100644 --- a/docs/models/operations/ReplaceUserPhoneNumberRequestBody.md +++ b/docs/models/operations/ReplaceUserPhoneNumberRequestBody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `phoneNumber` | *String* | :heavy_check_mark: | The new phone number. Must adhere to the E.164 standard for phone number format. | -| `identificationStatus` | [Optional\](../../models/operations/ReplaceUserPhoneNumberIdentificationStatus.md) | :heavy_minus_sign: | Controls the status of the replacement phone number. Defaults to `verified`. Set to
`reserved` to create it reserved (unverified but usable for sign-in and locked)
instead of verified. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `phoneNumber` | *String* | :heavy_check_mark: | The new phone number. Must adhere to the E.164 standard for phone number format. | +| `identificationStatus` | [Optional\](../../models/operations/ReplaceUserPhoneNumberIdentificationStatus.md) | :heavy_minus_sign: | Controls the status of the replacement phone number. Defaults to `verified`. Set to
`reserved` to create it reserved (unverified but usable for sign-in and locked so no
other user can claim it), or to `unverified` to create it neither usable for sign-in
nor locked.

**Warning:** `unverified` can lock the user out of their account. An unverified phone
number cannot be used to sign in, so if the user has no other verified or reserved
identifier, they will be unable to authenticate and unable to verify this number.
Prefer `reserved` unless you specifically need the number left unclaimed — for
example so that another user can also hold it until one of them verifies it. | \ No newline at end of file diff --git a/docs/models/operations/RequestBodyLoginHint.md b/docs/models/operations/RequestBodyLoginHint.md new file mode 100644 index 00000000..878f5ac5 --- /dev/null +++ b/docs/models/operations/RequestBodyLoginHint.md @@ -0,0 +1,11 @@ +# RequestBodyLoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [RequestBodyMode](../../models/operations/RequestBodyMode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/operations/RequestBodyMode.md b/docs/models/operations/RequestBodyMode.md new file mode 100644 index 00000000..796f79b4 --- /dev/null +++ b/docs/models/operations/RequestBodyMode.md @@ -0,0 +1,20 @@ +# RequestBodyMode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.operations.RequestBodyMode; + +RequestBodyMode value = RequestBodyMode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/RevokeM2MTokenResponseBody.md b/docs/models/operations/RevokeM2MTokenResponseBody.md index 713ab49c..604209d1 100644 --- a/docs/models/operations/RevokeM2MTokenResponseBody.md +++ b/docs/models/operations/RevokeM2MTokenResponseBody.md @@ -15,7 +15,7 @@ | `revoked` | *boolean* | :heavy_check_mark: | N/A | false | | `revocationReason` | *Optional\* | :heavy_check_mark: | N/A | Revoked by user | | `expired` | *boolean* | :heavy_check_mark: | N/A | false | -| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200 | -| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200 | -| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200 | -| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200 | \ No newline at end of file +| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200000 | +| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200000 | +| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200000 | +| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200000 | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenRequest.md b/docs/models/operations/RevokeOAuthApplicationTokenRequest.md new file mode 100644 index 00000000..11ef4da3 --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenRequest.md @@ -0,0 +1,9 @@ +# RevokeOAuthApplicationTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `oauthApplicationId` | *String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `requestBody` | [RevokeOAuthApplicationTokenRequestBody](../../models/operations/RevokeOAuthApplicationTokenRequestBody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md b/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md new file mode 100644 index 00000000..0d3d86e9 --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenRequestBody.md @@ -0,0 +1,8 @@ +# RevokeOAuthApplicationTokenRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `token` | *String* | :heavy_check_mark: | The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth grant are also revoked. | \ No newline at end of file diff --git a/docs/models/operations/RevokeOAuthApplicationTokenResponse.md b/docs/models/operations/RevokeOAuthApplicationTokenResponse.md new file mode 100644 index 00000000..8633a5bc --- /dev/null +++ b/docs/models/operations/RevokeOAuthApplicationTokenResponse.md @@ -0,0 +1,10 @@ +# RevokeOAuthApplicationTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/RevokeUserTrustedDeviceRequest.md b/docs/models/operations/RevokeUserTrustedDeviceRequest.md new file mode 100644 index 00000000..f28bb4c0 --- /dev/null +++ b/docs/models/operations/RevokeUserTrustedDeviceRequest.md @@ -0,0 +1,9 @@ +# RevokeUserTrustedDeviceRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user that owns the trusted device | +| `trustedDeviceId` | *String* | :heavy_check_mark: | The ID of the trusted device to revoke | \ No newline at end of file diff --git a/docs/models/operations/RevokeUserTrustedDeviceResponse.md b/docs/models/operations/RevokeUserTrustedDeviceResponse.md new file mode 100644 index 00000000..946c2e25 --- /dev/null +++ b/docs/models/operations/RevokeUserTrustedDeviceResponse.md @@ -0,0 +1,11 @@ +# RevokeUserTrustedDeviceResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `trustedDevice` | [Optional\](../../models/components/TrustedDevice.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md b/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md new file mode 100644 index 00000000..052a100f --- /dev/null +++ b/docs/models/operations/RotateSCIMDirectoryAPIKeyRequest.md @@ -0,0 +1,8 @@ +# RotateSCIMDirectoryAPIKeyRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory whose API key to rotate | \ No newline at end of file diff --git a/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md b/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md new file mode 100644 index 00000000..6dd15dd7 --- /dev/null +++ b/docs/models/operations/RotateSCIMDirectoryAPIKeyResponse.md @@ -0,0 +1,11 @@ +# RotateSCIMDirectoryAPIKeyResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/Saml.md b/docs/models/operations/Saml.md index dfcb1cf8..b3e5f2dd 100644 --- a/docs/models/operations/Saml.md +++ b/docs/models/operations/Saml.md @@ -16,4 +16,5 @@ Use this to set IdP configuration, attribute mapping, and other SAML-specific se | `attributeMapping` | [JsonNullable\](../../models/operations/CreateEnterpriseConnectionAttributeMapping.md) | :heavy_minus_sign: | Attribute mapping for SAML attributes | | `allowSubdomains` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `allowIdpInitiated` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `forceAuthn` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `forceAuthn` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `loginHint` | [JsonNullable\](../../models/operations/CreateEnterpriseConnectionLoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | \ No newline at end of file diff --git a/docs/models/operations/Two.md b/docs/models/operations/Two.md index 688c5aeb..acc5a530 100644 --- a/docs/models/operations/Two.md +++ b/docs/models/operations/Two.md @@ -16,4 +16,5 @@ | `idpMetadata` | *JsonNullable\* | :heavy_minus_sign: | The XML content of the IdP metadata file. If present, it takes priority over the corresponding individual properties | | `organizationId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the organization to which users of this SAML Connection will be added | | `attributeMapping` | [JsonNullable\](../../models/operations/RequestBodyAttributeMapping.md) | :heavy_minus_sign: | Define the attribute name mapping between Identity Provider and Clerk's user properties | -| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Enable or deactivate ForceAuthn | \ No newline at end of file +| `forceAuthn` | *Optional\* | :heavy_minus_sign: | Enable or deactivate ForceAuthn | +| `loginHint` | [JsonNullable\](../../models/operations/RequestBodyLoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | \ No newline at end of file diff --git a/docs/models/operations/UpdateEmailAddressRequestBody.md b/docs/models/operations/UpdateEmailAddressRequestBody.md index 607d4b4f..b4ceace9 100644 --- a/docs/models/operations/UpdateEmailAddressRequestBody.md +++ b/docs/models/operations/UpdateEmailAddressRequestBody.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | The email address will be marked as verified. | -| `primary` | *JsonNullable\* | :heavy_minus_sign: | Set this email address as the primary email address for the user. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | The email address will be marked as verified. | +| `primary` | *JsonNullable\* | :heavy_minus_sign: | Set this email address as the primary email address for the user. | +| `notifyPrimaryEmailAddressChanged` | *JsonNullable\* | :heavy_minus_sign: | If set to `true` and this update makes the email address the user's new primary,
the previous primary email address is notified of the change.
By default, no notification is sent. | \ No newline at end of file diff --git a/docs/models/operations/UpdateEnterpriseConnectionLoginHint.md b/docs/models/operations/UpdateEnterpriseConnectionLoginHint.md new file mode 100644 index 00000000..62a427e7 --- /dev/null +++ b/docs/models/operations/UpdateEnterpriseConnectionLoginHint.md @@ -0,0 +1,11 @@ +# UpdateEnterpriseConnectionLoginHint + +Configuration for the login_hint sent to the IdP on SSO sign-in + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `mode` | [UpdateEnterpriseConnectionMode](../../models/operations/UpdateEnterpriseConnectionMode.md) | :heavy_check_mark: | Controls the login_hint sent to the IdP on SSO sign-in | +| `source` | *Optional\* | :heavy_minus_sign: | The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute | \ No newline at end of file diff --git a/docs/models/operations/UpdateEnterpriseConnectionMode.md b/docs/models/operations/UpdateEnterpriseConnectionMode.md new file mode 100644 index 00000000..bf5de9da --- /dev/null +++ b/docs/models/operations/UpdateEnterpriseConnectionMode.md @@ -0,0 +1,20 @@ +# UpdateEnterpriseConnectionMode + +Controls the login_hint sent to the IdP on SSO sign-in + +## Example Usage + +```java +import com.clerk.backend_api.models.operations.UpdateEnterpriseConnectionMode; + +UpdateEnterpriseConnectionMode value = UpdateEnterpriseConnectionMode.EMAIL_ADDRESS; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EMAIL_ADDRESS` | email_address | +| `CUSTOM_ATTRIBUTE` | custom_attribute | +| `OFF` | off | \ No newline at end of file diff --git a/docs/models/operations/UpdateEnterpriseConnectionSaml.md b/docs/models/operations/UpdateEnterpriseConnectionSaml.md index 16f825d0..18266dcb 100644 --- a/docs/models/operations/UpdateEnterpriseConnectionSaml.md +++ b/docs/models/operations/UpdateEnterpriseConnectionSaml.md @@ -17,4 +17,5 @@ Use this to update IdP configuration, attribute mapping, and other SAML-specific | `attributeMapping` | [JsonNullable\](../../models/operations/UpdateEnterpriseConnectionAttributeMapping.md) | :heavy_minus_sign: | Attribute mapping for SAML attributes | | `allowSubdomains` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `allowIdpInitiated` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `forceAuthn` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `forceAuthn` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `loginHint` | [JsonNullable\](../../models/operations/UpdateEnterpriseConnectionLoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | \ No newline at end of file diff --git a/docs/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.md b/docs/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.md index da30d2b1..4a3385e6 100644 --- a/docs/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.md +++ b/docs/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.md @@ -3,7 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `dynamicOauthClientRegistration` | *JsonNullable\* | :heavy_minus_sign: | Whether dynamic OAuth client registration is enabled for the instance (RFC 7591). | -| `oauthJwtAccessTokens` | *JsonNullable\* | :heavy_minus_sign: | Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access tokens). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `dynamicOauthClientRegistration` | *JsonNullable\* | :heavy_minus_sign: | Whether dynamic OAuth client registration is enabled for the instance (RFC 7591). | +| `defaultScopes` | List\<*String*> | :heavy_minus_sign: | Default scopes. Set to null to reset to Clerk-provided defaults. | +| `oauthJwtAccessTokens` | *JsonNullable\* | :heavy_minus_sign: | Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access tokens). | +| `clientIdMetadataDocumentsAdvertised` | *JsonNullable\* | :heavy_minus_sign: | Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization server metadata. | +| `clientIdMetadataDocumentsOnlyAllowPreRegisteredClients` | *JsonNullable\* | :heavy_minus_sign: | When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered clients remain admitted; deleting a client makes it unknown again. | +| `clientIdMetadataDocumentsBlockImplicitlyAllowedClients` | *JsonNullable\* | :heavy_minus_sign: | When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. | \ No newline at end of file diff --git a/docs/models/operations/UpdateOrganizationDomainRequestBody.md b/docs/models/operations/UpdateOrganizationDomainRequestBody.md index 9f685a8e..db683ea7 100644 --- a/docs/models/operations/UpdateOrganizationDomainRequestBody.md +++ b/docs/models/operations/UpdateOrganizationDomainRequestBody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `enrollmentMode` | *JsonNullable\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `enrollmentMode` | *JsonNullable\* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *JsonNullable\* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file diff --git a/docs/models/operations/UpdateSAMLConnectionRequestBody.md b/docs/models/operations/UpdateSAMLConnectionRequestBody.md index 80d60bd8..ee701db4 100644 --- a/docs/models/operations/UpdateSAMLConnectionRequestBody.md +++ b/docs/models/operations/UpdateSAMLConnectionRequestBody.md @@ -22,4 +22,5 @@ | `disableAdditionalIdentifications` | *JsonNullable\* | :heavy_minus_sign: | Enable or deactivate additional identifications | | `allowOrganizationAccountLinking` | *JsonNullable\* | :heavy_minus_sign: | Whether this connection supports account linking via organization membership | | `forceAuthn` | *Optional\* | :heavy_minus_sign: | Enable or deactivate ForceAuthn | +| `loginHint` | [JsonNullable\](../../models/operations/LoginHint.md) | :heavy_minus_sign: | Configuration for the login_hint sent to the IdP on SSO sign-in | | `consentVerifiedDomainsDeletion` | *JsonNullable\* | :heavy_minus_sign: | When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists. | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryRequest.md b/docs/models/operations/UpdateSCIMDirectoryRequest.md new file mode 100644 index 00000000..0d96a0c4 --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryRequest.md @@ -0,0 +1,9 @@ +# UpdateSCIMDirectoryRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to update | +| `requestBody` | [Optional\](../../models/operations/UpdateSCIMDirectoryRequestBody.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryRequestBody.md b/docs/models/operations/UpdateSCIMDirectoryRequestBody.md new file mode 100644 index 00000000..c01180ae --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryRequestBody.md @@ -0,0 +1,12 @@ +# UpdateSCIMDirectoryRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Optional\* | :heavy_minus_sign: | A human-friendly name for the SCIM directory. | +| `enabled` | *Optional\* | :heavy_minus_sign: | Whether the SCIM directory is enabled. | +| `provider` | *Optional\* | :heavy_minus_sign: | The identity provider for this SCIM directory. | +| `attributeMapping` | Map\ | :heavy_minus_sign: | Attribute-to-SCIM-path entries to merge into the directory's attribute mapping.
Set a key to `null` to remove it from the mapping. | +| `groupRoleMappingEnabled` | *Optional\* | :heavy_minus_sign: | Whether group-to-role mapping is enabled for this SCIM directory. | \ No newline at end of file diff --git a/docs/models/operations/UpdateSCIMDirectoryResponse.md b/docs/models/operations/UpdateSCIMDirectoryResponse.md new file mode 100644 index 00000000..11f18a91 --- /dev/null +++ b/docs/models/operations/UpdateSCIMDirectoryResponse.md @@ -0,0 +1,11 @@ +# UpdateSCIMDirectoryResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `scimDirectory` | [Optional\](../../models/components/SCIMDirectory.md) | :heavy_minus_sign: | A SCIM directory | \ No newline at end of file diff --git a/docs/models/operations/VerifyM2MTokenResponseBody.md b/docs/models/operations/VerifyM2MTokenResponseBody.md index 3c7c3d48..c859238f 100644 --- a/docs/models/operations/VerifyM2MTokenResponseBody.md +++ b/docs/models/operations/VerifyM2MTokenResponseBody.md @@ -15,7 +15,7 @@ | `revoked` | *boolean* | :heavy_check_mark: | N/A | false | | `revocationReason` | *Optional\* | :heavy_check_mark: | N/A | Revoked by user | | `expired` | *boolean* | :heavy_check_mark: | N/A | false | -| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200 | -| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200 | -| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200 | -| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200 | \ No newline at end of file +| `expiration` | *Optional\* | :heavy_check_mark: | The timestamp for when the token will expire, in milliseconds | 1716883200000 | +| `lastUsedAt` | *Optional\* | :heavy_check_mark: | The timestamp for when the token was last used, in milliseconds | 1716883200000 | +| `createdAt` | *double* | :heavy_check_mark: | The timestamp for when the token was created, in milliseconds | 1716883200000 | +| `updatedAt` | *double* | :heavy_check_mark: | The timestamp for when the token was last updated, in milliseconds | 1716883200000 | \ No newline at end of file diff --git a/docs/sdks/billing/README.md b/docs/sdks/billing/README.md index 4264f7f7..4c317f10 100644 --- a/docs/sdks/billing/README.md +++ b/docs/sdks/billing/README.md @@ -334,8 +334,8 @@ public class Application { .build()) .call(); - if (res.schemasCommerceSubscriptionItem().isPresent()) { - System.out.println(res.schemasCommerceSubscriptionItem().get()); + if (res.commerceSubscriptionItem2().isPresent()) { + System.out.println(res.commerceSubscriptionItem2().get()); } } } diff --git a/docs/sdks/emailaddresses/README.md b/docs/sdks/emailaddresses/README.md index 70007a3f..5e9bc191 100644 --- a/docs/sdks/emailaddresses/README.md +++ b/docs/sdks/emailaddresses/README.md @@ -344,10 +344,17 @@ public class Application { Replaces all of the user's email addresses with a single primary email address. By default the new email address is created verified, with the admin verification strategy. When `identification_status` is `reserved` it is created reserved instead: unverified but usable -for sign-in and locked so no other user can claim it. Any existing email addresses are deleted. +for sign-in and locked so no other user can claim it. When it is `unverified` the address is +neither usable for sign-in nor locked. Any existing email addresses are deleted. If an existing email address is linked to a connected account, the request is rejected; remove the connected account first. +**Warning:** `identification_status: unverified` can lock the user out of their account. An +unverified email address cannot be used to sign in, so if the user has no other verified or +reserved identifier, deleting their existing email addresses leaves them unable to +authenticate — and unable to verify the new address, since that requires signing in. Recovery +then requires another admin API call. + ### Example Usage diff --git a/docs/sdks/emailandsmstemplates/README.md b/docs/sdks/emailandsmstemplates/README.md index 5f52425c..6ec9235d 100644 --- a/docs/sdks/emailandsmstemplates/README.md +++ b/docs/sdks/emailandsmstemplates/README.md @@ -61,7 +61,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------- | ---------------------------- | ---------------------------- | -| models/errors/ClerkErrors | 400, 401, 402, 403, 404, 422 | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | +| models/errors/ClerkErrors | 400, 401, 402, 403, 404, 422, 423, 429 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/emailsmstemplates/README.md b/docs/sdks/emailsmstemplates/README.md index a895c161..27b41f5e 100644 --- a/docs/sdks/emailsmstemplates/README.md +++ b/docs/sdks/emailsmstemplates/README.md @@ -240,5 +240,5 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 400, 401, 404 | application/json | +| models/errors/ClerkErrors | 400, 401, 404, 423, 429 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/oauthapplications/README.md b/docs/sdks/oauthapplications/README.md index 70b35fdb..974edfac 100644 --- a/docs/sdks/oauthapplications/README.md +++ b/docs/sdks/oauthapplications/README.md @@ -11,6 +11,7 @@ * [delete](#delete) - Delete an OAuth application * [uploadLogo](#uploadlogo) - Upload a logo for the OAuth application * [rotateSecret](#rotatesecret) - Rotate the client secret of the given OAuth application +* [revokeToken](#revoketoken) - Revoke an OAuth application token ## list @@ -391,4 +392,60 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | | models/errors/ClerkErrors | 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## revokeToken + +Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application. +The request may specify either token. +JWT access tokens cannot be revoked. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBody; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RevokeOAuthApplicationTokenResponse res = sdk.oauthApplications().revokeToken() + .oauthApplicationId("") + .requestBody(RevokeOAuthApplicationTokenRequestBody.builder() + .token("") + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `oauthApplicationId` | *String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `requestBody` | [RevokeOAuthApplicationTokenRequestBody](../../models/operations/RevokeOAuthApplicationTokenRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[RevokeOAuthApplicationTokenResponse](../../models/operations/RevokeOAuthApplicationTokenResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 403, 404, 422 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizationdomains/README.md b/docs/sdks/organizationdomains/README.md index 4bc63e3f..30e37d2b 100644 --- a/docs/sdks/organizationdomains/README.md +++ b/docs/sdks/organizationdomains/README.md @@ -176,7 +176,7 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 400, 404, 422 | application/json | +| models/errors/ClerkErrors | 400, 403, 404, 422 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | ## delete @@ -229,7 +229,7 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 400, 401, 404 | application/json | +| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | ## verifyOwnership diff --git a/docs/sdks/phonenumbers/README.md b/docs/sdks/phonenumbers/README.md index 88b6ea9e..69e0254f 100644 --- a/docs/sdks/phonenumbers/README.md +++ b/docs/sdks/phonenumbers/README.md @@ -344,10 +344,17 @@ public class Application { Replaces all of the user's phone numbers with a single primary phone number. By default the new phone number is created verified, with the admin verification strategy. When `identification_status` is `reserved` it is created reserved instead: unverified but usable -for sign-in and locked so no other user can claim it. The new phone number is never reserved for +for sign-in and locked so no other user can claim it. When it is `unverified` the phone number is +neither usable for sign-in nor locked. The new phone number is never reserved for second factor. Any existing phone numbers are deleted; replacing a phone number that is reserved for second factor disables the user's MFA. +**Warning:** `identification_status: unverified` can lock the user out of their account. An +unverified phone number cannot be used to sign in, so if the user has no other verified or +reserved identifier, deleting their existing phone numbers leaves them unable to authenticate — +and unable to verify the new number, since that requires signing in. Recovery then requires +another admin API call. + ### Example Usage diff --git a/docs/sdks/scimdirectories/README.md b/docs/sdks/scimdirectories/README.md new file mode 100644 index 00000000..c5e9eb34 --- /dev/null +++ b/docs/sdks/scimdirectories/README.md @@ -0,0 +1,551 @@ +# ScimDirectories + +## Overview + +### Available Operations + +* [list](#list) - List all SCIM directories +* [create](#create) - Create a SCIM directory +* [get](#get) - Retrieve a SCIM directory +* [update](#update) - Update a SCIM directory +* [delete](#delete) - Delete a SCIM directory +* [rotateApiKey](#rotateapikey) - Rotate a SCIM directory's API key +* [listGroupRoleMappings](#listgrouprolemappings) - List SCIM group role mappings +* [createGroupRoleMapping](#creategrouprolemapping) - Create a SCIM group role mapping +* [replaceGroupRoleMappings](#replacegrouprolemappings) - Replace SCIM group role mappings +* [deleteGroupRoleMapping](#deletegrouprolemapping) - Delete a SCIM group role mapping + +## list + +Returns a list of all SCIM directories for the instance. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ListSCIMDirectoriesResponse res = sdk.scimDirectories().list() + .limit(10L) + .offset(0L) + .call(); + + if (res.scimDirectoryList().isPresent()) { + System.out.println(res.scimDirectoryList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `limit` | *Optional\* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Optional\* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | + +### Response + +**[ListSCIMDirectoriesResponse](../../models/operations/ListSCIMDirectoriesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## create + +Create a new SCIM directory for the instance. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + CreateSCIMDirectoryResponse res = sdk.scimDirectories().create() + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [CreateSCIMDirectoryRequestBody](../../models/operations/CreateSCIMDirectoryRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateSCIMDirectoryResponse](../../models/operations/CreateSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## get + +Returns the details of a SCIM directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + GetSCIMDirectoryResponse res = sdk.scimDirectories().get() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to retrieve | + +### Response + +**[GetSCIMDirectoryResponse](../../models/operations/GetSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## update + +Updates a SCIM directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + UpdateSCIMDirectoryResponse res = sdk.scimDirectories().update() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to update | +| `requestBody` | [Optional\](../../models/operations/UpdateSCIMDirectoryRequestBody.md) | :heavy_minus_sign: | N/A | + +### Response + +**[UpdateSCIMDirectoryResponse](../../models/operations/UpdateSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## delete + +Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated +with the directory's API key are rejected afterwards. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + DeleteSCIMDirectoryResponse res = sdk.scimDirectories().delete() + .scimDirectoryId("") + .call(); + + if (res.deletedObject().isPresent()) { + System.out.println(res.deletedObject().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory to delete | + +### Response + +**[DeleteSCIMDirectoryResponse](../../models/operations/DeleteSCIMDirectoryResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## rotateApiKey + +Generates a new API key for the SCIM directory and returns it in the `api_key` field. +This is the only way to obtain the key after creation, so make sure to update it in +your identity provider. The previous key remains valid for a short grace period before +it expires. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RotateSCIMDirectoryAPIKeyResponse res = sdk.scimDirectories().rotateApiKey() + .scimDirectoryId("") + .call(); + + if (res.scimDirectory().isPresent()) { + System.out.println(res.scimDirectory().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory whose API key to rotate | + +### Response + +**[RotateSCIMDirectoryAPIKeyResponse](../../models/operations/RotateSCIMDirectoryAPIKeyResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## listGroupRoleMappings + +Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by precedence. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ListSCIMGroupRoleMappingsResponse res = sdk.scimDirectories().listGroupRoleMappings() + .scimDirectoryId("") + .call(); + + if (res.scimGroupRoleMappingList().isPresent()) { + System.out.println(res.scimGroupRoleMappingList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | + +### Response + +**[ListSCIMGroupRoleMappingsResponse](../../models/operations/ListSCIMGroupRoleMappingsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## createGroupRoleMapping + +Creates a new SCIM group to organization role mapping for a SCIM directory. +Group role mapping must be enabled on the directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + CreateSCIMGroupRoleMappingResponse res = sdk.scimDirectories().createGroupRoleMapping() + .scimDirectoryId("") + .requestBody(CreateSCIMGroupRoleMappingRequestBody.builder() + .scimGroupId("") + .roleId("") + .build()) + .call(); + + if (res.scimGroupRoleMapping().isPresent()) { + System.out.println(res.scimGroupRoleMapping().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [CreateSCIMGroupRoleMappingRequestBody](../../models/operations/CreateSCIMGroupRoleMappingRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[CreateSCIMGroupRoleMappingResponse](../../models/operations/CreateSCIMGroupRoleMappingResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## replaceGroupRoleMappings + +Replaces the entire set of SCIM group role mappings for a directory. The position of +each item in the `mappings` array determines its precedence (the first item gets +precedence 1). Passing an empty array removes all mappings. Group role mapping must be +enabled on the directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBody; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ReplaceSCIMGroupRoleMappingsResponse res = sdk.scimDirectories().replaceGroupRoleMappings() + .scimDirectoryId("") + .requestBody(ReplaceSCIMGroupRoleMappingsRequestBody.builder() + .mappings(List.of()) + .build()) + .call(); + + if (res.scimGroupRoleMappingList().isPresent()) { + System.out.println(res.scimGroupRoleMappingList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `requestBody` | [ReplaceSCIMGroupRoleMappingsRequestBody](../../models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.md) | :heavy_check_mark: | N/A | + +### Response + +**[ReplaceSCIMGroupRoleMappingsResponse](../../models/operations/ReplaceSCIMGroupRoleMappingsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404, 422 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## deleteGroupRoleMapping + +Deletes a single SCIM group role mapping. Group role mapping must be enabled on the +directory. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + DeleteSCIMGroupRoleMappingResponse res = sdk.scimDirectories().deleteGroupRoleMapping() + .scimDirectoryId("") + .mappingId("") + .call(); + + if (res.scimGroupRoleMappingDeleted().isPresent()) { + System.out.println(res.scimGroupRoleMappingDeleted().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `scimDirectoryId` | *String* | :heavy_check_mark: | The ID of the SCIM directory. | +| `mappingId` | *String* | :heavy_check_mark: | The ID of the SCIM group role mapping to delete. | + +### Response + +**[DeleteSCIMGroupRoleMappingResponse](../../models/operations/DeleteSCIMGroupRoleMappingResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/signintokens/README.md b/docs/sdks/signintokens/README.md index 0c733482..0cfb9dae 100644 --- a/docs/sdks/signintokens/README.md +++ b/docs/sdks/signintokens/README.md @@ -56,7 +56,7 @@ public class Application { | Error Type | Status Code | Content Type | | ------------------------- | ------------------------- | ------------------------- | -| models/errors/ClerkErrors | 404, 422 | application/json | +| models/errors/ClerkErrors | 403, 404, 422 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | ## revoke diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index dc92a7a5..dde91100 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -26,11 +26,14 @@ * [getOAuthAccessToken](#getoauthaccesstoken) - Retrieve the OAuth access token of a user * [getOrganizationMemberships](#getorganizationmemberships) - Retrieve all memberships for a user * [getOrganizationInvitations](#getorganizationinvitations) - Retrieve all invitations for a user +* [removePassword](#removepassword) - Remove a user's password * [verifyPassword](#verifypassword) - Verify the password of a user * [verifyTotp](#verifytotp) - Verify a TOTP or backup code for a user * [disableMfa](#disablemfa) - Disable a user's MFA methods * [deleteBackupCodes](#deletebackupcodes) - Disable all user's Backup codes * [deletePasskey](#deletepasskey) - Delete a user passkey +* [listTrustedDevices](#listtrusteddevices) - List a user's trusted devices +* [revokeTrustedDevice](#revoketrusteddevice) - Revoke a user's trusted device * [deleteWeb3Wallet](#deleteweb3wallet) - Delete a user web3 wallet * [deleteTOTP](#deletetotp) - Delete all the user's TOTPs * [deleteExternalAccount](#deleteexternalaccount) - Delete External Account @@ -1274,6 +1277,61 @@ public class Application { | models/errors/ClerkErrors | 400, 403, 404 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## removePassword + +Removes the password credential from the given user. This is a privileged operation and does not require the user's current password. Password removal is allowed even when the user has no other sign-in method configured. + +If the user does not have a password, the user is returned unchanged and no password-deletion or user-update event is emitted. By default, existing sessions remain active. Set `sign_out_of_other_sessions` to `true` to revoke sessions active when the request is processed. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RemoveUserPasswordResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RemoveUserPasswordResponse res = sdk.users().removePassword() + .userId("") + .call(); + + if (res.user().isPresent()) { + System.out.println(res.user().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user whose password to remove | +| `requestBody` | [Optional\](../../models/operations/RemoveUserPasswordRequestBody.md) | :heavy_minus_sign: | N/A | + +### Response + +**[RemoveUserPasswordResponse](../../models/operations/RemoveUserPasswordResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json | +| models/errors/ClerkErrors | 500 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## verifyPassword Check that the user's password matches the supplied input. @@ -1540,6 +1598,112 @@ public class Application { | models/errors/ClerkErrors | 500 | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## listTrustedDevices + +Returns the active trusted devices enrolled by the user. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + ListUserTrustedDevicesResponse res = sdk.users().listTrustedDevices() + .userId("") + .call(); + + if (res.trustedDeviceList().isPresent()) { + System.out.println(res.trustedDeviceList().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user whose trusted devices are returned | + +### Response + +**[ListUserTrustedDevicesResponse](../../models/operations/ListUserTrustedDevicesResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 403, 404 | application/json | +| models/errors/ClerkErrors | 500 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## revokeTrustedDevice + +Revokes an active trusted device enrolled by the user. + +### Example Usage + + +```java +package hello.world; + +import com.clerk.backend_api.Clerk; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ClerkErrors, Exception { + + Clerk sdk = Clerk.builder() + .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", "")) + .build(); + + RevokeUserTrustedDeviceResponse res = sdk.users().revokeTrustedDevice() + .userId("") + .trustedDeviceId("") + .call(); + + if (res.trustedDevice().isPresent()) { + System.out.println(res.trustedDevice().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `userId` | *String* | :heavy_check_mark: | The ID of the user that owns the trusted device | +| `trustedDeviceId` | *String* | :heavy_check_mark: | The ID of the trusted device to revoke | + +### Response + +**[RevokeUserTrustedDeviceResponse](../../models/operations/RevokeUserTrustedDeviceResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| models/errors/ClerkErrors | 403, 404 | application/json | +| models/errors/ClerkErrors | 500 | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## deleteWeb3Wallet Delete the web3 wallet identification for a given user. @@ -1756,6 +1920,8 @@ public class Application { Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. +If the user is in reserved-email password quarantine, the quarantine is preserved and the returned user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can only be cleared by completing a password reset or changing/removing the password. + ### Example Usage diff --git a/gradle.properties b/gradle.properties index 3cd7a5f6..89b4d90e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.clerk artifactId=backend-api -version=5.0.0 +version=5.1.0 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/clerk/backend_api/Clerk.java b/src/main/java/com/clerk/backend_api/Clerk.java index 773c40aa..54389ef4 100644 --- a/src/main/java/com/clerk/backend_api/Clerk.java +++ b/src/main/java/com/clerk/backend_api/Clerk.java @@ -159,6 +159,9 @@ public class Clerk { private final RoleSets roleSets; + private final ScimDirectories scimDirectories; + + private final AdminPortalLinkTokens adminPortalLinkTokens; /** @@ -365,6 +368,11 @@ public RoleSets roleSets() { } + public ScimDirectories scimDirectories() { + return scimDirectories; + } + + public AdminPortalLinkTokens adminPortalLinkTokens() { return adminPortalLinkTokens; } @@ -572,6 +580,7 @@ private Clerk(SDKConfiguration sdkConfiguration) { this.billing = new Billing(sdkConfiguration); this.organizationPermissions = new OrganizationPermissions(sdkConfiguration); this.roleSets = new RoleSets(sdkConfiguration); + this.scimDirectories = new ScimDirectories(sdkConfiguration); this.adminPortalLinkTokens = new AdminPortalLinkTokens(sdkConfiguration); this.apiKeys = new APIKeys(sdkConfiguration); this.m2m = new M2m(sdkConfiguration); diff --git a/src/main/java/com/clerk/backend_api/EmailAddresses.java b/src/main/java/com/clerk/backend_api/EmailAddresses.java index 631cdd4f..690989a9 100644 --- a/src/main/java/com/clerk/backend_api/EmailAddresses.java +++ b/src/main/java/com/clerk/backend_api/EmailAddresses.java @@ -368,10 +368,17 @@ public AttemptEmailAddressVerificationResponse attemptVerification( *

Replaces all of the user's email addresses with a single primary email address. * By default the new email address is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. Any existing email addresses are deleted. + * for sign-in and locked so no other user can claim it. When it is `unverified` the address is + * neither usable for sign-in nor locked. Any existing email addresses are deleted. * If an existing email address is linked to a connected account, the request is rejected; remove * the connected account first. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified email address cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing email addresses leaves them unable to + * authenticate — and unable to verify the new address, since that requires signing in. Recovery + * then requires another admin API call. + * * @return The call builder */ public ReplaceUserEmailAddressRequestBuilder replaceForUser() { @@ -384,10 +391,17 @@ public ReplaceUserEmailAddressRequestBuilder replaceForUser() { *

Replaces all of the user's email addresses with a single primary email address. * By default the new email address is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. Any existing email addresses are deleted. + * for sign-in and locked so no other user can claim it. When it is `unverified` the address is + * neither usable for sign-in nor locked. Any existing email addresses are deleted. * If an existing email address is linked to a connected account, the request is rejected; remove * the connected account first. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified email address cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing email addresses leaves them unable to + * authenticate — and unable to verify the new address, since that requires signing in. Recovery + * then requires another admin API call. + * * @param userId The ID of the user whose email address to replace * @param requestBody * @return The response from the API call @@ -403,10 +417,17 @@ public ReplaceUserEmailAddressResponse replaceForUser(String userId, ReplaceUser *

Replaces all of the user's email addresses with a single primary email address. * By default the new email address is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. Any existing email addresses are deleted. + * for sign-in and locked so no other user can claim it. When it is `unverified` the address is + * neither usable for sign-in nor locked. Any existing email addresses are deleted. * If an existing email address is linked to a connected account, the request is rejected; remove * the connected account first. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified email address cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing email addresses leaves them unable to + * authenticate — and unable to verify the new address, since that requires signing in. Recovery + * then requires another admin API call. + * * @param userId The ID of the user whose email address to replace * @param requestBody * @param options additional options diff --git a/src/main/java/com/clerk/backend_api/OauthApplications.java b/src/main/java/com/clerk/backend_api/OauthApplications.java index dd70f885..939293e4 100644 --- a/src/main/java/com/clerk/backend_api/OauthApplications.java +++ b/src/main/java/com/clerk/backend_api/OauthApplications.java @@ -17,6 +17,10 @@ import com.clerk.backend_api.models.operations.ListOAuthApplicationsRequest; import com.clerk.backend_api.models.operations.ListOAuthApplicationsRequestBuilder; import com.clerk.backend_api.models.operations.ListOAuthApplicationsResponse; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequest; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBody; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequestBuilder; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretRequest; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretRequestBuilder; import com.clerk.backend_api.models.operations.RotateOAuthApplicationSecretResponse; @@ -32,6 +36,7 @@ import com.clerk.backend_api.operations.DeleteOAuthApplication; import com.clerk.backend_api.operations.GetOAuthApplication; import com.clerk.backend_api.operations.ListOAuthApplications; +import com.clerk.backend_api.operations.RevokeOAuthApplicationToken; import com.clerk.backend_api.operations.RotateOAuthApplicationSecret; import com.clerk.backend_api.operations.UpdateOAuthApplication; import com.clerk.backend_api.operations.UploadOAuthApplicationLogo; @@ -418,4 +423,63 @@ public RotateOAuthApplicationSecretResponse rotateSecret(String oauthApplication return operation.handleResponse(operation.doRequest(request)); } + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @return The call builder + */ + public RevokeOAuthApplicationTokenRequestBuilder revokeToken() { + return new RevokeOAuthApplicationTokenRequestBuilder(sdkConfiguration); + } + + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @param oauthApplicationId The ID of the OAuth application for which to revoke the token + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeOAuthApplicationTokenResponse revokeToken(String oauthApplicationId, RevokeOAuthApplicationTokenRequestBody requestBody) { + return revokeToken(oauthApplicationId, requestBody, Optional.empty()); + } + + /** + * Revoke an OAuth application token + * + *

Revoke both OAuth access token and refresh token for the associated grant for the given OAuth + * application. + * The request may specify either token. + * JWT access tokens cannot be revoked. + * + * @param oauthApplicationId The ID of the OAuth application for which to revoke the token + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeOAuthApplicationTokenResponse revokeToken( + String oauthApplicationId, RevokeOAuthApplicationTokenRequestBody requestBody, + Optional options) { + RevokeOAuthApplicationTokenRequest request = + RevokeOAuthApplicationTokenRequest + .builder() + .oauthApplicationId(oauthApplicationId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new RevokeOAuthApplicationToken.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + } diff --git a/src/main/java/com/clerk/backend_api/PhoneNumbers.java b/src/main/java/com/clerk/backend_api/PhoneNumbers.java index bf9e09be..3af70936 100644 --- a/src/main/java/com/clerk/backend_api/PhoneNumbers.java +++ b/src/main/java/com/clerk/backend_api/PhoneNumbers.java @@ -368,10 +368,17 @@ public AttemptPhoneNumberVerificationResponse attemptVerification( *

Replaces all of the user's phone numbers with a single primary phone number. * By default the new phone number is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. The new phone number is never reserved for + * for sign-in and locked so no other user can claim it. When it is `unverified` the phone number is + * neither usable for sign-in nor locked. The new phone number is never reserved for * second factor. Any existing phone numbers are deleted; replacing a phone number that is reserved * for second factor disables the user's MFA. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified phone number cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing phone numbers leaves them unable to authenticate — + * and unable to verify the new number, since that requires signing in. Recovery then requires + * another admin API call. + * * @return The call builder */ public ReplaceUserPhoneNumberRequestBuilder replaceForUser() { @@ -384,10 +391,17 @@ public ReplaceUserPhoneNumberRequestBuilder replaceForUser() { *

Replaces all of the user's phone numbers with a single primary phone number. * By default the new phone number is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. The new phone number is never reserved for + * for sign-in and locked so no other user can claim it. When it is `unverified` the phone number is + * neither usable for sign-in nor locked. The new phone number is never reserved for * second factor. Any existing phone numbers are deleted; replacing a phone number that is reserved * for second factor disables the user's MFA. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified phone number cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing phone numbers leaves them unable to authenticate — + * and unable to verify the new number, since that requires signing in. Recovery then requires + * another admin API call. + * * @param userId The ID of the user whose phone number to replace * @param requestBody * @return The response from the API call @@ -403,10 +417,17 @@ public ReplaceUserPhoneNumberResponse replaceForUser(String userId, ReplaceUserP *

Replaces all of the user's phone numbers with a single primary phone number. * By default the new phone number is created verified, with the admin verification strategy. * When `identification_status` is `reserved` it is created reserved instead: unverified but usable - * for sign-in and locked so no other user can claim it. The new phone number is never reserved for + * for sign-in and locked so no other user can claim it. When it is `unverified` the phone number is + * neither usable for sign-in nor locked. The new phone number is never reserved for * second factor. Any existing phone numbers are deleted; replacing a phone number that is reserved * for second factor disables the user's MFA. * + *

**Warning:** `identification_status: unverified` can lock the user out of their account. An + * unverified phone number cannot be used to sign in, so if the user has no other verified or + * reserved identifier, deleting their existing phone numbers leaves them unable to authenticate — + * and unable to verify the new number, since that requires signing in. Recovery then requires + * another admin API call. + * * @param userId The ID of the user whose phone number to replace * @param requestBody * @param options additional options diff --git a/src/main/java/com/clerk/backend_api/SDKConfiguration.java b/src/main/java/com/clerk/backend_api/SDKConfiguration.java index 4794d32b..82763958 100644 --- a/src/main/java/com/clerk/backend_api/SDKConfiguration.java +++ b/src/main/java/com/clerk/backend_api/SDKConfiguration.java @@ -16,8 +16,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "2026-05-12"; - public static final String SDK_VERSION = "5.0.0"; - public static final String GEN_VERSION = "2.903.0"; + public static final String SDK_VERSION = "5.1.0"; + public static final String GEN_VERSION = "2.926.8"; 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/ScimDirectories.java b/src/main/java/com/clerk/backend_api/ScimDirectories.java new file mode 100644 index 00000000..56c22e5d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/ScimDirectories.java @@ -0,0 +1,565 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequestBuilder; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequestBuilder; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequest; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequestBuilder; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequestBuilder; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBody; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequestBuilder; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequest; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequestBuilder; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequestBuilder; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import com.clerk.backend_api.operations.CreateSCIMDirectory; +import com.clerk.backend_api.operations.CreateSCIMGroupRoleMapping; +import com.clerk.backend_api.operations.DeleteSCIMDirectory; +import com.clerk.backend_api.operations.DeleteSCIMGroupRoleMapping; +import com.clerk.backend_api.operations.GetSCIMDirectory; +import com.clerk.backend_api.operations.ListSCIMDirectories; +import com.clerk.backend_api.operations.ListSCIMGroupRoleMappings; +import com.clerk.backend_api.operations.ReplaceSCIMGroupRoleMappings; +import com.clerk.backend_api.operations.RotateSCIMDirectoryAPIKey; +import com.clerk.backend_api.operations.UpdateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import java.lang.Long; +import java.lang.String; +import java.util.Optional; + + +public class ScimDirectories { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + + ScimDirectories(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @return The call builder + */ + public ListSCIMDirectoriesRequestBuilder list() { + return new ListSCIMDirectoriesRequestBuilder(sdkConfiguration); + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMDirectoriesResponse listDirect() { + return list(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * List all SCIM directories + * + *

Returns a list of all SCIM directories for the instance. + * + * @param limit Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + * @param offset Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMDirectoriesResponse list( + Optional limit, Optional offset, + Optional options) { + ListSCIMDirectoriesRequest request = + ListSCIMDirectoriesRequest + .builder() + .limit(limit) + .offset(offset) + .build(); + RequestOperation operation + = new ListSCIMDirectories.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @return The call builder + */ + public CreateSCIMDirectoryRequestBuilder create() { + return new CreateSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMDirectoryResponse createDirect() { + return create(Optional.empty(), Optional.empty()); + } + + /** + * Create a SCIM directory + * + *

Create a new SCIM directory for the instance. + * + * @param request The request object containing all the parameters for the API call. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMDirectoryResponse create(Optional request, Optional options) { + RequestOperation, CreateSCIMDirectoryResponse> operation + = new CreateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @return The call builder + */ + public GetSCIMDirectoryRequestBuilder get() { + return new GetSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to retrieve + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetSCIMDirectoryResponse get(String scimDirectoryId) { + return get(scimDirectoryId, Optional.empty()); + } + + /** + * Retrieve a SCIM directory + * + *

Returns the details of a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to retrieve + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetSCIMDirectoryResponse get(String scimDirectoryId, Optional options) { + GetSCIMDirectoryRequest request = + GetSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new GetSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @return The call builder + */ + public UpdateSCIMDirectoryRequestBuilder update() { + return new UpdateSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to update + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateSCIMDirectoryResponse update(String scimDirectoryId) { + return update(scimDirectoryId, Optional.empty(), Optional.empty()); + } + + /** + * Update a SCIM directory + * + *

Updates a SCIM directory. + * + * @param scimDirectoryId The ID of the SCIM directory to update + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateSCIMDirectoryResponse update( + String scimDirectoryId, Optional requestBody, + Optional options) { + UpdateSCIMDirectoryRequest request = + UpdateSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new UpdateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @return The call builder + */ + public DeleteSCIMDirectoryRequestBuilder delete() { + return new DeleteSCIMDirectoryRequestBuilder(sdkConfiguration); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @param scimDirectoryId The ID of the SCIM directory to delete + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMDirectoryResponse delete(String scimDirectoryId) { + return delete(scimDirectoryId, Optional.empty()); + } + + /** + * Delete a SCIM directory + * + *

Deletes a SCIM directory and stops provisioning for it. SCIM requests authenticated + * with the directory's API key are rejected afterwards. + * + * @param scimDirectoryId The ID of the SCIM directory to delete + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMDirectoryResponse delete(String scimDirectoryId, Optional options) { + DeleteSCIMDirectoryRequest request = + DeleteSCIMDirectoryRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new DeleteSCIMDirectory.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @return The call builder + */ + public RotateSCIMDirectoryAPIKeyRequestBuilder rotateApiKey() { + return new RotateSCIMDirectoryAPIKeyRequestBuilder(sdkConfiguration); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @param scimDirectoryId The ID of the SCIM directory whose API key to rotate + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RotateSCIMDirectoryAPIKeyResponse rotateApiKey(String scimDirectoryId) { + return rotateApiKey(scimDirectoryId, Optional.empty()); + } + + /** + * Rotate a SCIM directory's API key + * + *

Generates a new API key for the SCIM directory and returns it in the `api_key` field. + * This is the only way to obtain the key after creation, so make sure to update it in + * your identity provider. The previous key remains valid for a short grace period before + * it expires. + * + * @param scimDirectoryId The ID of the SCIM directory whose API key to rotate + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RotateSCIMDirectoryAPIKeyResponse rotateApiKey(String scimDirectoryId, Optional options) { + RotateSCIMDirectoryAPIKeyRequest request = + RotateSCIMDirectoryAPIKeyRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new RotateSCIMDirectoryAPIKey.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @return The call builder + */ + public ListSCIMGroupRoleMappingsRequestBuilder listGroupRoleMappings() { + return new ListSCIMGroupRoleMappingsRequestBuilder(sdkConfiguration); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMGroupRoleMappingsResponse listGroupRoleMappings(String scimDirectoryId) { + return listGroupRoleMappings(scimDirectoryId, Optional.empty()); + } + + /** + * List SCIM group role mappings + * + *

Returns the list of SCIM group to organization role mappings for a SCIM directory, ordered by + * precedence. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListSCIMGroupRoleMappingsResponse listGroupRoleMappings(String scimDirectoryId, Optional options) { + ListSCIMGroupRoleMappingsRequest request = + ListSCIMGroupRoleMappingsRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .build(); + RequestOperation operation + = new ListSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @return The call builder + */ + public CreateSCIMGroupRoleMappingRequestBuilder createGroupRoleMapping() { + return new CreateSCIMGroupRoleMappingRequestBuilder(sdkConfiguration); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMGroupRoleMappingResponse createGroupRoleMapping(String scimDirectoryId, CreateSCIMGroupRoleMappingRequestBody requestBody) { + return createGroupRoleMapping(scimDirectoryId, requestBody, Optional.empty()); + } + + /** + * Create a SCIM group role mapping + * + *

Creates a new SCIM group to organization role mapping for a SCIM directory. + * Group role mapping must be enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSCIMGroupRoleMappingResponse createGroupRoleMapping( + String scimDirectoryId, CreateSCIMGroupRoleMappingRequestBody requestBody, + Optional options) { + CreateSCIMGroupRoleMappingRequest request = + CreateSCIMGroupRoleMappingRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new CreateSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @return The call builder + */ + public ReplaceSCIMGroupRoleMappingsRequestBuilder replaceGroupRoleMappings() { + return new ReplaceSCIMGroupRoleMappingsRequestBuilder(sdkConfiguration); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReplaceSCIMGroupRoleMappingsResponse replaceGroupRoleMappings(String scimDirectoryId, ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + return replaceGroupRoleMappings(scimDirectoryId, requestBody, Optional.empty()); + } + + /** + * Replace SCIM group role mappings + * + *

Replaces the entire set of SCIM group role mappings for a directory. The position of + * each item in the `mappings` array determines its precedence (the first item gets + * precedence 1). Passing an empty array removes all mappings. Group role mapping must be + * enabled on the directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReplaceSCIMGroupRoleMappingsResponse replaceGroupRoleMappings( + String scimDirectoryId, ReplaceSCIMGroupRoleMappingsRequestBody requestBody, + Optional options) { + ReplaceSCIMGroupRoleMappingsRequest request = + ReplaceSCIMGroupRoleMappingsRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new ReplaceSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @return The call builder + */ + public DeleteSCIMGroupRoleMappingRequestBuilder deleteGroupRoleMapping() { + return new DeleteSCIMGroupRoleMappingRequestBuilder(sdkConfiguration); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param mappingId The ID of the SCIM group role mapping to delete. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMGroupRoleMappingResponse deleteGroupRoleMapping(String scimDirectoryId, String mappingId) { + return deleteGroupRoleMapping(scimDirectoryId, mappingId, Optional.empty()); + } + + /** + * Delete a SCIM group role mapping + * + *

Deletes a single SCIM group role mapping. Group role mapping must be enabled on the + * directory. + * + * @param scimDirectoryId The ID of the SCIM directory. + * @param mappingId The ID of the SCIM group role mapping to delete. + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSCIMGroupRoleMappingResponse deleteGroupRoleMapping( + String scimDirectoryId, String mappingId, + Optional options) { + DeleteSCIMGroupRoleMappingRequest request = + DeleteSCIMGroupRoleMappingRequest + .builder() + .scimDirectoryId(scimDirectoryId) + .mappingId(mappingId) + .build(); + RequestOperation operation + = new DeleteSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + +} diff --git a/src/main/java/com/clerk/backend_api/Users.java b/src/main/java/com/clerk/backend_api/Users.java index 089dac5d..1c456baa 100644 --- a/src/main/java/com/clerk/backend_api/Users.java +++ b/src/main/java/com/clerk/backend_api/Users.java @@ -54,14 +54,24 @@ import com.clerk.backend_api.models.operations.InstanceGetOrganizationMembershipsRequest; import com.clerk.backend_api.models.operations.InstanceGetOrganizationMembershipsRequestBuilder; import com.clerk.backend_api.models.operations.InstanceGetOrganizationMembershipsResponse; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesRequest; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesRequestBuilder; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesResponse; import com.clerk.backend_api.models.operations.LockUserRequest; import com.clerk.backend_api.models.operations.LockUserRequestBuilder; import com.clerk.backend_api.models.operations.LockUserResponse; import com.clerk.backend_api.models.operations.QueryParamStatus; +import com.clerk.backend_api.models.operations.RemoveUserPasswordRequest; +import com.clerk.backend_api.models.operations.RemoveUserPasswordRequestBody; +import com.clerk.backend_api.models.operations.RemoveUserPasswordRequestBuilder; +import com.clerk.backend_api.models.operations.RemoveUserPasswordResponse; import com.clerk.backend_api.models.operations.ReplaceUserMetadataRequest; import com.clerk.backend_api.models.operations.ReplaceUserMetadataRequestBody; import com.clerk.backend_api.models.operations.ReplaceUserMetadataRequestBuilder; import com.clerk.backend_api.models.operations.ReplaceUserMetadataResponse; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceRequest; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceRequestBuilder; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceResponse; import com.clerk.backend_api.models.operations.SetUserPasswordCompromisedRequest; import com.clerk.backend_api.models.operations.SetUserPasswordCompromisedRequestBody; import com.clerk.backend_api.models.operations.SetUserPasswordCompromisedRequestBuilder; @@ -129,8 +139,11 @@ import com.clerk.backend_api.operations.GetUserList; import com.clerk.backend_api.operations.GetUsersCount; import com.clerk.backend_api.operations.InstanceGetOrganizationMemberships; +import com.clerk.backend_api.operations.ListUserTrustedDevices; import com.clerk.backend_api.operations.LockUser; +import com.clerk.backend_api.operations.RemoveUserPassword; import com.clerk.backend_api.operations.ReplaceUserMetadata; +import com.clerk.backend_api.operations.RevokeUserTrustedDevice; import com.clerk.backend_api.operations.SetUserPasswordCompromised; import com.clerk.backend_api.operations.SetUserProfileImage; import com.clerk.backend_api.operations.UnbanUser; @@ -1323,6 +1336,73 @@ public UsersGetOrganizationInvitationsResponse getOrganizationInvitations( return operation.handleResponse(operation.doRequest(request)); } + /** + * Remove a user's password + * + *

Removes the password credential from the given user. This is a privileged operation and does not + * require the user's current password. Password removal is allowed even when the user has no other + * sign-in method configured. + * + *

If the user does not have a password, the user is returned unchanged and no password-deletion or + * user-update event is emitted. By default, existing sessions remain active. Set + * `sign_out_of_other_sessions` to `true` to revoke sessions active when the request is processed. + * + * @return The call builder + */ + public RemoveUserPasswordRequestBuilder removePassword() { + return new RemoveUserPasswordRequestBuilder(sdkConfiguration); + } + + /** + * Remove a user's password + * + *

Removes the password credential from the given user. This is a privileged operation and does not + * require the user's current password. Password removal is allowed even when the user has no other + * sign-in method configured. + * + *

If the user does not have a password, the user is returned unchanged and no password-deletion or + * user-update event is emitted. By default, existing sessions remain active. Set + * `sign_out_of_other_sessions` to `true` to revoke sessions active when the request is processed. + * + * @param userId The ID of the user whose password to remove + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RemoveUserPasswordResponse removePassword(String userId) { + return removePassword(userId, Optional.empty(), Optional.empty()); + } + + /** + * Remove a user's password + * + *

Removes the password credential from the given user. This is a privileged operation and does not + * require the user's current password. Password removal is allowed even when the user has no other + * sign-in method configured. + * + *

If the user does not have a password, the user is returned unchanged and no password-deletion or + * user-update event is emitted. By default, existing sessions remain active. Set + * `sign_out_of_other_sessions` to `true` to revoke sessions active when the request is processed. + * + * @param userId The ID of the user whose password to remove + * @param requestBody + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RemoveUserPasswordResponse removePassword( + String userId, Optional requestBody, + Optional options) { + RemoveUserPasswordRequest request = + RemoveUserPasswordRequest + .builder() + .userId(userId) + .requestBody(requestBody) + .build(); + RequestOperation operation + = new RemoveUserPassword.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Verify the password of a user * @@ -1576,6 +1656,101 @@ public UserPasskeyDeleteResponse deletePasskey( return operation.handleResponse(operation.doRequest(request)); } + /** + * List a user's trusted devices + * + *

Returns the active trusted devices enrolled by the user. + * + * @return The call builder + */ + public ListUserTrustedDevicesRequestBuilder listTrustedDevices() { + return new ListUserTrustedDevicesRequestBuilder(sdkConfiguration); + } + + /** + * List a user's trusted devices + * + *

Returns the active trusted devices enrolled by the user. + * + * @param userId The ID of the user whose trusted devices are returned + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListUserTrustedDevicesResponse listTrustedDevices(String userId) { + return listTrustedDevices(userId, Optional.empty()); + } + + /** + * List a user's trusted devices + * + *

Returns the active trusted devices enrolled by the user. + * + * @param userId The ID of the user whose trusted devices are returned + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListUserTrustedDevicesResponse listTrustedDevices(String userId, Optional options) { + ListUserTrustedDevicesRequest request = + ListUserTrustedDevicesRequest + .builder() + .userId(userId) + .build(); + RequestOperation operation + = new ListUserTrustedDevices.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Revoke a user's trusted device + * + *

Revokes an active trusted device enrolled by the user. + * + * @return The call builder + */ + public RevokeUserTrustedDeviceRequestBuilder revokeTrustedDevice() { + return new RevokeUserTrustedDeviceRequestBuilder(sdkConfiguration); + } + + /** + * Revoke a user's trusted device + * + *

Revokes an active trusted device enrolled by the user. + * + * @param userId The ID of the user that owns the trusted device + * @param trustedDeviceId The ID of the trusted device to revoke + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeUserTrustedDeviceResponse revokeTrustedDevice(String userId, String trustedDeviceId) { + return revokeTrustedDevice(userId, trustedDeviceId, Optional.empty()); + } + + /** + * Revoke a user's trusted device + * + *

Revokes an active trusted device enrolled by the user. + * + * @param userId The ID of the user that owns the trusted device + * @param trustedDeviceId The ID of the trusted device to revoke + * @param options additional options + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevokeUserTrustedDeviceResponse revokeTrustedDevice( + String userId, String trustedDeviceId, + Optional options) { + RevokeUserTrustedDeviceRequest request = + RevokeUserTrustedDeviceRequest + .builder() + .userId(userId) + .trustedDeviceId(trustedDeviceId) + .build(); + RequestOperation operation + = new RevokeUserTrustedDevice.Sync(sdkConfiguration, options, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Delete a user web3 wallet * @@ -1779,6 +1954,10 @@ public SetUserPasswordCompromisedResponse setPasswordCompromised( *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @return The call builder */ public UnsetUserPasswordCompromisedRequestBuilder unsetPasswordCompromised() { @@ -1791,6 +1970,10 @@ public UnsetUserPasswordCompromisedRequestBuilder unsetPasswordCompromised() { *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @param userId The ID of the user to unset the compromised status for * @return The response from the API call * @throws RuntimeException subclass if the API call fails @@ -1805,6 +1988,10 @@ public UnsetUserPasswordCompromisedResponse unsetPasswordCompromised(String user *

Sets the given user's password as no longer compromised. The user will no longer be prompted to * reset their password on their next sign-in. * + *

If the user is in reserved-email password quarantine, the quarantine is preserved and the returned + * user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can + * only be cleared by completing a password reset or changing/removing the password. + * * @param userId The ID of the user to unset the compromised status for * @param options additional options * @return The response from the API call diff --git a/src/main/java/com/clerk/backend_api/models/components/Algorithm.java b/src/main/java/com/clerk/backend_api/models/components/Algorithm.java new file mode 100644 index 00000000..d9523717 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/Algorithm.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Algorithm { + ES256("ES256"); + + @JsonValue + private final String value; + + Algorithm(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Algorithm o: Algorithm.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java b/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java index 9e3129ae..ec28242b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/BillingPaymentAttemptTotals.java @@ -41,7 +41,7 @@ public class BillingPaymentAttemptTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -61,7 +61,7 @@ public BillingPaymentAttemptTotals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -112,8 +112,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -160,14 +160,14 @@ public BillingPaymentAttemptTotals withGrandTotal(CommerceMoneyResponse grandTot return this; } - public BillingPaymentAttemptTotals withPerUnitTotals(List perUnitTotals) { + public BillingPaymentAttemptTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public BillingPaymentAttemptTotals withPerUnitTotals(Optional> perUnitTotals) { + public BillingPaymentAttemptTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -253,7 +253,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -292,13 +292,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkError.java b/src/main/java/com/clerk/backend_api/models/components/ClerkError.java index 13355bb0..fea937df 100644 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/ClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class ClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public ClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public ClerkError withCode(String code) { return this; } - public ClerkError withMeta(Meta meta) { + public ClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public ClerkError withMeta(Optional meta) { + public ClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(Meta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java deleted file mode 100644 index 9c08edf5..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorEnterpriseAccountMeta { - @JsonCreator - public ClerkErrorErrorEnterpriseAccountMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorEnterpriseAccountMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorEnterpriseAccountMeta build() { - - return new ClerkErrorErrorEnterpriseAccountMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java deleted file mode 100644 index 8034b5dc..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorEnterpriseAccountVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorEnterpriseAccountVerificationMeta { - @JsonCreator - public ClerkErrorErrorEnterpriseAccountVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorEnterpriseAccountVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorEnterpriseAccountVerificationMeta build() { - - return new ClerkErrorErrorEnterpriseAccountVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java deleted file mode 100644 index 742fe99a..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorExternalAccountWithVerificationMeta { - @JsonCreator - public ClerkErrorErrorExternalAccountWithVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorExternalAccountWithVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorExternalAccountWithVerificationMeta build() { - - return new ClerkErrorErrorExternalAccountWithVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java deleted file mode 100644 index dfbac845..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorExternalAccountWithVerificationVerificationMeta { - @JsonCreator - public ClerkErrorErrorExternalAccountWithVerificationVerificationMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorExternalAccountWithVerificationVerificationMeta build() { - - return new ClerkErrorErrorExternalAccountWithVerificationVerificationMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java deleted file mode 100644 index 66476fdd..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorMeta { - @JsonCreator - public ClerkErrorErrorMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorMeta build() { - - return new ClerkErrorErrorMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java b/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java deleted file mode 100644 index 259b3df8..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ClerkErrorErrorSAMLAccountMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ClerkErrorErrorSAMLAccountMeta { - @JsonCreator - public ClerkErrorErrorSAMLAccountMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ClerkErrorErrorSAMLAccountMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ClerkErrorErrorSAMLAccountMeta build() { - - return new ClerkErrorErrorSAMLAccountMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java b/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java index 9897c305..9d6d3b31 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceCreditLedgerResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; @@ -39,17 +38,9 @@ public class CommerceCreditLedgerResponse { @JsonProperty("payer_id") private String payerId; - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - @JsonProperty("amount") - private long amount; - /** - * The currency code of the credit adjustment. - */ - @JsonProperty("currency") - private String currency; + @JsonProperty("amount") + private CommerceMoneyResponse amount; /** * The type of source that originated the adjustment (e.g. "grant"). @@ -81,8 +72,7 @@ public CommerceCreditLedgerResponse( @JsonProperty("object") String object, @JsonProperty("id") String id, @JsonProperty("payer_id") String payerId, - @JsonProperty("amount") long amount, - @JsonProperty("currency") String currency, + @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("source_type") String sourceType, @JsonProperty("source_id") String sourceId, @JsonProperty("note") JsonNullable note, @@ -91,7 +81,6 @@ public CommerceCreditLedgerResponse( Utils.checkNotNull(id, "id"); Utils.checkNotNull(payerId, "payerId"); Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(currency, "currency"); Utils.checkNotNull(sourceType, "sourceType"); Utils.checkNotNull(sourceId, "sourceId"); Utils.checkNotNull(note, "note"); @@ -100,7 +89,6 @@ public CommerceCreditLedgerResponse( this.id = id; this.payerId = payerId; this.amount = amount; - this.currency = currency; this.sourceType = sourceType; this.sourceId = sourceId; this.note = note; @@ -111,14 +99,13 @@ public CommerceCreditLedgerResponse( String object, String id, String payerId, - long amount, - String currency, + CommerceMoneyResponse amount, String sourceType, String sourceId, OffsetDateTime createdAt) { this(object, id, payerId, - amount, currency, sourceType, - sourceId, JsonNullable.undefined(), createdAt); + amount, sourceType, sourceId, + JsonNullable.undefined(), createdAt); } /** @@ -145,22 +132,11 @@ public String payerId() { return payerId; } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ @JsonIgnore - public long amount() { + public CommerceMoneyResponse amount() { return amount; } - /** - * The currency code of the credit adjustment. - */ - @JsonIgnore - public String currency() { - return currency; - } - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -225,24 +201,12 @@ public CommerceCreditLedgerResponse withPayerId(String payerId) { return this; } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - public CommerceCreditLedgerResponse withAmount(long amount) { + public CommerceCreditLedgerResponse withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - /** - * The currency code of the credit adjustment. - */ - public CommerceCreditLedgerResponse withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -302,7 +266,6 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.payerId, other.payerId) && Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.currency, other.currency) && Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && Utils.enhancedDeepEquals(this.sourceId, other.sourceId) && Utils.enhancedDeepEquals(this.note, other.note) && @@ -313,8 +276,8 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( object, id, payerId, - amount, currency, sourceType, - sourceId, note, createdAt); + amount, sourceType, sourceId, + note, createdAt); } @Override @@ -324,7 +287,6 @@ public String toString() { "id", id, "payerId", payerId, "amount", amount, - "currency", currency, "sourceType", sourceType, "sourceId", sourceId, "note", note, @@ -340,9 +302,7 @@ public final static class Builder { private String payerId; - private Long amount; - - private String currency; + private CommerceMoneyResponse amount; private String sourceType; @@ -387,26 +347,13 @@ public Builder payerId(String payerId) { } - /** - * The signed credit amount. Positive for increases, negative for decreases. - */ - public Builder amount(long amount) { + public Builder amount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - /** - * The currency code of the credit adjustment. - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** * The type of source that originated the adjustment (e.g. "grant"). */ @@ -459,8 +406,8 @@ public CommerceCreditLedgerResponse build() { return new CommerceCreditLedgerResponse( object, id, payerId, - amount, currency, sourceType, - sourceId, note, createdAt); + amount, sourceType, sourceId, + note, createdAt); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java similarity index 81% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java index 1de35538..3d32a069 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotal.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotal2.java @@ -13,7 +13,7 @@ import java.util.List; -public class SchemasCommercePerUnitTotal { +public class CommercePerUnitTotal2 { /** * Name of the billable unit (for example, seats) */ @@ -30,13 +30,13 @@ public class SchemasCommercePerUnitTotal { * Computed totals for each pricing tier */ @JsonProperty("tiers") - private List tiers; + private List tiers; @JsonCreator - public SchemasCommercePerUnitTotal( + public CommercePerUnitTotal2( @JsonProperty("name") String name, @JsonProperty("block_size") long blockSize, - @JsonProperty("tiers") List tiers) { + @JsonProperty("tiers") List tiers) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(blockSize, "blockSize"); Utils.checkNotNull(tiers, "tiers"); @@ -65,7 +65,7 @@ public long blockSize() { * Computed totals for each pricing tier */ @JsonIgnore - public List tiers() { + public List tiers() { return tiers; } @@ -77,7 +77,7 @@ public static Builder builder() { /** * Name of the billable unit (for example, seats) */ - public SchemasCommercePerUnitTotal withName(String name) { + public CommercePerUnitTotal2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -86,7 +86,7 @@ public SchemasCommercePerUnitTotal withName(String name) { /** * Number of units included in each pricing block */ - public SchemasCommercePerUnitTotal withBlockSize(long blockSize) { + public CommercePerUnitTotal2 withBlockSize(long blockSize) { Utils.checkNotNull(blockSize, "blockSize"); this.blockSize = blockSize; return this; @@ -95,7 +95,7 @@ public SchemasCommercePerUnitTotal withBlockSize(long blockSize) { /** * Computed totals for each pricing tier */ - public SchemasCommercePerUnitTotal withTiers(List tiers) { + public CommercePerUnitTotal2 withTiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; @@ -109,7 +109,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePerUnitTotal other = (SchemasCommercePerUnitTotal) o; + CommercePerUnitTotal2 other = (CommercePerUnitTotal2) o; return Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.blockSize, other.blockSize) && @@ -124,7 +124,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePerUnitTotal.class, + return Utils.toString(CommercePerUnitTotal2.class, "name", name, "blockSize", blockSize, "tiers", tiers); @@ -137,7 +137,7 @@ public final static class Builder { private Long blockSize; - private List tiers; + private List tiers; private Builder() { // force use of static builder() method @@ -167,15 +167,15 @@ public Builder blockSize(long blockSize) { /** * Computed totals for each pricing tier */ - public Builder tiers(List tiers) { + public Builder tiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; } - public SchemasCommercePerUnitTotal build() { + public CommercePerUnitTotal2 build() { - return new SchemasCommercePerUnitTotal( + return new CommercePerUnitTotal2( name, blockSize, tiers); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java similarity index 86% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java index d706dcc9..369ac250 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePerUnitTotalTier.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePerUnitTotalTier2.java @@ -15,7 +15,7 @@ import org.openapitools.jackson.nullable.JsonNullable; -public class SchemasCommercePerUnitTotalTier { +public class CommercePerUnitTotalTier2 { /** * Units billed in this tier; null means unlimited */ @@ -32,7 +32,7 @@ public class SchemasCommercePerUnitTotalTier { private CommerceMoneyResponse total; @JsonCreator - public SchemasCommercePerUnitTotalTier( + public CommercePerUnitTotalTier2( @JsonProperty("quantity") JsonNullable quantity, @JsonProperty("fee_per_block") CommerceMoneyResponse feePerBlock, @JsonProperty("total") CommerceMoneyResponse total) { @@ -44,7 +44,7 @@ public SchemasCommercePerUnitTotalTier( this.total = total; } - public SchemasCommercePerUnitTotalTier( + public CommercePerUnitTotalTier2( CommerceMoneyResponse feePerBlock, CommerceMoneyResponse total) { this(JsonNullable.undefined(), feePerBlock, total); @@ -76,7 +76,7 @@ public static Builder builder() { /** * Units billed in this tier; null means unlimited */ - public SchemasCommercePerUnitTotalTier withQuantity(long quantity) { + public CommercePerUnitTotalTier2 withQuantity(long quantity) { Utils.checkNotNull(quantity, "quantity"); this.quantity = JsonNullable.of(quantity); return this; @@ -85,19 +85,19 @@ public SchemasCommercePerUnitTotalTier withQuantity(long quantity) { /** * Units billed in this tier; null means unlimited */ - public SchemasCommercePerUnitTotalTier withQuantity(JsonNullable quantity) { + public CommercePerUnitTotalTier2 withQuantity(JsonNullable quantity) { Utils.checkNotNull(quantity, "quantity"); this.quantity = quantity; return this; } - public SchemasCommercePerUnitTotalTier withFeePerBlock(CommerceMoneyResponse feePerBlock) { + public CommercePerUnitTotalTier2 withFeePerBlock(CommerceMoneyResponse feePerBlock) { Utils.checkNotNull(feePerBlock, "feePerBlock"); this.feePerBlock = feePerBlock; return this; } - public SchemasCommercePerUnitTotalTier withTotal(CommerceMoneyResponse total) { + public CommercePerUnitTotalTier2 withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -111,7 +111,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePerUnitTotalTier other = (SchemasCommercePerUnitTotalTier) o; + CommercePerUnitTotalTier2 other = (CommercePerUnitTotalTier2) o; return Utils.enhancedDeepEquals(this.quantity, other.quantity) && Utils.enhancedDeepEquals(this.feePerBlock, other.feePerBlock) && @@ -126,7 +126,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePerUnitTotalTier.class, + return Utils.toString(CommercePerUnitTotalTier2.class, "quantity", quantity, "feePerBlock", feePerBlock, "total", total); @@ -178,9 +178,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommercePerUnitTotalTier build() { + public CommercePerUnitTotalTier2 build() { - return new SchemasCommercePerUnitTotalTier( + return new CommercePerUnitTotalTier2( quantity, feePerBlock, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java index 7f9afaab..cb1dce84 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlan.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2.java @@ -19,12 +19,12 @@ import org.openapitools.jackson.nullable.JsonNullable; -public class SchemasCommercePlan { +public class CommercePlan2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommercePlanObject object; + private CommercePlan2Object object; /** * Unique identifier for the commerce plan. @@ -41,17 +41,17 @@ public class SchemasCommercePlan { @JsonInclude(Include.ALWAYS) @JsonProperty("fee") - private Optional fee; + private Optional fee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_monthly_fee") - private Optional annualMonthlyFee; + private Optional annualMonthlyFee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_fee") - private Optional annualFee; + private Optional annualFee; /** * The amount in cents for the plan. @@ -179,7 +179,7 @@ public class SchemasCommercePlan { * The features included in this plan. */ @JsonProperty("features") - private List features; + private List features; /** * Whether free trial is enabled for this plan. @@ -196,13 +196,13 @@ public class SchemasCommercePlan { private JsonNullable freeTrialDays; @JsonCreator - public SchemasCommercePlan( - @JsonProperty("object") SchemasCommercePlanObject object, + public CommercePlan2( + @JsonProperty("object") CommercePlan2Object object, @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("fee") Optional fee, - @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, - @JsonProperty("annual_fee") Optional annualFee, + @JsonProperty("fee") Optional fee, + @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, + @JsonProperty("annual_fee") Optional annualFee, @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("annual_monthly_amount") long annualMonthlyAmount, @@ -223,7 +223,7 @@ public SchemasCommercePlan( @JsonProperty("avatar_url") String avatarUrl, @JsonProperty("period") Optional period, @JsonProperty("interval") Optional interval, - @JsonProperty("features") List features, + @JsonProperty("features") List features, @JsonProperty("free_trial_enabled") Optional freeTrialEnabled, @JsonProperty("free_trial_days") JsonNullable freeTrialDays) { Utils.checkNotNull(object, "object"); @@ -286,8 +286,8 @@ public SchemasCommercePlan( this.freeTrialDays = freeTrialDays; } - public SchemasCommercePlan( - SchemasCommercePlanObject object, + public CommercePlan2( + CommercePlan2Object object, String id, String name, long amount, @@ -308,7 +308,7 @@ public SchemasCommercePlan( String forPayerType, String slug, String avatarUrl, - List features) { + List features) { this(object, id, name, Optional.empty(), Optional.empty(), Optional.empty(), amount, amountFormatted, annualMonthlyAmount, @@ -325,7 +325,7 @@ public SchemasCommercePlan( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommercePlanObject object() { + public CommercePlan2Object object() { return object; } @@ -347,20 +347,20 @@ public String name() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional fee() { - return (Optional) fee; + public Optional fee() { + return (Optional) fee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualMonthlyFee() { - return (Optional) annualMonthlyFee; + public Optional annualMonthlyFee() { + return (Optional) annualMonthlyFee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualFee() { - return (Optional) annualFee; + public Optional annualFee() { + return (Optional) annualFee; } /** @@ -527,7 +527,7 @@ public Optional interval() { * The features included in this plan. */ @JsonIgnore - public List features() { + public List features() { return features; } @@ -555,7 +555,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommercePlan withObject(SchemasCommercePlanObject object) { + public CommercePlan2 withObject(CommercePlan2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -564,7 +564,7 @@ public SchemasCommercePlan withObject(SchemasCommercePlanObject object) { /** * Unique identifier for the commerce plan. */ - public SchemasCommercePlan withId(String id) { + public CommercePlan2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -573,46 +573,46 @@ public SchemasCommercePlan withId(String id) { /** * The name of the commerce plan. */ - public SchemasCommercePlan withName(String name) { + public CommercePlan2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - public SchemasCommercePlan withFee(SchemasCommercePlanFee fee) { + public CommercePlan2 withFee(CommercePlan2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public SchemasCommercePlan withFee(Optional fee) { + public CommercePlan2 withFee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public SchemasCommercePlan withAnnualMonthlyFee(SchemasCommercePlanAnnualMonthlyFee annualMonthlyFee) { + public CommercePlan2 withAnnualMonthlyFee(CommercePlan2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public SchemasCommercePlan withAnnualMonthlyFee(Optional annualMonthlyFee) { + public CommercePlan2 withAnnualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public SchemasCommercePlan withAnnualFee(SchemasCommercePlanAnnualFee annualFee) { + public CommercePlan2 withAnnualFee(CommercePlan2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public SchemasCommercePlan withAnnualFee(Optional annualFee) { + public CommercePlan2 withAnnualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -621,7 +621,7 @@ public SchemasCommercePlan withAnnualFee(Optional payerType) { + public CommercePlan2 withPayerType(List payerType) { Utils.checkNotNull(payerType, "payerType"); this.payerType = payerType; return this; @@ -756,7 +756,7 @@ public SchemasCommercePlan withPayerType(List payerType) { /** * The payer type this plan is designed for. */ - public SchemasCommercePlan withForPayerType(String forPayerType) { + public CommercePlan2 withForPayerType(String forPayerType) { Utils.checkNotNull(forPayerType, "forPayerType"); this.forPayerType = forPayerType; return this; @@ -765,7 +765,7 @@ public SchemasCommercePlan withForPayerType(String forPayerType) { /** * The URL-friendly slug for the plan. */ - public SchemasCommercePlan withSlug(String slug) { + public CommercePlan2 withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -774,7 +774,7 @@ public SchemasCommercePlan withSlug(String slug) { /** * The URL of the plan's avatar image. */ - public SchemasCommercePlan withAvatarUrl(String avatarUrl) { + public CommercePlan2 withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -783,7 +783,7 @@ public SchemasCommercePlan withAvatarUrl(String avatarUrl) { /** * The billing period for the plan. */ - public SchemasCommercePlan withPeriod(String period) { + public CommercePlan2 withPeriod(String period) { Utils.checkNotNull(period, "period"); this.period = Optional.ofNullable(period); return this; @@ -793,7 +793,7 @@ public SchemasCommercePlan withPeriod(String period) { /** * The billing period for the plan. */ - public SchemasCommercePlan withPeriod(Optional period) { + public CommercePlan2 withPeriod(Optional period) { Utils.checkNotNull(period, "period"); this.period = period; return this; @@ -802,7 +802,7 @@ public SchemasCommercePlan withPeriod(Optional period) { /** * The billing interval. */ - public SchemasCommercePlan withInterval(long interval) { + public CommercePlan2 withInterval(long interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -812,7 +812,7 @@ public SchemasCommercePlan withInterval(long interval) { /** * The billing interval. */ - public SchemasCommercePlan withInterval(Optional interval) { + public CommercePlan2 withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -821,7 +821,7 @@ public SchemasCommercePlan withInterval(Optional interval) { /** * The features included in this plan. */ - public SchemasCommercePlan withFeatures(List features) { + public CommercePlan2 withFeatures(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -830,7 +830,7 @@ public SchemasCommercePlan withFeatures(List features) { /** * Whether free trial is enabled for this plan. */ - public SchemasCommercePlan withFreeTrialEnabled(boolean freeTrialEnabled) { + public CommercePlan2 withFreeTrialEnabled(boolean freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = Optional.ofNullable(freeTrialEnabled); return this; @@ -840,7 +840,7 @@ public SchemasCommercePlan withFreeTrialEnabled(boolean freeTrialEnabled) { /** * Whether free trial is enabled for this plan. */ - public SchemasCommercePlan withFreeTrialEnabled(Optional freeTrialEnabled) { + public CommercePlan2 withFreeTrialEnabled(Optional freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = freeTrialEnabled; return this; @@ -849,7 +849,7 @@ public SchemasCommercePlan withFreeTrialEnabled(Optional freeTrialEnabl /** * Number of free trial days for this plan. */ - public SchemasCommercePlan withFreeTrialDays(long freeTrialDays) { + public CommercePlan2 withFreeTrialDays(long freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = JsonNullable.of(freeTrialDays); return this; @@ -858,7 +858,7 @@ public SchemasCommercePlan withFreeTrialDays(long freeTrialDays) { /** * Number of free trial days for this plan. */ - public SchemasCommercePlan withFreeTrialDays(JsonNullable freeTrialDays) { + public CommercePlan2 withFreeTrialDays(JsonNullable freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = freeTrialDays; return this; @@ -872,7 +872,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlan other = (SchemasCommercePlan) o; + CommercePlan2 other = (CommercePlan2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -922,7 +922,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlan.class, + return Utils.toString(CommercePlan2.class, "object", object, "id", id, "name", name, @@ -957,17 +957,17 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommercePlanObject object; + private CommercePlan2Object object; private String id; private String name; - private Optional fee = Optional.empty(); + private Optional fee = Optional.empty(); - private Optional annualMonthlyFee = Optional.empty(); + private Optional annualMonthlyFee = Optional.empty(); - private Optional annualFee = Optional.empty(); + private Optional annualFee = Optional.empty(); private Long amount; @@ -1009,7 +1009,7 @@ public final static class Builder { private Optional interval = Optional.empty(); - private List features; + private List features; private Optional freeTrialEnabled = Optional.empty(); @@ -1023,7 +1023,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommercePlanObject object) { + public Builder object(CommercePlan2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1050,39 +1050,39 @@ public Builder name(String name) { } - public Builder fee(SchemasCommercePlanFee fee) { + public Builder fee(CommercePlan2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public Builder fee(Optional fee) { + public Builder fee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public Builder annualMonthlyFee(SchemasCommercePlanAnnualMonthlyFee annualMonthlyFee) { + public Builder annualMonthlyFee(CommercePlan2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public Builder annualMonthlyFee(Optional annualMonthlyFee) { + public Builder annualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public Builder annualFee(SchemasCommercePlanAnnualFee annualFee) { + public Builder annualFee(CommercePlan2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public Builder annualFee(Optional annualFee) { + public Builder annualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -1310,7 +1310,7 @@ public Builder interval(Optional interval) { /** * The features included in this plan. */ - public Builder features(List features) { + public Builder features(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -1354,9 +1354,9 @@ public Builder freeTrialDays(JsonNullable freeTrialDays) { return this; } - public SchemasCommercePlan build() { + public CommercePlan2 build() { - return new SchemasCommercePlan( + return new CommercePlan2( object, id, name, fee, annualMonthlyFee, annualFee, amount, amountFormatted, annualMonthlyAmount, diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java similarity index 90% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java index 56fc4d80..557a29a8 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanFee { +public class CommercePlan2AnnualFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanFee( + public CommercePlan2AnnualFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanFee withAmount(long amount) { + public CommercePlan2AnnualFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanFee withAmountFormatted(String amountFormatted) { + public CommercePlan2AnnualFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanFee withAmountFormatted(String amountFormatted) { /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanFee withCurrency(String currency) { + public CommercePlan2AnnualFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanFee withCurrencySymbol(String currencySymbol) { + public CommercePlan2AnnualFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanFee other = (SchemasCommercePlanFee) o; + CommercePlan2AnnualFee other = (CommercePlan2AnnualFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanFee.class, + return Utils.toString(CommercePlan2AnnualFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanFee build() { + public CommercePlan2AnnualFee build() { - return new SchemasCommercePlanFee( + return new CommercePlan2AnnualFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java similarity index 88% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java index e794b899..629d5176 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualMonthlyFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2AnnualMonthlyFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanAnnualMonthlyFee { +public class CommercePlan2AnnualMonthlyFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanAnnualMonthlyFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanAnnualMonthlyFee( + public CommercePlan2AnnualMonthlyFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanAnnualMonthlyFee withAmount(long amount) { + public CommercePlan2AnnualMonthlyFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanAnnualMonthlyFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanAnnualMonthlyFee withAmountFormatted(String amountFormatted) { + public CommercePlan2AnnualMonthlyFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanAnnualMonthlyFee withAmountFormatted(String amountForm /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanAnnualMonthlyFee withCurrency(String currency) { + public CommercePlan2AnnualMonthlyFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanAnnualMonthlyFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanAnnualMonthlyFee withCurrencySymbol(String currencySymbol) { + public CommercePlan2AnnualMonthlyFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanAnnualMonthlyFee other = (SchemasCommercePlanAnnualMonthlyFee) o; + CommercePlan2AnnualMonthlyFee other = (CommercePlan2AnnualMonthlyFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanAnnualMonthlyFee.class, + return Utils.toString(CommercePlan2AnnualMonthlyFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanAnnualMonthlyFee build() { + public CommercePlan2AnnualMonthlyFee build() { - return new SchemasCommercePlanAnnualMonthlyFee( + return new CommercePlan2AnnualMonthlyFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java new file mode 100644 index 00000000..eafd8542 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Fee.java @@ -0,0 +1,224 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class CommercePlan2Fee { + /** + * The amount in cents. + */ + @JsonProperty("amount") + private long amount; + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonProperty("amount_formatted") + private String amountFormatted; + + /** + * The currency code (e.g., "USD"). + */ + @JsonProperty("currency") + private String currency; + + /** + * The currency symbol (e.g., "$"). + */ + @JsonProperty("currency_symbol") + private String currencySymbol; + + @JsonCreator + public CommercePlan2Fee( + @JsonProperty("amount") long amount, + @JsonProperty("amount_formatted") String amountFormatted, + @JsonProperty("currency") String currency, + @JsonProperty("currency_symbol") String currencySymbol) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(amountFormatted, "amountFormatted"); + Utils.checkNotNull(currency, "currency"); + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.amount = amount; + this.amountFormatted = amountFormatted; + this.currency = currency; + this.currencySymbol = currencySymbol; + } + + /** + * The amount in cents. + */ + @JsonIgnore + public long amount() { + return amount; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonIgnore + public String amountFormatted() { + return amountFormatted; + } + + /** + * The currency code (e.g., "USD"). + */ + @JsonIgnore + public String currency() { + return currency; + } + + /** + * The currency symbol (e.g., "$"). + */ + @JsonIgnore + public String currencySymbol() { + return currencySymbol; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount in cents. + */ + public CommercePlan2Fee withAmount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public CommercePlan2Fee withAmountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + /** + * The currency code (e.g., "USD"). + */ + public CommercePlan2Fee withCurrency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + /** + * The currency symbol (e.g., "$"). + */ + public CommercePlan2Fee withCurrencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommercePlan2Fee other = (CommercePlan2Fee) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && + Utils.enhancedDeepEquals(this.currency, other.currency) && + Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, amountFormatted, currency, + currencySymbol); + } + + @Override + public String toString() { + return Utils.toString(CommercePlan2Fee.class, + "amount", amount, + "amountFormatted", amountFormatted, + "currency", currency, + "currencySymbol", currencySymbol); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long amount; + + private String amountFormatted; + + private String currency; + + private String currencySymbol; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount in cents. + */ + public Builder amount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public Builder amountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + + /** + * The currency code (e.g., "USD"). + */ + public Builder currency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + + /** + * The currency symbol (e.g., "$"). + */ + public Builder currencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + public CommercePlan2Fee build() { + + return new CommercePlan2Fee( + amount, amountFormatted, currency, + currencySymbol); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java similarity index 71% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java index ac1736cc..eeb0f31b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePlan2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommercePlanObject + * CommercePlan2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommercePlanObject { +public enum CommercePlan2Object { COMMERCE_PLAN("commerce_plan"); @JsonValue private final String value; - SchemasCommercePlanObject(String value) { + CommercePlan2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommercePlanObject o: SchemasCommercePlanObject.values()) { + public static Optional fromValue(String value) { + for (CommercePlan2Object o: CommercePlan2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java index 31c56a5b..9f0b50b7 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionDetails.java @@ -20,7 +20,7 @@ public class CommercePriceTransitionDetails { @JsonProperty("previous_plan") - private SchemasCommercePlan previousPlan; + private CommercePlan2 previousPlan; @JsonProperty("previous_price") @@ -72,7 +72,7 @@ public class CommercePriceTransitionDetails { @JsonCreator public CommercePriceTransitionDetails( - @JsonProperty("previous_plan") SchemasCommercePlan previousPlan, + @JsonProperty("previous_plan") CommercePlan2 previousPlan, @JsonProperty("previous_price") BillingPriceResponse previousPrice, @JsonProperty("effective_at") long effectiveAt, @JsonProperty("effective_mode") EffectiveMode effectiveMode, @@ -102,7 +102,7 @@ public CommercePriceTransitionDetails( } public CommercePriceTransitionDetails( - SchemasCommercePlan previousPlan, + CommercePlan2 previousPlan, BillingPriceResponse previousPrice, long effectiveAt, EffectiveMode effectiveMode, @@ -115,7 +115,7 @@ public CommercePriceTransitionDetails( } @JsonIgnore - public SchemasCommercePlan previousPlan() { + public CommercePlan2 previousPlan() { return previousPlan; } @@ -186,7 +186,7 @@ public static Builder builder() { } - public CommercePriceTransitionDetails withPreviousPlan(SchemasCommercePlan previousPlan) { + public CommercePriceTransitionDetails withPreviousPlan(CommercePlan2 previousPlan) { Utils.checkNotNull(previousPlan, "previousPlan"); this.previousPlan = previousPlan; return this; @@ -325,7 +325,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommercePlan previousPlan; + private CommercePlan2 previousPlan; private BillingPriceResponse previousPrice; @@ -348,7 +348,7 @@ private Builder() { } - public Builder previousPlan(SchemasCommercePlan previousPlan) { + public Builder previousPlan(CommercePlan2 previousPlan) { Utils.checkNotNull(previousPlan, "previousPlan"); this.previousPlan = previousPlan; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java index 68e238e0..f67bdc30 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommercePriceTransitionResponse.java @@ -24,7 +24,7 @@ public class CommercePriceTransitionResponse { @JsonProperty("subscription_item") - private SchemasCommerceSubscriptionItem subscriptionItem; + private CommerceSubscriptionItem2 subscriptionItem; @JsonProperty("transition") @@ -33,7 +33,7 @@ public class CommercePriceTransitionResponse { @JsonCreator public CommercePriceTransitionResponse( @JsonProperty("object") CommercePriceTransitionResponseObject object, - @JsonProperty("subscription_item") SchemasCommerceSubscriptionItem subscriptionItem, + @JsonProperty("subscription_item") CommerceSubscriptionItem2 subscriptionItem, @JsonProperty("transition") CommercePriceTransitionDetails transition) { Utils.checkNotNull(object, "object"); Utils.checkNotNull(subscriptionItem, "subscriptionItem"); @@ -52,7 +52,7 @@ public CommercePriceTransitionResponseObject object() { } @JsonIgnore - public SchemasCommerceSubscriptionItem subscriptionItem() { + public CommerceSubscriptionItem2 subscriptionItem() { return subscriptionItem; } @@ -75,7 +75,7 @@ public CommercePriceTransitionResponse withObject(CommercePriceTransitionRespons return this; } - public CommercePriceTransitionResponse withSubscriptionItem(SchemasCommerceSubscriptionItem subscriptionItem) { + public CommercePriceTransitionResponse withSubscriptionItem(CommerceSubscriptionItem2 subscriptionItem) { Utils.checkNotNull(subscriptionItem, "subscriptionItem"); this.subscriptionItem = subscriptionItem; return this; @@ -121,7 +121,7 @@ public final static class Builder { private CommercePriceTransitionResponseObject object; - private SchemasCommerceSubscriptionItem subscriptionItem; + private CommerceSubscriptionItem2 subscriptionItem; private CommercePriceTransitionDetails transition; @@ -140,7 +140,7 @@ public Builder object(CommercePriceTransitionResponseObject object) { } - public Builder subscriptionItem(SchemasCommerceSubscriptionItem subscriptionItem) { + public Builder subscriptionItem(CommerceSubscriptionItem2 subscriptionItem) { Utils.checkNotNull(subscriptionItem, "subscriptionItem"); this.subscriptionItem = subscriptionItem; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java similarity index 84% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java index 1e546859..ed8336cd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItem.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2.java @@ -18,16 +18,16 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItem + * CommerceSubscriptionItem2 * *

A commerce subscription item. */ -public class SchemasCommerceSubscriptionItem { +public class CommerceSubscriptionItem2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemObject object; + private CommerceSubscriptionItem2Object object; /** * Unique identifier for the subscription item. @@ -45,7 +45,7 @@ public class SchemasCommerceSubscriptionItem { * Current status of the subscription item. */ @JsonProperty("status") - private SchemasCommerceSubscriptionItemStatus status; + private CommerceSubscriptionItem2Status status; /** * Credit information (only available in PaymentAttempt events). @@ -72,13 +72,13 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.ALWAYS) @JsonProperty("plan") - private Optional plan; + private Optional plan; /** * The billing period for this subscription. */ @JsonProperty("plan_period") - private SchemasCommerceSubscriptionItemPlanPeriod planPeriod; + private CommerceSubscriptionItem2PlanPeriod planPeriod; /** * Unique identifier for the payment source. @@ -105,7 +105,7 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Information about the next invoice. @@ -119,7 +119,7 @@ public class SchemasCommerceSubscriptionItem { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("next_payment") - private JsonNullable nextPayment; + private JsonNullable nextPayment; /** * Unique identifier for the payer. @@ -194,22 +194,22 @@ public class SchemasCommerceSubscriptionItem { private long updatedAt; @JsonCreator - public SchemasCommerceSubscriptionItem( - @JsonProperty("object") SchemasCommerceSubscriptionItemObject object, + public CommerceSubscriptionItem2( + @JsonProperty("object") CommerceSubscriptionItem2Object object, @JsonProperty("id") String id, @JsonProperty("instance_id") String instanceId, - @JsonProperty("status") SchemasCommerceSubscriptionItemStatus status, + @JsonProperty("status") CommerceSubscriptionItem2Status status, @JsonProperty("credit") JsonNullable credit, @JsonProperty("plan_id") String planId, @JsonProperty("price_id") Optional priceId, - @JsonProperty("plan") Optional plan, - @JsonProperty("plan_period") SchemasCommerceSubscriptionItemPlanPeriod planPeriod, + @JsonProperty("plan") Optional plan, + @JsonProperty("plan_period") CommerceSubscriptionItem2PlanPeriod planPeriod, @JsonProperty("payment_source_id") String paymentSourceId, @JsonProperty("payment_source") JsonNullable paymentSource, @JsonProperty("lifetime_paid") JsonNullable lifetimePaid, - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("next_invoice") JsonNullable nextInvoice, - @JsonProperty("next_payment") JsonNullable nextPayment, + @JsonProperty("next_payment") JsonNullable nextPayment, @JsonProperty("payer_id") String payerId, @JsonProperty("payer") JsonNullable payer, @JsonProperty("is_free_trial") boolean isFreeTrial, @@ -275,13 +275,13 @@ public SchemasCommerceSubscriptionItem( this.updatedAt = updatedAt; } - public SchemasCommerceSubscriptionItem( - SchemasCommerceSubscriptionItemObject object, + public CommerceSubscriptionItem2( + CommerceSubscriptionItem2Object object, String id, String instanceId, - SchemasCommerceSubscriptionItemStatus status, + CommerceSubscriptionItem2Status status, String planId, - SchemasCommerceSubscriptionItemPlanPeriod planPeriod, + CommerceSubscriptionItem2PlanPeriod planPeriod, String paymentSourceId, String payerId, boolean isFreeTrial, @@ -303,7 +303,7 @@ public SchemasCommerceSubscriptionItem( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemObject object() { + public CommerceSubscriptionItem2Object object() { return object; } @@ -327,7 +327,7 @@ public String instanceId() { * Current status of the subscription item. */ @JsonIgnore - public SchemasCommerceSubscriptionItemStatus status() { + public CommerceSubscriptionItem2Status status() { return status; } @@ -361,15 +361,15 @@ public Optional priceId() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional plan() { - return (Optional) plan; + public Optional plan() { + return (Optional) plan; } /** * The billing period for this subscription. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPlanPeriod planPeriod() { + public CommerceSubscriptionItem2PlanPeriod planPeriod() { return planPeriod; } @@ -404,8 +404,8 @@ public JsonNullable lifetimePaid() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -422,8 +422,8 @@ public JsonNullable nextInvoice() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable nextPayment() { - return (JsonNullable) nextPayment; + public JsonNullable nextPayment() { + return (JsonNullable) nextPayment; } /** @@ -523,7 +523,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommerceSubscriptionItem withObject(SchemasCommerceSubscriptionItemObject object) { + public CommerceSubscriptionItem2 withObject(CommerceSubscriptionItem2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -532,7 +532,7 @@ public SchemasCommerceSubscriptionItem withObject(SchemasCommerceSubscriptionIte /** * Unique identifier for the subscription item. */ - public SchemasCommerceSubscriptionItem withId(String id) { + public CommerceSubscriptionItem2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -541,7 +541,7 @@ public SchemasCommerceSubscriptionItem withId(String id) { /** * Unique identifier for the Clerk instance. */ - public SchemasCommerceSubscriptionItem withInstanceId(String instanceId) { + public CommerceSubscriptionItem2 withInstanceId(String instanceId) { Utils.checkNotNull(instanceId, "instanceId"); this.instanceId = instanceId; return this; @@ -550,7 +550,7 @@ public SchemasCommerceSubscriptionItem withInstanceId(String instanceId) { /** * Current status of the subscription item. */ - public SchemasCommerceSubscriptionItem withStatus(SchemasCommerceSubscriptionItemStatus status) { + public CommerceSubscriptionItem2 withStatus(CommerceSubscriptionItem2Status status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -559,7 +559,7 @@ public SchemasCommerceSubscriptionItem withStatus(SchemasCommerceSubscriptionIte /** * Credit information (only available in PaymentAttempt events). */ - public SchemasCommerceSubscriptionItem withCredit(Credit credit) { + public CommerceSubscriptionItem2 withCredit(Credit credit) { Utils.checkNotNull(credit, "credit"); this.credit = JsonNullable.of(credit); return this; @@ -568,7 +568,7 @@ public SchemasCommerceSubscriptionItem withCredit(Credit credit) { /** * Credit information (only available in PaymentAttempt events). */ - public SchemasCommerceSubscriptionItem withCredit(JsonNullable credit) { + public CommerceSubscriptionItem2 withCredit(JsonNullable credit) { Utils.checkNotNull(credit, "credit"); this.credit = credit; return this; @@ -577,7 +577,7 @@ public SchemasCommerceSubscriptionItem withCredit(JsonNullable /** * Unique identifier for the associated plan. */ - public SchemasCommerceSubscriptionItem withPlanId(String planId) { + public CommerceSubscriptionItem2 withPlanId(String planId) { Utils.checkNotNull(planId, "planId"); this.planId = planId; return this; @@ -586,7 +586,7 @@ public SchemasCommerceSubscriptionItem withPlanId(String planId) { /** * Unique identifier for the associated price */ - public SchemasCommerceSubscriptionItem withPriceId(String priceId) { + public CommerceSubscriptionItem2 withPriceId(String priceId) { Utils.checkNotNull(priceId, "priceId"); this.priceId = Optional.ofNullable(priceId); return this; @@ -596,7 +596,7 @@ public SchemasCommerceSubscriptionItem withPriceId(String priceId) { /** * Unique identifier for the associated price */ - public SchemasCommerceSubscriptionItem withPriceId(Optional priceId) { + public CommerceSubscriptionItem2 withPriceId(Optional priceId) { Utils.checkNotNull(priceId, "priceId"); this.priceId = priceId; return this; @@ -605,7 +605,7 @@ public SchemasCommerceSubscriptionItem withPriceId(Optional priceId) { /** * The associated commerce plan. */ - public SchemasCommerceSubscriptionItem withPlan(SchemasCommerceSubscriptionItemPlan plan) { + public CommerceSubscriptionItem2 withPlan(CommerceSubscriptionItem2Plan plan) { Utils.checkNotNull(plan, "plan"); this.plan = Optional.ofNullable(plan); return this; @@ -615,7 +615,7 @@ public SchemasCommerceSubscriptionItem withPlan(SchemasCommerceSubscriptionItemP /** * The associated commerce plan. */ - public SchemasCommerceSubscriptionItem withPlan(Optional plan) { + public CommerceSubscriptionItem2 withPlan(Optional plan) { Utils.checkNotNull(plan, "plan"); this.plan = plan; return this; @@ -624,7 +624,7 @@ public SchemasCommerceSubscriptionItem withPlan(Optional paymentSource) { + public CommerceSubscriptionItem2 withPaymentSource(JsonNullable paymentSource) { Utils.checkNotNull(paymentSource, "paymentSource"); this.paymentSource = paymentSource; return this; @@ -660,7 +660,7 @@ public SchemasCommerceSubscriptionItem withPaymentSource(JsonNullable lifetimePaid) { + public CommerceSubscriptionItem2 withLifetimePaid(JsonNullable lifetimePaid) { Utils.checkNotNull(lifetimePaid, "lifetimePaid"); this.lifetimePaid = lifetimePaid; return this; @@ -678,7 +678,7 @@ public SchemasCommerceSubscriptionItem withLifetimePaid(JsonNullable amount) { + public CommerceSubscriptionItem2 withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -696,7 +696,7 @@ public SchemasCommerceSubscriptionItem withAmount(JsonNullable nextInvoice) { + public CommerceSubscriptionItem2 withNextInvoice(JsonNullable nextInvoice) { Utils.checkNotNull(nextInvoice, "nextInvoice"); this.nextInvoice = nextInvoice; return this; @@ -714,7 +714,7 @@ public SchemasCommerceSubscriptionItem withNextInvoice(JsonNullable nextPayment) { + public CommerceSubscriptionItem2 withNextPayment(JsonNullable nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = nextPayment; return this; @@ -732,7 +732,7 @@ public SchemasCommerceSubscriptionItem withNextPayment(JsonNullable payer) { + public CommerceSubscriptionItem2 withPayer(JsonNullable payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -759,7 +759,7 @@ public SchemasCommerceSubscriptionItem withPayer(JsonNullable p /** * Whether this subscription is currently on a free trial. */ - public SchemasCommerceSubscriptionItem withIsFreeTrial(boolean isFreeTrial) { + public CommerceSubscriptionItem2 withIsFreeTrial(boolean isFreeTrial) { Utils.checkNotNull(isFreeTrial, "isFreeTrial"); this.isFreeTrial = isFreeTrial; return this; @@ -768,7 +768,7 @@ public SchemasCommerceSubscriptionItem withIsFreeTrial(boolean isFreeTrial) { /** * Unix timestamp (in milliseconds) when the current period started. */ - public SchemasCommerceSubscriptionItem withPeriodStart(long periodStart) { + public CommerceSubscriptionItem2 withPeriodStart(long periodStart) { Utils.checkNotNull(periodStart, "periodStart"); this.periodStart = JsonNullable.of(periodStart); return this; @@ -777,7 +777,7 @@ public SchemasCommerceSubscriptionItem withPeriodStart(long periodStart) { /** * Unix timestamp (in milliseconds) when the current period started. */ - public SchemasCommerceSubscriptionItem withPeriodStart(JsonNullable periodStart) { + public CommerceSubscriptionItem2 withPeriodStart(JsonNullable periodStart) { Utils.checkNotNull(periodStart, "periodStart"); this.periodStart = periodStart; return this; @@ -786,7 +786,7 @@ public SchemasCommerceSubscriptionItem withPeriodStart(JsonNullable period /** * Unix timestamp (in milliseconds) when the current period ends. */ - public SchemasCommerceSubscriptionItem withPeriodEnd(long periodEnd) { + public CommerceSubscriptionItem2 withPeriodEnd(long periodEnd) { Utils.checkNotNull(periodEnd, "periodEnd"); this.periodEnd = JsonNullable.of(periodEnd); return this; @@ -795,7 +795,7 @@ public SchemasCommerceSubscriptionItem withPeriodEnd(long periodEnd) { /** * Unix timestamp (in milliseconds) when the current period ends. */ - public SchemasCommerceSubscriptionItem withPeriodEnd(JsonNullable periodEnd) { + public CommerceSubscriptionItem2 withPeriodEnd(JsonNullable periodEnd) { Utils.checkNotNull(periodEnd, "periodEnd"); this.periodEnd = periodEnd; return this; @@ -804,7 +804,7 @@ public SchemasCommerceSubscriptionItem withPeriodEnd(JsonNullable periodEn /** * Date used for proration calculations. */ - public SchemasCommerceSubscriptionItem withProrationDate(String prorationDate) { + public CommerceSubscriptionItem2 withProrationDate(String prorationDate) { Utils.checkNotNull(prorationDate, "prorationDate"); this.prorationDate = prorationDate; return this; @@ -813,7 +813,7 @@ public SchemasCommerceSubscriptionItem withProrationDate(String prorationDate) { /** * Unix timestamp (in milliseconds) when the subscription was canceled. */ - public SchemasCommerceSubscriptionItem withCanceledAt(long canceledAt) { + public CommerceSubscriptionItem2 withCanceledAt(long canceledAt) { Utils.checkNotNull(canceledAt, "canceledAt"); this.canceledAt = JsonNullable.of(canceledAt); return this; @@ -822,7 +822,7 @@ public SchemasCommerceSubscriptionItem withCanceledAt(long canceledAt) { /** * Unix timestamp (in milliseconds) when the subscription was canceled. */ - public SchemasCommerceSubscriptionItem withCanceledAt(JsonNullable canceledAt) { + public CommerceSubscriptionItem2 withCanceledAt(JsonNullable canceledAt) { Utils.checkNotNull(canceledAt, "canceledAt"); this.canceledAt = canceledAt; return this; @@ -831,7 +831,7 @@ public SchemasCommerceSubscriptionItem withCanceledAt(JsonNullable cancele /** * Unix timestamp (in milliseconds) when the subscription became past due. */ - public SchemasCommerceSubscriptionItem withPastDueAt(long pastDueAt) { + public CommerceSubscriptionItem2 withPastDueAt(long pastDueAt) { Utils.checkNotNull(pastDueAt, "pastDueAt"); this.pastDueAt = JsonNullable.of(pastDueAt); return this; @@ -840,7 +840,7 @@ public SchemasCommerceSubscriptionItem withPastDueAt(long pastDueAt) { /** * Unix timestamp (in milliseconds) when the subscription became past due. */ - public SchemasCommerceSubscriptionItem withPastDueAt(JsonNullable pastDueAt) { + public CommerceSubscriptionItem2 withPastDueAt(JsonNullable pastDueAt) { Utils.checkNotNull(pastDueAt, "pastDueAt"); this.pastDueAt = pastDueAt; return this; @@ -849,7 +849,7 @@ public SchemasCommerceSubscriptionItem withPastDueAt(JsonNullable pastDueA /** * Unix timestamp (in milliseconds) when the subscription ended. */ - public SchemasCommerceSubscriptionItem withEndedAt(long endedAt) { + public CommerceSubscriptionItem2 withEndedAt(long endedAt) { Utils.checkNotNull(endedAt, "endedAt"); this.endedAt = JsonNullable.of(endedAt); return this; @@ -858,7 +858,7 @@ public SchemasCommerceSubscriptionItem withEndedAt(long endedAt) { /** * Unix timestamp (in milliseconds) when the subscription ended. */ - public SchemasCommerceSubscriptionItem withEndedAt(JsonNullable endedAt) { + public CommerceSubscriptionItem2 withEndedAt(JsonNullable endedAt) { Utils.checkNotNull(endedAt, "endedAt"); this.endedAt = endedAt; return this; @@ -867,7 +867,7 @@ public SchemasCommerceSubscriptionItem withEndedAt(JsonNullable endedAt) { /** * Unix timestamp (in milliseconds) when the subscription was created. */ - public SchemasCommerceSubscriptionItem withCreatedAt(long createdAt) { + public CommerceSubscriptionItem2 withCreatedAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; @@ -876,7 +876,7 @@ public SchemasCommerceSubscriptionItem withCreatedAt(long createdAt) { /** * Unix timestamp (in milliseconds) when the subscription was last updated. */ - public SchemasCommerceSubscriptionItem withUpdatedAt(long updatedAt) { + public CommerceSubscriptionItem2 withUpdatedAt(long updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; return this; @@ -890,7 +890,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItem other = (SchemasCommerceSubscriptionItem) o; + CommerceSubscriptionItem2 other = (CommerceSubscriptionItem2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -936,7 +936,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItem.class, + return Utils.toString(CommerceSubscriptionItem2.class, "object", object, "id", id, "instanceId", instanceId, @@ -968,13 +968,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemObject object; + private CommerceSubscriptionItem2Object object; private String id; private String instanceId; - private SchemasCommerceSubscriptionItemStatus status; + private CommerceSubscriptionItem2Status status; private JsonNullable credit = JsonNullable.undefined(); @@ -982,9 +982,9 @@ public final static class Builder { private Optional priceId = Optional.empty(); - private Optional plan = Optional.empty(); + private Optional plan = Optional.empty(); - private SchemasCommerceSubscriptionItemPlanPeriod planPeriod; + private CommerceSubscriptionItem2PlanPeriod planPeriod; private String paymentSourceId; @@ -992,11 +992,11 @@ public final static class Builder { private JsonNullable lifetimePaid = JsonNullable.undefined(); - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable nextInvoice = JsonNullable.undefined(); - private JsonNullable nextPayment = JsonNullable.undefined(); + private JsonNullable nextPayment = JsonNullable.undefined(); private String payerId; @@ -1028,7 +1028,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemObject object) { + public Builder object(CommerceSubscriptionItem2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1058,7 +1058,7 @@ public Builder instanceId(String instanceId) { /** * Current status of the subscription item. */ - public Builder status(SchemasCommerceSubscriptionItemStatus status) { + public Builder status(CommerceSubscriptionItem2Status status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -1116,7 +1116,7 @@ public Builder priceId(Optional priceId) { /** * The associated commerce plan. */ - public Builder plan(SchemasCommerceSubscriptionItemPlan plan) { + public Builder plan(CommerceSubscriptionItem2Plan plan) { Utils.checkNotNull(plan, "plan"); this.plan = Optional.ofNullable(plan); return this; @@ -1125,7 +1125,7 @@ public Builder plan(SchemasCommerceSubscriptionItemPlan plan) { /** * The associated commerce plan. */ - public Builder plan(Optional plan) { + public Builder plan(Optional plan) { Utils.checkNotNull(plan, "plan"); this.plan = plan; return this; @@ -1135,7 +1135,7 @@ public Builder plan(Optional plan /** * The billing period for this subscription. */ - public Builder planPeriod(SchemasCommerceSubscriptionItemPlanPeriod planPeriod) { + public Builder planPeriod(CommerceSubscriptionItem2PlanPeriod planPeriod) { Utils.checkNotNull(planPeriod, "planPeriod"); this.planPeriod = planPeriod; return this; @@ -1193,7 +1193,7 @@ public Builder lifetimePaid(JsonNullable lifetimePaid) { /** * Current amount for this subscription. */ - public Builder amount(SchemasCommerceSubscriptionItemAmount amount) { + public Builder amount(CommerceSubscriptionItem2Amount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -1202,7 +1202,7 @@ public Builder amount(SchemasCommerceSubscriptionItemAmount amount) { /** * Current amount for this subscription. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -1231,7 +1231,7 @@ public Builder nextInvoice(JsonNullable nextInvoice) { /** * Information about the next payment. */ - public Builder nextPayment(SchemasCommerceSubscriptionItemNextPayment nextPayment) { + public Builder nextPayment(CommerceSubscriptionItem2NextPayment nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = JsonNullable.of(nextPayment); return this; @@ -1240,7 +1240,7 @@ public Builder nextPayment(SchemasCommerceSubscriptionItemNextPayment nextPaymen /** * Information about the next payment. */ - public Builder nextPayment(JsonNullable nextPayment) { + public Builder nextPayment(JsonNullable nextPayment) { Utils.checkNotNull(nextPayment, "nextPayment"); this.nextPayment = nextPayment; return this; @@ -1410,9 +1410,9 @@ public Builder updatedAt(long updatedAt) { return this; } - public SchemasCommerceSubscriptionItem build() { + public CommerceSubscriptionItem2 build() { - return new SchemasCommerceSubscriptionItem( + return new CommerceSubscriptionItem2( object, id, instanceId, status, credit, planId, priceId, plan, planPeriod, diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java new file mode 100644 index 00000000..04633e94 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Amount.java @@ -0,0 +1,228 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + +/** + * CommerceSubscriptionItem2Amount + * + *

Current amount for this subscription. + */ +public class CommerceSubscriptionItem2Amount { + /** + * The amount in cents. + */ + @JsonProperty("amount") + private long amount; + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonProperty("amount_formatted") + private String amountFormatted; + + /** + * The currency code (e.g., "USD"). + */ + @JsonProperty("currency") + private String currency; + + /** + * The currency symbol (e.g., "$"). + */ + @JsonProperty("currency_symbol") + private String currencySymbol; + + @JsonCreator + public CommerceSubscriptionItem2Amount( + @JsonProperty("amount") long amount, + @JsonProperty("amount_formatted") String amountFormatted, + @JsonProperty("currency") String currency, + @JsonProperty("currency_symbol") String currencySymbol) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(amountFormatted, "amountFormatted"); + Utils.checkNotNull(currency, "currency"); + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.amount = amount; + this.amountFormatted = amountFormatted; + this.currency = currency; + this.currencySymbol = currencySymbol; + } + + /** + * The amount in cents. + */ + @JsonIgnore + public long amount() { + return amount; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + @JsonIgnore + public String amountFormatted() { + return amountFormatted; + } + + /** + * The currency code (e.g., "USD"). + */ + @JsonIgnore + public String currency() { + return currency; + } + + /** + * The currency symbol (e.g., "$"). + */ + @JsonIgnore + public String currencySymbol() { + return currencySymbol; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount in cents. + */ + public CommerceSubscriptionItem2Amount withAmount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public CommerceSubscriptionItem2Amount withAmountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + /** + * The currency code (e.g., "USD"). + */ + public CommerceSubscriptionItem2Amount withCurrency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + /** + * The currency symbol (e.g., "$"). + */ + public CommerceSubscriptionItem2Amount withCurrencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CommerceSubscriptionItem2Amount other = (CommerceSubscriptionItem2Amount) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && + Utils.enhancedDeepEquals(this.currency, other.currency) && + Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, amountFormatted, currency, + currencySymbol); + } + + @Override + public String toString() { + return Utils.toString(CommerceSubscriptionItem2Amount.class, + "amount", amount, + "amountFormatted", amountFormatted, + "currency", currency, + "currencySymbol", currencySymbol); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long amount; + + private String amountFormatted; + + private String currency; + + private String currencySymbol; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount in cents. + */ + public Builder amount(long amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The formatted amount as a string (e.g., "$49.99"). + */ + public Builder amountFormatted(String amountFormatted) { + Utils.checkNotNull(amountFormatted, "amountFormatted"); + this.amountFormatted = amountFormatted; + return this; + } + + + /** + * The currency code (e.g., "USD"). + */ + public Builder currency(String currency) { + Utils.checkNotNull(currency, "currency"); + this.currency = currency; + return this; + } + + + /** + * The currency symbol (e.g., "$"). + */ + public Builder currencySymbol(String currencySymbol) { + Utils.checkNotNull(currencySymbol, "currencySymbol"); + this.currencySymbol = currencySymbol; + return this; + } + + public CommerceSubscriptionItem2Amount build() { + + return new CommerceSubscriptionItem2Amount( + amount, amountFormatted, currency, + currencySymbol); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java similarity index 89% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java index fb3c20fd..8eb056d2 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemFee { +public class CommerceSubscriptionItem2AnnualFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommerceSubscriptionItemFee { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemFee( + public CommerceSubscriptionItem2AnnualFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemFee withAmount(long amount) { + public CommerceSubscriptionItem2AnnualFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommerceSubscriptionItemFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2AnnualFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommerceSubscriptionItemFee withAmountFormatted(String amountForma /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemFee withCurrency(String currency) { + public CommerceSubscriptionItem2AnnualFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommerceSubscriptionItemFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2AnnualFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemFee other = (SchemasCommerceSubscriptionItemFee) o; + CommerceSubscriptionItem2AnnualFee other = (CommerceSubscriptionItem2AnnualFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemFee.class, + return Utils.toString(CommerceSubscriptionItem2AnnualFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemFee build() { + public CommerceSubscriptionItem2AnnualFee build() { - return new SchemasCommerceSubscriptionItemFee( + return new CommerceSubscriptionItem2AnnualFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java index 1f6d6a77..c7386acd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2AnnualMonthlyFee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemAnnualFee { +public class CommerceSubscriptionItem2AnnualMonthlyFee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommerceSubscriptionItemAnnualFee { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemAnnualFee( + public CommerceSubscriptionItem2AnnualMonthlyFee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemAnnualFee withAmount(long amount) { + public CommerceSubscriptionItem2AnnualMonthlyFee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemAnnualFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2AnnualMonthlyFee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withAmountFormatted(String amoun /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemAnnualFee withCurrency(String currency) { + public CommerceSubscriptionItem2AnnualMonthlyFee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommerceSubscriptionItemAnnualFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemAnnualFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2AnnualMonthlyFee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemAnnualFee other = (SchemasCommerceSubscriptionItemAnnualFee) o; + CommerceSubscriptionItem2AnnualMonthlyFee other = (CommerceSubscriptionItem2AnnualMonthlyFee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAnnualFee.class, + return Utils.toString(CommerceSubscriptionItem2AnnualMonthlyFee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemAnnualFee build() { + public CommerceSubscriptionItem2AnnualMonthlyFee build() { - return new SchemasCommerceSubscriptionItemAnnualFee( + return new CommerceSubscriptionItem2AnnualMonthlyFee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java similarity index 88% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java index 6924ad8b..5bb5a816 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2CreditAmount.java @@ -12,11 +12,11 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemAmount + * CommerceSubscriptionItem2CreditAmount * - *

Current amount for this subscription. + *

Credit amount. */ -public class SchemasCommerceSubscriptionItemAmount { +public class CommerceSubscriptionItem2CreditAmount { /** * The amount in cents. */ @@ -42,7 +42,7 @@ public class SchemasCommerceSubscriptionItemAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemAmount( + public CommerceSubscriptionItem2CreditAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -97,7 +97,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemAmount withAmount(long amount) { + public CommerceSubscriptionItem2CreditAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -106,7 +106,7 @@ public SchemasCommerceSubscriptionItemAmount withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2CreditAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -115,7 +115,7 @@ public SchemasCommerceSubscriptionItemAmount withAmountFormatted(String amountFo /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemAmount withCurrency(String currency) { + public CommerceSubscriptionItem2CreditAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -124,7 +124,7 @@ public SchemasCommerceSubscriptionItemAmount withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2CreditAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -138,7 +138,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemAmount other = (SchemasCommerceSubscriptionItemAmount) o; + CommerceSubscriptionItem2CreditAmount other = (CommerceSubscriptionItem2CreditAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -155,7 +155,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAmount.class, + return Utils.toString(CommerceSubscriptionItem2CreditAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -217,9 +217,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemAmount build() { + public CommerceSubscriptionItem2CreditAmount build() { - return new SchemasCommerceSubscriptionItemAmount( + return new CommerceSubscriptionItem2CreditAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java index 068ae38b..94ee5f36 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCredits.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Credits.java @@ -15,25 +15,25 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemCredits { +public class CommerceSubscriptionItem2Credits { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonInclude(Include.ALWAYS) @JsonProperty("payer") - private Optional payer; + private Optional payer; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemCredits( - @JsonProperty("proration") Optional proration, - @JsonProperty("payer") Optional payer, + public CommerceSubscriptionItem2Credits( + @JsonProperty("proration") Optional proration, + @JsonProperty("payer") Optional payer, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(payer, "payer"); @@ -43,21 +43,21 @@ public SchemasCommerceSubscriptionItemCredits( this.total = total; } - public SchemasCommerceSubscriptionItemCredits( + public CommerceSubscriptionItem2Credits( CommerceMoneyResponse total) { this(Optional.empty(), Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional payer() { - return (Optional) payer; + public Optional payer() { + return (Optional) payer; } @JsonIgnore @@ -70,33 +70,33 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemCredits withProration(SchemasCommerceSubscriptionItemProration proration) { + public CommerceSubscriptionItem2Credits withProration(CommerceSubscriptionItem2Proration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemCredits withProration(Optional proration) { + public CommerceSubscriptionItem2Credits withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemCredits withPayer(SchemasCommerceSubscriptionItemPayer payer) { + public CommerceSubscriptionItem2Credits withPayer(CommerceSubscriptionItem2Payer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public SchemasCommerceSubscriptionItemCredits withPayer(Optional payer) { + public CommerceSubscriptionItem2Credits withPayer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; } - public SchemasCommerceSubscriptionItemCredits withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2Credits withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -110,7 +110,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemCredits other = (SchemasCommerceSubscriptionItemCredits) o; + CommerceSubscriptionItem2Credits other = (CommerceSubscriptionItem2Credits) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.payer, other.payer) && @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemCredits.class, + return Utils.toString(CommerceSubscriptionItem2Credits.class, "proration", proration, "payer", payer, "total", total); @@ -134,9 +134,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); - private Optional payer = Optional.empty(); + private Optional payer = Optional.empty(); private CommerceMoneyResponse total; @@ -145,26 +145,26 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemProration proration) { + public Builder proration(CommerceSubscriptionItem2Proration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public Builder payer(SchemasCommerceSubscriptionItemPayer payer) { + public Builder payer(CommerceSubscriptionItem2Payer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public Builder payer(Optional payer) { + public Builder payer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -177,9 +177,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemCredits build() { + public CommerceSubscriptionItem2Credits build() { - return new SchemasCommerceSubscriptionItemCredits( + return new CommerceSubscriptionItem2Credits( proration, payer, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java index 78da3cfd..be988269 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemDiscounts.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Discounts.java @@ -15,19 +15,19 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemDiscounts { +public class CommerceSubscriptionItem2Discounts { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemDiscounts( - @JsonProperty("proration") Optional proration, + public CommerceSubscriptionItem2Discounts( + @JsonProperty("proration") Optional proration, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(total, "total"); @@ -35,15 +35,15 @@ public SchemasCommerceSubscriptionItemDiscounts( this.total = total; } - public SchemasCommerceSubscriptionItemDiscounts( + public CommerceSubscriptionItem2Discounts( CommerceMoneyResponse total) { this(Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @JsonIgnore @@ -56,20 +56,20 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemDiscounts withProration(SchemasCommerceSubscriptionItemNextInvoiceProration proration) { + public CommerceSubscriptionItem2Discounts withProration(CommerceSubscriptionItem2NextInvoiceProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemDiscounts withProration(Optional proration) { + public CommerceSubscriptionItem2Discounts withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemDiscounts withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2Discounts withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -83,7 +83,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemDiscounts other = (SchemasCommerceSubscriptionItemDiscounts) o; + CommerceSubscriptionItem2Discounts other = (CommerceSubscriptionItem2Discounts) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.total, other.total); @@ -97,7 +97,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemDiscounts.class, + return Utils.toString(CommerceSubscriptionItem2Discounts.class, "proration", proration, "total", total); } @@ -105,7 +105,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); private CommerceMoneyResponse total; @@ -114,13 +114,13 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextInvoiceProration proration) { + public Builder proration(CommerceSubscriptionItem2NextInvoiceProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; @@ -133,9 +133,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemDiscounts build() { + public CommerceSubscriptionItem2Discounts build() { - return new SchemasCommerceSubscriptionItemDiscounts( + return new CommerceSubscriptionItem2Discounts( proration, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java similarity index 90% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java index a0de8a27..5c52fb74 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommercePlanAnnualFee.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Fee.java @@ -12,7 +12,7 @@ import java.lang.String; -public class SchemasCommercePlanAnnualFee { +public class CommerceSubscriptionItem2Fee { /** * The amount in cents. */ @@ -38,7 +38,7 @@ public class SchemasCommercePlanAnnualFee { private String currencySymbol; @JsonCreator - public SchemasCommercePlanAnnualFee( + public CommerceSubscriptionItem2Fee( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -93,7 +93,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommercePlanAnnualFee withAmount(long amount) { + public CommerceSubscriptionItem2Fee withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -102,7 +102,7 @@ public SchemasCommercePlanAnnualFee withAmount(long amount) { /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommercePlanAnnualFee withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2Fee withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -111,7 +111,7 @@ public SchemasCommercePlanAnnualFee withAmountFormatted(String amountFormatted) /** * The currency code (e.g., "USD"). */ - public SchemasCommercePlanAnnualFee withCurrency(String currency) { + public CommerceSubscriptionItem2Fee withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -120,7 +120,7 @@ public SchemasCommercePlanAnnualFee withCurrency(String currency) { /** * The currency symbol (e.g., "$"). */ - public SchemasCommercePlanAnnualFee withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2Fee withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -134,7 +134,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommercePlanAnnualFee other = (SchemasCommercePlanAnnualFee) o; + CommerceSubscriptionItem2Fee other = (CommerceSubscriptionItem2Fee) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -151,7 +151,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommercePlanAnnualFee.class, + return Utils.toString(CommerceSubscriptionItem2Fee.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -213,9 +213,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommercePlanAnnualFee build() { + public CommerceSubscriptionItem2Fee build() { - return new SchemasCommercePlanAnnualFee( + return new CommerceSubscriptionItem2Fee( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java index e856a532..b14c94a6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceAmount.java @@ -12,12 +12,12 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemNextInvoiceAmount + * CommerceSubscriptionItem2NextInvoiceAmount * *

Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ -public class SchemasCommerceSubscriptionItemNextInvoiceAmount { +public class CommerceSubscriptionItem2NextInvoiceAmount { /** * The amount in cents. */ @@ -43,7 +43,7 @@ public class SchemasCommerceSubscriptionItemNextInvoiceAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemNextInvoiceAmount( + public CommerceSubscriptionItem2NextInvoiceAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -98,7 +98,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmount(long amount) { + public CommerceSubscriptionItem2NextInvoiceAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -107,7 +107,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmount(long amount) /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2NextInvoiceAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -116,7 +116,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withAmountFormatted(Stri /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrency(String currency) { + public CommerceSubscriptionItem2NextInvoiceAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -125,7 +125,7 @@ public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrency(String curr /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemNextInvoiceAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2NextInvoiceAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -139,7 +139,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextInvoiceAmount other = (SchemasCommerceSubscriptionItemNextInvoiceAmount) o; + CommerceSubscriptionItem2NextInvoiceAmount other = (CommerceSubscriptionItem2NextInvoiceAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -156,7 +156,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextInvoiceAmount.class, + return Utils.toString(CommerceSubscriptionItem2NextInvoiceAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -218,9 +218,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemNextInvoiceAmount build() { + public CommerceSubscriptionItem2NextInvoiceAmount build() { - return new SchemasCommerceSubscriptionItemNextInvoiceAmount( + return new CommerceSubscriptionItem2NextInvoiceAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java similarity index 82% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java index 6bf07131..8376086e 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotalsProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextInvoiceProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentTotalsProration { +public class CommerceSubscriptionItem2NextInvoiceProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentTotalsProration { private float cyclePassedPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration( + public CommerceSubscriptionItem2NextInvoiceProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_passed") long cycleDaysPassed, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextInvoiceProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCycleDaysPassed(long cycleDaysPassed) { + public CommerceSubscriptionItem2NextInvoiceProration withCycleDaysPassed(long cycleDaysPassed) { Utils.checkNotNull(cycleDaysPassed, "cycleDaysPassed"); this.cycleDaysPassed = cycleDaysPassed; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextInvoiceProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration withCyclePassedPercent(float cyclePassedPercent) { + public CommerceSubscriptionItem2NextInvoiceProration withCyclePassedPercent(float cyclePassedPercent) { Utils.checkNotNull(cyclePassedPercent, "cyclePassedPercent"); this.cyclePassedPercent = cyclePassedPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentTotalsProration other = (SchemasCommerceSubscriptionItemNextPaymentTotalsProration) o; + CommerceSubscriptionItem2NextInvoiceProration other = (CommerceSubscriptionItem2NextInvoiceProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysPassed, other.cycleDaysPassed) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentTotalsProration.class, + return Utils.toString(CommerceSubscriptionItem2NextInvoiceProration.class, "amount", amount, "cycleDaysPassed", cycleDaysPassed, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cyclePassedPercent(float cyclePassedPercent) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotalsProration build() { + public CommerceSubscriptionItem2NextInvoiceProration build() { - return new SchemasCommerceSubscriptionItemNextPaymentTotalsProration( + return new CommerceSubscriptionItem2NextInvoiceProration( amount, cycleDaysPassed, cycleDaysTotal, cyclePassedPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java similarity index 75% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java index e203189d..6883eda5 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPayment.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPayment.java @@ -18,18 +18,18 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemNextPayment + * CommerceSubscriptionItem2NextPayment * *

Information about the next payment. */ -public class SchemasCommerceSubscriptionItemNextPayment { +public class CommerceSubscriptionItem2NextPayment { /** * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Unix timestamp (in milliseconds) for the next payment date. @@ -51,14 +51,14 @@ public class SchemasCommerceSubscriptionItemNextPayment { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("totals") - private JsonNullable totals; + private JsonNullable totals; @JsonCreator - public SchemasCommerceSubscriptionItemNextPayment( - @JsonProperty("amount") JsonNullable amount, + public CommerceSubscriptionItem2NextPayment( + @JsonProperty("amount") JsonNullable amount, @JsonProperty("date") JsonNullable date, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("totals") JsonNullable totals) { + @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(perUnitTotals, "perUnitTotals"); @@ -69,7 +69,7 @@ public SchemasCommerceSubscriptionItemNextPayment( this.totals = totals; } - public SchemasCommerceSubscriptionItemNextPayment() { + public CommerceSubscriptionItem2NextPayment() { this(JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); } @@ -80,8 +80,8 @@ public SchemasCommerceSubscriptionItemNextPayment() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -107,8 +107,8 @@ public Optional> perUnitTotals() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable totals() { - return (JsonNullable) totals; + public JsonNullable totals() { + return (JsonNullable) totals; } public static Builder builder() { @@ -120,7 +120,7 @@ public static Builder builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public SchemasCommerceSubscriptionItemNextPayment withAmount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { + public CommerceSubscriptionItem2NextPayment withAmount(CommerceSubscriptionItem2NextPaymentAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -130,7 +130,7 @@ public SchemasCommerceSubscriptionItemNextPayment withAmount(SchemasCommerceSubs * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public SchemasCommerceSubscriptionItemNextPayment withAmount(JsonNullable amount) { + public CommerceSubscriptionItem2NextPayment withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -139,7 +139,7 @@ public SchemasCommerceSubscriptionItemNextPayment withAmount(JsonNullable date) { + public CommerceSubscriptionItem2NextPayment withDate(JsonNullable date) { Utils.checkNotNull(date, "date"); this.date = date; return this; @@ -157,7 +157,7 @@ public SchemasCommerceSubscriptionItemNextPayment withDate(JsonNullable da /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2NextPayment withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -167,7 +167,7 @@ public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(List> perUnitTotals) { + public CommerceSubscriptionItem2NextPayment withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -177,7 +177,7 @@ public SchemasCommerceSubscriptionItemNextPayment withPerUnitTotals(Optional totals) { + public CommerceSubscriptionItem2NextPayment withTotals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPayment other = (SchemasCommerceSubscriptionItemNextPayment) o; + CommerceSubscriptionItem2NextPayment other = (CommerceSubscriptionItem2NextPayment) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.date, other.date) && @@ -218,7 +218,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPayment.class, + return Utils.toString(CommerceSubscriptionItem2NextPayment.class, "amount", amount, "date", date, "perUnitTotals", perUnitTotals, @@ -228,13 +228,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable date = JsonNullable.undefined(); private Optional> perUnitTotals = Optional.empty(); - private JsonNullable totals = JsonNullable.undefined(); + private JsonNullable totals = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -245,7 +245,7 @@ private Builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { + public Builder amount(CommerceSubscriptionItem2NextPaymentAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -255,7 +255,7 @@ public Builder amount(SchemasCommerceSubscriptionItemNextPaymentAmount amount) { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -304,7 +304,7 @@ public Builder perUnitTotals(Optional> perU * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(SchemasCommerceSubscriptionItemNextPaymentTotals totals) { + public Builder totals(CommerceSubscriptionItem2NextPaymentTotals totals) { Utils.checkNotNull(totals, "totals"); this.totals = JsonNullable.of(totals); return this; @@ -314,15 +314,15 @@ public Builder totals(SchemasCommerceSubscriptionItemNextPaymentTotals totals) { * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(JsonNullable totals) { + public Builder totals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; } - public SchemasCommerceSubscriptionItemNextPayment build() { + public CommerceSubscriptionItem2NextPayment build() { - return new SchemasCommerceSubscriptionItemNextPayment( + return new CommerceSubscriptionItem2NextPayment( amount, date, perUnitTotals, totals); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java index 88c2cb49..a8088102 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentAmount.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentAmount.java @@ -12,12 +12,12 @@ import java.lang.String; /** - * SchemasCommerceSubscriptionItemNextPaymentAmount + * CommerceSubscriptionItem2NextPaymentAmount * *

Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ -public class SchemasCommerceSubscriptionItemNextPaymentAmount { +public class CommerceSubscriptionItem2NextPaymentAmount { /** * The amount in cents. */ @@ -43,7 +43,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentAmount { private String currencySymbol; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentAmount( + public CommerceSubscriptionItem2NextPaymentAmount( @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("currency") String currency, @@ -98,7 +98,7 @@ public static Builder builder() { /** * The amount in cents. */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withAmount(long amount) { + public CommerceSubscriptionItem2NextPaymentAmount withAmount(long amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -107,7 +107,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withAmount(long amount) /** * The formatted amount as a string (e.g., "$49.99"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withAmountFormatted(String amountFormatted) { + public CommerceSubscriptionItem2NextPaymentAmount withAmountFormatted(String amountFormatted) { Utils.checkNotNull(amountFormatted, "amountFormatted"); this.amountFormatted = amountFormatted; return this; @@ -116,7 +116,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withAmountFormatted(Stri /** * The currency code (e.g., "USD"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrency(String currency) { + public CommerceSubscriptionItem2NextPaymentAmount withCurrency(String currency) { Utils.checkNotNull(currency, "currency"); this.currency = currency; return this; @@ -125,7 +125,7 @@ public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrency(String curr /** * The currency symbol (e.g., "$"). */ - public SchemasCommerceSubscriptionItemNextPaymentAmount withCurrencySymbol(String currencySymbol) { + public CommerceSubscriptionItem2NextPaymentAmount withCurrencySymbol(String currencySymbol) { Utils.checkNotNull(currencySymbol, "currencySymbol"); this.currencySymbol = currencySymbol; return this; @@ -139,7 +139,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentAmount other = (SchemasCommerceSubscriptionItemNextPaymentAmount) o; + CommerceSubscriptionItem2NextPaymentAmount other = (CommerceSubscriptionItem2NextPaymentAmount) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && @@ -156,7 +156,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentAmount.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentAmount.class, "amount", amount, "amountFormatted", amountFormatted, "currency", currency, @@ -218,9 +218,9 @@ public Builder currencySymbol(String currencySymbol) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentAmount build() { + public CommerceSubscriptionItem2NextPaymentAmount build() { - return new SchemasCommerceSubscriptionItemNextPaymentAmount( + return new CommerceSubscriptionItem2NextPaymentAmount( amount, amountFormatted, currency, currencySymbol); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java similarity index 59% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java index e548d4af..a5b63bd7 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentCredits.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentCredits.java @@ -15,25 +15,25 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemNextPaymentCredits { +public class CommerceSubscriptionItem2NextPaymentCredits { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonInclude(Include.ALWAYS) @JsonProperty("payer") - private Optional payer; + private Optional payer; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentCredits( - @JsonProperty("proration") Optional proration, - @JsonProperty("payer") Optional payer, + public CommerceSubscriptionItem2NextPaymentCredits( + @JsonProperty("proration") Optional proration, + @JsonProperty("payer") Optional payer, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(payer, "payer"); @@ -43,21 +43,21 @@ public SchemasCommerceSubscriptionItemNextPaymentCredits( this.total = total; } - public SchemasCommerceSubscriptionItemNextPaymentCredits( + public CommerceSubscriptionItem2NextPaymentCredits( CommerceMoneyResponse total) { this(Optional.empty(), Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional payer() { - return (Optional) payer; + public Optional payer() { + return (Optional) payer; } @JsonIgnore @@ -70,33 +70,33 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentCredits withProration(SchemasCommerceSubscriptionItemNextPaymentProration proration) { + public CommerceSubscriptionItem2NextPaymentCredits withProration(CommerceSubscriptionItem2NextPaymentProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withProration(Optional proration) { + public CommerceSubscriptionItem2NextPaymentCredits withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withPayer(SchemasCommerceSubscriptionItemNextPaymentPayer payer) { + public CommerceSubscriptionItem2NextPaymentCredits withPayer(CommerceSubscriptionItem2NextPaymentPayer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withPayer(Optional payer) { + public CommerceSubscriptionItem2NextPaymentCredits withPayer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2NextPaymentCredits withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -110,7 +110,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentCredits other = (SchemasCommerceSubscriptionItemNextPaymentCredits) o; + CommerceSubscriptionItem2NextPaymentCredits other = (CommerceSubscriptionItem2NextPaymentCredits) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.payer, other.payer) && @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentCredits.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentCredits.class, "proration", proration, "payer", payer, "total", total); @@ -134,9 +134,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); - private Optional payer = Optional.empty(); + private Optional payer = Optional.empty(); private CommerceMoneyResponse total; @@ -145,26 +145,26 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextPaymentProration proration) { + public Builder proration(CommerceSubscriptionItem2NextPaymentProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public Builder payer(SchemasCommerceSubscriptionItemNextPaymentPayer payer) { + public Builder payer(CommerceSubscriptionItem2NextPaymentPayer payer) { Utils.checkNotNull(payer, "payer"); this.payer = Optional.ofNullable(payer); return this; } - public Builder payer(Optional payer) { + public Builder payer(Optional payer) { Utils.checkNotNull(payer, "payer"); this.payer = payer; return this; @@ -177,9 +177,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentCredits build() { + public CommerceSubscriptionItem2NextPaymentCredits build() { - return new SchemasCommerceSubscriptionItemNextPaymentCredits( + return new CommerceSubscriptionItem2NextPaymentCredits( proration, payer, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java index 0f6c3f20..01fcafb6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentDiscounts.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentDiscounts.java @@ -15,19 +15,19 @@ import java.util.Optional; -public class SchemasCommerceSubscriptionItemNextPaymentDiscounts { +public class CommerceSubscriptionItem2NextPaymentDiscounts { @JsonInclude(Include.ALWAYS) @JsonProperty("proration") - private Optional proration; + private Optional proration; @JsonProperty("total") private CommerceMoneyResponse total; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentDiscounts( - @JsonProperty("proration") Optional proration, + public CommerceSubscriptionItem2NextPaymentDiscounts( + @JsonProperty("proration") Optional proration, @JsonProperty("total") CommerceMoneyResponse total) { Utils.checkNotNull(proration, "proration"); Utils.checkNotNull(total, "total"); @@ -35,15 +35,15 @@ public SchemasCommerceSubscriptionItemNextPaymentDiscounts( this.total = total; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts( + public CommerceSubscriptionItem2NextPaymentDiscounts( CommerceMoneyResponse total) { this(Optional.empty(), total); } @SuppressWarnings("unchecked") @JsonIgnore - public Optional proration() { - return (Optional) proration; + public Optional proration() { + return (Optional) proration; } @JsonIgnore @@ -56,20 +56,20 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withProration(SchemasCommerceSubscriptionItemNextPaymentTotalsProration proration) { + public CommerceSubscriptionItem2NextPaymentDiscounts withProration(CommerceSubscriptionItem2NextPaymentTotalsProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withProration(Optional proration) { + public CommerceSubscriptionItem2NextPaymentDiscounts withProration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts withTotal(CommerceMoneyResponse total) { + public CommerceSubscriptionItem2NextPaymentDiscounts withTotal(CommerceMoneyResponse total) { Utils.checkNotNull(total, "total"); this.total = total; return this; @@ -83,7 +83,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentDiscounts other = (SchemasCommerceSubscriptionItemNextPaymentDiscounts) o; + CommerceSubscriptionItem2NextPaymentDiscounts other = (CommerceSubscriptionItem2NextPaymentDiscounts) o; return Utils.enhancedDeepEquals(this.proration, other.proration) && Utils.enhancedDeepEquals(this.total, other.total); @@ -97,7 +97,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentDiscounts.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentDiscounts.class, "proration", proration, "total", total); } @@ -105,7 +105,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional proration = Optional.empty(); + private Optional proration = Optional.empty(); private CommerceMoneyResponse total; @@ -114,13 +114,13 @@ private Builder() { } - public Builder proration(SchemasCommerceSubscriptionItemNextPaymentTotalsProration proration) { + public Builder proration(CommerceSubscriptionItem2NextPaymentTotalsProration proration) { Utils.checkNotNull(proration, "proration"); this.proration = Optional.ofNullable(proration); return this; } - public Builder proration(Optional proration) { + public Builder proration(Optional proration) { Utils.checkNotNull(proration, "proration"); this.proration = proration; return this; @@ -133,9 +133,9 @@ public Builder total(CommerceMoneyResponse total) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentDiscounts build() { + public CommerceSubscriptionItem2NextPaymentDiscounts build() { - return new SchemasCommerceSubscriptionItemNextPaymentDiscounts( + return new CommerceSubscriptionItem2NextPaymentDiscounts( proration, total); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java similarity index 81% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java index a8987676..431ea3b6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentPayer.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentPayer.java @@ -11,7 +11,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentPayer { +public class CommerceSubscriptionItem2NextPaymentPayer { @JsonProperty("remaining_balance") private CommerceMoneyResponse remainingBalance; @@ -21,7 +21,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentPayer { private CommerceMoneyResponse appliedAmount; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentPayer( + public CommerceSubscriptionItem2NextPaymentPayer( @JsonProperty("remaining_balance") CommerceMoneyResponse remainingBalance, @JsonProperty("applied_amount") CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(remainingBalance, "remainingBalance"); @@ -45,13 +45,13 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { + public CommerceSubscriptionItem2NextPaymentPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { Utils.checkNotNull(remainingBalance, "remainingBalance"); this.remainingBalance = remainingBalance; return this; } - public SchemasCommerceSubscriptionItemNextPaymentPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { + public CommerceSubscriptionItem2NextPaymentPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(appliedAmount, "appliedAmount"); this.appliedAmount = appliedAmount; return this; @@ -65,7 +65,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentPayer other = (SchemasCommerceSubscriptionItemNextPaymentPayer) o; + CommerceSubscriptionItem2NextPaymentPayer other = (CommerceSubscriptionItem2NextPaymentPayer) o; return Utils.enhancedDeepEquals(this.remainingBalance, other.remainingBalance) && Utils.enhancedDeepEquals(this.appliedAmount, other.appliedAmount); @@ -79,7 +79,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentPayer.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentPayer.class, "remainingBalance", remainingBalance, "appliedAmount", appliedAmount); } @@ -109,9 +109,9 @@ public Builder appliedAmount(CommerceMoneyResponse appliedAmount) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentPayer build() { + public CommerceSubscriptionItem2NextPaymentPayer build() { - return new SchemasCommerceSubscriptionItemNextPaymentPayer( + return new CommerceSubscriptionItem2NextPaymentPayer( remainingBalance, appliedAmount); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java similarity index 83% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java index 9336045d..76e59b87 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextPaymentProration { +public class CommerceSubscriptionItem2NextPaymentProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextPaymentProration { private double cycleRemainingPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentProration( + public CommerceSubscriptionItem2NextPaymentProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_remaining") long cycleDaysRemaining, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextPaymentProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleDaysRemaining(long cycleDaysRemaining) { + public CommerceSubscriptionItem2NextPaymentProration withCycleDaysRemaining(long cycleDaysRemaining) { Utils.checkNotNull(cycleDaysRemaining, "cycleDaysRemaining"); this.cycleDaysRemaining = cycleDaysRemaining; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextPaymentProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration withCycleRemainingPercent(double cycleRemainingPercent) { + public CommerceSubscriptionItem2NextPaymentProration withCycleRemainingPercent(double cycleRemainingPercent) { Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); this.cycleRemainingPercent = cycleRemainingPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentProration other = (SchemasCommerceSubscriptionItemNextPaymentProration) o; + CommerceSubscriptionItem2NextPaymentProration other = (CommerceSubscriptionItem2NextPaymentProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysRemaining, other.cycleDaysRemaining) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentProration.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentProration.class, "amount", amount, "cycleDaysRemaining", cycleDaysRemaining, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cycleRemainingPercent(double cycleRemainingPercent) { return this; } - public SchemasCommerceSubscriptionItemNextPaymentProration build() { + public CommerceSubscriptionItem2NextPaymentProration build() { - return new SchemasCommerceSubscriptionItemNextPaymentProration( + return new CommerceSubscriptionItem2NextPaymentProration( amount, cycleDaysRemaining, cycleDaysTotal, cycleRemainingPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java similarity index 71% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java index 07b44a7a..299a4387 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextPaymentTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotals.java @@ -17,12 +17,12 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemNextPaymentTotals + * CommerceSubscriptionItem2NextPaymentTotals * *

Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ -public class SchemasCommerceSubscriptionItemNextPaymentTotals { +public class CommerceSubscriptionItem2NextPaymentTotals { @JsonProperty("subtotal") private CommerceMoneyResponse subtotal; @@ -47,22 +47,22 @@ public class SchemasCommerceSubscriptionItemNextPaymentTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credits") - private JsonNullable credits; + private JsonNullable credits; @JsonInclude(Include.NON_ABSENT) @JsonProperty("discounts") - private JsonNullable discounts; + private JsonNullable discounts; @JsonCreator - public SchemasCommerceSubscriptionItemNextPaymentTotals( + public CommerceSubscriptionItem2NextPaymentTotals( @JsonProperty("subtotal") CommerceMoneyResponse subtotal, @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("credits") JsonNullable credits, - @JsonProperty("discounts") JsonNullable discounts) { + @JsonProperty("credits") JsonNullable credits, + @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); Utils.checkNotNull(baseFee, "baseFee"); Utils.checkNotNull(taxTotal, "taxTotal"); @@ -79,7 +79,7 @@ public SchemasCommerceSubscriptionItemNextPaymentTotals( this.discounts = discounts; } - public SchemasCommerceSubscriptionItemNextPaymentTotals( + public CommerceSubscriptionItem2NextPaymentTotals( CommerceMoneyResponse subtotal, CommerceMoneyResponse baseFee, CommerceMoneyResponse taxTotal, @@ -117,14 +117,14 @@ public Optional> perUnitTotals() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable credits() { - return (JsonNullable) credits; + public JsonNullable credits() { + return (JsonNullable) credits; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable discounts() { - return (JsonNullable) discounts; + public JsonNullable discounts() { + return (JsonNullable) discounts; } public static Builder builder() { @@ -132,62 +132,62 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextPaymentTotals withSubtotal(CommerceMoneyResponse subtotal) { + public CommerceSubscriptionItem2NextPaymentTotals withSubtotal(CommerceMoneyResponse subtotal) { Utils.checkNotNull(subtotal, "subtotal"); this.subtotal = subtotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withBaseFee(CommerceMoneyResponse baseFee) { + public CommerceSubscriptionItem2NextPaymentTotals withBaseFee(CommerceMoneyResponse baseFee) { Utils.checkNotNull(baseFee, "baseFee"); this.baseFee = baseFee; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withTaxTotal(CommerceMoneyResponse taxTotal) { + public CommerceSubscriptionItem2NextPaymentTotals withTaxTotal(CommerceMoneyResponse taxTotal) { Utils.checkNotNull(taxTotal, "taxTotal"); this.taxTotal = taxTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withGrandTotal(CommerceMoneyResponse grandTotal) { + public CommerceSubscriptionItem2NextPaymentTotals withGrandTotal(CommerceMoneyResponse grandTotal) { Utils.checkNotNull(grandTotal, "grandTotal"); this.grandTotal = grandTotal; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2NextPaymentTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionItem2NextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withCredits(SchemasCommerceSubscriptionItemNextPaymentCredits credits) { + public CommerceSubscriptionItem2NextPaymentTotals withCredits(CommerceSubscriptionItem2NextPaymentCredits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withCredits(JsonNullable credits) { + public CommerceSubscriptionItem2NextPaymentTotals withCredits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withDiscounts(SchemasCommerceSubscriptionItemNextPaymentDiscounts discounts) { + public CommerceSubscriptionItem2NextPaymentTotals withDiscounts(CommerceSubscriptionItem2NextPaymentDiscounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals withDiscounts(JsonNullable discounts) { + public CommerceSubscriptionItem2NextPaymentTotals withDiscounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextPaymentTotals other = (SchemasCommerceSubscriptionItemNextPaymentTotals) o; + CommerceSubscriptionItem2NextPaymentTotals other = (CommerceSubscriptionItem2NextPaymentTotals) o; return Utils.enhancedDeepEquals(this.subtotal, other.subtotal) && Utils.enhancedDeepEquals(this.baseFee, other.baseFee) && @@ -222,7 +222,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextPaymentTotals.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentTotals.class, "subtotal", subtotal, "baseFee", baseFee, "taxTotal", taxTotal, @@ -245,9 +245,9 @@ public final static class Builder { private Optional> perUnitTotals = Optional.empty(); - private JsonNullable credits = JsonNullable.undefined(); + private JsonNullable credits = JsonNullable.undefined(); - private JsonNullable discounts = JsonNullable.undefined(); + private JsonNullable discounts = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -295,34 +295,34 @@ public Builder perUnitTotals(Optional> perU } - public Builder credits(SchemasCommerceSubscriptionItemNextPaymentCredits credits) { + public Builder credits(CommerceSubscriptionItem2NextPaymentCredits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public Builder credits(JsonNullable credits) { + public Builder credits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public Builder discounts(SchemasCommerceSubscriptionItemNextPaymentDiscounts discounts) { + public Builder discounts(CommerceSubscriptionItem2NextPaymentDiscounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public Builder discounts(JsonNullable discounts) { + public Builder discounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; } - public SchemasCommerceSubscriptionItemNextPaymentTotals build() { + public CommerceSubscriptionItem2NextPaymentTotals build() { - return new SchemasCommerceSubscriptionItemNextPaymentTotals( + return new CommerceSubscriptionItem2NextPaymentTotals( subtotal, baseFee, taxTotal, grandTotal, perUnitTotals, credits, discounts); diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java similarity index 86% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java index be16e369..ff38bc5d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemNextInvoiceProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2NextPaymentTotalsProration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemNextInvoiceProration { +public class CommerceSubscriptionItem2NextPaymentTotalsProration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemNextInvoiceProration { private float cyclePassedPercent; @JsonCreator - public SchemasCommerceSubscriptionItemNextInvoiceProration( + public CommerceSubscriptionItem2NextPaymentTotalsProration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_passed") long cycleDaysPassed, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemNextInvoiceProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCycleDaysPassed(long cycleDaysPassed) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCycleDaysPassed(long cycleDaysPassed) { Utils.checkNotNull(cycleDaysPassed, "cycleDaysPassed"); this.cycleDaysPassed = cycleDaysPassed; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration withCyclePassedPercent(float cyclePassedPercent) { + public CommerceSubscriptionItem2NextPaymentTotalsProration withCyclePassedPercent(float cyclePassedPercent) { Utils.checkNotNull(cyclePassedPercent, "cyclePassedPercent"); this.cyclePassedPercent = cyclePassedPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemNextInvoiceProration other = (SchemasCommerceSubscriptionItemNextInvoiceProration) o; + CommerceSubscriptionItem2NextPaymentTotalsProration other = (CommerceSubscriptionItem2NextPaymentTotalsProration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysPassed, other.cycleDaysPassed) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemNextInvoiceProration.class, + return Utils.toString(CommerceSubscriptionItem2NextPaymentTotalsProration.class, "amount", amount, "cycleDaysPassed", cycleDaysPassed, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cyclePassedPercent(float cyclePassedPercent) { return this; } - public SchemasCommerceSubscriptionItemNextInvoiceProration build() { + public CommerceSubscriptionItem2NextPaymentTotalsProration build() { - return new SchemasCommerceSubscriptionItemNextInvoiceProration( + return new CommerceSubscriptionItem2NextPaymentTotalsProration( amount, cycleDaysPassed, cycleDaysTotal, cyclePassedPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java similarity index 67% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java index a7f3f67e..22c1319c 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemObject + * CommerceSubscriptionItem2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemObject { +public enum CommerceSubscriptionItem2Object { COMMERCE_SUBSCRIPTION_ITEM("commerce_subscription_item"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemObject(String value) { + CommerceSubscriptionItem2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemObject o: SchemasCommerceSubscriptionItemObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2Object o: CommerceSubscriptionItem2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java similarity index 83% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java index 166c01ae..038858cb 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayer.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Payer.java @@ -11,7 +11,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemPayer { +public class CommerceSubscriptionItem2Payer { @JsonProperty("remaining_balance") private CommerceMoneyResponse remainingBalance; @@ -21,7 +21,7 @@ public class SchemasCommerceSubscriptionItemPayer { private CommerceMoneyResponse appliedAmount; @JsonCreator - public SchemasCommerceSubscriptionItemPayer( + public CommerceSubscriptionItem2Payer( @JsonProperty("remaining_balance") CommerceMoneyResponse remainingBalance, @JsonProperty("applied_amount") CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(remainingBalance, "remainingBalance"); @@ -45,13 +45,13 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemPayer withRemainingBalance(CommerceMoneyResponse remainingBalance) { + public CommerceSubscriptionItem2Payer withRemainingBalance(CommerceMoneyResponse remainingBalance) { Utils.checkNotNull(remainingBalance, "remainingBalance"); this.remainingBalance = remainingBalance; return this; } - public SchemasCommerceSubscriptionItemPayer withAppliedAmount(CommerceMoneyResponse appliedAmount) { + public CommerceSubscriptionItem2Payer withAppliedAmount(CommerceMoneyResponse appliedAmount) { Utils.checkNotNull(appliedAmount, "appliedAmount"); this.appliedAmount = appliedAmount; return this; @@ -65,7 +65,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemPayer other = (SchemasCommerceSubscriptionItemPayer) o; + CommerceSubscriptionItem2Payer other = (CommerceSubscriptionItem2Payer) o; return Utils.enhancedDeepEquals(this.remainingBalance, other.remainingBalance) && Utils.enhancedDeepEquals(this.appliedAmount, other.appliedAmount); @@ -79,7 +79,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemPayer.class, + return Utils.toString(CommerceSubscriptionItem2Payer.class, "remainingBalance", remainingBalance, "appliedAmount", appliedAmount); } @@ -109,9 +109,9 @@ public Builder appliedAmount(CommerceMoneyResponse appliedAmount) { return this; } - public SchemasCommerceSubscriptionItemPayer build() { + public CommerceSubscriptionItem2Payer build() { - return new SchemasCommerceSubscriptionItemPayer( + return new CommerceSubscriptionItem2Payer( remainingBalance, appliedAmount); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java index 1b7b0fdc..36d9e1f6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPayerObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PayerObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPayerObject + * CommerceSubscriptionItem2PayerObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPayerObject { +public enum CommerceSubscriptionItem2PayerObject { COMMERCE_PAYER("commerce_payer"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPayerObject(String value) { + CommerceSubscriptionItem2PayerObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPayerObject o: SchemasCommerceSubscriptionItemPayerObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PayerObject o: CommerceSubscriptionItem2PayerObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java similarity index 62% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java index 2a039b43..b3bec50c 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPaymentSourceObject + * CommerceSubscriptionItem2PaymentSourceObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPaymentSourceObject { +public enum CommerceSubscriptionItem2PaymentSourceObject { COMMERCE_SOURCE("commerce_source"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPaymentSourceObject(String value) { + CommerceSubscriptionItem2PaymentSourceObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPaymentSourceObject o: SchemasCommerceSubscriptionItemPaymentSourceObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PaymentSourceObject o: CommerceSubscriptionItem2PaymentSourceObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java similarity index 61% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java index 69ba0090..939507e6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPaymentSourceStatus.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PaymentSourceStatus.java @@ -9,18 +9,18 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPaymentSourceStatus + * CommerceSubscriptionItem2PaymentSourceStatus * *

Status of the payment source. */ -public enum SchemasCommerceSubscriptionItemPaymentSourceStatus { +public enum CommerceSubscriptionItem2PaymentSourceStatus { ACTIVE("active"), DISCONNECTED("disconnected"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPaymentSourceStatus(String value) { + CommerceSubscriptionItem2PaymentSourceStatus(String value) { this.value = value; } @@ -28,8 +28,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPaymentSourceStatus o: SchemasCommerceSubscriptionItemPaymentSourceStatus.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PaymentSourceStatus o: CommerceSubscriptionItem2PaymentSourceStatus.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java similarity index 84% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java index 237ecd7d..4ab446b1 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlan.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Plan.java @@ -19,16 +19,16 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemPlan + * CommerceSubscriptionItem2Plan * *

The associated commerce plan. */ -public class SchemasCommerceSubscriptionItemPlan { +public class CommerceSubscriptionItem2Plan { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPlanObject object; + private CommerceSubscriptionItem2PlanObject object; /** * Unique identifier for the commerce plan. @@ -45,17 +45,17 @@ public class SchemasCommerceSubscriptionItemPlan { @JsonInclude(Include.ALWAYS) @JsonProperty("fee") - private Optional fee; + private Optional fee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_monthly_fee") - private Optional annualMonthlyFee; + private Optional annualMonthlyFee; @JsonInclude(Include.ALWAYS) @JsonProperty("annual_fee") - private Optional annualFee; + private Optional annualFee; /** * The amount in cents for the plan. @@ -183,7 +183,7 @@ public class SchemasCommerceSubscriptionItemPlan { * The features included in this plan. */ @JsonProperty("features") - private List features; + private List features; /** * Whether free trial is enabled for this plan. @@ -200,13 +200,13 @@ public class SchemasCommerceSubscriptionItemPlan { private JsonNullable freeTrialDays; @JsonCreator - public SchemasCommerceSubscriptionItemPlan( - @JsonProperty("object") SchemasCommerceSubscriptionItemPlanObject object, + public CommerceSubscriptionItem2Plan( + @JsonProperty("object") CommerceSubscriptionItem2PlanObject object, @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("fee") Optional fee, - @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, - @JsonProperty("annual_fee") Optional annualFee, + @JsonProperty("fee") Optional fee, + @JsonProperty("annual_monthly_fee") Optional annualMonthlyFee, + @JsonProperty("annual_fee") Optional annualFee, @JsonProperty("amount") long amount, @JsonProperty("amount_formatted") String amountFormatted, @JsonProperty("annual_monthly_amount") long annualMonthlyAmount, @@ -227,7 +227,7 @@ public SchemasCommerceSubscriptionItemPlan( @JsonProperty("avatar_url") String avatarUrl, @JsonProperty("period") Optional period, @JsonProperty("interval") Optional interval, - @JsonProperty("features") List features, + @JsonProperty("features") List features, @JsonProperty("free_trial_enabled") Optional freeTrialEnabled, @JsonProperty("free_trial_days") JsonNullable freeTrialDays) { Utils.checkNotNull(object, "object"); @@ -290,8 +290,8 @@ public SchemasCommerceSubscriptionItemPlan( this.freeTrialDays = freeTrialDays; } - public SchemasCommerceSubscriptionItemPlan( - SchemasCommerceSubscriptionItemPlanObject object, + public CommerceSubscriptionItem2Plan( + CommerceSubscriptionItem2PlanObject object, String id, String name, long amount, @@ -312,7 +312,7 @@ public SchemasCommerceSubscriptionItemPlan( String forPayerType, String slug, String avatarUrl, - List features) { + List features) { this(object, id, name, Optional.empty(), Optional.empty(), Optional.empty(), amount, amountFormatted, annualMonthlyAmount, @@ -329,7 +329,7 @@ public SchemasCommerceSubscriptionItemPlan( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPlanObject object() { + public CommerceSubscriptionItem2PlanObject object() { return object; } @@ -351,20 +351,20 @@ public String name() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional fee() { - return (Optional) fee; + public Optional fee() { + return (Optional) fee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualMonthlyFee() { - return (Optional) annualMonthlyFee; + public Optional annualMonthlyFee() { + return (Optional) annualMonthlyFee; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional annualFee() { - return (Optional) annualFee; + public Optional annualFee() { + return (Optional) annualFee; } /** @@ -531,7 +531,7 @@ public Optional interval() { * The features included in this plan. */ @JsonIgnore - public List features() { + public List features() { return features; } @@ -559,7 +559,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasCommerceSubscriptionItemPlan withObject(SchemasCommerceSubscriptionItemPlanObject object) { + public CommerceSubscriptionItem2Plan withObject(CommerceSubscriptionItem2PlanObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -568,7 +568,7 @@ public SchemasCommerceSubscriptionItemPlan withObject(SchemasCommerceSubscriptio /** * Unique identifier for the commerce plan. */ - public SchemasCommerceSubscriptionItemPlan withId(String id) { + public CommerceSubscriptionItem2Plan withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -577,46 +577,46 @@ public SchemasCommerceSubscriptionItemPlan withId(String id) { /** * The name of the commerce plan. */ - public SchemasCommerceSubscriptionItemPlan withName(String name) { + public CommerceSubscriptionItem2Plan withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - public SchemasCommerceSubscriptionItemPlan withFee(SchemasCommerceSubscriptionItemFee fee) { + public CommerceSubscriptionItem2Plan withFee(CommerceSubscriptionItem2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public SchemasCommerceSubscriptionItemPlan withFee(Optional fee) { + public CommerceSubscriptionItem2Plan withFee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualMonthlyFee(SchemasCommerceSubscriptionItemAnnualMonthlyFee annualMonthlyFee) { + public CommerceSubscriptionItem2Plan withAnnualMonthlyFee(CommerceSubscriptionItem2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualMonthlyFee(Optional annualMonthlyFee) { + public CommerceSubscriptionItem2Plan withAnnualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualFee(SchemasCommerceSubscriptionItemAnnualFee annualFee) { + public CommerceSubscriptionItem2Plan withAnnualFee(CommerceSubscriptionItem2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public SchemasCommerceSubscriptionItemPlan withAnnualFee(Optional annualFee) { + public CommerceSubscriptionItem2Plan withAnnualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -625,7 +625,7 @@ public SchemasCommerceSubscriptionItemPlan withAnnualFee(Optional payerType) { + public CommerceSubscriptionItem2Plan withPayerType(List payerType) { Utils.checkNotNull(payerType, "payerType"); this.payerType = payerType; return this; @@ -760,7 +760,7 @@ public SchemasCommerceSubscriptionItemPlan withPayerType(List payerType) /** * The payer type this plan is designed for. */ - public SchemasCommerceSubscriptionItemPlan withForPayerType(String forPayerType) { + public CommerceSubscriptionItem2Plan withForPayerType(String forPayerType) { Utils.checkNotNull(forPayerType, "forPayerType"); this.forPayerType = forPayerType; return this; @@ -769,7 +769,7 @@ public SchemasCommerceSubscriptionItemPlan withForPayerType(String forPayerType) /** * The URL-friendly slug for the plan. */ - public SchemasCommerceSubscriptionItemPlan withSlug(String slug) { + public CommerceSubscriptionItem2Plan withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -778,7 +778,7 @@ public SchemasCommerceSubscriptionItemPlan withSlug(String slug) { /** * The URL of the plan's avatar image. */ - public SchemasCommerceSubscriptionItemPlan withAvatarUrl(String avatarUrl) { + public CommerceSubscriptionItem2Plan withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -787,7 +787,7 @@ public SchemasCommerceSubscriptionItemPlan withAvatarUrl(String avatarUrl) { /** * The billing period for the plan. */ - public SchemasCommerceSubscriptionItemPlan withPeriod(String period) { + public CommerceSubscriptionItem2Plan withPeriod(String period) { Utils.checkNotNull(period, "period"); this.period = Optional.ofNullable(period); return this; @@ -797,7 +797,7 @@ public SchemasCommerceSubscriptionItemPlan withPeriod(String period) { /** * The billing period for the plan. */ - public SchemasCommerceSubscriptionItemPlan withPeriod(Optional period) { + public CommerceSubscriptionItem2Plan withPeriod(Optional period) { Utils.checkNotNull(period, "period"); this.period = period; return this; @@ -806,7 +806,7 @@ public SchemasCommerceSubscriptionItemPlan withPeriod(Optional period) { /** * The billing interval. */ - public SchemasCommerceSubscriptionItemPlan withInterval(long interval) { + public CommerceSubscriptionItem2Plan withInterval(long interval) { Utils.checkNotNull(interval, "interval"); this.interval = Optional.ofNullable(interval); return this; @@ -816,7 +816,7 @@ public SchemasCommerceSubscriptionItemPlan withInterval(long interval) { /** * The billing interval. */ - public SchemasCommerceSubscriptionItemPlan withInterval(Optional interval) { + public CommerceSubscriptionItem2Plan withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); this.interval = interval; return this; @@ -825,7 +825,7 @@ public SchemasCommerceSubscriptionItemPlan withInterval(Optional interval) /** * The features included in this plan. */ - public SchemasCommerceSubscriptionItemPlan withFeatures(List features) { + public CommerceSubscriptionItem2Plan withFeatures(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -834,7 +834,7 @@ public SchemasCommerceSubscriptionItemPlan withFeatures(List freeTrialEnabled) { + public CommerceSubscriptionItem2Plan withFreeTrialEnabled(Optional freeTrialEnabled) { Utils.checkNotNull(freeTrialEnabled, "freeTrialEnabled"); this.freeTrialEnabled = freeTrialEnabled; return this; @@ -853,7 +853,7 @@ public SchemasCommerceSubscriptionItemPlan withFreeTrialEnabled(Optional freeTrialDays) { + public CommerceSubscriptionItem2Plan withFreeTrialDays(JsonNullable freeTrialDays) { Utils.checkNotNull(freeTrialDays, "freeTrialDays"); this.freeTrialDays = freeTrialDays; return this; @@ -876,7 +876,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemPlan other = (SchemasCommerceSubscriptionItemPlan) o; + CommerceSubscriptionItem2Plan other = (CommerceSubscriptionItem2Plan) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -926,7 +926,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemPlan.class, + return Utils.toString(CommerceSubscriptionItem2Plan.class, "object", object, "id", id, "name", name, @@ -961,17 +961,17 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPlanObject object; + private CommerceSubscriptionItem2PlanObject object; private String id; private String name; - private Optional fee = Optional.empty(); + private Optional fee = Optional.empty(); - private Optional annualMonthlyFee = Optional.empty(); + private Optional annualMonthlyFee = Optional.empty(); - private Optional annualFee = Optional.empty(); + private Optional annualFee = Optional.empty(); private Long amount; @@ -1013,7 +1013,7 @@ public final static class Builder { private Optional interval = Optional.empty(); - private List features; + private List features; private Optional freeTrialEnabled = Optional.empty(); @@ -1027,7 +1027,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPlanObject object) { + public Builder object(CommerceSubscriptionItem2PlanObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -1054,39 +1054,39 @@ public Builder name(String name) { } - public Builder fee(SchemasCommerceSubscriptionItemFee fee) { + public Builder fee(CommerceSubscriptionItem2Fee fee) { Utils.checkNotNull(fee, "fee"); this.fee = Optional.ofNullable(fee); return this; } - public Builder fee(Optional fee) { + public Builder fee(Optional fee) { Utils.checkNotNull(fee, "fee"); this.fee = fee; return this; } - public Builder annualMonthlyFee(SchemasCommerceSubscriptionItemAnnualMonthlyFee annualMonthlyFee) { + public Builder annualMonthlyFee(CommerceSubscriptionItem2AnnualMonthlyFee annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = Optional.ofNullable(annualMonthlyFee); return this; } - public Builder annualMonthlyFee(Optional annualMonthlyFee) { + public Builder annualMonthlyFee(Optional annualMonthlyFee) { Utils.checkNotNull(annualMonthlyFee, "annualMonthlyFee"); this.annualMonthlyFee = annualMonthlyFee; return this; } - public Builder annualFee(SchemasCommerceSubscriptionItemAnnualFee annualFee) { + public Builder annualFee(CommerceSubscriptionItem2AnnualFee annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = Optional.ofNullable(annualFee); return this; } - public Builder annualFee(Optional annualFee) { + public Builder annualFee(Optional annualFee) { Utils.checkNotNull(annualFee, "annualFee"); this.annualFee = annualFee; return this; @@ -1314,7 +1314,7 @@ public Builder interval(Optional interval) { /** * The features included in this plan. */ - public Builder features(List features) { + public Builder features(List features) { Utils.checkNotNull(features, "features"); this.features = features; return this; @@ -1358,9 +1358,9 @@ public Builder freeTrialDays(JsonNullable freeTrialDays) { return this; } - public SchemasCommerceSubscriptionItemPlan build() { + public CommerceSubscriptionItem2Plan build() { - return new SchemasCommerceSubscriptionItemPlan( + return new CommerceSubscriptionItem2Plan( object, id, name, fee, annualMonthlyFee, annualFee, amount, amountFormatted, annualMonthlyAmount, diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java similarity index 65% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java index 535036c6..32dac3cf 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanObject.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPlanObject + * CommerceSubscriptionItem2PlanObject * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasCommerceSubscriptionItemPlanObject { +public enum CommerceSubscriptionItem2PlanObject { COMMERCE_PLAN("commerce_plan"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPlanObject(String value) { + CommerceSubscriptionItem2PlanObject(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPlanObject o: SchemasCommerceSubscriptionItemPlanObject.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PlanObject o: CommerceSubscriptionItem2PlanObject.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java similarity index 64% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java index 0036ba7e..4658f5d5 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemPlanPeriod.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2PlanPeriod.java @@ -9,18 +9,18 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemPlanPeriod + * CommerceSubscriptionItem2PlanPeriod * *

The billing period for this subscription. */ -public enum SchemasCommerceSubscriptionItemPlanPeriod { +public enum CommerceSubscriptionItem2PlanPeriod { MONTH("month"), ANNUAL("annual"); @JsonValue private final String value; - SchemasCommerceSubscriptionItemPlanPeriod(String value) { + CommerceSubscriptionItem2PlanPeriod(String value) { this.value = value; } @@ -28,8 +28,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemPlanPeriod o: SchemasCommerceSubscriptionItemPlanPeriod.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2PlanPeriod o: CommerceSubscriptionItem2PlanPeriod.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java similarity index 85% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java index 6cf59f66..d517dbdc 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemProration.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Proration.java @@ -13,7 +13,7 @@ import java.lang.String; -public class SchemasCommerceSubscriptionItemProration { +public class CommerceSubscriptionItem2Proration { @JsonProperty("amount") private CommerceMoneyResponse amount; @@ -31,7 +31,7 @@ public class SchemasCommerceSubscriptionItemProration { private double cycleRemainingPercent; @JsonCreator - public SchemasCommerceSubscriptionItemProration( + public CommerceSubscriptionItem2Proration( @JsonProperty("amount") CommerceMoneyResponse amount, @JsonProperty("cycle_days_remaining") long cycleDaysRemaining, @JsonProperty("cycle_days_total") long cycleDaysTotal, @@ -71,25 +71,25 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemProration withAmount(CommerceMoneyResponse amount) { + public CommerceSubscriptionItem2Proration withAmount(CommerceMoneyResponse amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; } - public SchemasCommerceSubscriptionItemProration withCycleDaysRemaining(long cycleDaysRemaining) { + public CommerceSubscriptionItem2Proration withCycleDaysRemaining(long cycleDaysRemaining) { Utils.checkNotNull(cycleDaysRemaining, "cycleDaysRemaining"); this.cycleDaysRemaining = cycleDaysRemaining; return this; } - public SchemasCommerceSubscriptionItemProration withCycleDaysTotal(long cycleDaysTotal) { + public CommerceSubscriptionItem2Proration withCycleDaysTotal(long cycleDaysTotal) { Utils.checkNotNull(cycleDaysTotal, "cycleDaysTotal"); this.cycleDaysTotal = cycleDaysTotal; return this; } - public SchemasCommerceSubscriptionItemProration withCycleRemainingPercent(double cycleRemainingPercent) { + public CommerceSubscriptionItem2Proration withCycleRemainingPercent(double cycleRemainingPercent) { Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); this.cycleRemainingPercent = cycleRemainingPercent; return this; @@ -103,7 +103,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemProration other = (SchemasCommerceSubscriptionItemProration) o; + CommerceSubscriptionItem2Proration other = (CommerceSubscriptionItem2Proration) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.cycleDaysRemaining, other.cycleDaysRemaining) && @@ -120,7 +120,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemProration.class, + return Utils.toString(CommerceSubscriptionItem2Proration.class, "amount", amount, "cycleDaysRemaining", cycleDaysRemaining, "cycleDaysTotal", cycleDaysTotal, @@ -170,9 +170,9 @@ public Builder cycleRemainingPercent(double cycleRemainingPercent) { return this; } - public SchemasCommerceSubscriptionItemProration build() { + public CommerceSubscriptionItem2Proration build() { - return new SchemasCommerceSubscriptionItemProration( + return new CommerceSubscriptionItem2Proration( amount, cycleDaysRemaining, cycleDaysTotal, cycleRemainingPercent); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java similarity index 69% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java index 21103cee..09f06f01 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemStatus.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Status.java @@ -9,11 +9,11 @@ import java.util.Optional; /** - * SchemasCommerceSubscriptionItemStatus + * CommerceSubscriptionItem2Status * *

Current status of the subscription item. */ -public enum SchemasCommerceSubscriptionItemStatus { +public enum CommerceSubscriptionItem2Status { ACTIVE("active"), ENDED("ended"), PAST_DUE("past_due"), @@ -24,7 +24,7 @@ public enum SchemasCommerceSubscriptionItemStatus { @JsonValue private final String value; - SchemasCommerceSubscriptionItemStatus(String value) { + CommerceSubscriptionItem2Status(String value) { this.value = value; } @@ -32,8 +32,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasCommerceSubscriptionItemStatus o: SchemasCommerceSubscriptionItemStatus.values()) { + public static Optional fromValue(String value) { + for (CommerceSubscriptionItem2Status o: CommerceSubscriptionItem2Status.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java similarity index 74% rename from src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java rename to src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java index 85b46643..ed93db51 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionItem2Totals.java @@ -17,12 +17,12 @@ import org.openapitools.jackson.nullable.JsonNullable; /** - * SchemasCommerceSubscriptionItemTotals + * CommerceSubscriptionItem2Totals * *

Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ -public class SchemasCommerceSubscriptionItemTotals { +public class CommerceSubscriptionItem2Totals { @JsonProperty("subtotal") private CommerceMoneyResponse subtotal; @@ -47,22 +47,22 @@ public class SchemasCommerceSubscriptionItemTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credits") - private JsonNullable credits; + private JsonNullable credits; @JsonInclude(Include.NON_ABSENT) @JsonProperty("discounts") - private JsonNullable discounts; + private JsonNullable discounts; @JsonCreator - public SchemasCommerceSubscriptionItemTotals( + public CommerceSubscriptionItem2Totals( @JsonProperty("subtotal") CommerceMoneyResponse subtotal, @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("credits") JsonNullable credits, - @JsonProperty("discounts") JsonNullable discounts) { + @JsonProperty("credits") JsonNullable credits, + @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); Utils.checkNotNull(baseFee, "baseFee"); Utils.checkNotNull(taxTotal, "taxTotal"); @@ -79,7 +79,7 @@ public SchemasCommerceSubscriptionItemTotals( this.discounts = discounts; } - public SchemasCommerceSubscriptionItemTotals( + public CommerceSubscriptionItem2Totals( CommerceMoneyResponse subtotal, CommerceMoneyResponse baseFee, CommerceMoneyResponse taxTotal, @@ -117,14 +117,14 @@ public Optional> perUnitTotals() { @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable credits() { - return (JsonNullable) credits; + public JsonNullable credits() { + return (JsonNullable) credits; } @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable discounts() { - return (JsonNullable) discounts; + public JsonNullable discounts() { + return (JsonNullable) discounts; } public static Builder builder() { @@ -132,62 +132,62 @@ public static Builder builder() { } - public SchemasCommerceSubscriptionItemTotals withSubtotal(CommerceMoneyResponse subtotal) { + public CommerceSubscriptionItem2Totals withSubtotal(CommerceMoneyResponse subtotal) { Utils.checkNotNull(subtotal, "subtotal"); this.subtotal = subtotal; return this; } - public SchemasCommerceSubscriptionItemTotals withBaseFee(CommerceMoneyResponse baseFee) { + public CommerceSubscriptionItem2Totals withBaseFee(CommerceMoneyResponse baseFee) { Utils.checkNotNull(baseFee, "baseFee"); this.baseFee = baseFee; return this; } - public SchemasCommerceSubscriptionItemTotals withTaxTotal(CommerceMoneyResponse taxTotal) { + public CommerceSubscriptionItem2Totals withTaxTotal(CommerceMoneyResponse taxTotal) { Utils.checkNotNull(taxTotal, "taxTotal"); this.taxTotal = taxTotal; return this; } - public SchemasCommerceSubscriptionItemTotals withGrandTotal(CommerceMoneyResponse grandTotal) { + public CommerceSubscriptionItem2Totals withGrandTotal(CommerceMoneyResponse grandTotal) { Utils.checkNotNull(grandTotal, "grandTotal"); this.grandTotal = grandTotal; return this; } - public SchemasCommerceSubscriptionItemTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionItem2Totals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public SchemasCommerceSubscriptionItemTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionItem2Totals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; } - public SchemasCommerceSubscriptionItemTotals withCredits(SchemasCommerceSubscriptionItemCredits credits) { + public CommerceSubscriptionItem2Totals withCredits(CommerceSubscriptionItem2Credits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public SchemasCommerceSubscriptionItemTotals withCredits(JsonNullable credits) { + public CommerceSubscriptionItem2Totals withCredits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public SchemasCommerceSubscriptionItemTotals withDiscounts(SchemasCommerceSubscriptionItemDiscounts discounts) { + public CommerceSubscriptionItem2Totals withDiscounts(CommerceSubscriptionItem2Discounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public SchemasCommerceSubscriptionItemTotals withDiscounts(JsonNullable discounts) { + public CommerceSubscriptionItem2Totals withDiscounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; @@ -201,7 +201,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasCommerceSubscriptionItemTotals other = (SchemasCommerceSubscriptionItemTotals) o; + CommerceSubscriptionItem2Totals other = (CommerceSubscriptionItem2Totals) o; return Utils.enhancedDeepEquals(this.subtotal, other.subtotal) && Utils.enhancedDeepEquals(this.baseFee, other.baseFee) && @@ -222,7 +222,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemTotals.class, + return Utils.toString(CommerceSubscriptionItem2Totals.class, "subtotal", subtotal, "baseFee", baseFee, "taxTotal", taxTotal, @@ -245,9 +245,9 @@ public final static class Builder { private Optional> perUnitTotals = Optional.empty(); - private JsonNullable credits = JsonNullable.undefined(); + private JsonNullable credits = JsonNullable.undefined(); - private JsonNullable discounts = JsonNullable.undefined(); + private JsonNullable discounts = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -295,34 +295,34 @@ public Builder perUnitTotals(Optional> perU } - public Builder credits(SchemasCommerceSubscriptionItemCredits credits) { + public Builder credits(CommerceSubscriptionItem2Credits credits) { Utils.checkNotNull(credits, "credits"); this.credits = JsonNullable.of(credits); return this; } - public Builder credits(JsonNullable credits) { + public Builder credits(JsonNullable credits) { Utils.checkNotNull(credits, "credits"); this.credits = credits; return this; } - public Builder discounts(SchemasCommerceSubscriptionItemDiscounts discounts) { + public Builder discounts(CommerceSubscriptionItem2Discounts discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = JsonNullable.of(discounts); return this; } - public Builder discounts(JsonNullable discounts) { + public Builder discounts(JsonNullable discounts) { Utils.checkNotNull(discounts, "discounts"); this.discounts = discounts; return this; } - public SchemasCommerceSubscriptionItemTotals build() { + public CommerceSubscriptionItem2Totals build() { - return new SchemasCommerceSubscriptionItemTotals( + return new CommerceSubscriptionItem2Totals( subtotal, baseFee, taxTotal, grandTotal, perUnitTotals, credits, discounts); diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java index 799cfa8e..9cf9904a 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPayment.java @@ -34,7 +34,7 @@ public class CommerceSubscriptionNextPayment { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; /** * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax @@ -48,7 +48,7 @@ public class CommerceSubscriptionNextPayment { public CommerceSubscriptionNextPayment( @JsonProperty("date") long date, @JsonProperty("amount") CommerceMoneyResponse amount, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(date, "date"); Utils.checkNotNull(amount, "amount"); @@ -85,8 +85,8 @@ public CommerceMoneyResponse amount() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } /** @@ -122,7 +122,7 @@ public CommerceSubscriptionNextPayment withAmount(CommerceMoneyResponse amount) /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public CommerceSubscriptionNextPayment withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionNextPayment withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -132,7 +132,7 @@ public CommerceSubscriptionNextPayment withPerUnitTotals(List> perUnitTotals) { + public CommerceSubscriptionNextPayment withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -197,7 +197,7 @@ public final static class Builder { private CommerceMoneyResponse amount; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable totals = JsonNullable.undefined(); @@ -226,7 +226,7 @@ public Builder amount(CommerceMoneyResponse amount) { /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; @@ -235,7 +235,7 @@ public Builder perUnitTotals(List perUnitTotals) { /** * Per-unit total breakdown (for example, seats) for the next payment. */ - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java index 67c58898..72605086 100644 --- a/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java +++ b/src/main/java/com/clerk/backend_api/models/components/CommerceSubscriptionNextPaymentTotals.java @@ -42,7 +42,7 @@ public class CommerceSubscriptionNextPaymentTotals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -62,7 +62,7 @@ public CommerceSubscriptionNextPaymentTotals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -113,8 +113,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -161,14 +161,14 @@ public CommerceSubscriptionNextPaymentTotals withGrandTotal(CommerceMoneyRespons return this; } - public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(List perUnitTotals) { + public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { + public CommerceSubscriptionNextPaymentTotals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -254,7 +254,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -293,13 +293,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/Credit.java b/src/main/java/com/clerk/backend_api/models/components/Credit.java index 4250798f..23519fca 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Credit.java +++ b/src/main/java/com/clerk/backend_api/models/components/Credit.java @@ -27,7 +27,7 @@ public class Credit { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Percentage of the billing cycle remaining. @@ -38,7 +38,7 @@ public class Credit { @JsonCreator public Credit( - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("cycle_remaining_percent") Optional cycleRemainingPercent) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(cycleRemainingPercent, "cycleRemainingPercent"); @@ -55,8 +55,8 @@ public Credit() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -75,7 +75,7 @@ public static Builder builder() { /** * Credit amount. */ - public Credit withAmount(SchemasCommerceSubscriptionItemCreditAmount amount) { + public Credit withAmount(CommerceSubscriptionItem2CreditAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -84,7 +84,7 @@ public Credit withAmount(SchemasCommerceSubscriptionItemCreditAmount amount) { /** * Credit amount. */ - public Credit withAmount(JsonNullable amount) { + public Credit withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -139,7 +139,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private Optional cycleRemainingPercent = Optional.empty(); @@ -151,7 +151,7 @@ private Builder() { /** * Credit amount. */ - public Builder amount(SchemasCommerceSubscriptionItemCreditAmount amount) { + public Builder amount(CommerceSubscriptionItem2CreditAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -160,7 +160,7 @@ public Builder amount(SchemasCommerceSubscriptionItemCreditAmount amount) { /** * Credit amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java b/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java index f298e70e..b86f4899 100644 --- a/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java +++ b/src/main/java/com/clerk/backend_api/models/components/EnrollmentMode.java @@ -16,7 +16,8 @@ public enum EnrollmentMode { MANUAL_INVITATION("manual_invitation"), AUTOMATIC_INVITATION("automatic_invitation"), - AUTOMATIC_SUGGESTION("automatic_suggestion"); + AUTOMATIC_SUGGESTION("automatic_suggestion"), + ENTERPRISE_SSO("enterprise_sso"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnection.java b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnection.java index 0741f841..2f218b77 100644 --- a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnection.java +++ b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnection.java @@ -20,6 +20,10 @@ public class EnterpriseConnection { + + @JsonProperty("object") + private EnterpriseConnectionObject object; + /** * The enterprise connection ID */ @@ -116,6 +120,7 @@ public class EnterpriseConnection { @JsonCreator public EnterpriseConnection( + @JsonProperty("object") EnterpriseConnectionObject object, @JsonProperty("id") String id, @JsonProperty("name") String name, @JsonProperty("provider") String provider, @@ -131,6 +136,7 @@ public EnterpriseConnection( @JsonProperty("oauth_config") JsonNullable oauthConfig, @JsonProperty("created_at") long createdAt, @JsonProperty("updated_at") long updatedAt) { + Utils.checkNotNull(object, "object"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(provider, "provider"); @@ -146,6 +152,7 @@ public EnterpriseConnection( Utils.checkNotNull(oauthConfig, "oauthConfig"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(updatedAt, "updatedAt"); + this.object = object; this.id = id; this.name = name; this.provider = provider; @@ -164,6 +171,7 @@ public EnterpriseConnection( } public EnterpriseConnection( + EnterpriseConnectionObject object, String id, String name, String provider, @@ -171,11 +179,17 @@ public EnterpriseConnection( List domains, long createdAt, long updatedAt) { - this(id, name, provider, - JsonNullable.undefined(), active, domains, - JsonNullable.undefined(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), createdAt, updatedAt); + this(object, id, name, + provider, JsonNullable.undefined(), active, + domains, JsonNullable.undefined(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + JsonNullable.undefined(), JsonNullable.undefined(), createdAt, + updatedAt); + } + + @JsonIgnore + public EnterpriseConnectionObject object() { + return object; } /** @@ -300,6 +314,12 @@ public static Builder builder() { } + public EnterpriseConnection withObject(EnterpriseConnectionObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + /** * The enterprise connection ID */ @@ -512,6 +532,7 @@ public boolean equals(java.lang.Object o) { } EnterpriseConnection other = (EnterpriseConnection) o; return + Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.provider, other.provider) && @@ -532,16 +553,18 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - id, name, provider, - logoPublicUrl, active, domains, - organizationId, syncUserAttributes, disableAdditionalIdentifications, - allowOrganizationAccountLinking, customAttributes, samlConnection, - oauthConfig, createdAt, updatedAt); + object, id, name, + provider, logoPublicUrl, active, + domains, organizationId, syncUserAttributes, + disableAdditionalIdentifications, allowOrganizationAccountLinking, customAttributes, + samlConnection, oauthConfig, createdAt, + updatedAt); } @Override public String toString() { return Utils.toString(EnterpriseConnection.class, + "object", object, "id", id, "name", name, "provider", provider, @@ -562,6 +585,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private EnterpriseConnectionObject object; + private String id; private String name; @@ -597,6 +622,13 @@ private Builder() { } + public Builder object(EnterpriseConnectionObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** * The enterprise connection ID */ @@ -812,11 +844,12 @@ public Builder updatedAt(long updatedAt) { public EnterpriseConnection build() { return new EnterpriseConnection( - id, name, provider, - logoPublicUrl, active, domains, - organizationId, syncUserAttributes, disableAdditionalIdentifications, - allowOrganizationAccountLinking, customAttributes, samlConnection, - oauthConfig, createdAt, updatedAt); + object, id, name, + provider, logoPublicUrl, active, + domains, organizationId, syncUserAttributes, + disableAdditionalIdentifications, allowOrganizationAccountLinking, customAttributes, + samlConnection, oauthConfig, createdAt, + updatedAt); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionMode.java b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionMode.java new file mode 100644 index 00000000..a0e4ba24 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionMode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * EnterpriseConnectionMode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum EnterpriseConnectionMode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + EnterpriseConnectionMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (EnterpriseConnectionMode o: EnterpriseConnectionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionObject.java b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionObject.java new file mode 100644 index 00000000..cf8f355b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionObject.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum EnterpriseConnectionObject { + ENTERPRISE_CONNECTION("enterprise_connection"); + + @JsonValue + private final String value; + + EnterpriseConnectionObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (EnterpriseConnectionObject o: EnterpriseConnectionObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionSamlConnection.java b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionSamlConnection.java index 48758faa..a9cddf29 100644 --- a/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionSamlConnection.java +++ b/src/main/java/com/clerk/backend_api/models/components/EnterpriseConnectionSamlConnection.java @@ -12,6 +12,7 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; @@ -105,6 +106,13 @@ public class EnterpriseConnectionSamlConnection { @JsonProperty("force_authn") private Optional forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private Optional loginHint; + @JsonCreator public EnterpriseConnectionSamlConnection( @JsonProperty("id") Optional id, @@ -118,7 +126,8 @@ public EnterpriseConnectionSamlConnection( @JsonProperty("active") Optional active, @JsonProperty("allow_idp_initiated") Optional allowIdpInitiated, @JsonProperty("allow_subdomains") Optional allowSubdomains, - @JsonProperty("force_authn") Optional forceAuthn) { + @JsonProperty("force_authn") Optional forceAuthn, + @JsonProperty("login_hint") Optional loginHint) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(idpEntityId, "idpEntityId"); @@ -131,6 +140,7 @@ public EnterpriseConnectionSamlConnection( Utils.checkNotNull(allowIdpInitiated, "allowIdpInitiated"); Utils.checkNotNull(allowSubdomains, "allowSubdomains"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); this.id = id; this.name = name; this.idpEntityId = idpEntityId; @@ -143,13 +153,15 @@ public EnterpriseConnectionSamlConnection( this.allowIdpInitiated = allowIdpInitiated; this.allowSubdomains = allowSubdomains; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; } public EnterpriseConnectionSamlConnection() { this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -248,6 +260,15 @@ public Optional forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional loginHint() { + return (Optional) loginHint; + } + public static Builder builder() { return new Builder(); } @@ -475,6 +496,25 @@ public EnterpriseConnectionSamlConnection withForceAuthn(Optional force return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public EnterpriseConnectionSamlConnection withLoginHint(LoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = Optional.ofNullable(loginHint); + return this; + } + + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public EnterpriseConnectionSamlConnection withLoginHint(Optional loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -496,7 +536,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.active, other.active) && Utils.enhancedDeepEquals(this.allowIdpInitiated, other.allowIdpInitiated) && Utils.enhancedDeepEquals(this.allowSubdomains, other.allowSubdomains) && - Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn); + Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint); } @Override @@ -505,7 +546,8 @@ public int hashCode() { id, name, idpEntityId, idpSsoUrl, idpMetadataUrl, acsUrl, spEntityId, spMetadataUrl, active, - allowIdpInitiated, allowSubdomains, forceAuthn); + allowIdpInitiated, allowSubdomains, forceAuthn, + loginHint); } @Override @@ -522,7 +564,8 @@ public String toString() { "active", active, "allowIdpInitiated", allowIdpInitiated, "allowSubdomains", allowSubdomains, - "forceAuthn", forceAuthn); + "forceAuthn", forceAuthn, + "loginHint", loginHint); } @SuppressWarnings("UnusedReturnValue") @@ -552,6 +595,8 @@ public final static class Builder { private Optional forceAuthn = Optional.empty(); + private Optional loginHint = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -784,13 +829,33 @@ public Builder forceAuthn(Optional forceAuthn) { return this; } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(LoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = Optional.ofNullable(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(Optional loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public EnterpriseConnectionSamlConnection build() { return new EnterpriseConnectionSamlConnection( id, name, idpEntityId, idpSsoUrl, idpMetadataUrl, acsUrl, spEntityId, spMetadataUrl, active, - allowIdpInitiated, allowSubdomains, forceAuthn); + allowIdpInitiated, allowSubdomains, forceAuthn, + loginHint); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java index f76c8028..6b1fd2d2 100644 --- a/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/ErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class ErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public ErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public ErrorClerkError withCode(String code) { return this; } - public ErrorClerkError withMeta(ErrorMeta meta) { + public ErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public ErrorClerkError withMeta(Optional meta) { + public ErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ErrorMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java b/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java deleted file mode 100644 index be91029e..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/ErrorMeta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class ErrorMeta { - @JsonCreator - public ErrorMeta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ErrorMeta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ErrorMeta build() { - - return new ErrorMeta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java similarity index 87% rename from src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java rename to src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java index 0dabf600..9b50488d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponse.java +++ b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2.java @@ -11,12 +11,12 @@ import java.lang.String; -public class SchemasFeatureResponse { +public class FeatureResponse2 { /** * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasFeatureResponseObject object; + private FeatureResponse2Object object; /** * Unique identifier for the feature. @@ -49,8 +49,8 @@ public class SchemasFeatureResponse { private String avatarUrl; @JsonCreator - public SchemasFeatureResponse( - @JsonProperty("object") SchemasFeatureResponseObject object, + public FeatureResponse2( + @JsonProperty("object") FeatureResponse2Object object, @JsonProperty("id") String id, @JsonProperty("name") String name, @JsonProperty("description") String description, @@ -74,7 +74,7 @@ public SchemasFeatureResponse( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasFeatureResponseObject object() { + public FeatureResponse2Object object() { return object; } @@ -126,7 +126,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public SchemasFeatureResponse withObject(SchemasFeatureResponseObject object) { + public FeatureResponse2 withObject(FeatureResponse2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -135,7 +135,7 @@ public SchemasFeatureResponse withObject(SchemasFeatureResponseObject object) { /** * Unique identifier for the feature. */ - public SchemasFeatureResponse withId(String id) { + public FeatureResponse2 withId(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; @@ -144,7 +144,7 @@ public SchemasFeatureResponse withId(String id) { /** * The name of the feature. */ - public SchemasFeatureResponse withName(String name) { + public FeatureResponse2 withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; @@ -153,7 +153,7 @@ public SchemasFeatureResponse withName(String name) { /** * The description of the feature. */ - public SchemasFeatureResponse withDescription(String description) { + public FeatureResponse2 withDescription(String description) { Utils.checkNotNull(description, "description"); this.description = description; return this; @@ -162,7 +162,7 @@ public SchemasFeatureResponse withDescription(String description) { /** * The URL-friendly slug for the feature. */ - public SchemasFeatureResponse withSlug(String slug) { + public FeatureResponse2 withSlug(String slug) { Utils.checkNotNull(slug, "slug"); this.slug = slug; return this; @@ -171,7 +171,7 @@ public SchemasFeatureResponse withSlug(String slug) { /** * The URL of the feature's avatar image. */ - public SchemasFeatureResponse withAvatarUrl(String avatarUrl) { + public FeatureResponse2 withAvatarUrl(String avatarUrl) { Utils.checkNotNull(avatarUrl, "avatarUrl"); this.avatarUrl = avatarUrl; return this; @@ -185,7 +185,7 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasFeatureResponse other = (SchemasFeatureResponse) o; + FeatureResponse2 other = (FeatureResponse2) o; return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -204,7 +204,7 @@ public int hashCode() { @Override public String toString() { - return Utils.toString(SchemasFeatureResponse.class, + return Utils.toString(FeatureResponse2.class, "object", object, "id", id, "name", name, @@ -216,7 +216,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasFeatureResponseObject object; + private FeatureResponse2Object object; private String id; @@ -236,7 +236,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasFeatureResponseObject object) { + public Builder object(FeatureResponse2Object object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -292,9 +292,9 @@ public Builder avatarUrl(String avatarUrl) { return this; } - public SchemasFeatureResponse build() { + public FeatureResponse2 build() { - return new SchemasFeatureResponse( + return new FeatureResponse2( object, id, name, description, slug, avatarUrl); } diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java similarity index 70% rename from src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java rename to src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java index 0a20ffc7..02ac4687 100644 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasFeatureResponseObject.java +++ b/src/main/java/com/clerk/backend_api/models/components/FeatureResponse2Object.java @@ -9,17 +9,17 @@ import java.util.Optional; /** - * SchemasFeatureResponseObject + * FeatureResponse2Object * *

String representing the object's type. Objects of the same type share the same value. */ -public enum SchemasFeatureResponseObject { +public enum FeatureResponse2Object { FEATURE("feature"); @JsonValue private final String value; - SchemasFeatureResponseObject(String value) { + FeatureResponse2Object(String value) { this.value = value; } @@ -27,8 +27,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SchemasFeatureResponseObject o: SchemasFeatureResponseObject.values()) { + public static Optional fromValue(String value) { + for (FeatureResponse2Object o: FeatureResponse2Object.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/clerk/backend_api/models/components/InstanceProtect.java b/src/main/java/com/clerk/backend_api/models/components/InstanceProtect.java index 8705ebed..fbd14116 100644 --- a/src/main/java/com/clerk/backend_api/models/components/InstanceProtect.java +++ b/src/main/java/com/clerk/backend_api/models/components/InstanceProtect.java @@ -29,17 +29,27 @@ public class InstanceProtect { @JsonProperty("specter_enabled") private boolean specterEnabled; + /** + * Whether the instance has opted out of the Protect prerequisite checks, asserting its setup already + * meets the requirements. + */ + @JsonProperty("checks_bypassed") + private boolean checksBypassed; + @JsonCreator public InstanceProtect( @JsonProperty("object") InstanceProtectObject object, @JsonProperty("rules_enabled") boolean rulesEnabled, - @JsonProperty("specter_enabled") boolean specterEnabled) { + @JsonProperty("specter_enabled") boolean specterEnabled, + @JsonProperty("checks_bypassed") boolean checksBypassed) { Utils.checkNotNull(object, "object"); Utils.checkNotNull(rulesEnabled, "rulesEnabled"); Utils.checkNotNull(specterEnabled, "specterEnabled"); + Utils.checkNotNull(checksBypassed, "checksBypassed"); this.object = object; this.rulesEnabled = rulesEnabled; this.specterEnabled = specterEnabled; + this.checksBypassed = checksBypassed; } @JsonIgnore @@ -57,6 +67,15 @@ public boolean specterEnabled() { return specterEnabled; } + /** + * Whether the instance has opted out of the Protect prerequisite checks, asserting its setup already + * meets the requirements. + */ + @JsonIgnore + public boolean checksBypassed() { + return checksBypassed; + } + public static Builder builder() { return new Builder(); } @@ -80,6 +99,16 @@ public InstanceProtect withSpecterEnabled(boolean specterEnabled) { return this; } + /** + * Whether the instance has opted out of the Protect prerequisite checks, asserting its setup already + * meets the requirements. + */ + public InstanceProtect withChecksBypassed(boolean checksBypassed) { + Utils.checkNotNull(checksBypassed, "checksBypassed"); + this.checksBypassed = checksBypassed; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -92,13 +121,15 @@ public boolean equals(java.lang.Object o) { return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.rulesEnabled, other.rulesEnabled) && - Utils.enhancedDeepEquals(this.specterEnabled, other.specterEnabled); + Utils.enhancedDeepEquals(this.specterEnabled, other.specterEnabled) && + Utils.enhancedDeepEquals(this.checksBypassed, other.checksBypassed); } @Override public int hashCode() { return Utils.enhancedHash( - object, rulesEnabled, specterEnabled); + object, rulesEnabled, specterEnabled, + checksBypassed); } @Override @@ -106,7 +137,8 @@ public String toString() { return Utils.toString(InstanceProtect.class, "object", object, "rulesEnabled", rulesEnabled, - "specterEnabled", specterEnabled); + "specterEnabled", specterEnabled, + "checksBypassed", checksBypassed); } @SuppressWarnings("UnusedReturnValue") @@ -118,6 +150,8 @@ public final static class Builder { private Boolean specterEnabled; + private Boolean checksBypassed; + private Builder() { // force use of static builder() method } @@ -143,10 +177,22 @@ public Builder specterEnabled(boolean specterEnabled) { return this; } + + /** + * Whether the instance has opted out of the Protect prerequisite checks, asserting its setup already + * meets the requirements. + */ + public Builder checksBypassed(boolean checksBypassed) { + Utils.checkNotNull(checksBypassed, "checksBypassed"); + this.checksBypassed = checksBypassed; + return this; + } + public InstanceProtect build() { return new InstanceProtect( - object, rulesEnabled, specterEnabled); + object, rulesEnabled, specterEnabled, + checksBypassed); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/InstanceSettings.java b/src/main/java/com/clerk/backend_api/models/components/InstanceSettings.java index 2ecb4617..6676160c 100644 --- a/src/main/java/com/clerk/backend_api/models/components/InstanceSettings.java +++ b/src/main/java/com/clerk/backend_api/models/components/InstanceSettings.java @@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Boolean; +import java.lang.Deprecated; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -48,9 +49,16 @@ public class InstanceSettings { @JsonProperty("progressive_sign_up") private Optional progressiveSignUp; - + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("enhanced_email_deliverability") + @Deprecated private Optional enhancedEmailDeliverability; @JsonCreator @@ -109,6 +117,14 @@ public Optional progressiveSignUp() { return progressiveSignUp; } + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated @JsonIgnore public Optional enhancedEmailDeliverability() { return enhancedEmailDeliverability; @@ -190,6 +206,14 @@ public InstanceSettings withProgressiveSignUp(Optional progressiveSignU return this; } + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated public InstanceSettings withEnhancedEmailDeliverability(boolean enhancedEmailDeliverability) { Utils.checkNotNull(enhancedEmailDeliverability, "enhancedEmailDeliverability"); this.enhancedEmailDeliverability = Optional.ofNullable(enhancedEmailDeliverability); @@ -197,6 +221,14 @@ public InstanceSettings withEnhancedEmailDeliverability(boolean enhancedEmailDel } + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated public InstanceSettings withEnhancedEmailDeliverability(Optional enhancedEmailDeliverability) { Utils.checkNotNull(enhancedEmailDeliverability, "enhancedEmailDeliverability"); this.enhancedEmailDeliverability = enhancedEmailDeliverability; @@ -252,6 +284,7 @@ public final static class Builder { private Optional progressiveSignUp = Optional.empty(); + @Deprecated private Optional enhancedEmailDeliverability = Optional.empty(); private Builder() { @@ -330,12 +363,28 @@ public Builder progressiveSignUp(Optional progressiveSignUp) { } + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated public Builder enhancedEmailDeliverability(boolean enhancedEmailDeliverability) { Utils.checkNotNull(enhancedEmailDeliverability, "enhancedEmailDeliverability"); this.enhancedEmailDeliverability = Optional.ofNullable(enhancedEmailDeliverability); return this; } + /** + * Deprecated. When enabled, production authentication emails for this instance are sent through + * Clerk's legacy managed email delivery path. This setting is being retired; use the instance's + * configured email sending domain instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated public Builder enhancedEmailDeliverability(Optional enhancedEmailDeliverability) { Utils.checkNotNull(enhancedEmailDeliverability, "enhancedEmailDeliverability"); this.enhancedEmailDeliverability = enhancedEmailDeliverability; diff --git a/src/main/java/com/clerk/backend_api/models/components/LoginHint.java b/src/main/java/com/clerk/backend_api/models/components/LoginHint.java new file mode 100644 index 00000000..9f5dbc6b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/LoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * LoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class LoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private EnterpriseConnectionMode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public LoginHint( + @JsonProperty("mode") EnterpriseConnectionMode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public LoginHint( + EnterpriseConnectionMode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public EnterpriseConnectionMode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public LoginHint withMode(EnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public LoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public LoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoginHint other = (LoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(LoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private EnterpriseConnectionMode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(EnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public LoginHint build() { + + return new LoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/Meta.java b/src/main/java/com/clerk/backend_api/models/components/Meta.java deleted file mode 100644 index 8d5b2986..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/Meta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class Meta { - @JsonCreator - public Meta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(Meta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Meta build() { - - return new Meta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/Mode.java b/src/main/java/com/clerk/backend_api/models/components/Mode.java new file mode 100644 index 00000000..336e2ff4 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/Mode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * Mode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum Mode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + Mode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Mode o: Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java b/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java index 9789270b..dd37044f 100644 --- a/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java +++ b/src/main/java/com/clerk/backend_api/models/components/NextInvoice.java @@ -29,7 +29,7 @@ public class NextInvoice { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("amount") - private JsonNullable amount; + private JsonNullable amount; /** * Unix timestamp (in milliseconds) for the next payment date. @@ -51,14 +51,14 @@ public class NextInvoice { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("totals") - private JsonNullable totals; + private JsonNullable totals; @JsonCreator public NextInvoice( - @JsonProperty("amount") JsonNullable amount, + @JsonProperty("amount") JsonNullable amount, @JsonProperty("date") JsonNullable date, @JsonProperty("per_unit_totals") Optional> perUnitTotals, - @JsonProperty("totals") JsonNullable totals) { + @JsonProperty("totals") JsonNullable totals) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(perUnitTotals, "perUnitTotals"); @@ -80,8 +80,8 @@ public NextInvoice() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable amount() { - return (JsonNullable) amount; + public JsonNullable amount() { + return (JsonNullable) amount; } /** @@ -107,8 +107,8 @@ public Optional> perUnitTotals() { */ @SuppressWarnings("unchecked") @JsonIgnore - public JsonNullable totals() { - return (JsonNullable) totals; + public JsonNullable totals() { + return (JsonNullable) totals; } public static Builder builder() { @@ -120,7 +120,7 @@ public static Builder builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public NextInvoice withAmount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { + public NextInvoice withAmount(CommerceSubscriptionItem2NextInvoiceAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -130,7 +130,7 @@ public NextInvoice withAmount(SchemasCommerceSubscriptionItemNextInvoiceAmount a * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public NextInvoice withAmount(JsonNullable amount) { + public NextInvoice withAmount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -177,7 +177,7 @@ public NextInvoice withPerUnitTotals(Optional totals) { + public NextInvoice withTotals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; @@ -228,13 +228,13 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private JsonNullable amount = JsonNullable.undefined(); + private JsonNullable amount = JsonNullable.undefined(); private JsonNullable date = JsonNullable.undefined(); private Optional> perUnitTotals = Optional.empty(); - private JsonNullable totals = JsonNullable.undefined(); + private JsonNullable totals = JsonNullable.undefined(); private Builder() { // force use of static builder() method @@ -245,7 +245,7 @@ private Builder() { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { + public Builder amount(CommerceSubscriptionItem2NextInvoiceAmount amount) { Utils.checkNotNull(amount, "amount"); this.amount = JsonNullable.of(amount); return this; @@ -255,7 +255,7 @@ public Builder amount(SchemasCommerceSubscriptionItemNextInvoiceAmount amount) { * Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see * `totals.grand_total` for the full amount. */ - public Builder amount(JsonNullable amount) { + public Builder amount(JsonNullable amount) { Utils.checkNotNull(amount, "amount"); this.amount = amount; return this; @@ -304,7 +304,7 @@ public Builder perUnitTotals(Optional> perU * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(SchemasCommerceSubscriptionItemTotals totals) { + public Builder totals(CommerceSubscriptionItem2Totals totals) { Utils.checkNotNull(totals, "totals"); this.totals = JsonNullable.of(totals); return this; @@ -314,7 +314,7 @@ public Builder totals(SchemasCommerceSubscriptionItemTotals totals) { * Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax * and credits are not previewed. */ - public Builder totals(JsonNullable totals) { + public Builder totals(JsonNullable totals) { Utils.checkNotNull(totals, "totals"); this.totals = totals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettings.java b/src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettings.java index b99a4f83..33658c34 100644 --- a/src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettings.java +++ b/src/main/java/com/clerk/backend_api/models/components/OAuthApplicationSettings.java @@ -6,10 +6,15 @@ import com.clerk.backend_api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; /** * OAuthApplicationSettings @@ -29,6 +34,13 @@ public class OAuthApplicationSettings { @JsonProperty("dynamic_oauth_client_registration") private boolean dynamicOauthClientRegistration; + /** + * Default scopes. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("default_scopes") + private Optional> defaultScopes; + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -36,17 +48,62 @@ public class OAuthApplicationSettings { @JsonProperty("oauth_jwt_access_tokens") private boolean oauthJwtAccessTokens; + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + @JsonProperty("client_id_metadata_documents_advertised") + private boolean clientIdMetadataDocumentsAdvertised; + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + @JsonProperty("client_id_metadata_documents_only_allow_pre_registered_clients") + private boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + @JsonProperty("client_id_metadata_documents_block_implicitly_allowed_clients") + private boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + @JsonCreator public OAuthApplicationSettings( @JsonProperty("object") OAuthApplicationSettingsObject object, @JsonProperty("dynamic_oauth_client_registration") boolean dynamicOauthClientRegistration, - @JsonProperty("oauth_jwt_access_tokens") boolean oauthJwtAccessTokens) { + @JsonProperty("default_scopes") Optional> defaultScopes, + @JsonProperty("oauth_jwt_access_tokens") boolean oauthJwtAccessTokens, + @JsonProperty("client_id_metadata_documents_advertised") boolean clientIdMetadataDocumentsAdvertised, + @JsonProperty("client_id_metadata_documents_only_allow_pre_registered_clients") boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + @JsonProperty("client_id_metadata_documents_block_implicitly_allowed_clients") boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { Utils.checkNotNull(object, "object"); Utils.checkNotNull(dynamicOauthClientRegistration, "dynamicOauthClientRegistration"); + Utils.checkNotNull(defaultScopes, "defaultScopes"); Utils.checkNotNull(oauthJwtAccessTokens, "oauthJwtAccessTokens"); + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); this.object = object; this.dynamicOauthClientRegistration = dynamicOauthClientRegistration; + this.defaultScopes = defaultScopes; this.oauthJwtAccessTokens = oauthJwtAccessTokens; + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + } + + public OAuthApplicationSettings( + OAuthApplicationSettingsObject object, + boolean dynamicOauthClientRegistration, + boolean oauthJwtAccessTokens, + boolean clientIdMetadataDocumentsAdvertised, + boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + this(object, dynamicOauthClientRegistration, Optional.empty(), + oauthJwtAccessTokens, clientIdMetadataDocumentsAdvertised, clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } /** @@ -65,6 +122,15 @@ public boolean dynamicOauthClientRegistration() { return dynamicOauthClientRegistration; } + /** + * Default scopes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> defaultScopes() { + return (Optional>) defaultScopes; + } + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -74,6 +140,33 @@ public boolean oauthJwtAccessTokens() { return oauthJwtAccessTokens; } + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + @JsonIgnore + public boolean clientIdMetadataDocumentsAdvertised() { + return clientIdMetadataDocumentsAdvertised; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + @JsonIgnore + public boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients() { + return clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + @JsonIgnore + public boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients() { + return clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + } + public static Builder builder() { return new Builder(); } @@ -97,6 +190,25 @@ public OAuthApplicationSettings withDynamicOauthClientRegistration(boolean dynam return this; } + /** + * Default scopes. + */ + public OAuthApplicationSettings withDefaultScopes(List defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = Optional.ofNullable(defaultScopes); + return this; + } + + + /** + * Default scopes. + */ + public OAuthApplicationSettings withDefaultScopes(Optional> defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = defaultScopes; + return this; + } + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -107,6 +219,36 @@ public OAuthApplicationSettings withOauthJwtAccessTokens(boolean oauthJwtAccessT return this; } + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public OAuthApplicationSettings withClientIdMetadataDocumentsAdvertised(boolean clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + return this; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public OAuthApplicationSettings withClientIdMetadataDocumentsOnlyAllowPreRegisteredClients(boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + return this; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public OAuthApplicationSettings withClientIdMetadataDocumentsBlockImplicitlyAllowedClients(boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -119,13 +261,19 @@ public boolean equals(java.lang.Object o) { return Utils.enhancedDeepEquals(this.object, other.object) && Utils.enhancedDeepEquals(this.dynamicOauthClientRegistration, other.dynamicOauthClientRegistration) && - Utils.enhancedDeepEquals(this.oauthJwtAccessTokens, other.oauthJwtAccessTokens); + Utils.enhancedDeepEquals(this.defaultScopes, other.defaultScopes) && + Utils.enhancedDeepEquals(this.oauthJwtAccessTokens, other.oauthJwtAccessTokens) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsAdvertised, other.clientIdMetadataDocumentsAdvertised) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, other.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients, other.clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @Override public int hashCode() { return Utils.enhancedHash( - object, dynamicOauthClientRegistration, oauthJwtAccessTokens); + object, dynamicOauthClientRegistration, defaultScopes, + oauthJwtAccessTokens, clientIdMetadataDocumentsAdvertised, clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @Override @@ -133,7 +281,11 @@ public String toString() { return Utils.toString(OAuthApplicationSettings.class, "object", object, "dynamicOauthClientRegistration", dynamicOauthClientRegistration, - "oauthJwtAccessTokens", oauthJwtAccessTokens); + "defaultScopes", defaultScopes, + "oauthJwtAccessTokens", oauthJwtAccessTokens, + "clientIdMetadataDocumentsAdvertised", clientIdMetadataDocumentsAdvertised, + "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients", clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + "clientIdMetadataDocumentsBlockImplicitlyAllowedClients", clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @SuppressWarnings("UnusedReturnValue") @@ -143,8 +295,16 @@ public final static class Builder { private Boolean dynamicOauthClientRegistration; + private Optional> defaultScopes = Optional.empty(); + private Boolean oauthJwtAccessTokens; + private Boolean clientIdMetadataDocumentsAdvertised; + + private Boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + + private Boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + private Builder() { // force use of static builder() method } @@ -170,6 +330,25 @@ public Builder dynamicOauthClientRegistration(boolean dynamicOauthClientRegistra } + /** + * Default scopes. + */ + public Builder defaultScopes(List defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = Optional.ofNullable(defaultScopes); + return this; + } + + /** + * Default scopes. + */ + public Builder defaultScopes(Optional> defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = defaultScopes; + return this; + } + + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -180,10 +359,45 @@ public Builder oauthJwtAccessTokens(boolean oauthJwtAccessTokens) { return this; } + + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public Builder clientIdMetadataDocumentsAdvertised(boolean clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + return this; + } + + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public Builder clientIdMetadataDocumentsOnlyAllowPreRegisteredClients(boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + return this; + } + + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public Builder clientIdMetadataDocumentsBlockImplicitlyAllowedClients(boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + return this; + } + public OAuthApplicationSettings build() { return new OAuthApplicationSettings( - object, dynamicOauthClientRegistration, oauthJwtAccessTokens); + object, dynamicOauthClientRegistration, defaultScopes, + oauthJwtAccessTokens, clientIdMetadataDocumentsAdvertised, clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/One.java b/src/main/java/com/clerk/backend_api/models/components/One.java index b44ca479..0acd3400 100644 --- a/src/main/java/com/clerk/backend_api/models/components/One.java +++ b/src/main/java/com/clerk/backend_api/models/components/One.java @@ -61,6 +61,22 @@ public class One { @JsonProperty("idp_certificate") private Optional idpCertificate; + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_issued_at") + private Optional idpCertificateIssuedAt; + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_expires_at") + private Optional idpCertificateExpiresAt; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("idp_metadata_url") @@ -131,6 +147,12 @@ public class One { @JsonProperty("force_authn") private boolean forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("login_hint") + private SAMLConnectionLoginHint loginHint; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("enterprise_connection_id") @@ -158,6 +180,8 @@ public One( @JsonProperty("idp_entity_id") Optional idpEntityId, @JsonProperty("idp_sso_url") Optional idpSsoUrl, @JsonProperty("idp_certificate") Optional idpCertificate, + @JsonProperty("idp_certificate_issued_at") Optional idpCertificateIssuedAt, + @JsonProperty("idp_certificate_expires_at") Optional idpCertificateExpiresAt, @JsonProperty("idp_metadata_url") JsonNullable idpMetadataUrl, @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("acs_url") String acsUrl, @@ -174,6 +198,7 @@ public One( @JsonProperty("disable_additional_identifications") boolean disableAdditionalIdentifications, @JsonProperty("allow_organization_account_linking") boolean allowOrganizationAccountLinking, @JsonProperty("force_authn") boolean forceAuthn, + @JsonProperty("login_hint") SAMLConnectionLoginHint loginHint, @JsonProperty("enterprise_connection_id") JsonNullable enterpriseConnectionId, @JsonProperty("created_at") long createdAt, @JsonProperty("updated_at") long updatedAt) { @@ -185,6 +210,8 @@ public One( Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); Utils.checkNotNull(idpCertificate, "idpCertificate"); + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); Utils.checkNotNull(idpMetadata, "idpMetadata"); Utils.checkNotNull(acsUrl, "acsUrl"); @@ -201,6 +228,7 @@ public One( Utils.checkNotNull(disableAdditionalIdentifications, "disableAdditionalIdentifications"); Utils.checkNotNull(allowOrganizationAccountLinking, "allowOrganizationAccountLinking"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(updatedAt, "updatedAt"); @@ -212,6 +240,8 @@ public One( this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; this.idpCertificate = idpCertificate; + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + this.idpCertificateExpiresAt = idpCertificateExpiresAt; this.idpMetadataUrl = idpMetadataUrl; this.idpMetadata = idpMetadata; this.acsUrl = acsUrl; @@ -228,6 +258,7 @@ public One( this.disableAdditionalIdentifications = disableAdditionalIdentifications; this.allowOrganizationAccountLinking = allowOrganizationAccountLinking; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; this.enterpriseConnectionId = enterpriseConnectionId; this.createdAt = createdAt; this.updatedAt = updatedAt; @@ -250,16 +281,18 @@ public One( boolean disableAdditionalIdentifications, boolean allowOrganizationAccountLinking, boolean forceAuthn, + SAMLConnectionLoginHint loginHint, long createdAt, long updatedAt) { this(object, id, name, domain, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), acsUrl, spEntityId, - spMetadataUrl, JsonNullable.undefined(), Optional.empty(), - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + acsUrl, spEntityId, spMetadataUrl, + JsonNullable.undefined(), Optional.empty(), active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, JsonNullable.undefined(), createdAt, updatedAt); } @@ -309,6 +342,24 @@ public Optional idpCertificate() { return idpCertificate; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateIssuedAt() { + return idpCertificateIssuedAt; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateExpiresAt() { + return idpCertificateExpiresAt; + } + @JsonIgnore public JsonNullable idpMetadataUrl() { return idpMetadataUrl; @@ -393,6 +444,14 @@ public boolean forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public SAMLConnectionLoginHint loginHint() { + return loginHint; + } + @JsonIgnore public JsonNullable enterpriseConnectionId() { return enterpriseConnectionId; @@ -500,6 +559,48 @@ public One withIdpCertificate(Optional idpCertificate) { return this; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public One withIdpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public One withIdpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public One withIdpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public One withIdpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + public One withIdpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -624,6 +725,15 @@ public One withForceAuthn(boolean forceAuthn) { return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public One withLoginHint(SAMLConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public One withEnterpriseConnectionId(String enterpriseConnectionId) { Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); @@ -672,6 +782,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpEntityId, other.idpEntityId) && Utils.enhancedDeepEquals(this.idpSsoUrl, other.idpSsoUrl) && Utils.enhancedDeepEquals(this.idpCertificate, other.idpCertificate) && + Utils.enhancedDeepEquals(this.idpCertificateIssuedAt, other.idpCertificateIssuedAt) && + Utils.enhancedDeepEquals(this.idpCertificateExpiresAt, other.idpCertificateExpiresAt) && Utils.enhancedDeepEquals(this.idpMetadataUrl, other.idpMetadataUrl) && Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.acsUrl, other.acsUrl) && @@ -688,6 +800,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.disableAdditionalIdentifications, other.disableAdditionalIdentifications) && Utils.enhancedDeepEquals(this.allowOrganizationAccountLinking, other.allowOrganizationAccountLinking) && Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint) && Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); @@ -698,12 +811,13 @@ public int hashCode() { return Utils.enhancedHash( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, enterpriseConnectionId, createdAt, updatedAt); } @@ -718,6 +832,8 @@ public String toString() { "idpEntityId", idpEntityId, "idpSsoUrl", idpSsoUrl, "idpCertificate", idpCertificate, + "idpCertificateIssuedAt", idpCertificateIssuedAt, + "idpCertificateExpiresAt", idpCertificateExpiresAt, "idpMetadataUrl", idpMetadataUrl, "idpMetadata", idpMetadata, "acsUrl", acsUrl, @@ -734,6 +850,7 @@ public String toString() { "disableAdditionalIdentifications", disableAdditionalIdentifications, "allowOrganizationAccountLinking", allowOrganizationAccountLinking, "forceAuthn", forceAuthn, + "loginHint", loginHint, "enterpriseConnectionId", enterpriseConnectionId, "createdAt", createdAt, "updatedAt", updatedAt); @@ -759,6 +876,10 @@ public final static class Builder { private Optional idpCertificate = Optional.empty(); + private Optional idpCertificateIssuedAt = Optional.empty(); + + private Optional idpCertificateExpiresAt = Optional.empty(); + private JsonNullable idpMetadataUrl = JsonNullable.undefined(); private JsonNullable idpMetadata = JsonNullable.undefined(); @@ -791,6 +912,8 @@ public final static class Builder { private Boolean forceAuthn; + private SAMLConnectionLoginHint loginHint; + private JsonNullable enterpriseConnectionId = JsonNullable.undefined(); private Long createdAt; @@ -887,6 +1010,48 @@ public Builder idpCertificate(Optional idpCertificate) { } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + + public Builder idpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -1026,6 +1191,16 @@ public Builder forceAuthn(boolean forceAuthn) { } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(SAMLConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + + public Builder enterpriseConnectionId(String enterpriseConnectionId) { Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); @@ -1063,12 +1238,13 @@ public One build() { return new One( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, enterpriseConnectionId, createdAt, updatedAt); } diff --git a/src/main/java/com/clerk/backend_api/models/components/OrganizationMembershipPublicUserData.java b/src/main/java/com/clerk/backend_api/models/components/OrganizationMembershipPublicUserData.java index 093f1756..b8252c3b 100644 --- a/src/main/java/com/clerk/backend_api/models/components/OrganizationMembershipPublicUserData.java +++ b/src/main/java/com/clerk/backend_api/models/components/OrganizationMembershipPublicUserData.java @@ -68,6 +68,11 @@ public class OrganizationMembershipPublicUserData { @JsonProperty("banned") private Optional banned; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("deprovisioned") + private Optional deprovisioned; + @JsonCreator public OrganizationMembershipPublicUserData( @JsonProperty("user_id") String userId, @@ -78,7 +83,8 @@ public OrganizationMembershipPublicUserData( @JsonProperty("has_image") boolean hasImage, @JsonProperty("identifier") JsonNullable identifier, @JsonProperty("username") JsonNullable username, - @JsonProperty("banned") Optional banned) { + @JsonProperty("banned") Optional banned, + @JsonProperty("deprovisioned") Optional deprovisioned) { Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(firstName, "firstName"); Utils.checkNotNull(lastName, "lastName"); @@ -88,6 +94,7 @@ public OrganizationMembershipPublicUserData( Utils.checkNotNull(identifier, "identifier"); Utils.checkNotNull(username, "username"); Utils.checkNotNull(banned, "banned"); + Utils.checkNotNull(deprovisioned, "deprovisioned"); this.userId = userId; this.firstName = firstName; this.lastName = lastName; @@ -97,6 +104,7 @@ public OrganizationMembershipPublicUserData( this.identifier = identifier; this.username = username; this.banned = banned; + this.deprovisioned = deprovisioned; } public OrganizationMembershipPublicUserData( @@ -105,7 +113,8 @@ public OrganizationMembershipPublicUserData( boolean hasImage) { this(userId, Optional.empty(), Optional.empty(), Optional.empty(), imageUrl, hasImage, - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + Optional.empty()); } @JsonIgnore @@ -158,6 +167,11 @@ public Optional banned() { return banned; } + @JsonIgnore + public Optional deprovisioned() { + return deprovisioned; + } + public static Builder builder() { return new Builder(); } @@ -267,6 +281,19 @@ public OrganizationMembershipPublicUserData withBanned(Optional banned) return this; } + public OrganizationMembershipPublicUserData withDeprovisioned(boolean deprovisioned) { + Utils.checkNotNull(deprovisioned, "deprovisioned"); + this.deprovisioned = Optional.ofNullable(deprovisioned); + return this; + } + + + public OrganizationMembershipPublicUserData withDeprovisioned(Optional deprovisioned) { + Utils.checkNotNull(deprovisioned, "deprovisioned"); + this.deprovisioned = deprovisioned; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -285,7 +312,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.hasImage, other.hasImage) && Utils.enhancedDeepEquals(this.identifier, other.identifier) && Utils.enhancedDeepEquals(this.username, other.username) && - Utils.enhancedDeepEquals(this.banned, other.banned); + Utils.enhancedDeepEquals(this.banned, other.banned) && + Utils.enhancedDeepEquals(this.deprovisioned, other.deprovisioned); } @Override @@ -293,7 +321,8 @@ public int hashCode() { return Utils.enhancedHash( userId, firstName, lastName, profileImageUrl, imageUrl, hasImage, - identifier, username, banned); + identifier, username, banned, + deprovisioned); } @Override @@ -307,7 +336,8 @@ public String toString() { "hasImage", hasImage, "identifier", identifier, "username", username, - "banned", banned); + "banned", banned, + "deprovisioned", deprovisioned); } @SuppressWarnings("UnusedReturnValue") @@ -332,6 +362,8 @@ public final static class Builder { private Optional banned = Optional.empty(); + private Optional deprovisioned = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -445,12 +477,26 @@ public Builder banned(Optional banned) { return this; } + + public Builder deprovisioned(boolean deprovisioned) { + Utils.checkNotNull(deprovisioned, "deprovisioned"); + this.deprovisioned = Optional.ofNullable(deprovisioned); + return this; + } + + public Builder deprovisioned(Optional deprovisioned) { + Utils.checkNotNull(deprovisioned, "deprovisioned"); + this.deprovisioned = deprovisioned; + return this; + } + public OrganizationMembershipPublicUserData build() { return new OrganizationMembershipPublicUserData( userId, firstName, lastName, profileImageUrl, imageUrl, hasImage, - identifier, username, banned); + identifier, username, banned, + deprovisioned); } } diff --git a/src/main/java/com/clerk/backend_api/models/components/Payer.java b/src/main/java/com/clerk/backend_api/models/components/Payer.java index c70c619c..05a41209 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Payer.java +++ b/src/main/java/com/clerk/backend_api/models/components/Payer.java @@ -25,7 +25,7 @@ public class Payer { * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPayerObject object; + private CommerceSubscriptionItem2PayerObject object; /** * Unique identifier for the payer. @@ -103,7 +103,7 @@ public class Payer { @JsonCreator public Payer( - @JsonProperty("object") SchemasCommerceSubscriptionItemPayerObject object, + @JsonProperty("object") CommerceSubscriptionItem2PayerObject object, @JsonProperty("id") String id, @JsonProperty("instance_id") String instanceId, @JsonProperty("user_id") Optional userId, @@ -145,7 +145,7 @@ public Payer( } public Payer( - SchemasCommerceSubscriptionItemPayerObject object, + CommerceSubscriptionItem2PayerObject object, String id, String instanceId, String firstName, @@ -165,7 +165,7 @@ public Payer( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPayerObject object() { + public CommerceSubscriptionItem2PayerObject object() { return object; } @@ -271,7 +271,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Payer withObject(SchemasCommerceSubscriptionItemPayerObject object) { + public Payer withObject(CommerceSubscriptionItem2PayerObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -475,7 +475,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPayerObject object; + private CommerceSubscriptionItem2PayerObject object; private String id; @@ -509,7 +509,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPayerObject object) { + public Builder object(CommerceSubscriptionItem2PayerObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java b/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java index 520e17f7..b389153d 100644 --- a/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java +++ b/src/main/java/com/clerk/backend_api/models/components/PaymentSource.java @@ -26,7 +26,7 @@ public class PaymentSource { * String representing the object's type. Objects of the same type share the same value. */ @JsonProperty("object") - private SchemasCommerceSubscriptionItemPaymentSourceObject object; + private CommerceSubscriptionItem2PaymentSourceObject object; /** * Unique identifier for the payment source. @@ -82,7 +82,7 @@ public class PaymentSource { * Status of the payment source. */ @JsonProperty("status") - private SchemasCommerceSubscriptionItemPaymentSourceStatus status; + private CommerceSubscriptionItem2PaymentSourceStatus status; /** * Type of wallet (if applicable). @@ -131,7 +131,7 @@ public class PaymentSource { @JsonCreator public PaymentSource( - @JsonProperty("object") SchemasCommerceSubscriptionItemPaymentSourceObject object, + @JsonProperty("object") CommerceSubscriptionItem2PaymentSourceObject object, @JsonProperty("id") String id, @JsonProperty("payer_id") String payerId, @JsonProperty("payment_method") PaymentMethod paymentMethod, @@ -140,7 +140,7 @@ public PaymentSource( @JsonProperty("gateway_external_id") String gatewayExternalId, @JsonProperty("gateway_external_account_id") JsonNullable gatewayExternalAccountId, @JsonProperty("last4") String last4, - @JsonProperty("status") SchemasCommerceSubscriptionItemPaymentSourceStatus status, + @JsonProperty("status") CommerceSubscriptionItem2PaymentSourceStatus status, @JsonProperty("wallet_type") String walletType, @JsonProperty("card_type") String cardType, @JsonProperty("expiry_year") Optional expiryYear, @@ -185,14 +185,14 @@ public PaymentSource( } public PaymentSource( - SchemasCommerceSubscriptionItemPaymentSourceObject object, + CommerceSubscriptionItem2PaymentSourceObject object, String id, String payerId, PaymentMethod paymentMethod, String gateway, String gatewayExternalId, String last4, - SchemasCommerceSubscriptionItemPaymentSourceStatus status, + CommerceSubscriptionItem2PaymentSourceStatus status, String walletType, String cardType, long createdAt, @@ -209,7 +209,7 @@ public PaymentSource( * String representing the object's type. Objects of the same type share the same value. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPaymentSourceObject object() { + public CommerceSubscriptionItem2PaymentSourceObject object() { return object; } @@ -281,7 +281,7 @@ public String last4() { * Status of the payment source. */ @JsonIgnore - public SchemasCommerceSubscriptionItemPaymentSourceStatus status() { + public CommerceSubscriptionItem2PaymentSourceStatus status() { return status; } @@ -349,7 +349,7 @@ public static Builder builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public PaymentSource withObject(SchemasCommerceSubscriptionItemPaymentSourceObject object) { + public PaymentSource withObject(CommerceSubscriptionItem2PaymentSourceObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -448,7 +448,7 @@ public PaymentSource withLast4(String last4) { /** * Status of the payment source. */ - public PaymentSource withStatus(SchemasCommerceSubscriptionItemPaymentSourceStatus status) { + public PaymentSource withStatus(CommerceSubscriptionItem2PaymentSourceStatus status) { Utils.checkNotNull(status, "status"); this.status = status; return this; @@ -611,7 +611,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private SchemasCommerceSubscriptionItemPaymentSourceObject object; + private CommerceSubscriptionItem2PaymentSourceObject object; private String id; @@ -629,7 +629,7 @@ public final static class Builder { private String last4; - private SchemasCommerceSubscriptionItemPaymentSourceStatus status; + private CommerceSubscriptionItem2PaymentSourceStatus status; private String walletType; @@ -653,7 +653,7 @@ private Builder() { /** * String representing the object's type. Objects of the same type share the same value. */ - public Builder object(SchemasCommerceSubscriptionItemPaymentSourceObject object) { + public Builder object(CommerceSubscriptionItem2PaymentSourceObject object) { Utils.checkNotNull(object, "object"); this.object = object; return this; @@ -761,7 +761,7 @@ public Builder last4(String last4) { /** * Status of the payment source. */ - public Builder status(SchemasCommerceSubscriptionItemPaymentSourceStatus status) { + public Builder status(CommerceSubscriptionItem2PaymentSourceStatus status) { Utils.checkNotNull(status, "status"); this.status = status; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/PaymentType.java b/src/main/java/com/clerk/backend_api/models/components/PaymentType.java index f48d2b27..85eecbf5 100644 --- a/src/main/java/com/clerk/backend_api/models/components/PaymentType.java +++ b/src/main/java/com/clerk/backend_api/models/components/PaymentType.java @@ -15,7 +15,8 @@ */ public enum PaymentType { CARD("card"), - LINK("link"); + LINK("link"), + PAYER_CREDITS("payer-credits"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/components/Platform.java b/src/main/java/com/clerk/backend_api/models/components/Platform.java new file mode 100644 index 00000000..28faed3f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/Platform.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Platform { + IOS("ios"), + ANDROID("android"); + + @JsonValue + private final String value; + + Platform(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Platform o: Platform.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SAMLConnectionLoginHint.java b/src/main/java/com/clerk/backend_api/models/components/SAMLConnectionLoginHint.java new file mode 100644 index 00000000..0e430a73 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SAMLConnectionLoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * SAMLConnectionLoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class SAMLConnectionLoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private Mode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public SAMLConnectionLoginHint( + @JsonProperty("mode") Mode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public SAMLConnectionLoginHint( + Mode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public Mode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public SAMLConnectionLoginHint withMode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public SAMLConnectionLoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public SAMLConnectionLoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SAMLConnectionLoginHint other = (SAMLConnectionLoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(SAMLConnectionLoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Mode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public SAMLConnectionLoginHint build() { + + return new SAMLConnectionLoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java new file mode 100644 index 00000000..a3e3597d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectory.java @@ -0,0 +1,692 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * SCIMDirectory + * + *

A SCIM directory configuration for provisioning users via SCIM protocol. + */ +public class SCIMDirectory { + /** + * String representing the object's type. Always "scim_directory". + */ + @JsonProperty("object") + private SCIMDirectoryObject object; + + /** + * Unique identifier for the SCIM directory. + */ + @JsonProperty("id") + private String id; + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonProperty("name") + private String name; + + /** + * The ID of the associated enterprise connection. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enterprise_connection_id") + private JsonNullable enterpriseConnectionId; + + /** + * The SCIM endpoint URL for this directory. + */ + @JsonProperty("endpoint_url") + private String endpointUrl; + + /** + * The identity provider for this SCIM directory. + */ + @JsonProperty("provider") + private String provider; + + /** + * Whether the SCIM directory is enabled. + */ + @JsonProperty("enabled") + private boolean enabled; + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonProperty("group_role_mapping_enabled") + private boolean groupRoleMappingEnabled; + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + @JsonProperty("attribute_mapping") + private Map attributeMapping; + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("custom_attributes") + private Optional> customAttributes; + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_key") + private JsonNullable apiKey; + + /** + * Unix timestamp when the SCIM directory was created. + */ + @JsonProperty("created_at") + private long createdAt; + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + @JsonProperty("updated_at") + private long updatedAt; + + @JsonCreator + public SCIMDirectory( + @JsonProperty("object") SCIMDirectoryObject object, + @JsonProperty("id") String id, + @JsonProperty("name") String name, + @JsonProperty("enterprise_connection_id") JsonNullable enterpriseConnectionId, + @JsonProperty("endpoint_url") String endpointUrl, + @JsonProperty("provider") String provider, + @JsonProperty("enabled") boolean enabled, + @JsonProperty("group_role_mapping_enabled") boolean groupRoleMappingEnabled, + @JsonProperty("attribute_mapping") Map attributeMapping, + @JsonProperty("custom_attributes") Optional> customAttributes, + @JsonProperty("api_key") JsonNullable apiKey, + @JsonProperty("created_at") long createdAt, + @JsonProperty("updated_at") long updatedAt) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + Utils.checkNotNull(endpointUrl, "endpointUrl"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + attributeMapping = Utils.emptyMapIfNull(attributeMapping); + Utils.checkNotNull(attributeMapping, "attributeMapping"); + Utils.checkNotNull(customAttributes, "customAttributes"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.object = object; + this.id = id; + this.name = name; + this.enterpriseConnectionId = enterpriseConnectionId; + this.endpointUrl = endpointUrl; + this.provider = provider; + this.enabled = enabled; + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + this.attributeMapping = attributeMapping; + this.customAttributes = customAttributes; + this.apiKey = apiKey; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SCIMDirectory( + SCIMDirectoryObject object, + String id, + String name, + String endpointUrl, + String provider, + boolean enabled, + boolean groupRoleMappingEnabled, + Map attributeMapping, + long createdAt, + long updatedAt) { + this(object, id, name, + JsonNullable.undefined(), endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + Optional.empty(), JsonNullable.undefined(), createdAt, + updatedAt); + } + + /** + * String representing the object's type. Always "scim_directory". + */ + @JsonIgnore + public SCIMDirectoryObject object() { + return object; + } + + /** + * Unique identifier for the SCIM directory. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * The ID of the associated enterprise connection. + */ + @JsonIgnore + public JsonNullable enterpriseConnectionId() { + return enterpriseConnectionId; + } + + /** + * The SCIM endpoint URL for this directory. + */ + @JsonIgnore + public String endpointUrl() { + return endpointUrl; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public String provider() { + return provider; + } + + /** + * Whether the SCIM directory is enabled. + */ + @JsonIgnore + public boolean enabled() { + return enabled; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonIgnore + public boolean groupRoleMappingEnabled() { + return groupRoleMappingEnabled; + } + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + @JsonIgnore + public Map attributeMapping() { + return attributeMapping; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> customAttributes() { + return (Optional>) customAttributes; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + @JsonIgnore + public JsonNullable apiKey() { + return apiKey; + } + + /** + * Unix timestamp when the SCIM directory was created. + */ + @JsonIgnore + public long createdAt() { + return createdAt; + } + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + @JsonIgnore + public long updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. Always "scim_directory". + */ + public SCIMDirectory withObject(SCIMDirectoryObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * Unique identifier for the SCIM directory. + */ + public SCIMDirectory withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public SCIMDirectory withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public SCIMDirectory withEnterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public SCIMDirectory withEnterpriseConnectionId(JsonNullable enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + /** + * The SCIM endpoint URL for this directory. + */ + public SCIMDirectory withEndpointUrl(String endpointUrl) { + Utils.checkNotNull(endpointUrl, "endpointUrl"); + this.endpointUrl = endpointUrl; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public SCIMDirectory withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public SCIMDirectory withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public SCIMDirectory withGroupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + public SCIMDirectory withAttributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public SCIMDirectory withCustomAttributes(List customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = Optional.ofNullable(customAttributes); + return this; + } + + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public SCIMDirectory withCustomAttributes(Optional> customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = customAttributes; + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public SCIMDirectory withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = JsonNullable.of(apiKey); + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public SCIMDirectory withApiKey(JsonNullable apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Unix timestamp when the SCIM directory was created. + */ + public SCIMDirectory withCreatedAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + public SCIMDirectory withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectory other = (SCIMDirectory) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && + Utils.enhancedDeepEquals(this.endpointUrl, other.endpointUrl) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.groupRoleMappingEnabled, other.groupRoleMappingEnabled) && + Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && + Utils.enhancedDeepEquals(this.customAttributes, other.customAttributes) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, name, + enterpriseConnectionId, endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + customAttributes, apiKey, createdAt, + updatedAt); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectory.class, + "object", object, + "id", id, + "name", name, + "enterpriseConnectionId", enterpriseConnectionId, + "endpointUrl", endpointUrl, + "provider", provider, + "enabled", enabled, + "groupRoleMappingEnabled", groupRoleMappingEnabled, + "attributeMapping", attributeMapping, + "customAttributes", customAttributes, + "apiKey", apiKey, + "createdAt", createdAt, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMDirectoryObject object; + + private String id; + + private String name; + + private JsonNullable enterpriseConnectionId = JsonNullable.undefined(); + + private String endpointUrl; + + private String provider; + + private Boolean enabled; + + private Boolean groupRoleMappingEnabled; + + private Map attributeMapping; + + private Optional> customAttributes = Optional.empty(); + + private JsonNullable apiKey = JsonNullable.undefined(); + + private Long createdAt; + + private Long updatedAt; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. Always "scim_directory". + */ + public Builder object(SCIMDirectoryObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * Unique identifier for the SCIM directory. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * The ID of the associated enterprise connection. + */ + public Builder enterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); + return this; + } + + /** + * The ID of the associated enterprise connection. + */ + public Builder enterpriseConnectionId(JsonNullable enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + + /** + * The SCIM endpoint URL for this directory. + */ + public Builder endpointUrl(String endpointUrl) { + Utils.checkNotNull(endpointUrl, "endpointUrl"); + this.endpointUrl = endpointUrl; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + + /** + * Mapping of user attributes to the SCIM attribute paths they are extracted from. + */ + public Builder attributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public Builder customAttributes(List customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = Optional.ofNullable(customAttributes); + return this; + } + + /** + * Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the + * custom attributes feature to be enabled for the instance. + */ + public Builder customAttributes(Optional> customAttributes) { + Utils.checkNotNull(customAttributes, "customAttributes"); + this.customAttributes = customAttributes; + return this; + } + + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = JsonNullable.of(apiKey); + return this; + } + + /** + * The API key for authenticating SCIM requests. Only returned when the directory is created or the key + * is rotated. + */ + public Builder apiKey(JsonNullable apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * Unix timestamp when the SCIM directory was created. + */ + public Builder createdAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Unix timestamp when the SCIM directory was last updated. + */ + public Builder updatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public SCIMDirectory build() { + + return new SCIMDirectory( + object, id, name, + enterpriseConnectionId, endpointUrl, provider, + enabled, groupRoleMappingEnabled, attributeMapping, + customAttributes, apiKey, createdAt, + updatedAt); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java new file mode 100644 index 00000000..e63ee7d5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryCustomAttributes.java @@ -0,0 +1,378 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SCIMDirectoryCustomAttributes { + /** + * Display name for the custom attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + private Optional key; + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sso_path") + private Optional ssoPath; + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scim_path") + private Optional scimPath; + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("multi_valued") + private Optional multiValued; + + @JsonCreator + public SCIMDirectoryCustomAttributes( + @JsonProperty("name") Optional name, + @JsonProperty("key") Optional key, + @JsonProperty("sso_path") Optional ssoPath, + @JsonProperty("scim_path") Optional scimPath, + @JsonProperty("multi_valued") Optional multiValued) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(key, "key"); + Utils.checkNotNull(ssoPath, "ssoPath"); + Utils.checkNotNull(scimPath, "scimPath"); + Utils.checkNotNull(multiValued, "multiValued"); + this.name = name; + this.key = key; + this.ssoPath = ssoPath; + this.scimPath = scimPath; + this.multiValued = multiValued; + } + + public SCIMDirectoryCustomAttributes() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * Display name for the custom attribute + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + @JsonIgnore + public Optional key() { + return key; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + @JsonIgnore + public Optional ssoPath() { + return ssoPath; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + @JsonIgnore + public Optional scimPath() { + return scimPath; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + @JsonIgnore + public Optional multiValued() { + return multiValued; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Display name for the custom attribute + */ + public SCIMDirectoryCustomAttributes withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * Display name for the custom attribute + */ + public SCIMDirectoryCustomAttributes withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public SCIMDirectoryCustomAttributes withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public SCIMDirectoryCustomAttributes withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public SCIMDirectoryCustomAttributes withSsoPath(String ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = Optional.ofNullable(ssoPath); + return this; + } + + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public SCIMDirectoryCustomAttributes withSsoPath(Optional ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = ssoPath; + return this; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public SCIMDirectoryCustomAttributes withScimPath(String scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = Optional.ofNullable(scimPath); + return this; + } + + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public SCIMDirectoryCustomAttributes withScimPath(Optional scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = scimPath; + return this; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public SCIMDirectoryCustomAttributes withMultiValued(boolean multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = Optional.ofNullable(multiValued); + return this; + } + + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public SCIMDirectoryCustomAttributes withMultiValued(Optional multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = multiValued; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectoryCustomAttributes other = (SCIMDirectoryCustomAttributes) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.ssoPath, other.ssoPath) && + Utils.enhancedDeepEquals(this.scimPath, other.scimPath) && + Utils.enhancedDeepEquals(this.multiValued, other.multiValued); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, key, ssoPath, + scimPath, multiValued); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectoryCustomAttributes.class, + "name", name, + "key", key, + "ssoPath", ssoPath, + "scimPath", scimPath, + "multiValued", multiValued); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private Optional key = Optional.empty(); + + private Optional ssoPath = Optional.empty(); + + private Optional scimPath = Optional.empty(); + + private Optional multiValued = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Display name for the custom attribute + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * Display name for the custom attribute + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public Builder key(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + /** + * Key used to store the attribute in the user's public/private/unsafe metadata + */ + public Builder key(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public Builder ssoPath(String ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = Optional.ofNullable(ssoPath); + return this; + } + + /** + * Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims) + */ + public Builder ssoPath(Optional ssoPath) { + Utils.checkNotNull(ssoPath, "ssoPath"); + this.ssoPath = ssoPath; + return this; + } + + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public Builder scimPath(String scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = Optional.ofNullable(scimPath); + return this; + } + + /** + * GJSON path to extract the attribute value from SCIM user resources + */ + public Builder scimPath(Optional scimPath) { + Utils.checkNotNull(scimPath, "scimPath"); + this.scimPath = scimPath; + return this; + } + + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public Builder multiValued(boolean multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = Optional.ofNullable(multiValued); + return this; + } + + /** + * When true, the attribute supports multiple values; values from the IdP are written to + * public_metadata as an array. Defaults to false. + */ + public Builder multiValued(Optional multiValued) { + Utils.checkNotNull(multiValued, "multiValued"); + this.multiValued = multiValued; + return this; + } + + public SCIMDirectoryCustomAttributes build() { + + return new SCIMDirectoryCustomAttributes( + name, key, ssoPath, + scimPath, multiValued); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java new file mode 100644 index 00000000..9d8bec1f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryList.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * SCIMDirectoryList + * + *

A list of SCIM directories + */ +public class SCIMDirectoryList { + + @JsonProperty("data") + private List data; + + /** + * Total number of SCIM directories. + */ + @JsonProperty("total_count") + private long totalCount; + + @JsonCreator + public SCIMDirectoryList( + @JsonProperty("data") List data, + @JsonProperty("total_count") long totalCount) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(totalCount, "totalCount"); + this.data = data; + this.totalCount = totalCount; + } + + @JsonIgnore + public List data() { + return data; + } + + /** + * Total number of SCIM directories. + */ + @JsonIgnore + public long totalCount() { + return totalCount; + } + + public static Builder builder() { + return new Builder(); + } + + + public SCIMDirectoryList withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Total number of SCIM directories. + */ + public SCIMDirectoryList withTotalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMDirectoryList other = (SCIMDirectoryList) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.totalCount, other.totalCount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, totalCount); + } + + @Override + public String toString() { + return Utils.toString(SCIMDirectoryList.class, + "data", data, + "totalCount", totalCount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Long totalCount; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + /** + * Total number of SCIM directories. + */ + public Builder totalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + public SCIMDirectoryList build() { + + return new SCIMDirectoryList( + data, totalCount); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java new file mode 100644 index 00000000..cc436a7e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMDirectoryObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMDirectoryObject + * + *

String representing the object's type. Always "scim_directory". + */ +public enum SCIMDirectoryObject { + SCIM_DIRECTORY("scim_directory"); + + @JsonValue + private final String value; + + SCIMDirectoryObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMDirectoryObject o: SCIMDirectoryObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java new file mode 100644 index 00000000..c2305a75 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMapping.java @@ -0,0 +1,457 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SCIMGroupRoleMapping + * + *

A mapping from a SCIM group to an organization role. Members of the group are assigned the role; the + * lowest-precedence match wins when a user belongs to multiple mapped groups. + */ +public class SCIMGroupRoleMapping { + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + @JsonProperty("object") + private SCIMGroupRoleMappingObject object; + + /** + * Unique identifier for the SCIM group role mapping. + */ + @JsonProperty("id") + private String id; + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + @JsonProperty("scim_directory_id") + private String scimDirectoryId; + + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + @JsonProperty("scim_group_display_name") + private String scimGroupDisplayName; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role") + private Optional role; + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + @JsonProperty("precedence") + private long precedence; + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + @JsonProperty("created_at") + private long createdAt; + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + @JsonProperty("updated_at") + private long updatedAt; + + @JsonCreator + public SCIMGroupRoleMapping( + @JsonProperty("object") SCIMGroupRoleMappingObject object, + @JsonProperty("id") String id, + @JsonProperty("scim_directory_id") String scimDirectoryId, + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("scim_group_display_name") String scimGroupDisplayName, + @JsonProperty("role") Optional role, + @JsonProperty("precedence") long precedence, + @JsonProperty("created_at") long createdAt, + @JsonProperty("updated_at") long updatedAt) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + Utils.checkNotNull(role, "role"); + Utils.checkNotNull(precedence, "precedence"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.object = object; + this.id = id; + this.scimDirectoryId = scimDirectoryId; + this.scimGroupId = scimGroupId; + this.scimGroupDisplayName = scimGroupDisplayName; + this.role = role; + this.precedence = precedence; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public SCIMGroupRoleMapping( + SCIMGroupRoleMappingObject object, + String id, + String scimDirectoryId, + String scimGroupId, + String scimGroupDisplayName, + long precedence, + long createdAt, + long updatedAt) { + this(object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, Optional.empty(), + precedence, createdAt, updatedAt); + } + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + @JsonIgnore + public SCIMGroupRoleMappingObject object() { + return object; + } + + /** + * Unique identifier for the SCIM group role mapping. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + @JsonIgnore + public String scimGroupDisplayName() { + return scimGroupDisplayName; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional role() { + return (Optional) role; + } + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + @JsonIgnore + public long precedence() { + return precedence; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + @JsonIgnore + public long createdAt() { + return createdAt; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + @JsonIgnore + public long updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + public SCIMGroupRoleMapping withObject(SCIMGroupRoleMappingObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * Unique identifier for the SCIM group role mapping. + */ + public SCIMGroupRoleMapping withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + public SCIMGroupRoleMapping withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + /** + * The SCIM group ID from the identity provider. + */ + public SCIMGroupRoleMapping withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + public SCIMGroupRoleMapping withScimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + public SCIMGroupRoleMapping withRole(Role role) { + Utils.checkNotNull(role, "role"); + this.role = Optional.ofNullable(role); + return this; + } + + + public SCIMGroupRoleMapping withRole(Optional role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + public SCIMGroupRoleMapping withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + public SCIMGroupRoleMapping withCreatedAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + public SCIMGroupRoleMapping withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMapping other = (SCIMGroupRoleMapping) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.scimGroupDisplayName, other.scimGroupDisplayName) && + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.precedence, other.precedence) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, role, + precedence, createdAt, updatedAt); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMapping.class, + "object", object, + "id", id, + "scimDirectoryId", scimDirectoryId, + "scimGroupId", scimGroupId, + "scimGroupDisplayName", scimGroupDisplayName, + "role", role, + "precedence", precedence, + "createdAt", createdAt, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMGroupRoleMappingObject object; + + private String id; + + private String scimDirectoryId; + + private String scimGroupId; + + private String scimGroupDisplayName; + + private Optional role = Optional.empty(); + + private Long precedence; + + private Long createdAt; + + private Long updatedAt; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. Always "scim_group_role_mapping". + */ + public Builder object(SCIMGroupRoleMappingObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * Unique identifier for the SCIM group role mapping. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * The ID of the SCIM directory this mapping belongs to. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The display name of the SCIM group, as reported by the identity provider. + */ + public Builder scimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + + public Builder role(Role role) { + Utils.checkNotNull(role, "role"); + this.role = Optional.ofNullable(role); + return this; + } + + public Builder role(Optional role) { + Utils.checkNotNull(role, "role"); + this.role = role; + return this; + } + + + /** + * Mapping precedence, starting at 1. Lower values take priority when a user belongs to multiple mapped + * groups. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + + /** + * Unix timestamp (milliseconds) of when the mapping was created. + */ + public Builder createdAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of when the mapping was last updated. + */ + public Builder updatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public SCIMGroupRoleMapping build() { + + return new SCIMGroupRoleMapping( + object, id, scimDirectoryId, + scimGroupId, scimGroupDisplayName, role, + precedence, createdAt, updatedAt); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java new file mode 100644 index 00000000..8e1ffea5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeleted.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; + +/** + * SCIMGroupRoleMappingDeleted + * + *

A SCIM group role mapping was deleted. + */ +public class SCIMGroupRoleMappingDeleted { + /** + * String representing the object's type. + */ + @JsonProperty("object") + private SCIMGroupRoleMappingDeletedObject object; + + /** + * The ID of the deleted SCIM group role mapping. + */ + @JsonProperty("id") + private String id; + + /** + * Whether the SCIM group role mapping was successfully deleted. + */ + @JsonProperty("deleted") + private boolean deleted; + + @JsonCreator + public SCIMGroupRoleMappingDeleted( + @JsonProperty("object") SCIMGroupRoleMappingDeletedObject object, + @JsonProperty("id") String id) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + this.object = object; + this.id = id; + this.deleted = Builder._SINGLETON_VALUE_Deleted.value(); + } + + /** + * String representing the object's type. + */ + @JsonIgnore + public SCIMGroupRoleMappingDeletedObject object() { + return object; + } + + /** + * The ID of the deleted SCIM group role mapping. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Whether the SCIM group role mapping was successfully deleted. + */ + @JsonIgnore + public boolean deleted() { + return deleted; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. + */ + public SCIMGroupRoleMappingDeleted withObject(SCIMGroupRoleMappingDeletedObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + /** + * The ID of the deleted SCIM group role mapping. + */ + public SCIMGroupRoleMappingDeleted withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMappingDeleted other = (SCIMGroupRoleMappingDeleted) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.deleted, other.deleted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, deleted); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMappingDeleted.class, + "object", object, + "id", id, + "deleted", deleted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SCIMGroupRoleMappingDeletedObject object; + + private String id; + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. + */ + public Builder object(SCIMGroupRoleMappingDeletedObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + /** + * The ID of the deleted SCIM group role mapping. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public SCIMGroupRoleMappingDeleted build() { + + return new SCIMGroupRoleMappingDeleted( + object, id); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Deleted = + new LazySingletonValue<>( + "deleted", + "true", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java new file mode 100644 index 00000000..5b3bea2c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingDeletedObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMGroupRoleMappingDeletedObject + * + *

String representing the object's type. + */ +public enum SCIMGroupRoleMappingDeletedObject { + SCIM_GROUP_ROLE_MAPPING("scim_group_role_mapping"); + + @JsonValue + private final String value; + + SCIMGroupRoleMappingDeletedObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMGroupRoleMappingDeletedObject o: SCIMGroupRoleMappingDeletedObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java new file mode 100644 index 00000000..305244dc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingList.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * SCIMGroupRoleMappingList + * + *

A list of SCIM group role mappings, ordered by precedence. + */ +public class SCIMGroupRoleMappingList { + + @JsonProperty("data") + private List data; + + /** + * Total number of SCIM group role mappings in the directory. + */ + @JsonProperty("total_count") + private long totalCount; + + @JsonCreator + public SCIMGroupRoleMappingList( + @JsonProperty("data") List data, + @JsonProperty("total_count") long totalCount) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(totalCount, "totalCount"); + this.data = data; + this.totalCount = totalCount; + } + + @JsonIgnore + public List data() { + return data; + } + + /** + * Total number of SCIM group role mappings in the directory. + */ + @JsonIgnore + public long totalCount() { + return totalCount; + } + + public static Builder builder() { + return new Builder(); + } + + + public SCIMGroupRoleMappingList withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Total number of SCIM group role mappings in the directory. + */ + public SCIMGroupRoleMappingList withTotalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SCIMGroupRoleMappingList other = (SCIMGroupRoleMappingList) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.totalCount, other.totalCount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, totalCount); + } + + @Override + public String toString() { + return Utils.toString(SCIMGroupRoleMappingList.class, + "data", data, + "totalCount", totalCount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Long totalCount; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + /** + * Total number of SCIM group role mappings in the directory. + */ + public Builder totalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + public SCIMGroupRoleMappingList build() { + + return new SCIMGroupRoleMappingList( + data, totalCount); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java new file mode 100644 index 00000000..9a785b47 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/SCIMGroupRoleMappingObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SCIMGroupRoleMappingObject + * + *

String representing the object's type. Always "scim_group_role_mapping". + */ +public enum SCIMGroupRoleMappingObject { + SCIM_GROUP_ROLE_MAPPING("scim_group_role_mapping"); + + @JsonValue + private final String value; + + SCIMGroupRoleMappingObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SCIMGroupRoleMappingObject o: SCIMGroupRoleMappingObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java b/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java deleted file mode 100644 index 69442456..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemAnnualMonthlyFee.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class SchemasCommerceSubscriptionItemAnnualMonthlyFee { - /** - * The amount in cents. - */ - @JsonProperty("amount") - private long amount; - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonProperty("amount_formatted") - private String amountFormatted; - - /** - * The currency code (e.g., "USD"). - */ - @JsonProperty("currency") - private String currency; - - /** - * The currency symbol (e.g., "$"). - */ - @JsonProperty("currency_symbol") - private String currencySymbol; - - @JsonCreator - public SchemasCommerceSubscriptionItemAnnualMonthlyFee( - @JsonProperty("amount") long amount, - @JsonProperty("amount_formatted") String amountFormatted, - @JsonProperty("currency") String currency, - @JsonProperty("currency_symbol") String currencySymbol) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(amountFormatted, "amountFormatted"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.amount = amount; - this.amountFormatted = amountFormatted; - this.currency = currency; - this.currencySymbol = currencySymbol; - } - - /** - * The amount in cents. - */ - @JsonIgnore - public long amount() { - return amount; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonIgnore - public String amountFormatted() { - return amountFormatted; - } - - /** - * The currency code (e.g., "USD"). - */ - @JsonIgnore - public String currency() { - return currency; - } - - /** - * The currency symbol (e.g., "$"). - */ - @JsonIgnore - public String currencySymbol() { - return currencySymbol; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The amount in cents. - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withAmountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - /** - * The currency code (e.g., "USD"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The currency symbol (e.g., "$"). - */ - public SchemasCommerceSubscriptionItemAnnualMonthlyFee withCurrencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SchemasCommerceSubscriptionItemAnnualMonthlyFee other = (SchemasCommerceSubscriptionItemAnnualMonthlyFee) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && - Utils.enhancedDeepEquals(this.currency, other.currency) && - Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, amountFormatted, currency, - currencySymbol); - } - - @Override - public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemAnnualMonthlyFee.class, - "amount", amount, - "amountFormatted", amountFormatted, - "currency", currency, - "currencySymbol", currencySymbol); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long amount; - - private String amountFormatted; - - private String currency; - - private String currencySymbol; - - private Builder() { - // force use of static builder() method - } - - - /** - * The amount in cents. - */ - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public Builder amountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - - /** - * The currency code (e.g., "USD"). - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - - /** - * The currency symbol (e.g., "$"). - */ - public Builder currencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - public SchemasCommerceSubscriptionItemAnnualMonthlyFee build() { - - return new SchemasCommerceSubscriptionItemAnnualMonthlyFee( - amount, amountFormatted, currency, - currencySymbol); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java b/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java deleted file mode 100644 index 6455b82d..00000000 --- a/src/main/java/com/clerk/backend_api/models/components/SchemasCommerceSubscriptionItemCreditAmount.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.components; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - -/** - * SchemasCommerceSubscriptionItemCreditAmount - * - *

Credit amount. - */ -public class SchemasCommerceSubscriptionItemCreditAmount { - /** - * The amount in cents. - */ - @JsonProperty("amount") - private long amount; - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonProperty("amount_formatted") - private String amountFormatted; - - /** - * The currency code (e.g., "USD"). - */ - @JsonProperty("currency") - private String currency; - - /** - * The currency symbol (e.g., "$"). - */ - @JsonProperty("currency_symbol") - private String currencySymbol; - - @JsonCreator - public SchemasCommerceSubscriptionItemCreditAmount( - @JsonProperty("amount") long amount, - @JsonProperty("amount_formatted") String amountFormatted, - @JsonProperty("currency") String currency, - @JsonProperty("currency_symbol") String currencySymbol) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(amountFormatted, "amountFormatted"); - Utils.checkNotNull(currency, "currency"); - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.amount = amount; - this.amountFormatted = amountFormatted; - this.currency = currency; - this.currencySymbol = currencySymbol; - } - - /** - * The amount in cents. - */ - @JsonIgnore - public long amount() { - return amount; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - @JsonIgnore - public String amountFormatted() { - return amountFormatted; - } - - /** - * The currency code (e.g., "USD"). - */ - @JsonIgnore - public String currency() { - return currency; - } - - /** - * The currency symbol (e.g., "$"). - */ - @JsonIgnore - public String currencySymbol() { - return currencySymbol; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The amount in cents. - */ - public SchemasCommerceSubscriptionItemCreditAmount withAmount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withAmountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - /** - * The currency code (e.g., "USD"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withCurrency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - /** - * The currency symbol (e.g., "$"). - */ - public SchemasCommerceSubscriptionItemCreditAmount withCurrencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SchemasCommerceSubscriptionItemCreditAmount other = (SchemasCommerceSubscriptionItemCreditAmount) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.amountFormatted, other.amountFormatted) && - Utils.enhancedDeepEquals(this.currency, other.currency) && - Utils.enhancedDeepEquals(this.currencySymbol, other.currencySymbol); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, amountFormatted, currency, - currencySymbol); - } - - @Override - public String toString() { - return Utils.toString(SchemasCommerceSubscriptionItemCreditAmount.class, - "amount", amount, - "amountFormatted", amountFormatted, - "currency", currency, - "currencySymbol", currencySymbol); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long amount; - - private String amountFormatted; - - private String currency; - - private String currencySymbol; - - private Builder() { - // force use of static builder() method - } - - - /** - * The amount in cents. - */ - public Builder amount(long amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The formatted amount as a string (e.g., "$49.99"). - */ - public Builder amountFormatted(String amountFormatted) { - Utils.checkNotNull(amountFormatted, "amountFormatted"); - this.amountFormatted = amountFormatted; - return this; - } - - - /** - * The currency code (e.g., "USD"). - */ - public Builder currency(String currency) { - Utils.checkNotNull(currency, "currency"); - this.currency = currency; - return this; - } - - - /** - * The currency symbol (e.g., "$"). - */ - public Builder currencySymbol(String currencySymbol) { - Utils.checkNotNull(currencySymbol, "currencySymbol"); - this.currencySymbol = currencySymbol; - return this; - } - - public SchemasCommerceSubscriptionItemCreditAmount build() { - - return new SchemasCommerceSubscriptionItemCreditAmount( - amount, amountFormatted, currency, - currencySymbol); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/components/Seats.java b/src/main/java/com/clerk/backend_api/models/components/Seats.java index 990e1c6a..e8c3d7eb 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Seats.java +++ b/src/main/java/com/clerk/backend_api/models/components/Seats.java @@ -34,12 +34,12 @@ public class Seats { */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tiers") - private Optional> tiers; + private Optional> tiers; @JsonCreator public Seats( @JsonProperty("quantity") Optional quantity, - @JsonProperty("tiers") Optional> tiers) { + @JsonProperty("tiers") Optional> tiers) { Utils.checkNotNull(quantity, "quantity"); Utils.checkNotNull(tiers, "tiers"); this.quantity = quantity; @@ -63,8 +63,8 @@ public Optional quantity() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional> tiers() { - return (Optional>) tiers; + public Optional> tiers() { + return (Optional>) tiers; } public static Builder builder() { @@ -94,7 +94,7 @@ public Seats withQuantity(Optional quantity) { /** * Per-unit cost breakdown by pricing tier */ - public Seats withTiers(List tiers) { + public Seats withTiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = Optional.ofNullable(tiers); return this; @@ -104,7 +104,7 @@ public Seats withTiers(List tiers) { /** * Per-unit cost breakdown by pricing tier */ - public Seats withTiers(Optional> tiers) { + public Seats withTiers(Optional> tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; @@ -142,7 +142,7 @@ public final static class Builder { private Optional quantity = Optional.empty(); - private Optional> tiers = Optional.empty(); + private Optional> tiers = Optional.empty(); private Builder() { // force use of static builder() method @@ -171,7 +171,7 @@ public Builder quantity(Optional quantity) { /** * Per-unit cost breakdown by pricing tier */ - public Builder tiers(List tiers) { + public Builder tiers(List tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = Optional.ofNullable(tiers); return this; @@ -180,7 +180,7 @@ public Builder tiers(List tiers) { /** * Per-unit cost breakdown by pricing tier */ - public Builder tiers(Optional> tiers) { + public Builder tiers(Optional> tiers) { Utils.checkNotNull(tiers, "tiers"); this.tiers = tiers; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/Totals.java b/src/main/java/com/clerk/backend_api/models/components/Totals.java index 52776546..c1e8e267 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Totals.java +++ b/src/main/java/com/clerk/backend_api/models/components/Totals.java @@ -41,7 +41,7 @@ public class Totals { @JsonInclude(Include.NON_ABSENT) @JsonProperty("per_unit_totals") - private Optional> perUnitTotals; + private Optional> perUnitTotals; @JsonInclude(Include.NON_ABSENT) @@ -61,7 +61,7 @@ public Totals( @JsonProperty("base_fee") CommerceMoneyResponse baseFee, @JsonProperty("tax_total") CommerceMoneyResponse taxTotal, @JsonProperty("grand_total") CommerceMoneyResponse grandTotal, - @JsonProperty("per_unit_totals") Optional> perUnitTotals, + @JsonProperty("per_unit_totals") Optional> perUnitTotals, @JsonProperty("credits") JsonNullable credits, @JsonProperty("discounts") JsonNullable discounts) { Utils.checkNotNull(subtotal, "subtotal"); @@ -112,8 +112,8 @@ public CommerceMoneyResponse grandTotal() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> perUnitTotals() { - return (Optional>) perUnitTotals; + public Optional> perUnitTotals() { + return (Optional>) perUnitTotals; } @SuppressWarnings("unchecked") @@ -160,14 +160,14 @@ public Totals withGrandTotal(CommerceMoneyResponse grandTotal) { return this; } - public Totals withPerUnitTotals(List perUnitTotals) { + public Totals withPerUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Totals withPerUnitTotals(Optional> perUnitTotals) { + public Totals withPerUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; @@ -253,7 +253,7 @@ public final static class Builder { private CommerceMoneyResponse grandTotal; - private Optional> perUnitTotals = Optional.empty(); + private Optional> perUnitTotals = Optional.empty(); private JsonNullable credits = JsonNullable.undefined(); @@ -292,13 +292,13 @@ public Builder grandTotal(CommerceMoneyResponse grandTotal) { } - public Builder perUnitTotals(List perUnitTotals) { + public Builder perUnitTotals(List perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = Optional.ofNullable(perUnitTotals); return this; } - public Builder perUnitTotals(Optional> perUnitTotals) { + public Builder perUnitTotals(Optional> perUnitTotals) { Utils.checkNotNull(perUnitTotals, "perUnitTotals"); this.perUnitTotals = perUnitTotals; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/TrustedDevice.java b/src/main/java/com/clerk/backend_api/models/components/TrustedDevice.java new file mode 100644 index 00000000..c8f62ab9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/TrustedDevice.java @@ -0,0 +1,511 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class TrustedDevice { + /** + * String representing the object's type. + */ + @JsonProperty("object") + private TrustedDeviceObject object; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("platform") + private Platform platform; + + + @JsonProperty("app_identifier") + private String appIdentifier; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private JsonNullable name; + + + @JsonProperty("algorithm") + private Algorithm algorithm; + + + @JsonProperty("status") + private TrustedDeviceStatus status; + + /** + * Unix timestamp of creation in milliseconds. + */ + @JsonProperty("created_at") + private long createdAt; + + /** + * Unix timestamp of the last update in milliseconds. + */ + @JsonProperty("updated_at") + private long updatedAt; + + /** + * Unix timestamp of the last use in milliseconds. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("last_used_at") + private JsonNullable lastUsedAt; + + /** + * Unix timestamp of revocation in milliseconds. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("revoked_at") + private JsonNullable revokedAt; + + @JsonCreator + public TrustedDevice( + @JsonProperty("object") TrustedDeviceObject object, + @JsonProperty("id") String id, + @JsonProperty("platform") Platform platform, + @JsonProperty("app_identifier") String appIdentifier, + @JsonProperty("name") JsonNullable name, + @JsonProperty("algorithm") Algorithm algorithm, + @JsonProperty("status") TrustedDeviceStatus status, + @JsonProperty("created_at") long createdAt, + @JsonProperty("updated_at") long updatedAt, + @JsonProperty("last_used_at") JsonNullable lastUsedAt, + @JsonProperty("revoked_at") JsonNullable revokedAt) { + Utils.checkNotNull(object, "object"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(platform, "platform"); + Utils.checkNotNull(appIdentifier, "appIdentifier"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(algorithm, "algorithm"); + Utils.checkNotNull(status, "status"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(updatedAt, "updatedAt"); + Utils.checkNotNull(lastUsedAt, "lastUsedAt"); + Utils.checkNotNull(revokedAt, "revokedAt"); + this.object = object; + this.id = id; + this.platform = platform; + this.appIdentifier = appIdentifier; + this.name = name; + this.algorithm = algorithm; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.lastUsedAt = lastUsedAt; + this.revokedAt = revokedAt; + } + + public TrustedDevice( + TrustedDeviceObject object, + String id, + Platform platform, + String appIdentifier, + Algorithm algorithm, + TrustedDeviceStatus status, + long createdAt, + long updatedAt) { + this(object, id, platform, + appIdentifier, JsonNullable.undefined(), algorithm, + status, createdAt, updatedAt, + JsonNullable.undefined(), JsonNullable.undefined()); + } + + /** + * String representing the object's type. + */ + @JsonIgnore + public TrustedDeviceObject object() { + return object; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Platform platform() { + return platform; + } + + @JsonIgnore + public String appIdentifier() { + return appIdentifier; + } + + @JsonIgnore + public JsonNullable name() { + return name; + } + + @JsonIgnore + public Algorithm algorithm() { + return algorithm; + } + + @JsonIgnore + public TrustedDeviceStatus status() { + return status; + } + + /** + * Unix timestamp of creation in milliseconds. + */ + @JsonIgnore + public long createdAt() { + return createdAt; + } + + /** + * Unix timestamp of the last update in milliseconds. + */ + @JsonIgnore + public long updatedAt() { + return updatedAt; + } + + /** + * Unix timestamp of the last use in milliseconds. + */ + @JsonIgnore + public JsonNullable lastUsedAt() { + return lastUsedAt; + } + + /** + * Unix timestamp of revocation in milliseconds. + */ + @JsonIgnore + public JsonNullable revokedAt() { + return revokedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * String representing the object's type. + */ + public TrustedDevice withObject(TrustedDeviceObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + public TrustedDevice withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public TrustedDevice withPlatform(Platform platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = platform; + return this; + } + + public TrustedDevice withAppIdentifier(String appIdentifier) { + Utils.checkNotNull(appIdentifier, "appIdentifier"); + this.appIdentifier = appIdentifier; + return this; + } + + public TrustedDevice withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = JsonNullable.of(name); + return this; + } + + public TrustedDevice withName(JsonNullable name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TrustedDevice withAlgorithm(Algorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + public TrustedDevice withStatus(TrustedDeviceStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + /** + * Unix timestamp of creation in milliseconds. + */ + public TrustedDevice withCreatedAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Unix timestamp of the last update in milliseconds. + */ + public TrustedDevice withUpdatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + /** + * Unix timestamp of the last use in milliseconds. + */ + public TrustedDevice withLastUsedAt(long lastUsedAt) { + Utils.checkNotNull(lastUsedAt, "lastUsedAt"); + this.lastUsedAt = JsonNullable.of(lastUsedAt); + return this; + } + + /** + * Unix timestamp of the last use in milliseconds. + */ + public TrustedDevice withLastUsedAt(JsonNullable lastUsedAt) { + Utils.checkNotNull(lastUsedAt, "lastUsedAt"); + this.lastUsedAt = lastUsedAt; + return this; + } + + /** + * Unix timestamp of revocation in milliseconds. + */ + public TrustedDevice withRevokedAt(long revokedAt) { + Utils.checkNotNull(revokedAt, "revokedAt"); + this.revokedAt = JsonNullable.of(revokedAt); + return this; + } + + /** + * Unix timestamp of revocation in milliseconds. + */ + public TrustedDevice withRevokedAt(JsonNullable revokedAt) { + Utils.checkNotNull(revokedAt, "revokedAt"); + this.revokedAt = revokedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TrustedDevice other = (TrustedDevice) o; + return + Utils.enhancedDeepEquals(this.object, other.object) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.platform, other.platform) && + Utils.enhancedDeepEquals(this.appIdentifier, other.appIdentifier) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.algorithm, other.algorithm) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) && + Utils.enhancedDeepEquals(this.lastUsedAt, other.lastUsedAt) && + Utils.enhancedDeepEquals(this.revokedAt, other.revokedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + object, id, platform, + appIdentifier, name, algorithm, + status, createdAt, updatedAt, + lastUsedAt, revokedAt); + } + + @Override + public String toString() { + return Utils.toString(TrustedDevice.class, + "object", object, + "id", id, + "platform", platform, + "appIdentifier", appIdentifier, + "name", name, + "algorithm", algorithm, + "status", status, + "createdAt", createdAt, + "updatedAt", updatedAt, + "lastUsedAt", lastUsedAt, + "revokedAt", revokedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TrustedDeviceObject object; + + private String id; + + private Platform platform; + + private String appIdentifier; + + private JsonNullable name = JsonNullable.undefined(); + + private Algorithm algorithm; + + private TrustedDeviceStatus status; + + private Long createdAt; + + private Long updatedAt; + + private JsonNullable lastUsedAt = JsonNullable.undefined(); + + private JsonNullable revokedAt = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + + /** + * String representing the object's type. + */ + public Builder object(TrustedDeviceObject object) { + Utils.checkNotNull(object, "object"); + this.object = object; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder platform(Platform platform) { + Utils.checkNotNull(platform, "platform"); + this.platform = platform; + return this; + } + + + public Builder appIdentifier(String appIdentifier) { + Utils.checkNotNull(appIdentifier, "appIdentifier"); + this.appIdentifier = appIdentifier; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = JsonNullable.of(name); + return this; + } + + public Builder name(JsonNullable name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder algorithm(Algorithm algorithm) { + Utils.checkNotNull(algorithm, "algorithm"); + this.algorithm = algorithm; + return this; + } + + + public Builder status(TrustedDeviceStatus status) { + Utils.checkNotNull(status, "status"); + this.status = status; + return this; + } + + + /** + * Unix timestamp of creation in milliseconds. + */ + public Builder createdAt(long createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Unix timestamp of the last update in milliseconds. + */ + public Builder updatedAt(long updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + + /** + * Unix timestamp of the last use in milliseconds. + */ + public Builder lastUsedAt(long lastUsedAt) { + Utils.checkNotNull(lastUsedAt, "lastUsedAt"); + this.lastUsedAt = JsonNullable.of(lastUsedAt); + return this; + } + + /** + * Unix timestamp of the last use in milliseconds. + */ + public Builder lastUsedAt(JsonNullable lastUsedAt) { + Utils.checkNotNull(lastUsedAt, "lastUsedAt"); + this.lastUsedAt = lastUsedAt; + return this; + } + + + /** + * Unix timestamp of revocation in milliseconds. + */ + public Builder revokedAt(long revokedAt) { + Utils.checkNotNull(revokedAt, "revokedAt"); + this.revokedAt = JsonNullable.of(revokedAt); + return this; + } + + /** + * Unix timestamp of revocation in milliseconds. + */ + public Builder revokedAt(JsonNullable revokedAt) { + Utils.checkNotNull(revokedAt, "revokedAt"); + this.revokedAt = revokedAt; + return this; + } + + public TrustedDevice build() { + + return new TrustedDevice( + object, id, platform, + appIdentifier, name, algorithm, + status, createdAt, updatedAt, + lastUsedAt, revokedAt); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceList.java b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceList.java new file mode 100644 index 00000000..21071a43 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceList.java @@ -0,0 +1,136 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * TrustedDeviceList + * + *

Success + */ +public class TrustedDeviceList { + + @JsonProperty("data") + private List data; + + /** + * Total number of trusted devices + */ + @JsonProperty("total_count") + private long totalCount; + + @JsonCreator + public TrustedDeviceList( + @JsonProperty("data") List data, + @JsonProperty("total_count") long totalCount) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(totalCount, "totalCount"); + this.data = data; + this.totalCount = totalCount; + } + + @JsonIgnore + public List data() { + return data; + } + + /** + * Total number of trusted devices + */ + @JsonIgnore + public long totalCount() { + return totalCount; + } + + public static Builder builder() { + return new Builder(); + } + + + public TrustedDeviceList withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + /** + * Total number of trusted devices + */ + public TrustedDeviceList withTotalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TrustedDeviceList other = (TrustedDeviceList) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.totalCount, other.totalCount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, totalCount); + } + + @Override + public String toString() { + return Utils.toString(TrustedDeviceList.class, + "data", data, + "totalCount", totalCount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Long totalCount; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + /** + * Total number of trusted devices + */ + public Builder totalCount(long totalCount) { + Utils.checkNotNull(totalCount, "totalCount"); + this.totalCount = totalCount; + return this; + } + + public TrustedDeviceList build() { + + return new TrustedDeviceList( + data, totalCount); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceObject.java b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceObject.java new file mode 100644 index 00000000..8b3e0af9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceObject.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * TrustedDeviceObject + * + *

String representing the object's type. + */ +public enum TrustedDeviceObject { + TRUSTED_DEVICE("trusted_device"); + + @JsonValue + private final String value; + + TrustedDeviceObject(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (TrustedDeviceObject o: TrustedDeviceObject.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceStatus.java b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceStatus.java new file mode 100644 index 00000000..c8073966 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/components/TrustedDeviceStatus.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.components; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum TrustedDeviceStatus { + ACTIVE("active"), + REVOKED("revoked"); + + @JsonValue + private final String value; + + TrustedDeviceStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (TrustedDeviceStatus o: TrustedDeviceStatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/components/Two.java b/src/main/java/com/clerk/backend_api/models/components/Two.java index fde05af7..a1ad2522 100644 --- a/src/main/java/com/clerk/backend_api/models/components/Two.java +++ b/src/main/java/com/clerk/backend_api/models/components/Two.java @@ -61,6 +61,22 @@ public class Two { @JsonProperty("idp_certificate") private Optional idpCertificate; + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_issued_at") + private Optional idpCertificateIssuedAt; + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("idp_certificate_expires_at") + private Optional idpCertificateExpiresAt; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("idp_metadata_url") @@ -131,6 +147,12 @@ public class Two { @JsonProperty("force_authn") private boolean forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("login_hint") + private SAMLConnectionLoginHint loginHint; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("enterprise_connection_id") @@ -158,6 +180,8 @@ public Two( @JsonProperty("idp_entity_id") Optional idpEntityId, @JsonProperty("idp_sso_url") Optional idpSsoUrl, @JsonProperty("idp_certificate") Optional idpCertificate, + @JsonProperty("idp_certificate_issued_at") Optional idpCertificateIssuedAt, + @JsonProperty("idp_certificate_expires_at") Optional idpCertificateExpiresAt, @JsonProperty("idp_metadata_url") JsonNullable idpMetadataUrl, @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("acs_url") String acsUrl, @@ -174,6 +198,7 @@ public Two( @JsonProperty("disable_additional_identifications") boolean disableAdditionalIdentifications, @JsonProperty("allow_organization_account_linking") boolean allowOrganizationAccountLinking, @JsonProperty("force_authn") boolean forceAuthn, + @JsonProperty("login_hint") SAMLConnectionLoginHint loginHint, @JsonProperty("enterprise_connection_id") JsonNullable enterpriseConnectionId, @JsonProperty("created_at") long createdAt, @JsonProperty("updated_at") long updatedAt) { @@ -185,6 +210,8 @@ public Two( Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); Utils.checkNotNull(idpCertificate, "idpCertificate"); + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); Utils.checkNotNull(idpMetadata, "idpMetadata"); Utils.checkNotNull(acsUrl, "acsUrl"); @@ -201,6 +228,7 @@ public Two( Utils.checkNotNull(disableAdditionalIdentifications, "disableAdditionalIdentifications"); Utils.checkNotNull(allowOrganizationAccountLinking, "allowOrganizationAccountLinking"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(updatedAt, "updatedAt"); @@ -212,6 +240,8 @@ public Two( this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; this.idpCertificate = idpCertificate; + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + this.idpCertificateExpiresAt = idpCertificateExpiresAt; this.idpMetadataUrl = idpMetadataUrl; this.idpMetadata = idpMetadata; this.acsUrl = acsUrl; @@ -228,6 +258,7 @@ public Two( this.disableAdditionalIdentifications = disableAdditionalIdentifications; this.allowOrganizationAccountLinking = allowOrganizationAccountLinking; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; this.enterpriseConnectionId = enterpriseConnectionId; this.createdAt = createdAt; this.updatedAt = updatedAt; @@ -250,16 +281,18 @@ public Two( boolean disableAdditionalIdentifications, boolean allowOrganizationAccountLinking, boolean forceAuthn, + SAMLConnectionLoginHint loginHint, long createdAt, long updatedAt) { this(object, id, name, Optional.empty(), domains, Optional.empty(), - Optional.empty(), Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), acsUrl, spEntityId, - spMetadataUrl, JsonNullable.undefined(), Optional.empty(), - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(), + acsUrl, spEntityId, spMetadataUrl, + JsonNullable.undefined(), Optional.empty(), active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, JsonNullable.undefined(), createdAt, updatedAt); } @@ -308,6 +341,24 @@ public Optional idpCertificate() { return idpCertificate; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateIssuedAt() { + return idpCertificateIssuedAt; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + @JsonIgnore + public Optional idpCertificateExpiresAt() { + return idpCertificateExpiresAt; + } + @JsonIgnore public JsonNullable idpMetadataUrl() { return idpMetadataUrl; @@ -392,6 +443,14 @@ public boolean forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public SAMLConnectionLoginHint loginHint() { + return loginHint; + } + @JsonIgnore public JsonNullable enterpriseConnectionId() { return enterpriseConnectionId; @@ -504,6 +563,48 @@ public Two withIdpCertificate(Optional idpCertificate) { return this; } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Two withIdpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Two withIdpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Two withIdpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Two withIdpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + public Two withIdpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -628,6 +729,15 @@ public Two withForceAuthn(boolean forceAuthn) { return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Two withLoginHint(SAMLConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public Two withEnterpriseConnectionId(String enterpriseConnectionId) { Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); @@ -676,6 +786,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpEntityId, other.idpEntityId) && Utils.enhancedDeepEquals(this.idpSsoUrl, other.idpSsoUrl) && Utils.enhancedDeepEquals(this.idpCertificate, other.idpCertificate) && + Utils.enhancedDeepEquals(this.idpCertificateIssuedAt, other.idpCertificateIssuedAt) && + Utils.enhancedDeepEquals(this.idpCertificateExpiresAt, other.idpCertificateExpiresAt) && Utils.enhancedDeepEquals(this.idpMetadataUrl, other.idpMetadataUrl) && Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.acsUrl, other.acsUrl) && @@ -692,6 +804,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.disableAdditionalIdentifications, other.disableAdditionalIdentifications) && Utils.enhancedDeepEquals(this.allowOrganizationAccountLinking, other.allowOrganizationAccountLinking) && Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint) && Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); @@ -702,12 +815,13 @@ public int hashCode() { return Utils.enhancedHash( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, enterpriseConnectionId, createdAt, updatedAt); } @@ -722,6 +836,8 @@ public String toString() { "idpEntityId", idpEntityId, "idpSsoUrl", idpSsoUrl, "idpCertificate", idpCertificate, + "idpCertificateIssuedAt", idpCertificateIssuedAt, + "idpCertificateExpiresAt", idpCertificateExpiresAt, "idpMetadataUrl", idpMetadataUrl, "idpMetadata", idpMetadata, "acsUrl", acsUrl, @@ -738,6 +854,7 @@ public String toString() { "disableAdditionalIdentifications", disableAdditionalIdentifications, "allowOrganizationAccountLinking", allowOrganizationAccountLinking, "forceAuthn", forceAuthn, + "loginHint", loginHint, "enterpriseConnectionId", enterpriseConnectionId, "createdAt", createdAt, "updatedAt", updatedAt); @@ -763,6 +880,10 @@ public final static class Builder { private Optional idpCertificate = Optional.empty(); + private Optional idpCertificateIssuedAt = Optional.empty(); + + private Optional idpCertificateExpiresAt = Optional.empty(); + private JsonNullable idpMetadataUrl = JsonNullable.undefined(); private JsonNullable idpMetadata = JsonNullable.undefined(); @@ -795,6 +916,8 @@ public final static class Builder { private Boolean forceAuthn; + private SAMLConnectionLoginHint loginHint; + private JsonNullable enterpriseConnectionId = JsonNullable.undefined(); private Long createdAt; @@ -896,6 +1019,48 @@ public Builder idpCertificate(Optional idpCertificate) { } + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(long idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = Optional.ofNullable(idpCertificateIssuedAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). + * Null when no certificate is configured. + */ + public Builder idpCertificateIssuedAt(Optional idpCertificateIssuedAt) { + Utils.checkNotNull(idpCertificateIssuedAt, "idpCertificateIssuedAt"); + this.idpCertificateIssuedAt = idpCertificateIssuedAt; + return this; + } + + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(long idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = Optional.ofNullable(idpCertificateExpiresAt); + return this; + } + + /** + * Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). + * Null when no certificate is configured. + */ + public Builder idpCertificateExpiresAt(Optional idpCertificateExpiresAt) { + Utils.checkNotNull(idpCertificateExpiresAt, "idpCertificateExpiresAt"); + this.idpCertificateExpiresAt = idpCertificateExpiresAt; + return this; + } + + public Builder idpMetadataUrl(String idpMetadataUrl) { Utils.checkNotNull(idpMetadataUrl, "idpMetadataUrl"); this.idpMetadataUrl = JsonNullable.of(idpMetadataUrl); @@ -1035,6 +1200,16 @@ public Builder forceAuthn(boolean forceAuthn) { } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(SAMLConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + + public Builder enterpriseConnectionId(String enterpriseConnectionId) { Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); this.enterpriseConnectionId = JsonNullable.of(enterpriseConnectionId); @@ -1072,12 +1247,13 @@ public Two build() { return new Two( object, id, name, domain, domains, idpEntityId, - idpSsoUrl, idpCertificate, idpMetadataUrl, - idpMetadata, acsUrl, spEntityId, - spMetadataUrl, organizationId, attributeMapping, - active, provider, userCount, - syncUserAttributes, allowSubdomains, allowIdpInitiated, - disableAdditionalIdentifications, allowOrganizationAccountLinking, forceAuthn, + idpSsoUrl, idpCertificate, idpCertificateIssuedAt, + idpCertificateExpiresAt, idpMetadataUrl, idpMetadata, + acsUrl, spEntityId, spMetadataUrl, + organizationId, attributeMapping, active, + provider, userCount, syncUserAttributes, + allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, + allowOrganizationAccountLinking, forceAuthn, loginHint, enterpriseConnectionId, createdAt, updatedAt); } diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java index b62b74ab..200a73fd 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationGoogleOneTapErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationGoogleOneTapErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationGoogleOneTapErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationGoogleOneTapErrorClerkError withCode(String code) { return this; } - public VerificationGoogleOneTapErrorClerkError withMeta(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta meta) { + public VerificationGoogleOneTapErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationGoogleOneTapErrorClerkError withMeta(Optional meta) { + public VerificationGoogleOneTapErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorExternalAccountWithVerificationVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java index fe814f55..1ac45de6 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationOauthErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationOauthErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationOauthErrorClerkError withCode(String code) { return this; } - public VerificationOauthErrorClerkError withMeta(ClerkErrorErrorExternalAccountWithVerificationMeta meta) { + public VerificationOauthErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationOauthErrorClerkError withMeta(Optional meta) { + public VerificationOauthErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorExternalAccountWithVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java index be604a96..9896ddae 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationOauthErrorEnterpriseAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationOauthErrorEnterpriseAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationOauthErrorEnterpriseAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationOauthErrorEnterpriseAccountClerkError withCode(String code) { return this; } - public VerificationOauthErrorEnterpriseAccountClerkError withMeta(ClerkErrorErrorEnterpriseAccountVerificationMeta meta) { + public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Optional meta) { + public VerificationOauthErrorEnterpriseAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorEnterpriseAccountVerificationMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java index c5600162..c5312065 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSAMLErrorSAMLAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSAMLErrorSAMLAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSAMLErrorSAMLAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSAMLErrorSAMLAccountClerkError withCode(String code) { return this; } - public VerificationSAMLErrorSAMLAccountClerkError withMeta(ClerkErrorErrorSAMLAccountMeta meta) { + public VerificationSAMLErrorSAMLAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSAMLErrorSAMLAccountClerkError withMeta(Optional meta) { + public VerificationSAMLErrorSAMLAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorSAMLAccountMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java index ad3a5314..37d96234 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSamlErrorClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSamlErrorClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSamlErrorClerkError withCode(String code) { return this; } - public VerificationSamlErrorClerkError withMeta(ClerkErrorErrorMeta meta) { + public VerificationSamlErrorClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSamlErrorClerkError withMeta(Optional meta) { + public VerificationSamlErrorClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java index 04484d5c..8b4fba88 100644 --- a/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java +++ b/src/main/java/com/clerk/backend_api/models/components/VerificationSamlErrorEnterpriseAccountClerkError.java @@ -9,9 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; @@ -31,14 +33,14 @@ public class VerificationSamlErrorEnterpriseAccountClerkError { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public VerificationSamlErrorEnterpriseAccountClerkError( @JsonProperty("message") String message, @JsonProperty("long_message") String longMessage, @JsonProperty("code") String code, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(message, "message"); Utils.checkNotNull(longMessage, "longMessage"); Utils.checkNotNull(code, "code"); @@ -74,8 +76,8 @@ public String code() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -101,14 +103,14 @@ public VerificationSamlErrorEnterpriseAccountClerkError withCode(String code) { return this; } - public VerificationSamlErrorEnterpriseAccountClerkError withMeta(ClerkErrorErrorEnterpriseAccountMeta meta) { + public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Optional meta) { + public VerificationSamlErrorEnterpriseAccountClerkError withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -155,7 +157,7 @@ public final static class Builder { private String code; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -183,13 +185,13 @@ public Builder code(String code) { } - public Builder meta(ClerkErrorErrorEnterpriseAccountMeta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java b/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java index 89eeb7f5..ea75353a 100644 --- a/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java +++ b/src/main/java/com/clerk/backend_api/models/errors/ClerkErrors.java @@ -12,12 +12,14 @@ import jakarta.annotation.Nullable; import java.io.InputStream; import java.lang.Deprecated; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.lang.Throwable; import java.net.http.HttpResponse; import java.util.List; +import java.util.Map; import java.util.Optional; @SuppressWarnings("serial") @@ -60,7 +62,7 @@ public Optional> errors } @Deprecated - public Optional meta() { + public Optional> meta() { return data().flatMap(Data::meta); } @@ -87,12 +89,12 @@ public static class Data { @JsonInclude(Include.NON_ABSENT) @JsonProperty("meta") - private Optional meta; + private Optional> meta; @JsonCreator public Data( @JsonProperty("errors") List errors, - @JsonProperty("meta") Optional meta) { + @JsonProperty("meta") Optional> meta) { Utils.checkNotNull(errors, "errors"); Utils.checkNotNull(meta, "meta"); this.errors = errors; @@ -111,8 +113,8 @@ public List errors() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional meta() { - return (Optional) meta; + public Optional> meta() { + return (Optional>) meta; } public static Builder builder() { @@ -126,14 +128,14 @@ public Data withErrors(List return this; } - public Data withMeta(Meta meta) { + public Data withMeta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Data withMeta(Optional meta) { + public Data withMeta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; @@ -171,7 +173,7 @@ public final static class Builder { private List errors; - private Optional meta = Optional.empty(); + private Optional> meta = Optional.empty(); private Builder() { // force use of static builder() method @@ -185,13 +187,13 @@ public Builder errors(List e } - public Builder meta(Meta meta) { + public Builder meta(Map meta) { Utils.checkNotNull(meta, "meta"); this.meta = Optional.ofNullable(meta); return this; } - public Builder meta(Optional meta) { + public Builder meta(Optional> meta) { Utils.checkNotNull(meta, "meta"); this.meta = meta; return this; diff --git a/src/main/java/com/clerk/backend_api/models/errors/Meta.java b/src/main/java/com/clerk/backend_api/models/errors/Meta.java deleted file mode 100644 index 113d04e5..00000000 --- a/src/main/java/com/clerk/backend_api/models/errors/Meta.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.clerk.backend_api.models.errors; - -import com.clerk.backend_api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.lang.Override; -import java.lang.String; - - -public class Meta { - @JsonCreator - public Meta() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(Meta.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public Meta build() { - - return new Meta( - ); - } - - } -} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBody.java index d9caf8d7..3d3012b7 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateEmailAddressRequestBody.java @@ -3,12 +3,14 @@ */ package com.clerk.backend_api.models.operations; +import com.clerk.backend_api.utils.LazySingletonValue; import com.clerk.backend_api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; import java.lang.Override; import java.lang.String; @@ -43,27 +45,39 @@ public class CreateEmailAddressRequestBody { @JsonProperty("primary") private JsonNullable primary; + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("notify_primary_email_address_changed") + private JsonNullable notifyPrimaryEmailAddressChanged; + @JsonCreator public CreateEmailAddressRequestBody( @JsonProperty("user_id") String userId, @JsonProperty("email_address") String emailAddress, @JsonProperty("verified") JsonNullable verified, - @JsonProperty("primary") JsonNullable primary) { + @JsonProperty("primary") JsonNullable primary, + @JsonProperty("notify_primary_email_address_changed") JsonNullable notifyPrimaryEmailAddressChanged) { Utils.checkNotNull(userId, "userId"); Utils.checkNotNull(emailAddress, "emailAddress"); Utils.checkNotNull(verified, "verified"); Utils.checkNotNull(primary, "primary"); + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); this.userId = userId; this.emailAddress = emailAddress; this.verified = verified; this.primary = primary; + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; } public CreateEmailAddressRequestBody( String userId, String emailAddress) { this(userId, emailAddress, JsonNullable.undefined(), - JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -99,6 +113,16 @@ public JsonNullable primary() { return primary; } + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + @JsonIgnore + public JsonNullable notifyPrimaryEmailAddressChanged() { + return notifyPrimaryEmailAddressChanged; + } + public static Builder builder() { return new Builder(); } @@ -160,6 +184,28 @@ public CreateEmailAddressRequestBody withPrimary(JsonNullable primary) return this; } + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public CreateEmailAddressRequestBody withNotifyPrimaryEmailAddressChanged(boolean notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = JsonNullable.of(notifyPrimaryEmailAddressChanged); + return this; + } + + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public CreateEmailAddressRequestBody withNotifyPrimaryEmailAddressChanged(JsonNullable notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,14 +219,15 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.userId, other.userId) && Utils.enhancedDeepEquals(this.emailAddress, other.emailAddress) && Utils.enhancedDeepEquals(this.verified, other.verified) && - Utils.enhancedDeepEquals(this.primary, other.primary); + Utils.enhancedDeepEquals(this.primary, other.primary) && + Utils.enhancedDeepEquals(this.notifyPrimaryEmailAddressChanged, other.notifyPrimaryEmailAddressChanged); } @Override public int hashCode() { return Utils.enhancedHash( userId, emailAddress, verified, - primary); + primary, notifyPrimaryEmailAddressChanged); } @Override @@ -189,7 +236,8 @@ public String toString() { "userId", userId, "emailAddress", emailAddress, "verified", verified, - "primary", primary); + "primary", primary, + "notifyPrimaryEmailAddressChanged", notifyPrimaryEmailAddressChanged); } @SuppressWarnings("UnusedReturnValue") @@ -203,6 +251,8 @@ public final static class Builder { private JsonNullable primary = JsonNullable.undefined(); + private JsonNullable notifyPrimaryEmailAddressChanged; + private Builder() { // force use of static builder() method } @@ -267,12 +317,44 @@ public Builder primary(JsonNullable primary) { return this; } + + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(boolean notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = JsonNullable.of(notifyPrimaryEmailAddressChanged); + return this; + } + + /** + * If set to `true` and the email address is created as the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(JsonNullable notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + public CreateEmailAddressRequestBody build() { + if (notifyPrimaryEmailAddressChanged == null) { + notifyPrimaryEmailAddressChanged = _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged.value(); + } return new CreateEmailAddressRequestBody( userId, emailAddress, verified, - primary); + primary, notifyPrimaryEmailAddressChanged); } + + private static final LazySingletonValue> _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged = + new LazySingletonValue<>( + "notify_primary_email_address_changed", + "false", + new TypeReference>() {}); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionLoginHint.java b/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionLoginHint.java new file mode 100644 index 00000000..6beb5b0d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionLoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * CreateEnterpriseConnectionLoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class CreateEnterpriseConnectionLoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private CreateEnterpriseConnectionMode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public CreateEnterpriseConnectionLoginHint( + @JsonProperty("mode") CreateEnterpriseConnectionMode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public CreateEnterpriseConnectionLoginHint( + CreateEnterpriseConnectionMode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public CreateEnterpriseConnectionMode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public CreateEnterpriseConnectionLoginHint withMode(CreateEnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public CreateEnterpriseConnectionLoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public CreateEnterpriseConnectionLoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateEnterpriseConnectionLoginHint other = (CreateEnterpriseConnectionLoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(CreateEnterpriseConnectionLoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private CreateEnterpriseConnectionMode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(CreateEnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public CreateEnterpriseConnectionLoginHint build() { + + return new CreateEnterpriseConnectionLoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionMode.java b/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionMode.java new file mode 100644 index 00000000..1ef65321 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateEnterpriseConnectionMode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * CreateEnterpriseConnectionMode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum CreateEnterpriseConnectionMode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + CreateEnterpriseConnectionMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (CreateEnterpriseConnectionMode o: CreateEnterpriseConnectionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java index 6aa5ab2f..30b071a3 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateOrganizationDomainRequestBody.java @@ -25,8 +25,8 @@ public class CreateOrganizationDomainRequestBody { private Optional name; /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("enrollment_mode") @@ -65,8 +65,8 @@ public Optional name() { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonIgnore public Optional enrollmentMode() { @@ -106,8 +106,8 @@ public CreateOrganizationDomainRequestBody withName(Optional name) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public CreateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -117,8 +117,8 @@ public CreateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentM /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public CreateOrganizationDomainRequestBody withEnrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -207,8 +207,8 @@ public Builder name(Optional name) { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -217,8 +217,8 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyLoginHint.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyLoginHint.java new file mode 100644 index 00000000..c25bd044 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyLoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * CreateSAMLConnectionRequestBodyLoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class CreateSAMLConnectionRequestBodyLoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private CreateSAMLConnectionRequestBodyMode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public CreateSAMLConnectionRequestBodyLoginHint( + @JsonProperty("mode") CreateSAMLConnectionRequestBodyMode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public CreateSAMLConnectionRequestBodyLoginHint( + CreateSAMLConnectionRequestBodyMode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public CreateSAMLConnectionRequestBodyMode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public CreateSAMLConnectionRequestBodyLoginHint withMode(CreateSAMLConnectionRequestBodyMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public CreateSAMLConnectionRequestBodyLoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public CreateSAMLConnectionRequestBodyLoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSAMLConnectionRequestBodyLoginHint other = (CreateSAMLConnectionRequestBodyLoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(CreateSAMLConnectionRequestBodyLoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private CreateSAMLConnectionRequestBodyMode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(CreateSAMLConnectionRequestBodyMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public CreateSAMLConnectionRequestBodyLoginHint build() { + + return new CreateSAMLConnectionRequestBodyLoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyMode.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyMode.java new file mode 100644 index 00000000..da00b1ec --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSAMLConnectionRequestBodyMode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * CreateSAMLConnectionRequestBodyMode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum CreateSAMLConnectionRequestBodyMode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + CreateSAMLConnectionRequestBodyMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (CreateSAMLConnectionRequestBodyMode o: CreateSAMLConnectionRequestBodyMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java new file mode 100644 index 00000000..4ee9aa5f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBody.java @@ -0,0 +1,276 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class CreateSCIMDirectoryRequestBody { + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + @JsonProperty("enterprise_connection_id") + private String enterpriseConnectionId; + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * The identity provider for this SCIM directory. + */ + @JsonProperty("provider") + private String provider; + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("group_role_mappings") + private Optional> groupRoleMappings; + + @JsonCreator + public CreateSCIMDirectoryRequestBody( + @JsonProperty("enterprise_connection_id") String enterpriseConnectionId, + @JsonProperty("name") Optional name, + @JsonProperty("provider") String provider, + @JsonProperty("group_role_mappings") Optional> groupRoleMappings) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.enterpriseConnectionId = enterpriseConnectionId; + this.name = name; + this.provider = provider; + this.groupRoleMappings = groupRoleMappings; + } + + public CreateSCIMDirectoryRequestBody( + String enterpriseConnectionId, + String provider) { + this(enterpriseConnectionId, Optional.empty(), provider, + Optional.empty()); + } + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + @JsonIgnore + public String enterpriseConnectionId() { + return enterpriseConnectionId; + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public String provider() { + return provider; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> groupRoleMappings() { + return (Optional>) groupRoleMappings; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withEnterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public CreateSCIMDirectoryRequestBody withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public CreateSCIMDirectoryRequestBody withGroupRoleMappings(List groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = Optional.ofNullable(groupRoleMappings); + return this; + } + + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public CreateSCIMDirectoryRequestBody withGroupRoleMappings(Optional> groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = groupRoleMappings; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMDirectoryRequestBody other = (CreateSCIMDirectoryRequestBody) o; + return + Utils.enhancedDeepEquals(this.enterpriseConnectionId, other.enterpriseConnectionId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.groupRoleMappings, other.groupRoleMappings); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + enterpriseConnectionId, name, provider, + groupRoleMappings); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMDirectoryRequestBody.class, + "enterpriseConnectionId", enterpriseConnectionId, + "name", name, + "provider", provider, + "groupRoleMappings", groupRoleMappings); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String enterpriseConnectionId; + + private Optional name = Optional.empty(); + + private String provider; + + private Optional> groupRoleMappings = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the enterprise connection to associate with this SCIM directory. + */ + public Builder enterpriseConnectionId(String enterpriseConnectionId) { + Utils.checkNotNull(enterpriseConnectionId, "enterpriseConnectionId"); + this.enterpriseConnectionId = enterpriseConnectionId; + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public Builder groupRoleMappings(List groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = Optional.ofNullable(groupRoleMappings); + return this; + } + + /** + * Optional SCIM group to organization role mappings to create with the directory. + */ + public Builder groupRoleMappings(Optional> groupRoleMappings) { + Utils.checkNotNull(groupRoleMappings, "groupRoleMappings"); + this.groupRoleMappings = groupRoleMappings; + return this; + } + + public CreateSCIMDirectoryRequestBody build() { + + return new CreateSCIMDirectoryRequestBody( + enterpriseConnectionId, name, provider, + groupRoleMappings); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..6409e9a3 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryRequestBuilder.java @@ -0,0 +1,61 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.CreateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.util.Optional; + +public class CreateSCIMDirectoryRequestBuilder { + + private Optional request = Optional.empty(); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSCIMDirectoryRequestBuilder request(CreateSCIMDirectoryRequestBody request) { + Utils.checkNotNull(request, "request"); + this.request = Optional.of(request); + return this; + } + + public CreateSCIMDirectoryRequestBuilder request(Optional request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CreateSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public CreateSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + public CreateSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation, CreateSCIMDirectoryResponse> operation + = new CreateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java new file mode 100644 index 00000000..89eaf588 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public CreateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public CreateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public CreateSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public CreateSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMDirectoryResponse other = (CreateSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public CreateSCIMDirectoryResponse build() { + + return new CreateSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java new file mode 100644 index 00000000..73afa2a0 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class CreateSCIMGroupRoleMappingRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateSCIMGroupRoleMappingRequestBody requestBody; + + @JsonCreator + public CreateSCIMGroupRoleMappingRequest( + String scimDirectoryId, + CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @JsonIgnore + public CreateSCIMGroupRoleMappingRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public CreateSCIMGroupRoleMappingRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public CreateSCIMGroupRoleMappingRequest withRequestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingRequest other = (CreateSCIMGroupRoleMappingRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private CreateSCIMGroupRoleMappingRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public CreateSCIMGroupRoleMappingRequest build() { + + return new CreateSCIMGroupRoleMappingRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java new file mode 100644 index 00000000..101781d7 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBody.java @@ -0,0 +1,223 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreateSCIMGroupRoleMappingRequestBody { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("precedence") + private Optional precedence; + + @JsonCreator + public CreateSCIMGroupRoleMappingRequestBody( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("role_id") String roleId, + @JsonProperty("precedence") Optional precedence) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(roleId, "roleId"); + Utils.checkNotNull(precedence, "precedence"); + this.scimGroupId = scimGroupId; + this.roleId = roleId; + this.precedence = precedence; + } + + public CreateSCIMGroupRoleMappingRequestBody( + String scimGroupId, + String roleId) { + this(scimGroupId, roleId, Optional.empty()); + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + @JsonIgnore + public Optional precedence() { + return precedence; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public CreateSCIMGroupRoleMappingRequestBody withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public CreateSCIMGroupRoleMappingRequestBody withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public CreateSCIMGroupRoleMappingRequestBody withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public CreateSCIMGroupRoleMappingRequestBody withPrecedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingRequestBody other = (CreateSCIMGroupRoleMappingRequestBody) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.roleId, other.roleId) && + Utils.enhancedDeepEquals(this.precedence, other.precedence); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, roleId, precedence); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingRequestBody.class, + "scimGroupId", scimGroupId, + "roleId", roleId, + "precedence", precedence); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private String roleId; + + private Optional precedence = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + /** + * The precedence for this mapping. Lower values take priority when a user belongs + * to multiple mapped groups. If omitted, the mapping is appended with the + * next-highest precedence. + */ + public Builder precedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBody build() { + + return new CreateSCIMGroupRoleMappingRequestBody( + scimGroupId, roleId, precedence); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java new file mode 100644 index 00000000..eb9e6b82 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.CreateSCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class CreateSCIMGroupRoleMappingRequestBuilder { + + private String scimDirectoryId; + private CreateSCIMGroupRoleMappingRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSCIMGroupRoleMappingRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSCIMGroupRoleMappingRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder requestBody(CreateSCIMGroupRoleMappingRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public CreateSCIMGroupRoleMappingRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private CreateSCIMGroupRoleMappingRequest buildRequest() { + + CreateSCIMGroupRoleMappingRequest request = new CreateSCIMGroupRoleMappingRequest(scimDirectoryId, + requestBody); + + return request; + } + + public CreateSCIMGroupRoleMappingResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new CreateSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + CreateSCIMGroupRoleMappingRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java new file mode 100644 index 00000000..7fd56f33 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSCIMGroupRoleMappingResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSCIMGroupRoleMappingResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM group role mapping + */ + private Optional scimGroupRoleMapping; + + @JsonCreator + public CreateSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMapping) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMapping = scimGroupRoleMapping; + } + + public CreateSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM group role mapping + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMapping() { + return (Optional) scimGroupRoleMapping; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSCIMGroupRoleMappingResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSCIMGroupRoleMappingResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSCIMGroupRoleMappingResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM group role mapping + */ + public CreateSCIMGroupRoleMappingResponse withSCIMGroupRoleMapping(SCIMGroupRoleMapping scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = Optional.ofNullable(scimGroupRoleMapping); + return this; + } + + + /** + * A SCIM group role mapping + */ + public CreateSCIMGroupRoleMappingResponse withSCIMGroupRoleMapping(Optional scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = scimGroupRoleMapping; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSCIMGroupRoleMappingResponse other = (CreateSCIMGroupRoleMappingResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMapping, other.scimGroupRoleMapping); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMapping); + } + + @Override + public String toString() { + return Utils.toString(CreateSCIMGroupRoleMappingResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMapping", scimGroupRoleMapping); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMapping = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM group role mapping + */ + public Builder scimGroupRoleMapping(SCIMGroupRoleMapping scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = Optional.ofNullable(scimGroupRoleMapping); + return this; + } + + /** + * A SCIM group role mapping + */ + public Builder scimGroupRoleMapping(Optional scimGroupRoleMapping) { + Utils.checkNotNull(scimGroupRoleMapping, "scimGroupRoleMapping"); + this.scimGroupRoleMapping = scimGroupRoleMapping; + return this; + } + + public CreateSCIMGroupRoleMappingResponse build() { + + return new CreateSCIMGroupRoleMappingResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMapping); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBody.java index 249a33d5..67686699 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/CreateSignInTokenRequestBody.java @@ -24,6 +24,14 @@ public class CreateSignInTokenRequestBody { @JsonProperty("user_id") private String userId; + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("org_id") + private JsonNullable orgId; + /** * Optional parameter to specify the life duration of the sign in token in seconds. * By default, the duration is 30 days. @@ -35,16 +43,19 @@ public class CreateSignInTokenRequestBody { @JsonCreator public CreateSignInTokenRequestBody( @JsonProperty("user_id") String userId, + @JsonProperty("org_id") JsonNullable orgId, @JsonProperty("expires_in_seconds") JsonNullable expiresInSeconds) { Utils.checkNotNull(userId, "userId"); + Utils.checkNotNull(orgId, "orgId"); Utils.checkNotNull(expiresInSeconds, "expiresInSeconds"); this.userId = userId; + this.orgId = orgId; this.expiresInSeconds = expiresInSeconds; } public CreateSignInTokenRequestBody( String userId) { - this(userId, JsonNullable.undefined()); + this(userId, JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -55,6 +66,15 @@ public String userId() { return userId; } + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + @JsonIgnore + public JsonNullable orgId() { + return orgId; + } + /** * Optional parameter to specify the life duration of the sign in token in seconds. * By default, the duration is 30 days. @@ -78,6 +98,26 @@ public CreateSignInTokenRequestBody withUserId(String userId) { return this; } + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + public CreateSignInTokenRequestBody withOrgId(String orgId) { + Utils.checkNotNull(orgId, "orgId"); + this.orgId = JsonNullable.of(orgId); + return this; + } + + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + public CreateSignInTokenRequestBody withOrgId(JsonNullable orgId) { + Utils.checkNotNull(orgId, "orgId"); + this.orgId = orgId; + return this; + } + /** * Optional parameter to specify the life duration of the sign in token in seconds. * By default, the duration is 30 days. @@ -109,19 +149,21 @@ public boolean equals(java.lang.Object o) { CreateSignInTokenRequestBody other = (CreateSignInTokenRequestBody) o; return Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.orgId, other.orgId) && Utils.enhancedDeepEquals(this.expiresInSeconds, other.expiresInSeconds); } @Override public int hashCode() { return Utils.enhancedHash( - userId, expiresInSeconds); + userId, orgId, expiresInSeconds); } @Override public String toString() { return Utils.toString(CreateSignInTokenRequestBody.class, "userId", userId, + "orgId", orgId, "expiresInSeconds", expiresInSeconds); } @@ -130,6 +172,8 @@ public final static class Builder { private String userId; + private JsonNullable orgId = JsonNullable.undefined(); + private JsonNullable expiresInSeconds; private Builder() { @@ -147,6 +191,27 @@ public Builder userId(String userId) { } + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + public Builder orgId(String orgId) { + Utils.checkNotNull(orgId, "orgId"); + this.orgId = JsonNullable.of(orgId); + return this; + } + + /** + * The ID of the organization to activate when the user signs in. + * Organizations must be enabled for the instance, and the user must be a member of the organization. + */ + public Builder orgId(JsonNullable orgId) { + Utils.checkNotNull(orgId, "orgId"); + this.orgId = orgId; + return this; + } + + /** * Optional parameter to specify the life duration of the sign in token in seconds. * By default, the duration is 30 days. @@ -173,7 +238,7 @@ public CreateSignInTokenRequestBody build() { } return new CreateSignInTokenRequestBody( - userId, expiresInSeconds); + userId, orgId, expiresInSeconds); } diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java new file mode 100644 index 00000000..0d9744cc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class DeleteSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to delete + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public DeleteSCIMDirectoryRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory to delete + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to delete + */ + public DeleteSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMDirectoryRequest other = (DeleteSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to delete + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMDirectoryRequest build() { + + return new DeleteSCIMDirectoryRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..903c1f8c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.DeleteSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class DeleteSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public DeleteSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private DeleteSCIMDirectoryRequest buildRequest() { + + DeleteSCIMDirectoryRequest request = new DeleteSCIMDirectoryRequest(scimDirectoryId); + + return request; + } + + public DeleteSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new DeleteSCIMDirectory.Sync(sdkConfiguration, options, _headers); + DeleteSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java new file mode 100644 index 00000000..b4552e64 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.DeletedObject; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Deleted Object + */ + private Optional deletedObject; + + @JsonCreator + public DeleteSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional deletedObject) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(deletedObject, "deletedObject"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.deletedObject = deletedObject; + } + + public DeleteSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Deleted Object + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deletedObject() { + return (Optional) deletedObject; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Deleted Object + */ + public DeleteSCIMDirectoryResponse withDeletedObject(DeletedObject deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = Optional.ofNullable(deletedObject); + return this; + } + + + /** + * Deleted Object + */ + public DeleteSCIMDirectoryResponse withDeletedObject(Optional deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = deletedObject; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMDirectoryResponse other = (DeleteSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.deletedObject, other.deletedObject); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + deletedObject); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "deletedObject", deletedObject); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional deletedObject = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Deleted Object + */ + public Builder deletedObject(DeletedObject deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = Optional.ofNullable(deletedObject); + return this; + } + + /** + * Deleted Object + */ + public Builder deletedObject(Optional deletedObject) { + Utils.checkNotNull(deletedObject, "deletedObject"); + this.deletedObject = deletedObject; + return this; + } + + public DeleteSCIMDirectoryResponse build() { + + return new DeleteSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + deletedObject); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java new file mode 100644 index 00000000..3ff97fb4 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequest.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class DeleteSCIMGroupRoleMappingRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + /** + * The ID of the SCIM group role mapping to delete. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=mapping_id") + private String mappingId; + + @JsonCreator + public DeleteSCIMGroupRoleMappingRequest( + String scimDirectoryId, + String mappingId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(mappingId, "mappingId"); + this.scimDirectoryId = scimDirectoryId; + this.mappingId = mappingId; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + /** + * The ID of the SCIM group role mapping to delete. + */ + @JsonIgnore + public String mappingId() { + return mappingId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public DeleteSCIMGroupRoleMappingRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + /** + * The ID of the SCIM group role mapping to delete. + */ + public DeleteSCIMGroupRoleMappingRequest withMappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMGroupRoleMappingRequest other = (DeleteSCIMGroupRoleMappingRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.mappingId, other.mappingId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, mappingId); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMGroupRoleMappingRequest.class, + "scimDirectoryId", scimDirectoryId, + "mappingId", mappingId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private String mappingId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + /** + * The ID of the SCIM group role mapping to delete. + */ + public Builder mappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequest build() { + + return new DeleteSCIMGroupRoleMappingRequest( + scimDirectoryId, mappingId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java new file mode 100644 index 00000000..4c983495 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.DeleteSCIMGroupRoleMapping; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class DeleteSCIMGroupRoleMappingRequestBuilder { + + private String scimDirectoryId; + private String mappingId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSCIMGroupRoleMappingRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder mappingId(String mappingId) { + Utils.checkNotNull(mappingId, "mappingId"); + this.mappingId = mappingId; + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public DeleteSCIMGroupRoleMappingRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private DeleteSCIMGroupRoleMappingRequest buildRequest() { + + DeleteSCIMGroupRoleMappingRequest request = new DeleteSCIMGroupRoleMappingRequest(scimDirectoryId, + mappingId); + + return request; + } + + public DeleteSCIMGroupRoleMappingResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new DeleteSCIMGroupRoleMapping.Sync(sdkConfiguration, options, _headers); + DeleteSCIMGroupRoleMappingRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java new file mode 100644 index 00000000..7a5e174a --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/DeleteSCIMGroupRoleMappingResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeleted; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteSCIMGroupRoleMappingResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM group role mapping was deleted. + */ + private Optional scimGroupRoleMappingDeleted; + + @JsonCreator + public DeleteSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + } + + public DeleteSCIMGroupRoleMappingResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM group role mapping was deleted. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingDeleted() { + return (Optional) scimGroupRoleMappingDeleted; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSCIMGroupRoleMappingResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSCIMGroupRoleMappingResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSCIMGroupRoleMappingResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM group role mapping was deleted. + */ + public DeleteSCIMGroupRoleMappingResponse withSCIMGroupRoleMappingDeleted(SCIMGroupRoleMappingDeleted scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = Optional.ofNullable(scimGroupRoleMappingDeleted); + return this; + } + + + /** + * A SCIM group role mapping was deleted. + */ + public DeleteSCIMGroupRoleMappingResponse withSCIMGroupRoleMappingDeleted(Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSCIMGroupRoleMappingResponse other = (DeleteSCIMGroupRoleMappingResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingDeleted, other.scimGroupRoleMappingDeleted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingDeleted); + } + + @Override + public String toString() { + return Utils.toString(DeleteSCIMGroupRoleMappingResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingDeleted", scimGroupRoleMappingDeleted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingDeleted = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM group role mapping was deleted. + */ + public Builder scimGroupRoleMappingDeleted(SCIMGroupRoleMappingDeleted scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = Optional.ofNullable(scimGroupRoleMappingDeleted); + return this; + } + + /** + * A SCIM group role mapping was deleted. + */ + public Builder scimGroupRoleMappingDeleted(Optional scimGroupRoleMappingDeleted) { + Utils.checkNotNull(scimGroupRoleMappingDeleted, "scimGroupRoleMappingDeleted"); + this.scimGroupRoleMappingDeleted = scimGroupRoleMappingDeleted; + return this; + } + + public DeleteSCIMGroupRoleMappingResponse build() { + + return new DeleteSCIMGroupRoleMappingResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingDeleted); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java b/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java index 7a7e9411..93d5a91b 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java +++ b/src/main/java/com/clerk/backend_api/models/operations/EnrollmentMode.java @@ -11,7 +11,12 @@ public enum EnrollmentMode { MANUAL_INVITATION("manual_invitation"), AUTOMATIC_INVITATION("automatic_invitation"), - AUTOMATIC_SUGGESTION("automatic_suggestion"); + AUTOMATIC_SUGGESTION("automatic_suggestion"), + ENTERPRISE_SSO("enterprise_sso"), + MINUS_MANUAL_INVITATION("-manual_invitation"), + MINUS_AUTOMATIC_INVITATION("-automatic_invitation"), + MINUS_AUTOMATIC_SUGGESTION("-automatic_suggestion"), + MINUS_ENTERPRISE_SSO("-enterprise_sso"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java index 75c97ccf..fcbf157c 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ExtendBillingSubscriptionItemFreeTrialResponse.java @@ -3,7 +3,7 @@ */ package com.clerk.backend_api.models.operations; -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItem; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2; import com.clerk.backend_api.utils.Response; import com.clerk.backend_api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; @@ -36,22 +36,22 @@ public class ExtendBillingSubscriptionItemFreeTrialResponse implements Response /** * A commerce subscription item. */ - private Optional schemasCommerceSubscriptionItem; + private Optional commerceSubscriptionItem2; @JsonCreator public ExtendBillingSubscriptionItemFreeTrialResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional schemasCommerceSubscriptionItem) { + Optional commerceSubscriptionItem2) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; } public ExtendBillingSubscriptionItemFreeTrialResponse( @@ -91,8 +91,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional schemasCommerceSubscriptionItem() { - return (Optional) schemasCommerceSubscriptionItem; + public Optional commerceSubscriptionItem2() { + return (Optional) commerceSubscriptionItem2; } public static Builder builder() { @@ -130,9 +130,9 @@ public ExtendBillingSubscriptionItemFreeTrialResponse withRawResponse(HttpRespon /** * A commerce subscription item. */ - public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscriptionItem(SchemasCommerceSubscriptionItem schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = Optional.ofNullable(schemasCommerceSubscriptionItem); + public ExtendBillingSubscriptionItemFreeTrialResponse withCommerceSubscriptionItem2(CommerceSubscriptionItem2 commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = Optional.ofNullable(commerceSubscriptionItem2); return this; } @@ -140,9 +140,9 @@ public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscri /** * A commerce subscription item. */ - public ExtendBillingSubscriptionItemFreeTrialResponse withSchemasCommerceSubscriptionItem(Optional schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + public ExtendBillingSubscriptionItemFreeTrialResponse withCommerceSubscriptionItem2(Optional commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; return this; } @@ -159,14 +159,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.schemasCommerceSubscriptionItem, other.schemasCommerceSubscriptionItem); + Utils.enhancedDeepEquals(this.commerceSubscriptionItem2, other.commerceSubscriptionItem2); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - schemasCommerceSubscriptionItem); + commerceSubscriptionItem2); } @Override @@ -175,7 +175,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "schemasCommerceSubscriptionItem", schemasCommerceSubscriptionItem); + "commerceSubscriptionItem2", commerceSubscriptionItem2); } @SuppressWarnings("UnusedReturnValue") @@ -187,7 +187,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional schemasCommerceSubscriptionItem = Optional.empty(); + private Optional commerceSubscriptionItem2 = Optional.empty(); private Builder() { // force use of static builder() method @@ -227,18 +227,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A commerce subscription item. */ - public Builder schemasCommerceSubscriptionItem(SchemasCommerceSubscriptionItem schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = Optional.ofNullable(schemasCommerceSubscriptionItem); + public Builder commerceSubscriptionItem2(CommerceSubscriptionItem2 commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = Optional.ofNullable(commerceSubscriptionItem2); return this; } /** * A commerce subscription item. */ - public Builder schemasCommerceSubscriptionItem(Optional schemasCommerceSubscriptionItem) { - Utils.checkNotNull(schemasCommerceSubscriptionItem, "schemasCommerceSubscriptionItem"); - this.schemasCommerceSubscriptionItem = schemasCommerceSubscriptionItem; + public Builder commerceSubscriptionItem2(Optional commerceSubscriptionItem2) { + Utils.checkNotNull(commerceSubscriptionItem2, "commerceSubscriptionItem2"); + this.commerceSubscriptionItem2 = commerceSubscriptionItem2; return this; } @@ -246,7 +246,7 @@ public ExtendBillingSubscriptionItemFreeTrialResponse build() { return new ExtendBillingSubscriptionItemFreeTrialResponse( contentType, statusCode, rawResponse, - schemasCommerceSubscriptionItem); + commerceSubscriptionItem2); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java new file mode 100644 index 00000000..9094480f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class GetSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to retrieve + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public GetSCIMDirectoryRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory to retrieve + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to retrieve + */ + public GetSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSCIMDirectoryRequest other = (GetSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(GetSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to retrieve + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public GetSCIMDirectoryRequest build() { + + return new GetSCIMDirectoryRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..79b835c6 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.GetSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public GetSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public GetSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private GetSCIMDirectoryRequest buildRequest() { + + GetSCIMDirectoryRequest request = new GetSCIMDirectoryRequest(scimDirectoryId); + + return request; + } + + public GetSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new GetSCIMDirectory.Sync(sdkConfiguration, options, _headers); + GetSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java new file mode 100644 index 00000000..d3d30f90 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GetSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public GetSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public GetSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public GetSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public GetSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSCIMDirectoryResponse other = (GetSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(GetSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public GetSCIMDirectoryResponse build() { + + return new GetSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java b/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java new file mode 100644 index 00000000..67bc2d3a --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/GroupRoleMappings.java @@ -0,0 +1,274 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GroupRoleMappings { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * Optional display name for the SCIM group. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scim_group_display_name") + private Optional scimGroupDisplayName; + + /** + * The organization role ID to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("precedence") + private Optional precedence; + + @JsonCreator + public GroupRoleMappings( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("scim_group_display_name") Optional scimGroupDisplayName, + @JsonProperty("role_id") String roleId, + @JsonProperty("precedence") Optional precedence) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + Utils.checkNotNull(roleId, "roleId"); + Utils.checkNotNull(precedence, "precedence"); + this.scimGroupId = scimGroupId; + this.scimGroupDisplayName = scimGroupDisplayName; + this.roleId = roleId; + this.precedence = precedence; + } + + public GroupRoleMappings( + String scimGroupId, + String roleId) { + this(scimGroupId, Optional.empty(), roleId, + Optional.empty()); + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * Optional display name for the SCIM group. + */ + @JsonIgnore + public Optional scimGroupDisplayName() { + return scimGroupDisplayName; + } + + /** + * The organization role ID to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + @JsonIgnore + public Optional precedence() { + return precedence; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public GroupRoleMappings withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * Optional display name for the SCIM group. + */ + public GroupRoleMappings withScimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = Optional.ofNullable(scimGroupDisplayName); + return this; + } + + + /** + * Optional display name for the SCIM group. + */ + public GroupRoleMappings withScimGroupDisplayName(Optional scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + /** + * The organization role ID to assign to members of the SCIM group. + */ + public GroupRoleMappings withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public GroupRoleMappings withPrecedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public GroupRoleMappings withPrecedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupRoleMappings other = (GroupRoleMappings) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.scimGroupDisplayName, other.scimGroupDisplayName) && + Utils.enhancedDeepEquals(this.roleId, other.roleId) && + Utils.enhancedDeepEquals(this.precedence, other.precedence); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, scimGroupDisplayName, roleId, + precedence); + } + + @Override + public String toString() { + return Utils.toString(GroupRoleMappings.class, + "scimGroupId", scimGroupId, + "scimGroupDisplayName", scimGroupDisplayName, + "roleId", roleId, + "precedence", precedence); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private Optional scimGroupDisplayName = Optional.empty(); + + private String roleId; + + private Optional precedence = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * Optional display name for the SCIM group. + */ + public Builder scimGroupDisplayName(String scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = Optional.ofNullable(scimGroupDisplayName); + return this; + } + + /** + * Optional display name for the SCIM group. + */ + public Builder scimGroupDisplayName(Optional scimGroupDisplayName) { + Utils.checkNotNull(scimGroupDisplayName, "scimGroupDisplayName"); + this.scimGroupDisplayName = scimGroupDisplayName; + return this; + } + + + /** + * The organization role ID to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public Builder precedence(long precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = Optional.ofNullable(precedence); + return this; + } + + /** + * The precedence for this mapping. If omitted, precedence is assigned by array order. + */ + public Builder precedence(Optional precedence) { + Utils.checkNotNull(precedence, "precedence"); + this.precedence = precedence; + return this; + } + + public GroupRoleMappings build() { + + return new GroupRoleMappings( + scimGroupId, scimGroupDisplayName, roleId, + precedence); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java b/src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java index 02caea4e..34bfc69a 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java +++ b/src/main/java/com/clerk/backend_api/models/operations/IdentificationStatus.java @@ -12,12 +12,20 @@ * IdentificationStatus * *

Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public enum IdentificationStatus { VERIFIED("verified"), - RESERVED("reserved"); + RESERVED("reserved"), + UNVERIFIED("unverified"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java index 36a81d41..513cf95f 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ListAllOrganizationDomainsRequest.java @@ -31,7 +31,8 @@ public class ListAllOrganizationDomainsRequest { private Optional verified; /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ @SpeakeasyMetadata("queryParam:style=form,explode=false,name=enrollment_mode") private Optional> enrollmentMode; @@ -133,7 +134,8 @@ public Optional verified() { } /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -241,7 +243,8 @@ public ListAllOrganizationDomainsRequest withVerified(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -251,7 +254,8 @@ public ListAllOrganizationDomainsRequest withEnrollmentMode(List /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public ListAllOrganizationDomainsRequest withEnrollmentMode(Optional> enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -488,7 +492,8 @@ public Builder verified(Optional verified) { /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public Builder enrollmentMode(List enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -497,7 +502,8 @@ public Builder enrollmentMode(List enrollmentMode) { } /** - * Filter by enrollment mode + * Filter by enrollment mode. Prefix a value with `-` to exclude it instead + * (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. */ public Builder enrollmentMode(Optional> enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java index 91005284..45a0e253 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ListOrganizationDomainsRequest.java @@ -29,7 +29,10 @@ public class ListOrganizationDomainsRequest { private Optional verified; /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=enrollment_mode") private Optional enrollmentMode; @@ -91,7 +94,10 @@ public Optional verified() { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ @JsonIgnore public Optional enrollmentMode() { @@ -151,7 +157,10 @@ public ListOrganizationDomainsRequest withVerified(Optional verified) { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public ListOrganizationDomainsRequest withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -161,7 +170,10 @@ public ListOrganizationDomainsRequest withEnrollmentMode(String enrollmentMode) /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public ListOrganizationDomainsRequest withEnrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -295,7 +307,10 @@ public Builder verified(Optional verified) { /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -304,7 +319,10 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * Filter domains by their enrollment mode + * Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso`. + * Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters + * can be combined and compose as AND. */ public Builder enrollmentMode(Optional enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java new file mode 100644 index 00000000..388614ec --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequest.java @@ -0,0 +1,223 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListSCIMDirectoriesRequest { + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=limit") + private Optional limit; + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=offset") + private Optional offset; + + @JsonCreator + public ListSCIMDirectoriesRequest( + Optional limit, + Optional offset) { + Utils.checkNotNull(limit, "limit"); + Utils.checkNotNull(offset, "offset"); + this.limit = limit; + this.offset = offset; + } + + public ListSCIMDirectoriesRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + @JsonIgnore + public Optional limit() { + return limit; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + @JsonIgnore + public Optional offset() { + return offset; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public ListSCIMDirectoriesRequest withLimit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public ListSCIMDirectoriesRequest withLimit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public ListSCIMDirectoriesRequest withOffset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.ofNullable(offset); + return this; + } + + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public ListSCIMDirectoriesRequest withOffset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMDirectoriesRequest other = (ListSCIMDirectoriesRequest) o; + return + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + limit, offset); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMDirectoriesRequest.class, + "limit", limit, + "offset", offset); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional limit; + + private Optional offset; + + private Builder() { + // force use of static builder() method + } + + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public Builder limit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.ofNullable(limit); + return this; + } + + /** + * Applies a limit to the number of results returned. + * Can be used for paginating the results together with `offset`. + */ + public Builder limit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public Builder offset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.ofNullable(offset); + return this; + } + + /** + * Skip the first `offset` results when paginating. + * Needs to be an integer greater or equal to zero. + * To be used in conjunction with `limit`. + */ + public Builder offset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + public ListSCIMDirectoriesRequest build() { + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + if (offset == null) { + offset = _SINGLETON_VALUE_Offset.value(); + } + + return new ListSCIMDirectoriesRequest( + limit, offset); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "10", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Offset = + new LazySingletonValue<>( + "offset", + "0", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java new file mode 100644 index 00000000..b7bc05a8 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesRequestBuilder.java @@ -0,0 +1,111 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ListSCIMDirectories; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.util.Optional; + +public class ListSCIMDirectoriesRequestBuilder { + + private Optional limit = Utils.readDefaultOrConstValue( + "limit", + "10", + new TypeReference>() {}); + private Optional offset = Utils.readDefaultOrConstValue( + "offset", + "0", + new TypeReference>() {}); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSCIMDirectoriesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSCIMDirectoriesRequestBuilder limit(long limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = Optional.of(limit); + return this; + } + + public ListSCIMDirectoriesRequestBuilder limit(Optional limit) { + Utils.checkNotNull(limit, "limit"); + this.limit = limit; + return this; + } + + public ListSCIMDirectoriesRequestBuilder offset(long offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = Optional.of(offset); + return this; + } + + public ListSCIMDirectoriesRequestBuilder offset(Optional offset) { + Utils.checkNotNull(offset, "offset"); + this.offset = offset; + return this; + } + + public ListSCIMDirectoriesRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ListSCIMDirectoriesRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ListSCIMDirectoriesRequest buildRequest() { + if (limit == null) { + limit = _SINGLETON_VALUE_Limit.value(); + } + if (offset == null) { + offset = _SINGLETON_VALUE_Offset.value(); + } + + ListSCIMDirectoriesRequest request = new ListSCIMDirectoriesRequest(limit, + offset); + + return request; + } + + public ListSCIMDirectoriesResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ListSCIMDirectories.Sync(sdkConfiguration, options, _headers); + ListSCIMDirectoriesRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } + + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = + new LazySingletonValue<>( + "limit", + "10", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Offset = + new LazySingletonValue<>( + "offset", + "0", + new TypeReference>() {}); +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java new file mode 100644 index 00000000..7258b5fc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMDirectoriesResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectoryList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSCIMDirectoriesResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM directories + */ + private Optional scimDirectoryList; + + @JsonCreator + public ListSCIMDirectoriesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectoryList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectoryList = scimDirectoryList; + } + + public ListSCIMDirectoriesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM directories + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectoryList() { + return (Optional) scimDirectoryList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSCIMDirectoriesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSCIMDirectoriesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSCIMDirectoriesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM directories + */ + public ListSCIMDirectoriesResponse withSCIMDirectoryList(SCIMDirectoryList scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = Optional.ofNullable(scimDirectoryList); + return this; + } + + + /** + * A list of SCIM directories + */ + public ListSCIMDirectoriesResponse withSCIMDirectoryList(Optional scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = scimDirectoryList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMDirectoriesResponse other = (ListSCIMDirectoriesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectoryList, other.scimDirectoryList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectoryList); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMDirectoriesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectoryList", scimDirectoryList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectoryList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM directories + */ + public Builder scimDirectoryList(SCIMDirectoryList scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = Optional.ofNullable(scimDirectoryList); + return this; + } + + /** + * A list of SCIM directories + */ + public Builder scimDirectoryList(Optional scimDirectoryList) { + Utils.checkNotNull(scimDirectoryList, "scimDirectoryList"); + this.scimDirectoryList = scimDirectoryList; + return this; + } + + public ListSCIMDirectoriesResponse build() { + + return new ListSCIMDirectoriesResponse( + contentType, statusCode, rawResponse, + scimDirectoryList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java new file mode 100644 index 00000000..3a67ae55 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class ListSCIMGroupRoleMappingsRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public ListSCIMGroupRoleMappingsRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public ListSCIMGroupRoleMappingsRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMGroupRoleMappingsRequest other = (ListSCIMGroupRoleMappingsRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMGroupRoleMappingsRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ListSCIMGroupRoleMappingsRequest build() { + + return new ListSCIMGroupRoleMappingsRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java new file mode 100644 index 00000000..74d10dac --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ListSCIMGroupRoleMappings; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ListSCIMGroupRoleMappingsRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSCIMGroupRoleMappingsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSCIMGroupRoleMappingsRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ListSCIMGroupRoleMappingsRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ListSCIMGroupRoleMappingsRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ListSCIMGroupRoleMappingsRequest buildRequest() { + + ListSCIMGroupRoleMappingsRequest request = new ListSCIMGroupRoleMappingsRequest(scimDirectoryId); + + return request; + } + + public ListSCIMGroupRoleMappingsResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ListSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + ListSCIMGroupRoleMappingsRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java new file mode 100644 index 00000000..384f0ae9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListSCIMGroupRoleMappingsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSCIMGroupRoleMappingsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + private Optional scimGroupRoleMappingList; + + @JsonCreator + public ListSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + } + + public ListSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingList() { + return (Optional) scimGroupRoleMappingList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSCIMGroupRoleMappingsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSCIMGroupRoleMappingsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSCIMGroupRoleMappingsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ListSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ListSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSCIMGroupRoleMappingsResponse other = (ListSCIMGroupRoleMappingsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingList, other.scimGroupRoleMappingList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + @Override + public String toString() { + return Utils.toString(ListSCIMGroupRoleMappingsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingList", scimGroupRoleMappingList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + public ListSCIMGroupRoleMappingsResponse build() { + + return new ListSCIMGroupRoleMappingsResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequest.java new file mode 100644 index 00000000..06ac9a7f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class ListUserTrustedDevicesRequest { + /** + * The ID of the user whose trusted devices are returned + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=user_id") + private String userId; + + @JsonCreator + public ListUserTrustedDevicesRequest( + String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + } + + /** + * The ID of the user whose trusted devices are returned + */ + @JsonIgnore + public String userId() { + return userId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the user whose trusted devices are returned + */ + public ListUserTrustedDevicesRequest withUserId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListUserTrustedDevicesRequest other = (ListUserTrustedDevicesRequest) o; + return + Utils.enhancedDeepEquals(this.userId, other.userId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + userId); + } + + @Override + public String toString() { + return Utils.toString(ListUserTrustedDevicesRequest.class, + "userId", userId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String userId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the user whose trusted devices are returned + */ + public Builder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public ListUserTrustedDevicesRequest build() { + + return new ListUserTrustedDevicesRequest( + userId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequestBuilder.java new file mode 100644 index 00000000..eb3e3741 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ListUserTrustedDevices; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ListUserTrustedDevicesRequestBuilder { + + private String userId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListUserTrustedDevicesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListUserTrustedDevicesRequestBuilder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public ListUserTrustedDevicesRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ListUserTrustedDevicesRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ListUserTrustedDevicesRequest buildRequest() { + + ListUserTrustedDevicesRequest request = new ListUserTrustedDevicesRequest(userId); + + return request; + } + + public ListUserTrustedDevicesResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ListUserTrustedDevices.Sync(sdkConfiguration, options, _headers); + ListUserTrustedDevicesRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesResponse.java new file mode 100644 index 00000000..7b31b6a9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ListUserTrustedDevicesResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.TrustedDeviceList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListUserTrustedDevicesResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Success + */ + private Optional trustedDeviceList; + + @JsonCreator + public ListUserTrustedDevicesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional trustedDeviceList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(trustedDeviceList, "trustedDeviceList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.trustedDeviceList = trustedDeviceList; + } + + public ListUserTrustedDevicesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional trustedDeviceList() { + return (Optional) trustedDeviceList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListUserTrustedDevicesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListUserTrustedDevicesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListUserTrustedDevicesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Success + */ + public ListUserTrustedDevicesResponse withTrustedDeviceList(TrustedDeviceList trustedDeviceList) { + Utils.checkNotNull(trustedDeviceList, "trustedDeviceList"); + this.trustedDeviceList = Optional.ofNullable(trustedDeviceList); + return this; + } + + + /** + * Success + */ + public ListUserTrustedDevicesResponse withTrustedDeviceList(Optional trustedDeviceList) { + Utils.checkNotNull(trustedDeviceList, "trustedDeviceList"); + this.trustedDeviceList = trustedDeviceList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListUserTrustedDevicesResponse other = (ListUserTrustedDevicesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.trustedDeviceList, other.trustedDeviceList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + trustedDeviceList); + } + + @Override + public String toString() { + return Utils.toString(ListUserTrustedDevicesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "trustedDeviceList", trustedDeviceList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional trustedDeviceList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Success + */ + public Builder trustedDeviceList(TrustedDeviceList trustedDeviceList) { + Utils.checkNotNull(trustedDeviceList, "trustedDeviceList"); + this.trustedDeviceList = Optional.ofNullable(trustedDeviceList); + return this; + } + + /** + * Success + */ + public Builder trustedDeviceList(Optional trustedDeviceList) { + Utils.checkNotNull(trustedDeviceList, "trustedDeviceList"); + this.trustedDeviceList = trustedDeviceList; + return this; + } + + public ListUserTrustedDevicesResponse build() { + + return new ListUserTrustedDevicesResponse( + contentType, statusCode, rawResponse, + trustedDeviceList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/LoginHint.java b/src/main/java/com/clerk/backend_api/models/operations/LoginHint.java new file mode 100644 index 00000000..1e5d3105 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/LoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * LoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class LoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private Mode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public LoginHint( + @JsonProperty("mode") Mode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public LoginHint( + Mode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public Mode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public LoginHint withMode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public LoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public LoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LoginHint other = (LoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(LoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Mode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(Mode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public LoginHint build() { + + return new LoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/Mappings.java b/src/main/java/com/clerk/backend_api/models/operations/Mappings.java new file mode 100644 index 00000000..f58d9b97 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/Mappings.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; + + +public class Mappings { + /** + * The SCIM group ID from the identity provider. + */ + @JsonProperty("scim_group_id") + private String scimGroupId; + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonProperty("role_id") + private String roleId; + + @JsonCreator + public Mappings( + @JsonProperty("scim_group_id") String scimGroupId, + @JsonProperty("role_id") String roleId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + Utils.checkNotNull(roleId, "roleId"); + this.scimGroupId = scimGroupId; + this.roleId = roleId; + } + + /** + * The SCIM group ID from the identity provider. + */ + @JsonIgnore + public String scimGroupId() { + return scimGroupId; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + @JsonIgnore + public String roleId() { + return roleId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Mappings withScimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Mappings withRoleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Mappings other = (Mappings) o; + return + Utils.enhancedDeepEquals(this.scimGroupId, other.scimGroupId) && + Utils.enhancedDeepEquals(this.roleId, other.roleId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimGroupId, roleId); + } + + @Override + public String toString() { + return Utils.toString(Mappings.class, + "scimGroupId", scimGroupId, + "roleId", roleId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimGroupId; + + private String roleId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The SCIM group ID from the identity provider. + */ + public Builder scimGroupId(String scimGroupId) { + Utils.checkNotNull(scimGroupId, "scimGroupId"); + this.scimGroupId = scimGroupId; + return this; + } + + + /** + * The ID of the organization role to assign to members of the SCIM group. + */ + public Builder roleId(String roleId) { + Utils.checkNotNull(roleId, "roleId"); + this.roleId = roleId; + return this; + } + + public Mappings build() { + + return new Mappings( + scimGroupId, roleId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/Mode.java b/src/main/java/com/clerk/backend_api/models/operations/Mode.java new file mode 100644 index 00000000..a178b95d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/Mode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * Mode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum Mode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + Mode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Mode o: Mode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/operations/One.java b/src/main/java/com/clerk/backend_api/models/operations/One.java index af385330..6f8137fb 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/One.java +++ b/src/main/java/com/clerk/backend_api/models/operations/One.java @@ -108,6 +108,13 @@ public class One { @JsonProperty("force_authn") private Optional forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private JsonNullable loginHint; + @JsonCreator public One( @JsonProperty("name") String name, @@ -121,7 +128,8 @@ public One( @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("organization_id") JsonNullable organizationId, @JsonProperty("attribute_mapping") JsonNullable attributeMapping, - @JsonProperty("force_authn") Optional forceAuthn) { + @JsonProperty("force_authn") Optional forceAuthn, + @JsonProperty("login_hint") JsonNullable loginHint) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(domain, "domain"); Utils.checkNotNull(domains, "domains"); @@ -134,6 +142,7 @@ public One( Utils.checkNotNull(organizationId, "organizationId"); Utils.checkNotNull(attributeMapping, "attributeMapping"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); this.name = name; this.domain = domain; this.domains = domains; @@ -146,6 +155,7 @@ public One( this.organizationId = organizationId; this.attributeMapping = attributeMapping; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; } public One( @@ -155,7 +165,8 @@ public One( this(name, domain, Optional.empty(), provider, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined()); } /** @@ -263,6 +274,15 @@ public Optional forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable loginHint() { + return (JsonNullable) loginHint; + } + public static Builder builder() { return new Builder(); } @@ -469,6 +489,24 @@ public One withForceAuthn(Optional forceAuthn) { return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public One withLoginHint(CreateSAMLConnectionRequestBodyLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public One withLoginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -490,7 +528,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && - Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn); + Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint); } @Override @@ -499,7 +538,8 @@ public int hashCode() { name, domain, domains, provider, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, - organizationId, attributeMapping, forceAuthn); + organizationId, attributeMapping, forceAuthn, + loginHint); } @Override @@ -516,7 +556,8 @@ public String toString() { "idpMetadata", idpMetadata, "organizationId", organizationId, "attributeMapping", attributeMapping, - "forceAuthn", forceAuthn); + "forceAuthn", forceAuthn, + "loginHint", loginHint); } @SuppressWarnings("UnusedReturnValue") @@ -547,6 +588,8 @@ public final static class Builder { private Optional forceAuthn = Optional.empty(); + private JsonNullable loginHint = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -762,13 +805,33 @@ public Builder forceAuthn(Optional forceAuthn) { return this; } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(CreateSAMLConnectionRequestBodyLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public One build() { return new One( name, domain, domains, provider, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, - organizationId, attributeMapping, forceAuthn); + organizationId, attributeMapping, forceAuthn, + loginHint); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequest.java new file mode 100644 index 00000000..c771c9ab --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequest.java @@ -0,0 +1,151 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class RemoveUserPasswordRequest { + /** + * The ID of the user whose password to remove + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=user_id") + private String userId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional requestBody; + + @JsonCreator + public RemoveUserPasswordRequest( + String userId, + Optional requestBody) { + Utils.checkNotNull(userId, "userId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.userId = userId; + this.requestBody = requestBody; + } + + public RemoveUserPasswordRequest( + String userId) { + this(userId, Optional.empty()); + } + + /** + * The ID of the user whose password to remove + */ + @JsonIgnore + public String userId() { + return userId; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional requestBody() { + return (Optional) requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the user whose password to remove + */ + public RemoveUserPasswordRequest withUserId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public RemoveUserPasswordRequest withRequestBody(RemoveUserPasswordRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public RemoveUserPasswordRequest withRequestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveUserPasswordRequest other = (RemoveUserPasswordRequest) o; + return + Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + userId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(RemoveUserPasswordRequest.class, + "userId", userId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String userId; + + private Optional requestBody = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the user whose password to remove + */ + public Builder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + + public Builder requestBody(RemoveUserPasswordRequestBody 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; + } + + public RemoveUserPasswordRequest build() { + + return new RemoveUserPasswordRequest( + userId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBody.java new file mode 100644 index 00000000..7d2869cc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBody.java @@ -0,0 +1,140 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.LazySingletonValue; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class RemoveUserPasswordRequestBody { + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sign_out_of_other_sessions") + private Optional signOutOfOtherSessions; + + @JsonCreator + public RemoveUserPasswordRequestBody( + @JsonProperty("sign_out_of_other_sessions") Optional signOutOfOtherSessions) { + Utils.checkNotNull(signOutOfOtherSessions, "signOutOfOtherSessions"); + this.signOutOfOtherSessions = signOutOfOtherSessions; + } + + public RemoveUserPasswordRequestBody() { + this(Optional.empty()); + } + + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + @JsonIgnore + public Optional signOutOfOtherSessions() { + return signOutOfOtherSessions; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + public RemoveUserPasswordRequestBody withSignOutOfOtherSessions(boolean signOutOfOtherSessions) { + Utils.checkNotNull(signOutOfOtherSessions, "signOutOfOtherSessions"); + this.signOutOfOtherSessions = Optional.ofNullable(signOutOfOtherSessions); + return this; + } + + + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + public RemoveUserPasswordRequestBody withSignOutOfOtherSessions(Optional signOutOfOtherSessions) { + Utils.checkNotNull(signOutOfOtherSessions, "signOutOfOtherSessions"); + this.signOutOfOtherSessions = signOutOfOtherSessions; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveUserPasswordRequestBody other = (RemoveUserPasswordRequestBody) o; + return + Utils.enhancedDeepEquals(this.signOutOfOtherSessions, other.signOutOfOtherSessions); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + signOutOfOtherSessions); + } + + @Override + public String toString() { + return Utils.toString(RemoveUserPasswordRequestBody.class, + "signOutOfOtherSessions", signOutOfOtherSessions); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional signOutOfOtherSessions; + + private Builder() { + // force use of static builder() method + } + + + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + public Builder signOutOfOtherSessions(boolean signOutOfOtherSessions) { + Utils.checkNotNull(signOutOfOtherSessions, "signOutOfOtherSessions"); + this.signOutOfOtherSessions = Optional.ofNullable(signOutOfOtherSessions); + return this; + } + + /** + * Set to `true` to revoke all of the user's active sessions after removing the password. + */ + public Builder signOutOfOtherSessions(Optional signOutOfOtherSessions) { + Utils.checkNotNull(signOutOfOtherSessions, "signOutOfOtherSessions"); + this.signOutOfOtherSessions = signOutOfOtherSessions; + return this; + } + + public RemoveUserPasswordRequestBody build() { + if (signOutOfOtherSessions == null) { + signOutOfOtherSessions = _SINGLETON_VALUE_SignOutOfOtherSessions.value(); + } + + return new RemoveUserPasswordRequestBody( + signOutOfOtherSessions); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_SignOutOfOtherSessions = + new LazySingletonValue<>( + "sign_out_of_other_sessions", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBuilder.java new file mode 100644 index 00000000..dd106e1b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordRequestBuilder.java @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RemoveUserPassword; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RemoveUserPasswordRequestBuilder { + + private String userId; + private Optional requestBody = Optional.empty(); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RemoveUserPasswordRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RemoveUserPasswordRequestBuilder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public RemoveUserPasswordRequestBuilder requestBody(RemoveUserPasswordRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.of(requestBody); + return this; + } + + public RemoveUserPasswordRequestBuilder requestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public RemoveUserPasswordRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RemoveUserPasswordRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RemoveUserPasswordRequest buildRequest() { + + RemoveUserPasswordRequest request = new RemoveUserPasswordRequest(userId, + requestBody); + + return request; + } + + public RemoveUserPasswordResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RemoveUserPassword.Sync(sdkConfiguration, options, _headers); + RemoveUserPasswordRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordResponse.java new file mode 100644 index 00000000..4bdef28a --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RemoveUserPasswordResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.User; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class RemoveUserPasswordResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Success + */ + private Optional user; + + @JsonCreator + public RemoveUserPasswordResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional user) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(user, "user"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.user = user; + } + + public RemoveUserPasswordResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional user() { + return (Optional) user; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RemoveUserPasswordResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RemoveUserPasswordResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RemoveUserPasswordResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Success + */ + public RemoveUserPasswordResponse withUser(User user) { + Utils.checkNotNull(user, "user"); + this.user = Optional.ofNullable(user); + return this; + } + + + /** + * Success + */ + public RemoveUserPasswordResponse withUser(Optional user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveUserPasswordResponse other = (RemoveUserPasswordResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.user, other.user); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + user); + } + + @Override + public String toString() { + return Utils.toString(RemoveUserPasswordResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "user", user); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional user = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Success + */ + public Builder user(User user) { + Utils.checkNotNull(user, "user"); + this.user = Optional.ofNullable(user); + return this; + } + + /** + * Success + */ + public Builder user(Optional user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + public RemoveUserPasswordResponse build() { + + return new RemoveUserPasswordResponse( + contentType, statusCode, rawResponse, + user); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java new file mode 100644 index 00000000..849532ad --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class ReplaceSCIMGroupRoleMappingsRequest { + /** + * The ID of the SCIM directory. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsRequest( + String scimDirectoryId, + ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + /** + * The ID of the SCIM directory. + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @JsonIgnore + public ReplaceSCIMGroupRoleMappingsRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory. + */ + public ReplaceSCIMGroupRoleMappingsRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequest withRequestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsRequest other = (ReplaceSCIMGroupRoleMappingsRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory. + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequest build() { + + return new ReplaceSCIMGroupRoleMappingsRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java new file mode 100644 index 00000000..9c693b0c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBody.java @@ -0,0 +1,106 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class ReplaceSCIMGroupRoleMappingsRequestBody { + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + @JsonProperty("mappings") + private List mappings; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsRequestBody( + @JsonProperty("mappings") List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + } + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + @JsonIgnore + public List mappings() { + return mappings; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + public ReplaceSCIMGroupRoleMappingsRequestBody withMappings(List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsRequestBody other = (ReplaceSCIMGroupRoleMappingsRequestBody) o; + return + Utils.enhancedDeepEquals(this.mappings, other.mappings); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mappings); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsRequestBody.class, + "mappings", mappings); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List mappings; + + private Builder() { + // force use of static builder() method + } + + + /** + * The desired set of mappings. Array order sets precedence (1-indexed). An empty array clears all + * mappings. + */ + public Builder mappings(List mappings) { + Utils.checkNotNull(mappings, "mappings"); + this.mappings = mappings; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBody build() { + + return new ReplaceSCIMGroupRoleMappingsRequestBody( + mappings); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java new file mode 100644 index 00000000..b794d79e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.ReplaceSCIMGroupRoleMappings; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ReplaceSCIMGroupRoleMappingsRequestBuilder { + + private String scimDirectoryId; + private ReplaceSCIMGroupRoleMappingsRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ReplaceSCIMGroupRoleMappingsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder requestBody(ReplaceSCIMGroupRoleMappingsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public ReplaceSCIMGroupRoleMappingsRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private ReplaceSCIMGroupRoleMappingsRequest buildRequest() { + + ReplaceSCIMGroupRoleMappingsRequest request = new ReplaceSCIMGroupRoleMappingsRequest(scimDirectoryId, + requestBody); + + return request; + } + + public ReplaceSCIMGroupRoleMappingsResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new ReplaceSCIMGroupRoleMappings.Sync(sdkConfiguration, options, _headers); + ReplaceSCIMGroupRoleMappingsRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java new file mode 100644 index 00000000..bdc05654 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceSCIMGroupRoleMappingsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ReplaceSCIMGroupRoleMappingsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + private Optional scimGroupRoleMappingList; + + @JsonCreator + public ReplaceSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimGroupRoleMappingList) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + } + + public ReplaceSCIMGroupRoleMappingsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimGroupRoleMappingList() { + return (Optional) scimGroupRoleMappingList; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ReplaceSCIMGroupRoleMappingsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ReplaceSCIMGroupRoleMappingsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ReplaceSCIMGroupRoleMappingsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ReplaceSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public ReplaceSCIMGroupRoleMappingsResponse withSCIMGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceSCIMGroupRoleMappingsResponse other = (ReplaceSCIMGroupRoleMappingsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimGroupRoleMappingList, other.scimGroupRoleMappingList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + @Override + public String toString() { + return Utils.toString(ReplaceSCIMGroupRoleMappingsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimGroupRoleMappingList", scimGroupRoleMappingList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimGroupRoleMappingList = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(SCIMGroupRoleMappingList scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = Optional.ofNullable(scimGroupRoleMappingList); + return this; + } + + /** + * A list of SCIM group role mappings, ordered by precedence. + */ + public Builder scimGroupRoleMappingList(Optional scimGroupRoleMappingList) { + Utils.checkNotNull(scimGroupRoleMappingList, "scimGroupRoleMappingList"); + this.scimGroupRoleMappingList = scimGroupRoleMappingList; + return this; + } + + public ReplaceSCIMGroupRoleMappingsResponse build() { + + return new ReplaceSCIMGroupRoleMappingsResponse( + contentType, statusCode, rawResponse, + scimGroupRoleMappingList); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBody.java index b05895e5..4ed5ed92 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserEmailAddressRequestBody.java @@ -11,10 +11,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; public class ReplaceUserEmailAddressRequestBody { @@ -26,26 +28,45 @@ public class ReplaceUserEmailAddressRequestBody { /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("identification_status") private Optional identificationStatus; + /** + * If set to `true`, the user's previous primary email address is notified that the + * primary email address has changed. No notification is sent when the replacement + * is the user's current primary email address. By default, no notification is sent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("notify_primary_email_address_changed") + private JsonNullable notifyPrimaryEmailAddressChanged; + @JsonCreator public ReplaceUserEmailAddressRequestBody( @JsonProperty("email_address") String emailAddress, - @JsonProperty("identification_status") Optional identificationStatus) { + @JsonProperty("identification_status") Optional identificationStatus, + @JsonProperty("notify_primary_email_address_changed") JsonNullable notifyPrimaryEmailAddressChanged) { Utils.checkNotNull(emailAddress, "emailAddress"); Utils.checkNotNull(identificationStatus, "identificationStatus"); + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); this.emailAddress = emailAddress; this.identificationStatus = identificationStatus; + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; } public ReplaceUserEmailAddressRequestBody( String emailAddress) { - this(emailAddress, Optional.empty()); + this(emailAddress, Optional.empty(), JsonNullable.undefined()); } /** @@ -58,8 +79,15 @@ public String emailAddress() { /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -67,6 +95,16 @@ public Optional identificationStatus() { return (Optional) identificationStatus; } + /** + * If set to `true`, the user's previous primary email address is notified that the + * primary email address has changed. No notification is sent when the replacement + * is the user's current primary email address. By default, no notification is sent. + */ + @JsonIgnore + public JsonNullable notifyPrimaryEmailAddressChanged() { + return notifyPrimaryEmailAddressChanged; + } + public static Builder builder() { return new Builder(); } @@ -83,8 +121,15 @@ public ReplaceUserEmailAddressRequestBody withEmailAddress(String emailAddress) /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public ReplaceUserEmailAddressRequestBody withIdentificationStatus(IdentificationStatus identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -95,8 +140,15 @@ public ReplaceUserEmailAddressRequestBody withIdentificationStatus(Identificatio /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public ReplaceUserEmailAddressRequestBody withIdentificationStatus(Optional identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -104,6 +156,28 @@ public ReplaceUserEmailAddressRequestBody withIdentificationStatus(Optional notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -115,20 +189,22 @@ public boolean equals(java.lang.Object o) { ReplaceUserEmailAddressRequestBody other = (ReplaceUserEmailAddressRequestBody) o; return Utils.enhancedDeepEquals(this.emailAddress, other.emailAddress) && - Utils.enhancedDeepEquals(this.identificationStatus, other.identificationStatus); + Utils.enhancedDeepEquals(this.identificationStatus, other.identificationStatus) && + Utils.enhancedDeepEquals(this.notifyPrimaryEmailAddressChanged, other.notifyPrimaryEmailAddressChanged); } @Override public int hashCode() { return Utils.enhancedHash( - emailAddress, identificationStatus); + emailAddress, identificationStatus, notifyPrimaryEmailAddressChanged); } @Override public String toString() { return Utils.toString(ReplaceUserEmailAddressRequestBody.class, "emailAddress", emailAddress, - "identificationStatus", identificationStatus); + "identificationStatus", identificationStatus, + "notifyPrimaryEmailAddressChanged", notifyPrimaryEmailAddressChanged); } @SuppressWarnings("UnusedReturnValue") @@ -138,6 +214,8 @@ public final static class Builder { private Optional identificationStatus; + private JsonNullable notifyPrimaryEmailAddressChanged; + private Builder() { // force use of static builder() method } @@ -155,8 +233,15 @@ public Builder emailAddress(String emailAddress) { /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public Builder identificationStatus(IdentificationStatus identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -166,8 +251,15 @@ public Builder identificationStatus(IdentificationStatus identificationStatus) { /** * Controls the status of the replacement email address. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified email + * address cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this address. + * Prefer `reserved` unless you specifically need the address left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public Builder identificationStatus(Optional identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -175,13 +267,39 @@ public Builder identificationStatus(Optional ide return this; } + + /** + * If set to `true`, the user's previous primary email address is notified that the + * primary email address has changed. No notification is sent when the replacement + * is the user's current primary email address. By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(boolean notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = JsonNullable.of(notifyPrimaryEmailAddressChanged); + return this; + } + + /** + * If set to `true`, the user's previous primary email address is notified that the + * primary email address has changed. No notification is sent when the replacement + * is the user's current primary email address. By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(JsonNullable notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + public ReplaceUserEmailAddressRequestBody build() { if (identificationStatus == null) { identificationStatus = _SINGLETON_VALUE_IdentificationStatus.value(); } + if (notifyPrimaryEmailAddressChanged == null) { + notifyPrimaryEmailAddressChanged = _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged.value(); + } return new ReplaceUserEmailAddressRequestBody( - emailAddress, identificationStatus); + emailAddress, identificationStatus, notifyPrimaryEmailAddressChanged); } @@ -190,5 +308,11 @@ public ReplaceUserEmailAddressRequestBody build() { "identification_status", "\"verified\"", new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged = + new LazySingletonValue<>( + "notify_primary_email_address_changed", + "false", + new TypeReference>() {}); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberIdentificationStatus.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberIdentificationStatus.java index 7499affb..e182d0a1 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberIdentificationStatus.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberIdentificationStatus.java @@ -12,12 +12,20 @@ * ReplaceUserPhoneNumberIdentificationStatus * *

Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public enum ReplaceUserPhoneNumberIdentificationStatus { VERIFIED("verified"), - RESERVED("reserved"); + RESERVED("reserved"), + UNVERIFIED("unverified"); @JsonValue private final String value; diff --git a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBody.java index 545de420..96f7044c 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/ReplaceUserPhoneNumberRequestBody.java @@ -26,8 +26,15 @@ public class ReplaceUserPhoneNumberRequestBody { /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("identification_status") @@ -58,8 +65,15 @@ public String phoneNumber() { /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -83,8 +97,15 @@ public ReplaceUserPhoneNumberRequestBody withPhoneNumber(String phoneNumber) { /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public ReplaceUserPhoneNumberRequestBody withIdentificationStatus(ReplaceUserPhoneNumberIdentificationStatus identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -95,8 +116,15 @@ public ReplaceUserPhoneNumberRequestBody withIdentificationStatus(ReplaceUserPho /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public ReplaceUserPhoneNumberRequestBody withIdentificationStatus(Optional identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -155,8 +183,15 @@ public Builder phoneNumber(String phoneNumber) { /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public Builder identificationStatus(ReplaceUserPhoneNumberIdentificationStatus identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); @@ -166,8 +201,15 @@ public Builder identificationStatus(ReplaceUserPhoneNumberIdentificationStatus i /** * Controls the status of the replacement phone number. Defaults to `verified`. Set to - * `reserved` to create it reserved (unverified but usable for sign-in and locked) - * instead of verified. + * `reserved` to create it reserved (unverified but usable for sign-in and locked so no + * other user can claim it), or to `unverified` to create it neither usable for sign-in + * nor locked. + * + *

**Warning:** `unverified` can lock the user out of their account. An unverified phone + * number cannot be used to sign in, so if the user has no other verified or reserved + * identifier, they will be unable to authenticate and unable to verify this number. + * Prefer `reserved` unless you specifically need the number left unclaimed — for + * example so that another user can also hold it until one of them verifies it. */ public Builder identificationStatus(Optional identificationStatus) { Utils.checkNotNull(identificationStatus, "identificationStatus"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/RequestBodyLoginHint.java b/src/main/java/com/clerk/backend_api/models/operations/RequestBodyLoginHint.java new file mode 100644 index 00000000..c9c81cae --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RequestBodyLoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * RequestBodyLoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class RequestBodyLoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private RequestBodyMode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public RequestBodyLoginHint( + @JsonProperty("mode") RequestBodyMode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public RequestBodyLoginHint( + RequestBodyMode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public RequestBodyMode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public RequestBodyLoginHint withMode(RequestBodyMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public RequestBodyLoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public RequestBodyLoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RequestBodyLoginHint other = (RequestBodyLoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(RequestBodyLoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private RequestBodyMode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(RequestBodyMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public RequestBodyLoginHint build() { + + return new RequestBodyLoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RequestBodyMode.java b/src/main/java/com/clerk/backend_api/models/operations/RequestBodyMode.java new file mode 100644 index 00000000..8bf05c51 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RequestBodyMode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * RequestBodyMode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum RequestBodyMode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + RequestBodyMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (RequestBodyMode o: RequestBodyMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java new file mode 100644 index 00000000..26dafd5b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequest.java @@ -0,0 +1,130 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class RevokeOAuthApplicationTokenRequest { + /** + * The ID of the OAuth application for which to revoke the token + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=oauth_application_id") + private String oauthApplicationId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private RevokeOAuthApplicationTokenRequestBody requestBody; + + @JsonCreator + public RevokeOAuthApplicationTokenRequest( + String oauthApplicationId, + RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.oauthApplicationId = oauthApplicationId; + this.requestBody = requestBody; + } + + /** + * The ID of the OAuth application for which to revoke the token + */ + @JsonIgnore + public String oauthApplicationId() { + return oauthApplicationId; + } + + @JsonIgnore + public RevokeOAuthApplicationTokenRequestBody requestBody() { + return requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the OAuth application for which to revoke the token + */ + public RevokeOAuthApplicationTokenRequest withOauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + public RevokeOAuthApplicationTokenRequest withRequestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenRequest other = (RevokeOAuthApplicationTokenRequest) o; + return + Utils.enhancedDeepEquals(this.oauthApplicationId, other.oauthApplicationId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + oauthApplicationId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenRequest.class, + "oauthApplicationId", oauthApplicationId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String oauthApplicationId; + + private RevokeOAuthApplicationTokenRequestBody requestBody; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the OAuth application for which to revoke the token + */ + public Builder oauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + + public Builder requestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public RevokeOAuthApplicationTokenRequest build() { + + return new RevokeOAuthApplicationTokenRequest( + oauthApplicationId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java new file mode 100644 index 00000000..8a0ebfa9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBody.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; + + +public class RevokeOAuthApplicationTokenRequestBody { + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + @JsonProperty("token") + private String token; + + @JsonCreator + public RevokeOAuthApplicationTokenRequestBody( + @JsonProperty("token") String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + } + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + @JsonIgnore + public String token() { + return token; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + public RevokeOAuthApplicationTokenRequestBody withToken(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenRequestBody other = (RevokeOAuthApplicationTokenRequestBody) o; + return + Utils.enhancedDeepEquals(this.token, other.token); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + token); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenRequestBody.class, + "token", token); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String token; + + private Builder() { + // force use of static builder() method + } + + + /** + * The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth + * grant are also revoked. + */ + public Builder token(String token) { + Utils.checkNotNull(token, "token"); + this.token = token; + return this; + } + + public RevokeOAuthApplicationTokenRequestBody build() { + + return new RevokeOAuthApplicationTokenRequestBody( + token); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java new file mode 100644 index 00000000..d7a25c47 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RevokeOAuthApplicationToken; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RevokeOAuthApplicationTokenRequestBuilder { + + private String oauthApplicationId; + private RevokeOAuthApplicationTokenRequestBody requestBody; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RevokeOAuthApplicationTokenRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RevokeOAuthApplicationTokenRequestBuilder oauthApplicationId(String oauthApplicationId) { + Utils.checkNotNull(oauthApplicationId, "oauthApplicationId"); + this.oauthApplicationId = oauthApplicationId; + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder requestBody(RevokeOAuthApplicationTokenRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RevokeOAuthApplicationTokenRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RevokeOAuthApplicationTokenRequest buildRequest() { + + RevokeOAuthApplicationTokenRequest request = new RevokeOAuthApplicationTokenRequest(oauthApplicationId, + requestBody); + + return request; + } + + public RevokeOAuthApplicationTokenResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RevokeOAuthApplicationToken.Sync(sdkConfiguration, options, _headers); + RevokeOAuthApplicationTokenRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java new file mode 100644 index 00000000..8d26d7ed --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeOAuthApplicationTokenResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class RevokeOAuthApplicationTokenResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public RevokeOAuthApplicationTokenResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RevokeOAuthApplicationTokenResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RevokeOAuthApplicationTokenResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RevokeOAuthApplicationTokenResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeOAuthApplicationTokenResponse other = (RevokeOAuthApplicationTokenResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(RevokeOAuthApplicationTokenResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public RevokeOAuthApplicationTokenResponse build() { + + return new RevokeOAuthApplicationTokenResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequest.java new file mode 100644 index 00000000..98163107 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequest.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class RevokeUserTrustedDeviceRequest { + /** + * The ID of the user that owns the trusted device + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=user_id") + private String userId; + + /** + * The ID of the trusted device to revoke + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=trusted_device_id") + private String trustedDeviceId; + + @JsonCreator + public RevokeUserTrustedDeviceRequest( + String userId, + String trustedDeviceId) { + Utils.checkNotNull(userId, "userId"); + Utils.checkNotNull(trustedDeviceId, "trustedDeviceId"); + this.userId = userId; + this.trustedDeviceId = trustedDeviceId; + } + + /** + * The ID of the user that owns the trusted device + */ + @JsonIgnore + public String userId() { + return userId; + } + + /** + * The ID of the trusted device to revoke + */ + @JsonIgnore + public String trustedDeviceId() { + return trustedDeviceId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the user that owns the trusted device + */ + public RevokeUserTrustedDeviceRequest withUserId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + /** + * The ID of the trusted device to revoke + */ + public RevokeUserTrustedDeviceRequest withTrustedDeviceId(String trustedDeviceId) { + Utils.checkNotNull(trustedDeviceId, "trustedDeviceId"); + this.trustedDeviceId = trustedDeviceId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeUserTrustedDeviceRequest other = (RevokeUserTrustedDeviceRequest) o; + return + Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.trustedDeviceId, other.trustedDeviceId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + userId, trustedDeviceId); + } + + @Override + public String toString() { + return Utils.toString(RevokeUserTrustedDeviceRequest.class, + "userId", userId, + "trustedDeviceId", trustedDeviceId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String userId; + + private String trustedDeviceId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the user that owns the trusted device + */ + public Builder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + + /** + * The ID of the trusted device to revoke + */ + public Builder trustedDeviceId(String trustedDeviceId) { + Utils.checkNotNull(trustedDeviceId, "trustedDeviceId"); + this.trustedDeviceId = trustedDeviceId; + return this; + } + + public RevokeUserTrustedDeviceRequest build() { + + return new RevokeUserTrustedDeviceRequest( + userId, trustedDeviceId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequestBuilder.java new file mode 100644 index 00000000..9153b4e0 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceRequestBuilder.java @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RevokeUserTrustedDevice; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RevokeUserTrustedDeviceRequestBuilder { + + private String userId; + private String trustedDeviceId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RevokeUserTrustedDeviceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RevokeUserTrustedDeviceRequestBuilder userId(String userId) { + Utils.checkNotNull(userId, "userId"); + this.userId = userId; + return this; + } + + public RevokeUserTrustedDeviceRequestBuilder trustedDeviceId(String trustedDeviceId) { + Utils.checkNotNull(trustedDeviceId, "trustedDeviceId"); + this.trustedDeviceId = trustedDeviceId; + return this; + } + + public RevokeUserTrustedDeviceRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RevokeUserTrustedDeviceRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RevokeUserTrustedDeviceRequest buildRequest() { + + RevokeUserTrustedDeviceRequest request = new RevokeUserTrustedDeviceRequest(userId, + trustedDeviceId); + + return request; + } + + public RevokeUserTrustedDeviceResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RevokeUserTrustedDevice.Sync(sdkConfiguration, options, _headers); + RevokeUserTrustedDeviceRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceResponse.java new file mode 100644 index 00000000..96137106 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RevokeUserTrustedDeviceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.TrustedDevice; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class RevokeUserTrustedDeviceResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Success + */ + private Optional trustedDevice; + + @JsonCreator + public RevokeUserTrustedDeviceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional trustedDevice) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(trustedDevice, "trustedDevice"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.trustedDevice = trustedDevice; + } + + public RevokeUserTrustedDeviceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional trustedDevice() { + return (Optional) trustedDevice; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RevokeUserTrustedDeviceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RevokeUserTrustedDeviceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RevokeUserTrustedDeviceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Success + */ + public RevokeUserTrustedDeviceResponse withTrustedDevice(TrustedDevice trustedDevice) { + Utils.checkNotNull(trustedDevice, "trustedDevice"); + this.trustedDevice = Optional.ofNullable(trustedDevice); + return this; + } + + + /** + * Success + */ + public RevokeUserTrustedDeviceResponse withTrustedDevice(Optional trustedDevice) { + Utils.checkNotNull(trustedDevice, "trustedDevice"); + this.trustedDevice = trustedDevice; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RevokeUserTrustedDeviceResponse other = (RevokeUserTrustedDeviceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.trustedDevice, other.trustedDevice); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + trustedDevice); + } + + @Override + public String toString() { + return Utils.toString(RevokeUserTrustedDeviceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "trustedDevice", trustedDevice); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional trustedDevice = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Success + */ + public Builder trustedDevice(TrustedDevice trustedDevice) { + Utils.checkNotNull(trustedDevice, "trustedDevice"); + this.trustedDevice = Optional.ofNullable(trustedDevice); + return this; + } + + /** + * Success + */ + public Builder trustedDevice(Optional trustedDevice) { + Utils.checkNotNull(trustedDevice, "trustedDevice"); + this.trustedDevice = trustedDevice; + return this; + } + + public RevokeUserTrustedDeviceResponse build() { + + return new RevokeUserTrustedDeviceResponse( + contentType, statusCode, rawResponse, + trustedDevice); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java new file mode 100644 index 00000000..981c7321 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class RotateSCIMDirectoryAPIKeyRequest { + /** + * The ID of the SCIM directory whose API key to rotate + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + @JsonCreator + public RotateSCIMDirectoryAPIKeyRequest( + String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + } + + /** + * The ID of the SCIM directory whose API key to rotate + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory whose API key to rotate + */ + public RotateSCIMDirectoryAPIKeyRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RotateSCIMDirectoryAPIKeyRequest other = (RotateSCIMDirectoryAPIKeyRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId); + } + + @Override + public String toString() { + return Utils.toString(RotateSCIMDirectoryAPIKeyRequest.class, + "scimDirectoryId", scimDirectoryId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory whose API key to rotate + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public RotateSCIMDirectoryAPIKeyRequest build() { + + return new RotateSCIMDirectoryAPIKeyRequest( + scimDirectoryId); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java new file mode 100644 index 00000000..591d70b8 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyRequestBuilder.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.RotateSCIMDirectoryAPIKey; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class RotateSCIMDirectoryAPIKeyRequestBuilder { + + private String scimDirectoryId; + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public RotateSCIMDirectoryAPIKeyRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public RotateSCIMDirectoryAPIKeyRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private RotateSCIMDirectoryAPIKeyRequest buildRequest() { + + RotateSCIMDirectoryAPIKeyRequest request = new RotateSCIMDirectoryAPIKeyRequest(scimDirectoryId); + + return request; + } + + public RotateSCIMDirectoryAPIKeyResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new RotateSCIMDirectoryAPIKey.Sync(sdkConfiguration, options, _headers); + RotateSCIMDirectoryAPIKeyRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java new file mode 100644 index 00000000..0dc887ac --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/RotateSCIMDirectoryAPIKeyResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class RotateSCIMDirectoryAPIKeyResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public RotateSCIMDirectoryAPIKeyResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public RotateSCIMDirectoryAPIKeyResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public RotateSCIMDirectoryAPIKeyResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public RotateSCIMDirectoryAPIKeyResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public RotateSCIMDirectoryAPIKeyResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public RotateSCIMDirectoryAPIKeyResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public RotateSCIMDirectoryAPIKeyResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RotateSCIMDirectoryAPIKeyResponse other = (RotateSCIMDirectoryAPIKeyResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(RotateSCIMDirectoryAPIKeyResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public RotateSCIMDirectoryAPIKeyResponse build() { + + return new RotateSCIMDirectoryAPIKeyResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/Saml.java b/src/main/java/com/clerk/backend_api/models/operations/Saml.java index 98c1d02e..28202544 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/Saml.java +++ b/src/main/java/com/clerk/backend_api/models/operations/Saml.java @@ -81,6 +81,13 @@ public class Saml { @JsonProperty("force_authn") private JsonNullable forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private JsonNullable loginHint; + @JsonCreator public Saml( @JsonProperty("idp_entity_id") JsonNullable idpEntityId, @@ -91,7 +98,8 @@ public Saml( @JsonProperty("attribute_mapping") JsonNullable attributeMapping, @JsonProperty("allow_subdomains") JsonNullable allowSubdomains, @JsonProperty("allow_idp_initiated") JsonNullable allowIdpInitiated, - @JsonProperty("force_authn") JsonNullable forceAuthn) { + @JsonProperty("force_authn") JsonNullable forceAuthn, + @JsonProperty("login_hint") JsonNullable loginHint) { Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); Utils.checkNotNull(idpCertificate, "idpCertificate"); @@ -101,6 +109,7 @@ public Saml( Utils.checkNotNull(allowSubdomains, "allowSubdomains"); Utils.checkNotNull(allowIdpInitiated, "allowIdpInitiated"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; this.idpCertificate = idpCertificate; @@ -110,12 +119,14 @@ public Saml( this.allowSubdomains = allowSubdomains; this.allowIdpInitiated = allowIdpInitiated; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; } public Saml() { this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -182,6 +193,15 @@ public JsonNullable forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable loginHint() { + return (JsonNullable) loginHint; + } + public static Builder builder() { return new Builder(); } @@ -331,6 +351,24 @@ public Saml withForceAuthn(JsonNullable forceAuthn) { return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Saml withLoginHint(CreateEnterpriseConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Saml withLoginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -349,7 +387,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && Utils.enhancedDeepEquals(this.allowSubdomains, other.allowSubdomains) && Utils.enhancedDeepEquals(this.allowIdpInitiated, other.allowIdpInitiated) && - Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn); + Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint); } @Override @@ -357,7 +396,8 @@ public int hashCode() { return Utils.enhancedHash( idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, attributeMapping, - allowSubdomains, allowIdpInitiated, forceAuthn); + allowSubdomains, allowIdpInitiated, forceAuthn, + loginHint); } @Override @@ -371,7 +411,8 @@ public String toString() { "attributeMapping", attributeMapping, "allowSubdomains", allowSubdomains, "allowIdpInitiated", allowIdpInitiated, - "forceAuthn", forceAuthn); + "forceAuthn", forceAuthn, + "loginHint", loginHint); } @SuppressWarnings("UnusedReturnValue") @@ -395,6 +436,8 @@ public final static class Builder { private JsonNullable forceAuthn = JsonNullable.undefined(); + private JsonNullable loginHint = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -552,12 +595,32 @@ public Builder forceAuthn(JsonNullable forceAuthn) { return this; } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(CreateEnterpriseConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public Saml build() { return new Saml( idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, attributeMapping, - allowSubdomains, allowIdpInitiated, forceAuthn); + allowSubdomains, allowIdpInitiated, forceAuthn, + loginHint); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/Two.java b/src/main/java/com/clerk/backend_api/models/operations/Two.java index 6364f767..bfb4f351 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/Two.java +++ b/src/main/java/com/clerk/backend_api/models/operations/Two.java @@ -108,6 +108,13 @@ public class Two { @JsonProperty("force_authn") private Optional forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private JsonNullable loginHint; + @JsonCreator public Two( @JsonProperty("name") String name, @@ -121,7 +128,8 @@ public Two( @JsonProperty("idp_metadata") JsonNullable idpMetadata, @JsonProperty("organization_id") JsonNullable organizationId, @JsonProperty("attribute_mapping") JsonNullable attributeMapping, - @JsonProperty("force_authn") Optional forceAuthn) { + @JsonProperty("force_authn") Optional forceAuthn, + @JsonProperty("login_hint") JsonNullable loginHint) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(domain, "domain"); Utils.checkNotNull(domains, "domains"); @@ -134,6 +142,7 @@ public Two( Utils.checkNotNull(organizationId, "organizationId"); Utils.checkNotNull(attributeMapping, "attributeMapping"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); this.name = name; this.domain = domain; this.domains = domains; @@ -146,6 +155,7 @@ public Two( this.organizationId = organizationId; this.attributeMapping = attributeMapping; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; } public Two( @@ -155,7 +165,8 @@ public Two( this(name, Optional.empty(), domains, provider, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty()); + JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), + JsonNullable.undefined()); } /** @@ -262,6 +273,15 @@ public Optional forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable loginHint() { + return (JsonNullable) loginHint; + } + public static Builder builder() { return new Builder(); } @@ -471,6 +491,24 @@ public Two withForceAuthn(Optional forceAuthn) { return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Two withLoginHint(RequestBodyLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Two withLoginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -492,7 +530,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.idpMetadata, other.idpMetadata) && Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && - Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn); + Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint); } @Override @@ -501,7 +540,8 @@ public int hashCode() { name, domain, domains, provider, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, - organizationId, attributeMapping, forceAuthn); + organizationId, attributeMapping, forceAuthn, + loginHint); } @Override @@ -518,7 +558,8 @@ public String toString() { "idpMetadata", idpMetadata, "organizationId", organizationId, "attributeMapping", attributeMapping, - "forceAuthn", forceAuthn); + "forceAuthn", forceAuthn, + "loginHint", loginHint); } @SuppressWarnings("UnusedReturnValue") @@ -549,6 +590,8 @@ public final static class Builder { private Optional forceAuthn = Optional.empty(); + private JsonNullable loginHint = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -767,13 +810,33 @@ public Builder forceAuthn(Optional forceAuthn) { return this; } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(RequestBodyLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public Two build() { return new Two( name, domain, domains, provider, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, - organizationId, attributeMapping, forceAuthn); + organizationId, attributeMapping, forceAuthn, + loginHint); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBody.java index b89a51eb..c71056cd 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEmailAddressRequestBody.java @@ -3,12 +3,14 @@ */ package com.clerk.backend_api.models.operations; +import com.clerk.backend_api.utils.LazySingletonValue; import com.clerk.backend_api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; import java.lang.Override; import java.lang.String; @@ -30,18 +32,30 @@ public class UpdateEmailAddressRequestBody { @JsonProperty("primary") private JsonNullable primary; + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("notify_primary_email_address_changed") + private JsonNullable notifyPrimaryEmailAddressChanged; + @JsonCreator public UpdateEmailAddressRequestBody( @JsonProperty("verified") JsonNullable verified, - @JsonProperty("primary") JsonNullable primary) { + @JsonProperty("primary") JsonNullable primary, + @JsonProperty("notify_primary_email_address_changed") JsonNullable notifyPrimaryEmailAddressChanged) { Utils.checkNotNull(verified, "verified"); Utils.checkNotNull(primary, "primary"); + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); this.verified = verified; this.primary = primary; + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; } public UpdateEmailAddressRequestBody() { - this(JsonNullable.undefined(), JsonNullable.undefined()); + this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -60,6 +74,16 @@ public JsonNullable primary() { return primary; } + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + @JsonIgnore + public JsonNullable notifyPrimaryEmailAddressChanged() { + return notifyPrimaryEmailAddressChanged; + } + public static Builder builder() { return new Builder(); } @@ -101,6 +125,28 @@ public UpdateEmailAddressRequestBody withPrimary(JsonNullable primary) return this; } + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public UpdateEmailAddressRequestBody withNotifyPrimaryEmailAddressChanged(boolean notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = JsonNullable.of(notifyPrimaryEmailAddressChanged); + return this; + } + + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public UpdateEmailAddressRequestBody withNotifyPrimaryEmailAddressChanged(JsonNullable notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,20 +158,22 @@ public boolean equals(java.lang.Object o) { UpdateEmailAddressRequestBody other = (UpdateEmailAddressRequestBody) o; return Utils.enhancedDeepEquals(this.verified, other.verified) && - Utils.enhancedDeepEquals(this.primary, other.primary); + Utils.enhancedDeepEquals(this.primary, other.primary) && + Utils.enhancedDeepEquals(this.notifyPrimaryEmailAddressChanged, other.notifyPrimaryEmailAddressChanged); } @Override public int hashCode() { return Utils.enhancedHash( - verified, primary); + verified, primary, notifyPrimaryEmailAddressChanged); } @Override public String toString() { return Utils.toString(UpdateEmailAddressRequestBody.class, "verified", verified, - "primary", primary); + "primary", primary, + "notifyPrimaryEmailAddressChanged", notifyPrimaryEmailAddressChanged); } @SuppressWarnings("UnusedReturnValue") @@ -135,6 +183,8 @@ public final static class Builder { private JsonNullable primary = JsonNullable.undefined(); + private JsonNullable notifyPrimaryEmailAddressChanged; + private Builder() { // force use of static builder() method } @@ -177,11 +227,43 @@ public Builder primary(JsonNullable primary) { return this; } + + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(boolean notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = JsonNullable.of(notifyPrimaryEmailAddressChanged); + return this; + } + + /** + * If set to `true` and this update makes the email address the user's new primary, + * the previous primary email address is notified of the change. + * By default, no notification is sent. + */ + public Builder notifyPrimaryEmailAddressChanged(JsonNullable notifyPrimaryEmailAddressChanged) { + Utils.checkNotNull(notifyPrimaryEmailAddressChanged, "notifyPrimaryEmailAddressChanged"); + this.notifyPrimaryEmailAddressChanged = notifyPrimaryEmailAddressChanged; + return this; + } + public UpdateEmailAddressRequestBody build() { + if (notifyPrimaryEmailAddressChanged == null) { + notifyPrimaryEmailAddressChanged = _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged.value(); + } return new UpdateEmailAddressRequestBody( - verified, primary); + verified, primary, notifyPrimaryEmailAddressChanged); } + + private static final LazySingletonValue> _SINGLETON_VALUE_NotifyPrimaryEmailAddressChanged = + new LazySingletonValue<>( + "notify_primary_email_address_changed", + "false", + new TypeReference>() {}); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionLoginHint.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionLoginHint.java new file mode 100644 index 00000000..1dc29de3 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionLoginHint.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * UpdateEnterpriseConnectionLoginHint + * + *

Configuration for the login_hint sent to the IdP on SSO sign-in + */ +public class UpdateEnterpriseConnectionLoginHint { + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonProperty("mode") + private UpdateEnterpriseConnectionMode mode; + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional source; + + @JsonCreator + public UpdateEnterpriseConnectionLoginHint( + @JsonProperty("mode") UpdateEnterpriseConnectionMode mode, + @JsonProperty("source") Optional source) { + Utils.checkNotNull(mode, "mode"); + Utils.checkNotNull(source, "source"); + this.mode = mode; + this.source = source; + } + + public UpdateEnterpriseConnectionLoginHint( + UpdateEnterpriseConnectionMode mode) { + this(mode, Optional.empty()); + } + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + @JsonIgnore + public UpdateEnterpriseConnectionMode mode() { + return mode; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + @JsonIgnore + public Optional source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public UpdateEnterpriseConnectionLoginHint withMode(UpdateEnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public UpdateEnterpriseConnectionLoginHint withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public UpdateEnterpriseConnectionLoginHint withSource(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateEnterpriseConnectionLoginHint other = (UpdateEnterpriseConnectionLoginHint) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode, source); + } + + @Override + public String toString() { + return Utils.toString(UpdateEnterpriseConnectionLoginHint.class, + "mode", mode, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private UpdateEnterpriseConnectionMode mode; + + private Optional source = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Controls the login_hint sent to the IdP on SSO sign-in + */ + public Builder mode(UpdateEnterpriseConnectionMode mode) { + Utils.checkNotNull(mode, "mode"); + this.mode = mode; + return this; + } + + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = Optional.ofNullable(source); + return this; + } + + /** + * The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute + */ + public Builder source(Optional source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public UpdateEnterpriseConnectionLoginHint build() { + + return new UpdateEnterpriseConnectionLoginHint( + mode, source); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionMode.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionMode.java new file mode 100644 index 00000000..66a798fc --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionMode.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * UpdateEnterpriseConnectionMode + * + *

Controls the login_hint sent to the IdP on SSO sign-in + */ +public enum UpdateEnterpriseConnectionMode { + EMAIL_ADDRESS("email_address"), + CUSTOM_ATTRIBUTE("custom_attribute"), + OFF("off"); + + @JsonValue + private final String value; + + UpdateEnterpriseConnectionMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (UpdateEnterpriseConnectionMode o: UpdateEnterpriseConnectionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionSaml.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionSaml.java index 21c78c96..92bd073a 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionSaml.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateEnterpriseConnectionSaml.java @@ -86,6 +86,13 @@ public class UpdateEnterpriseConnectionSaml { @JsonProperty("force_authn") private JsonNullable forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private JsonNullable loginHint; + @JsonCreator public UpdateEnterpriseConnectionSaml( @JsonProperty("name") JsonNullable name, @@ -97,7 +104,8 @@ public UpdateEnterpriseConnectionSaml( @JsonProperty("attribute_mapping") JsonNullable attributeMapping, @JsonProperty("allow_subdomains") JsonNullable allowSubdomains, @JsonProperty("allow_idp_initiated") JsonNullable allowIdpInitiated, - @JsonProperty("force_authn") JsonNullable forceAuthn) { + @JsonProperty("force_authn") JsonNullable forceAuthn, + @JsonProperty("login_hint") JsonNullable loginHint) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(idpEntityId, "idpEntityId"); Utils.checkNotNull(idpSsoUrl, "idpSsoUrl"); @@ -108,6 +116,7 @@ public UpdateEnterpriseConnectionSaml( Utils.checkNotNull(allowSubdomains, "allowSubdomains"); Utils.checkNotNull(allowIdpInitiated, "allowIdpInitiated"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); this.name = name; this.idpEntityId = idpEntityId; this.idpSsoUrl = idpSsoUrl; @@ -118,13 +127,14 @@ public UpdateEnterpriseConnectionSaml( this.allowSubdomains = allowSubdomains; this.allowIdpInitiated = allowIdpInitiated; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; } public UpdateEnterpriseConnectionSaml() { this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -199,6 +209,15 @@ public JsonNullable forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable loginHint() { + return (JsonNullable) loginHint; + } + public static Builder builder() { return new Builder(); } @@ -366,6 +385,24 @@ public UpdateEnterpriseConnectionSaml withForceAuthn(JsonNullable force return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public UpdateEnterpriseConnectionSaml withLoginHint(UpdateEnterpriseConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public UpdateEnterpriseConnectionSaml withLoginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -385,7 +422,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && Utils.enhancedDeepEquals(this.allowSubdomains, other.allowSubdomains) && Utils.enhancedDeepEquals(this.allowIdpInitiated, other.allowIdpInitiated) && - Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn); + Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint); } @Override @@ -394,7 +432,7 @@ public int hashCode() { name, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, attributeMapping, allowSubdomains, allowIdpInitiated, - forceAuthn); + forceAuthn, loginHint); } @Override @@ -409,7 +447,8 @@ public String toString() { "attributeMapping", attributeMapping, "allowSubdomains", allowSubdomains, "allowIdpInitiated", allowIdpInitiated, - "forceAuthn", forceAuthn); + "forceAuthn", forceAuthn, + "loginHint", loginHint); } @SuppressWarnings("UnusedReturnValue") @@ -435,6 +474,8 @@ public final static class Builder { private JsonNullable forceAuthn = JsonNullable.undefined(); + private JsonNullable loginHint = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -611,13 +652,32 @@ public Builder forceAuthn(JsonNullable forceAuthn) { return this; } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(UpdateEnterpriseConnectionLoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + public UpdateEnterpriseConnectionSaml build() { return new UpdateEnterpriseConnectionSaml( name, idpEntityId, idpSsoUrl, idpCertificate, idpMetadataUrl, idpMetadata, attributeMapping, allowSubdomains, allowIdpInitiated, - forceAuthn); + forceAuthn, loginHint); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.java index 21fca160..a924ea11 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateInstanceOAuthApplicationSettingsRequestBody.java @@ -12,6 +12,8 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; @@ -23,6 +25,13 @@ public class UpdateInstanceOAuthApplicationSettingsRequestBody { @JsonProperty("dynamic_oauth_client_registration") private JsonNullable dynamicOauthClientRegistration; + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("default_scopes") + private JsonNullable> defaultScopes; + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -31,18 +40,55 @@ public class UpdateInstanceOAuthApplicationSettingsRequestBody { @JsonProperty("oauth_jwt_access_tokens") private JsonNullable oauthJwtAccessTokens; + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id_metadata_documents_advertised") + private JsonNullable clientIdMetadataDocumentsAdvertised; + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id_metadata_documents_only_allow_pre_registered_clients") + private JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id_metadata_documents_block_implicitly_allowed_clients") + private JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + @JsonCreator public UpdateInstanceOAuthApplicationSettingsRequestBody( @JsonProperty("dynamic_oauth_client_registration") JsonNullable dynamicOauthClientRegistration, - @JsonProperty("oauth_jwt_access_tokens") JsonNullable oauthJwtAccessTokens) { + @JsonProperty("default_scopes") JsonNullable> defaultScopes, + @JsonProperty("oauth_jwt_access_tokens") JsonNullable oauthJwtAccessTokens, + @JsonProperty("client_id_metadata_documents_advertised") JsonNullable clientIdMetadataDocumentsAdvertised, + @JsonProperty("client_id_metadata_documents_only_allow_pre_registered_clients") JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + @JsonProperty("client_id_metadata_documents_block_implicitly_allowed_clients") JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { Utils.checkNotNull(dynamicOauthClientRegistration, "dynamicOauthClientRegistration"); + Utils.checkNotNull(defaultScopes, "defaultScopes"); Utils.checkNotNull(oauthJwtAccessTokens, "oauthJwtAccessTokens"); + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); this.dynamicOauthClientRegistration = dynamicOauthClientRegistration; + this.defaultScopes = defaultScopes; this.oauthJwtAccessTokens = oauthJwtAccessTokens; + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; } public UpdateInstanceOAuthApplicationSettingsRequestBody() { - this(JsonNullable.undefined(), JsonNullable.undefined()); + this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -53,6 +99,15 @@ public JsonNullable dynamicOauthClientRegistration() { return dynamicOauthClientRegistration; } + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> defaultScopes() { + return (JsonNullable>) defaultScopes; + } + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -62,6 +117,33 @@ public JsonNullable oauthJwtAccessTokens() { return oauthJwtAccessTokens; } + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + @JsonIgnore + public JsonNullable clientIdMetadataDocumentsAdvertised() { + return clientIdMetadataDocumentsAdvertised; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + @JsonIgnore + public JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients() { + return clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + @JsonIgnore + public JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients() { + return clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + } + public static Builder builder() { return new Builder(); } @@ -85,6 +167,24 @@ public UpdateInstanceOAuthApplicationSettingsRequestBody withDynamicOauthClientR return this; } + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withDefaultScopes(List defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = JsonNullable.of(defaultScopes); + return this; + } + + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withDefaultScopes(JsonNullable> defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = defaultScopes; + return this; + } + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -105,6 +205,66 @@ public UpdateInstanceOAuthApplicationSettingsRequestBody withOauthJwtAccessToken return this; } + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsAdvertised(boolean clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = JsonNullable.of(clientIdMetadataDocumentsAdvertised); + return this; + } + + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsAdvertised(JsonNullable clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + return this; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsOnlyAllowPreRegisteredClients(boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = JsonNullable.of(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients); + return this; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsOnlyAllowPreRegisteredClients(JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + return this; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsBlockImplicitlyAllowedClients(boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = JsonNullable.of(clientIdMetadataDocumentsBlockImplicitlyAllowedClients); + return this; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public UpdateInstanceOAuthApplicationSettingsRequestBody withClientIdMetadataDocumentsBlockImplicitlyAllowedClients(JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -116,20 +276,29 @@ public boolean equals(java.lang.Object o) { UpdateInstanceOAuthApplicationSettingsRequestBody other = (UpdateInstanceOAuthApplicationSettingsRequestBody) o; return Utils.enhancedDeepEquals(this.dynamicOauthClientRegistration, other.dynamicOauthClientRegistration) && - Utils.enhancedDeepEquals(this.oauthJwtAccessTokens, other.oauthJwtAccessTokens); + Utils.enhancedDeepEquals(this.defaultScopes, other.defaultScopes) && + Utils.enhancedDeepEquals(this.oauthJwtAccessTokens, other.oauthJwtAccessTokens) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsAdvertised, other.clientIdMetadataDocumentsAdvertised) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, other.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) && + Utils.enhancedDeepEquals(this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients, other.clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @Override public int hashCode() { return Utils.enhancedHash( - dynamicOauthClientRegistration, oauthJwtAccessTokens); + dynamicOauthClientRegistration, defaultScopes, oauthJwtAccessTokens, + clientIdMetadataDocumentsAdvertised, clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @Override public String toString() { return Utils.toString(UpdateInstanceOAuthApplicationSettingsRequestBody.class, "dynamicOauthClientRegistration", dynamicOauthClientRegistration, - "oauthJwtAccessTokens", oauthJwtAccessTokens); + "defaultScopes", defaultScopes, + "oauthJwtAccessTokens", oauthJwtAccessTokens, + "clientIdMetadataDocumentsAdvertised", clientIdMetadataDocumentsAdvertised, + "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients", clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, + "clientIdMetadataDocumentsBlockImplicitlyAllowedClients", clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } @SuppressWarnings("UnusedReturnValue") @@ -137,8 +306,16 @@ public final static class Builder { private JsonNullable dynamicOauthClientRegistration = JsonNullable.undefined(); + private JsonNullable> defaultScopes = JsonNullable.undefined(); + private JsonNullable oauthJwtAccessTokens = JsonNullable.undefined(); + private JsonNullable clientIdMetadataDocumentsAdvertised = JsonNullable.undefined(); + + private JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = JsonNullable.undefined(); + + private JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -163,6 +340,25 @@ public Builder dynamicOauthClientRegistration(JsonNullable dynamicOauth } + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + public Builder defaultScopes(List defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = JsonNullable.of(defaultScopes); + return this; + } + + /** + * Default scopes. Set to null to reset to Clerk-provided defaults. + */ + public Builder defaultScopes(JsonNullable> defaultScopes) { + Utils.checkNotNull(defaultScopes, "defaultScopes"); + this.defaultScopes = defaultScopes; + return this; + } + + /** * Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access * tokens). @@ -183,10 +379,74 @@ public Builder oauthJwtAccessTokens(JsonNullable oauthJwtAccessTokens) return this; } + + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public Builder clientIdMetadataDocumentsAdvertised(boolean clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = JsonNullable.of(clientIdMetadataDocumentsAdvertised); + return this; + } + + /** + * Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization + * server metadata. + */ + public Builder clientIdMetadataDocumentsAdvertised(JsonNullable clientIdMetadataDocumentsAdvertised) { + Utils.checkNotNull(clientIdMetadataDocumentsAdvertised, "clientIdMetadataDocumentsAdvertised"); + this.clientIdMetadataDocumentsAdvertised = clientIdMetadataDocumentsAdvertised; + return this; + } + + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public Builder clientIdMetadataDocumentsOnlyAllowPreRegisteredClients(boolean clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = JsonNullable.of(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients); + return this; + } + + /** + * When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered + * clients remain admitted; deleting a client makes it unknown again. + */ + public Builder clientIdMetadataDocumentsOnlyAllowPreRegisteredClients(JsonNullable clientIdMetadataDocumentsOnlyAllowPreRegisteredClients) { + Utils.checkNotNull(clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, "clientIdMetadataDocumentsOnlyAllowPreRegisteredClients"); + this.clientIdMetadataDocumentsOnlyAllowPreRegisteredClients = clientIdMetadataDocumentsOnlyAllowPreRegisteredClients; + return this; + } + + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public Builder clientIdMetadataDocumentsBlockImplicitlyAllowedClients(boolean clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = JsonNullable.of(clientIdMetadataDocumentsBlockImplicitlyAllowedClients); + return this; + } + + /** + * When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. + * Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens. + */ + public Builder clientIdMetadataDocumentsBlockImplicitlyAllowedClients(JsonNullable clientIdMetadataDocumentsBlockImplicitlyAllowedClients) { + Utils.checkNotNull(clientIdMetadataDocumentsBlockImplicitlyAllowedClients, "clientIdMetadataDocumentsBlockImplicitlyAllowedClients"); + this.clientIdMetadataDocumentsBlockImplicitlyAllowedClients = clientIdMetadataDocumentsBlockImplicitlyAllowedClients; + return this; + } + public UpdateInstanceOAuthApplicationSettingsRequestBody build() { return new UpdateInstanceOAuthApplicationSettingsRequestBody( - dynamicOauthClientRegistration, oauthJwtAccessTokens); + dynamicOauthClientRegistration, defaultScopes, oauthJwtAccessTokens, + clientIdMetadataDocumentsAdvertised, clientIdMetadataDocumentsOnlyAllowPreRegisteredClients, clientIdMetadataDocumentsBlockImplicitlyAllowedClients); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java index 5b936d77..abad2512 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateOrganizationDomainRequestBody.java @@ -17,8 +17,8 @@ public class UpdateOrganizationDomainRequestBody { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("enrollment_mode") @@ -46,8 +46,8 @@ public UpdateOrganizationDomainRequestBody() { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ @JsonIgnore public JsonNullable enrollmentMode() { @@ -68,8 +68,8 @@ public static Builder builder() { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public UpdateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -78,8 +78,8 @@ public UpdateOrganizationDomainRequestBody withEnrollmentMode(String enrollmentM } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public UpdateOrganizationDomainRequestBody withEnrollmentMode(JsonNullable enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -145,8 +145,8 @@ private Builder() { /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(String enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); @@ -155,8 +155,8 @@ public Builder enrollmentMode(String enrollmentMode) { } /** - * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` - * or `manual_invitation` + * The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, + * `manual_invitation` or `enterprise_sso` */ public Builder enrollmentMode(JsonNullable enrollmentMode) { Utils.checkNotNull(enrollmentMode, "enrollmentMode"); diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBody.java index bfd2f7c5..30f8c90b 100644 --- a/src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBody.java +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSAMLConnectionRequestBody.java @@ -144,6 +144,13 @@ public class UpdateSAMLConnectionRequestBody { @JsonProperty("force_authn") private Optional forceAuthn; + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("login_hint") + private JsonNullable loginHint; + /** * When enabling the connection, controls behavior when verified domains used for enrollment modes like * automatic invitation or automatic suggestion already exist for the same domain. If true, those @@ -173,6 +180,7 @@ public UpdateSAMLConnectionRequestBody( @JsonProperty("disable_additional_identifications") JsonNullable disableAdditionalIdentifications, @JsonProperty("allow_organization_account_linking") JsonNullable allowOrganizationAccountLinking, @JsonProperty("force_authn") Optional forceAuthn, + @JsonProperty("login_hint") JsonNullable loginHint, @JsonProperty("consent_verified_domains_deletion") JsonNullable consentVerifiedDomainsDeletion) { Utils.checkNotNull(name, "name"); Utils.checkNotNull(domain, "domain"); @@ -191,6 +199,7 @@ public UpdateSAMLConnectionRequestBody( Utils.checkNotNull(disableAdditionalIdentifications, "disableAdditionalIdentifications"); Utils.checkNotNull(allowOrganizationAccountLinking, "allowOrganizationAccountLinking"); Utils.checkNotNull(forceAuthn, "forceAuthn"); + Utils.checkNotNull(loginHint, "loginHint"); Utils.checkNotNull(consentVerifiedDomainsDeletion, "consentVerifiedDomainsDeletion"); this.name = name; this.domain = domain; @@ -209,6 +218,7 @@ public UpdateSAMLConnectionRequestBody( this.disableAdditionalIdentifications = disableAdditionalIdentifications; this.allowOrganizationAccountLinking = allowOrganizationAccountLinking; this.forceAuthn = forceAuthn; + this.loginHint = loginHint; this.consentVerifiedDomainsDeletion = consentVerifiedDomainsDeletion; } @@ -218,7 +228,8 @@ public UpdateSAMLConnectionRequestBody() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -364,6 +375,15 @@ public Optional forceAuthn() { return forceAuthn; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable loginHint() { + return (JsonNullable) loginHint; + } + /** * When enabling the connection, controls behavior when verified domains used for enrollment modes like * automatic invitation or automatic suggestion already exist for the same domain. If true, those @@ -697,6 +717,24 @@ public UpdateSAMLConnectionRequestBody withForceAuthn(Optional forceAut return this; } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public UpdateSAMLConnectionRequestBody withLoginHint(LoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public UpdateSAMLConnectionRequestBody withLoginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + /** * When enabling the connection, controls behavior when verified domains used for enrollment modes like * automatic invitation or automatic suggestion already exist for the same domain. If true, those @@ -748,6 +786,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.disableAdditionalIdentifications, other.disableAdditionalIdentifications) && Utils.enhancedDeepEquals(this.allowOrganizationAccountLinking, other.allowOrganizationAccountLinking) && Utils.enhancedDeepEquals(this.forceAuthn, other.forceAuthn) && + Utils.enhancedDeepEquals(this.loginHint, other.loginHint) && Utils.enhancedDeepEquals(this.consentVerifiedDomainsDeletion, other.consentVerifiedDomainsDeletion); } @@ -759,7 +798,8 @@ public int hashCode() { idpMetadataUrl, idpMetadata, organizationId, attributeMapping, active, syncUserAttributes, allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, - allowOrganizationAccountLinking, forceAuthn, consentVerifiedDomainsDeletion); + allowOrganizationAccountLinking, forceAuthn, loginHint, + consentVerifiedDomainsDeletion); } @Override @@ -782,6 +822,7 @@ public String toString() { "disableAdditionalIdentifications", disableAdditionalIdentifications, "allowOrganizationAccountLinking", allowOrganizationAccountLinking, "forceAuthn", forceAuthn, + "loginHint", loginHint, "consentVerifiedDomainsDeletion", consentVerifiedDomainsDeletion); } @@ -823,6 +864,8 @@ public final static class Builder { private Optional forceAuthn = Optional.empty(); + private JsonNullable loginHint = JsonNullable.undefined(); + private JsonNullable consentVerifiedDomainsDeletion = JsonNullable.undefined(); private Builder() { @@ -1163,6 +1206,25 @@ public Builder forceAuthn(Optional forceAuthn) { } + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(LoginHint loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = JsonNullable.of(loginHint); + return this; + } + + /** + * Configuration for the login_hint sent to the IdP on SSO sign-in + */ + public Builder loginHint(JsonNullable loginHint) { + Utils.checkNotNull(loginHint, "loginHint"); + this.loginHint = loginHint; + return this; + } + + /** * When enabling the connection, controls behavior when verified domains used for enrollment modes like * automatic invitation or automatic suggestion already exist for the same domain. If true, those @@ -1195,7 +1257,8 @@ public UpdateSAMLConnectionRequestBody build() { idpMetadataUrl, idpMetadata, organizationId, attributeMapping, active, syncUserAttributes, allowSubdomains, allowIdpInitiated, disableAdditionalIdentifications, - allowOrganizationAccountLinking, forceAuthn, consentVerifiedDomainsDeletion); + allowOrganizationAccountLinking, forceAuthn, loginHint, + consentVerifiedDomainsDeletion); } } diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java new file mode 100644 index 00000000..a044062b --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequest.java @@ -0,0 +1,151 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.SpeakeasyMetadata; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class UpdateSCIMDirectoryRequest { + /** + * The ID of the SCIM directory to update + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=scim_directory_id") + private String scimDirectoryId; + + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional requestBody; + + @JsonCreator + public UpdateSCIMDirectoryRequest( + String scimDirectoryId, + Optional requestBody) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + Utils.checkNotNull(requestBody, "requestBody"); + this.scimDirectoryId = scimDirectoryId; + this.requestBody = requestBody; + } + + public UpdateSCIMDirectoryRequest( + String scimDirectoryId) { + this(scimDirectoryId, Optional.empty()); + } + + /** + * The ID of the SCIM directory to update + */ + @JsonIgnore + public String scimDirectoryId() { + return scimDirectoryId; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional requestBody() { + return (Optional) requestBody; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the SCIM directory to update + */ + public UpdateSCIMDirectoryRequest withScimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public UpdateSCIMDirectoryRequest withRequestBody(UpdateSCIMDirectoryRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public UpdateSCIMDirectoryRequest withRequestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryRequest other = (UpdateSCIMDirectoryRequest) o; + return + Utils.enhancedDeepEquals(this.scimDirectoryId, other.scimDirectoryId) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + scimDirectoryId, requestBody); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryRequest.class, + "scimDirectoryId", scimDirectoryId, + "requestBody", requestBody); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String scimDirectoryId; + + private Optional requestBody = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the SCIM directory to update + */ + public Builder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + + public Builder requestBody(UpdateSCIMDirectoryRequestBody 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; + } + + public UpdateSCIMDirectoryRequest build() { + + return new UpdateSCIMDirectoryRequest( + scimDirectoryId, requestBody); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java new file mode 100644 index 00000000..431e3243 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBody.java @@ -0,0 +1,381 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class UpdateSCIMDirectoryRequestBody { + /** + * A human-friendly name for the SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + /** + * Whether the SCIM directory is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + private Optional enabled; + + /** + * The identity provider for this SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional provider; + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("attribute_mapping") + private Optional> attributeMapping; + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("group_role_mapping_enabled") + private Optional groupRoleMappingEnabled; + + @JsonCreator + public UpdateSCIMDirectoryRequestBody( + @JsonProperty("name") Optional name, + @JsonProperty("enabled") Optional enabled, + @JsonProperty("provider") Optional provider, + @JsonProperty("attribute_mapping") Optional> attributeMapping, + @JsonProperty("group_role_mapping_enabled") Optional groupRoleMappingEnabled) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(attributeMapping, "attributeMapping"); + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.name = name; + this.enabled = enabled; + this.provider = provider; + this.attributeMapping = attributeMapping; + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + } + + public UpdateSCIMDirectoryRequestBody() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * A human-friendly name for the SCIM directory. + */ + @JsonIgnore + public Optional name() { + return name; + } + + /** + * Whether the SCIM directory is enabled. + */ + @JsonIgnore + public Optional enabled() { + return enabled; + } + + /** + * The identity provider for this SCIM directory. + */ + @JsonIgnore + public Optional provider() { + return provider; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> attributeMapping() { + return (Optional>) attributeMapping; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + @JsonIgnore + public Optional groupRoleMappingEnabled() { + return groupRoleMappingEnabled; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public UpdateSCIMDirectoryRequestBody withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public UpdateSCIMDirectoryRequestBody withEnabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withProvider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public UpdateSCIMDirectoryRequestBody withAttributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = Optional.ofNullable(attributeMapping); + return this; + } + + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public UpdateSCIMDirectoryRequestBody withAttributeMapping(Optional> attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withGroupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = Optional.ofNullable(groupRoleMappingEnabled); + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public UpdateSCIMDirectoryRequestBody withGroupRoleMappingEnabled(Optional groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryRequestBody other = (UpdateSCIMDirectoryRequestBody) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.attributeMapping, other.attributeMapping) && + Utils.enhancedDeepEquals(this.groupRoleMappingEnabled, other.groupRoleMappingEnabled); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, enabled, provider, + attributeMapping, groupRoleMappingEnabled); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryRequestBody.class, + "name", name, + "enabled", enabled, + "provider", provider, + "attributeMapping", attributeMapping, + "groupRoleMappingEnabled", groupRoleMappingEnabled); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private Optional enabled = Optional.empty(); + + private Optional provider = Optional.empty(); + + private Optional> attributeMapping = Optional.empty(); + + private Optional groupRoleMappingEnabled = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + /** + * A human-friendly name for the SCIM directory. + */ + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + /** + * Whether the SCIM directory is enabled. + */ + public Builder enabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + /** + * The identity provider for this SCIM directory. + */ + public Builder provider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public Builder attributeMapping(Map attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = Optional.ofNullable(attributeMapping); + return this; + } + + /** + * Attribute-to-SCIM-path entries to merge into the directory's attribute mapping. + * Set a key to `null` to remove it from the mapping. + */ + public Builder attributeMapping(Optional> attributeMapping) { + Utils.checkNotNull(attributeMapping, "attributeMapping"); + this.attributeMapping = attributeMapping; + return this; + } + + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(boolean groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = Optional.ofNullable(groupRoleMappingEnabled); + return this; + } + + /** + * Whether group-to-role mapping is enabled for this SCIM directory. + */ + public Builder groupRoleMappingEnabled(Optional groupRoleMappingEnabled) { + Utils.checkNotNull(groupRoleMappingEnabled, "groupRoleMappingEnabled"); + this.groupRoleMappingEnabled = groupRoleMappingEnabled; + return this; + } + + public UpdateSCIMDirectoryRequestBody build() { + + return new UpdateSCIMDirectoryRequestBody( + name, enabled, provider, + attributeMapping, groupRoleMappingEnabled); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java new file mode 100644 index 00000000..e40c6b6e --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryRequestBuilder.java @@ -0,0 +1,79 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.operations.UpdateSCIMDirectory; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class UpdateSCIMDirectoryRequestBuilder { + + private String scimDirectoryId; + private Optional requestBody = Optional.empty(); + private Optional retryConfig = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateSCIMDirectoryRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateSCIMDirectoryRequestBuilder scimDirectoryId(String scimDirectoryId) { + Utils.checkNotNull(scimDirectoryId, "scimDirectoryId"); + this.scimDirectoryId = scimDirectoryId; + return this; + } + + public UpdateSCIMDirectoryRequestBuilder requestBody(UpdateSCIMDirectoryRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.of(requestBody); + return this; + } + + public UpdateSCIMDirectoryRequestBuilder requestBody(Optional requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + public UpdateSCIMDirectoryRequestBuilder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = Optional.of(retryConfig); + return this; + } + + public UpdateSCIMDirectoryRequestBuilder retryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + + private UpdateSCIMDirectoryRequest buildRequest() { + + UpdateSCIMDirectoryRequest request = new UpdateSCIMDirectoryRequest(scimDirectoryId, + requestBody); + + return request; + } + + public UpdateSCIMDirectoryResponse call() { + Optional options = Optional.of(Options.builder() + .retryConfig(retryConfig) + .build()); + + RequestOperation operation + = new UpdateSCIMDirectory.Sync(sdkConfiguration, options, _headers); + UpdateSCIMDirectoryRequest request = buildRequest(); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java new file mode 100644 index 00000000..34fe6ab5 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/models/operations/UpdateSCIMDirectoryResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.models.operations; + +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.utils.Response; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateSCIMDirectoryResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * A SCIM directory + */ + private Optional scimDirectory; + + @JsonCreator + public UpdateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional scimDirectory) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.scimDirectory = scimDirectory; + } + + public UpdateSCIMDirectoryResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * A SCIM directory + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional scimDirectory() { + return (Optional) scimDirectory; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateSCIMDirectoryResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateSCIMDirectoryResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateSCIMDirectoryResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * A SCIM directory + */ + public UpdateSCIMDirectoryResponse withSCIMDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + + /** + * A SCIM directory + */ + public UpdateSCIMDirectoryResponse withSCIMDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSCIMDirectoryResponse other = (UpdateSCIMDirectoryResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.scimDirectory, other.scimDirectory); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + scimDirectory); + } + + @Override + public String toString() { + return Utils.toString(UpdateSCIMDirectoryResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "scimDirectory", scimDirectory); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional scimDirectory = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * A SCIM directory + */ + public Builder scimDirectory(SCIMDirectory scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = Optional.ofNullable(scimDirectory); + return this; + } + + /** + * A SCIM directory + */ + public Builder scimDirectory(Optional scimDirectory) { + Utils.checkNotNull(scimDirectory, "scimDirectory"); + this.scimDirectory = scimDirectory; + return this; + } + + public UpdateSCIMDirectoryResponse build() { + + return new UpdateSCIMDirectoryResponse( + contentType, statusCode, rawResponse, + scimDirectory); + } + + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java new file mode 100644 index 00000000..1e230c10 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/CreateSCIMDirectory.java @@ -0,0 +1,224 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryRequestBody; +import com.clerk.backend_api.models.operations.CreateSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class CreateSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/scim_directories"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation, CreateSCIMDirectoryResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(Optional request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public CreateSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSCIMDirectoryResponse.Builder resBuilder = + CreateSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java new file mode 100644 index 00000000..6e851b42 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/CreateSCIMGroupRoleMapping.java @@ -0,0 +1,230 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMapping; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.CreateSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class CreateSCIMGroupRoleMapping { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "CreateSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(CreateSCIMGroupRoleMappingRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateSCIMGroupRoleMappingRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateSCIMGroupRoleMappingRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public CreateSCIMGroupRoleMappingResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSCIMGroupRoleMappingResponse.Builder resBuilder = + CreateSCIMGroupRoleMappingResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSCIMGroupRoleMappingResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMapping(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/CreateSignInToken.java b/src/main/java/com/clerk/backend_api/operations/CreateSignInToken.java index 479c8a39..10c18f01 100644 --- a/src/main/java/com/clerk/backend_api/operations/CreateSignInToken.java +++ b/src/main/java/com/clerk/backend_api/operations/CreateSignInToken.java @@ -203,7 +203,7 @@ public CreateSignInTokenResponse handleResponse(HttpResponse respon throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "404", "422")) { + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "422")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java b/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java index d6a12963..0417b0a3 100644 --- a/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java +++ b/src/main/java/com/clerk/backend_api/operations/DeleteOrganizationDomain.java @@ -192,7 +192,7 @@ public DeleteOrganizationDomainResponse handleResponse(HttpResponse throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "404")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java new file mode 100644 index 00000000..a22ad693 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMDirectory.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.DeletedObject; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class DeleteSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(DeleteSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSCIMDirectoryRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public DeleteSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSCIMDirectoryResponse.Builder resBuilder = + DeleteSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withDeletedObject(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java new file mode 100644 index 00000000..b50358a9 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/DeleteSCIMGroupRoleMapping.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingDeleted; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingRequest; +import com.clerk.backend_api.models.operations.DeleteSCIMGroupRoleMappingResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class DeleteSCIMGroupRoleMapping { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "DeleteSCIMGroupRoleMapping", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings/{mapping_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(DeleteSCIMGroupRoleMappingRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSCIMGroupRoleMappingRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSCIMGroupRoleMappingRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public DeleteSCIMGroupRoleMappingResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSCIMGroupRoleMappingResponse.Builder resBuilder = + DeleteSCIMGroupRoleMappingResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSCIMGroupRoleMappingResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingDeleted(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java b/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java index 947776c6..8a88c4c8 100644 --- a/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java +++ b/src/main/java/com/clerk/backend_api/operations/ExtendBillingSubscriptionItemFreeTrial.java @@ -9,7 +9,7 @@ import com.clerk.backend_api.SDKConfiguration; import com.clerk.backend_api.SecuritySource; -import com.clerk.backend_api.models.components.SchemasCommerceSubscriptionItem; +import com.clerk.backend_api.models.components.CommerceSubscriptionItem2; import com.clerk.backend_api.models.errors.ClerkErrors; import com.clerk.backend_api.models.errors.SDKError; import com.clerk.backend_api.models.operations.ExtendBillingSubscriptionItemFreeTrialRequest; @@ -204,7 +204,7 @@ public ExtendBillingSubscriptionItemFreeTrialResponse handleResponse(HttpRespons if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withSchemasCommerceSubscriptionItem(Utils.unmarshal(response, new TypeReference() {})); + return res.withCommerceSubscriptionItem2(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java new file mode 100644 index 00000000..1c333f42 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/GetSCIMDirectory.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.GetSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class GetSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "GetSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(GetSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSCIMDirectoryRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public GetSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetSCIMDirectoryResponse.Builder resBuilder = + GetSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java b/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java new file mode 100644 index 00000000..3d59fa46 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ListSCIMDirectories.java @@ -0,0 +1,216 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectoryList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesRequest; +import com.clerk.backend_api.models.operations.ListSCIMDirectoriesResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ListSCIMDirectories { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMDirectories", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/scim_directories"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ListSCIMDirectoriesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSCIMDirectoriesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSCIMDirectoriesRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ListSCIMDirectoriesResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSCIMDirectoriesResponse.Builder resBuilder = + ListSCIMDirectoriesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSCIMDirectoriesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectoryList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java b/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java new file mode 100644 index 00000000..9006db3c --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ListSCIMGroupRoleMappings.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ListSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ListSCIMGroupRoleMappings { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ListSCIMGroupRoleMappingsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSCIMGroupRoleMappingsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSCIMGroupRoleMappingsRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ListSCIMGroupRoleMappingsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSCIMGroupRoleMappingsResponse.Builder resBuilder = + ListSCIMGroupRoleMappingsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSCIMGroupRoleMappingsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ListUserTrustedDevices.java b/src/main/java/com/clerk/backend_api/operations/ListUserTrustedDevices.java new file mode 100644 index 00000000..881d7fc0 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ListUserTrustedDevices.java @@ -0,0 +1,220 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.TrustedDeviceList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesRequest; +import com.clerk.backend_api.models.operations.ListUserTrustedDevicesResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ListUserTrustedDevices { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListUserTrustedDevices", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListUserTrustedDevices", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ListUserTrustedDevices", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/users/{user_id}/trusted_devices", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ListUserTrustedDevicesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListUserTrustedDevicesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListUserTrustedDevicesRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ListUserTrustedDevicesResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListUserTrustedDevicesResponse.Builder resBuilder = + ListUserTrustedDevicesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListUserTrustedDevicesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withTrustedDeviceList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RemoveUserPassword.java b/src/main/java/com/clerk/backend_api/operations/RemoveUserPassword.java new file mode 100644 index 00000000..1d79de25 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RemoveUserPassword.java @@ -0,0 +1,233 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.User; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RemoveUserPasswordRequest; +import com.clerk.backend_api.models.operations.RemoveUserPasswordResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RemoveUserPassword { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RemoveUserPassword", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RemoveUserPassword", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RemoveUserPassword", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/users/{user_id}/remove_password", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RemoveUserPasswordRequest request) throws Exception { + HttpRequest req = buildRequest(request, RemoveUserPasswordRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RemoveUserPasswordRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RemoveUserPasswordResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RemoveUserPasswordResponse.Builder resBuilder = + RemoveUserPasswordResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RemoveUserPasswordResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withUser(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java b/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java new file mode 100644 index 00000000..1222e2ed --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/ReplaceSCIMGroupRoleMappings.java @@ -0,0 +1,230 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMGroupRoleMappingList; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsRequest; +import com.clerk.backend_api.models.operations.ReplaceSCIMGroupRoleMappingsResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class ReplaceSCIMGroupRoleMappings { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "ReplaceSCIMGroupRoleMappings", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/group_role_mappings", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(ReplaceSCIMGroupRoleMappingsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ReplaceSCIMGroupRoleMappingsRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ReplaceSCIMGroupRoleMappingsRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public ReplaceSCIMGroupRoleMappingsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ReplaceSCIMGroupRoleMappingsResponse.Builder resBuilder = + ReplaceSCIMGroupRoleMappingsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ReplaceSCIMGroupRoleMappingsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMGroupRoleMappingList(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java b/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java new file mode 100644 index 00000000..2b815f1f --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RevokeOAuthApplicationToken.java @@ -0,0 +1,226 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenRequest; +import com.clerk.backend_api.models.operations.RevokeOAuthApplicationTokenResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RevokeOAuthApplicationToken { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeOAuthApplicationToken", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/oauth_applications/{oauth_application_id}/revoke_token", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RevokeOAuthApplicationTokenRequest request) throws Exception { + HttpRequest req = buildRequest(request, RevokeOAuthApplicationTokenRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RevokeOAuthApplicationTokenRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RevokeOAuthApplicationTokenResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RevokeOAuthApplicationTokenResponse.Builder resBuilder = + RevokeOAuthApplicationTokenResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RevokeOAuthApplicationTokenResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RevokeUserTrustedDevice.java b/src/main/java/com/clerk/backend_api/operations/RevokeUserTrustedDevice.java new file mode 100644 index 00000000..6b030a17 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RevokeUserTrustedDevice.java @@ -0,0 +1,220 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.TrustedDevice; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceRequest; +import com.clerk.backend_api.models.operations.RevokeUserTrustedDeviceResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RevokeUserTrustedDevice { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeUserTrustedDevice", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeUserTrustedDevice", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RevokeUserTrustedDevice", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/users/{user_id}/trusted_devices/{trusted_device_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RevokeUserTrustedDeviceRequest request) throws Exception { + HttpRequest req = buildRequest(request, RevokeUserTrustedDeviceRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RevokeUserTrustedDeviceRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RevokeUserTrustedDeviceResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RevokeUserTrustedDeviceResponse.Builder resBuilder = + RevokeUserTrustedDeviceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RevokeUserTrustedDeviceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withTrustedDevice(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "500")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java b/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java new file mode 100644 index 00000000..de6e06b2 --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/RotateSCIMDirectoryAPIKey.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyRequest; +import com.clerk.backend_api.models.operations.RotateSCIMDirectoryAPIKeyResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class RotateSCIMDirectoryAPIKey { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "RotateSCIMDirectoryAPIKey", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}/rotate_api_key", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(RotateSCIMDirectoryAPIKeyRequest request) throws Exception { + HttpRequest req = buildRequest(request, RotateSCIMDirectoryAPIKeyRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(RotateSCIMDirectoryAPIKeyRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public RotateSCIMDirectoryAPIKeyResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + RotateSCIMDirectoryAPIKeyResponse.Builder resBuilder = + RotateSCIMDirectoryAPIKeyResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + RotateSCIMDirectoryAPIKeyResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "401", "403", "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/ToggleTemplateDelivery.java b/src/main/java/com/clerk/backend_api/operations/ToggleTemplateDelivery.java index f3c6c995..c768750c 100644 --- a/src/main/java/com/clerk/backend_api/operations/ToggleTemplateDelivery.java +++ b/src/main/java/com/clerk/backend_api/operations/ToggleTemplateDelivery.java @@ -205,7 +205,7 @@ public ToggleTemplateDeliveryResponse handleResponse(HttpResponse r throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "404")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "404", "423", "429")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java b/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java index edc5e36e..787385b5 100644 --- a/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java +++ b/src/main/java/com/clerk/backend_api/operations/UpdateOrganizationDomain.java @@ -209,7 +209,7 @@ public UpdateOrganizationDomainResponse handleResponse(HttpResponse throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "404", "422")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java b/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java new file mode 100644 index 00000000..9f938e9d --- /dev/null +++ b/src/main/java/com/clerk/backend_api/operations/UpdateSCIMDirectory.java @@ -0,0 +1,226 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.clerk.backend_api.operations; + +import static com.clerk.backend_api.operations.Operations.RequestOperation; +import static com.clerk.backend_api.utils.Retries.NonRetryableException; +import static com.clerk.backend_api.utils.Exceptions.unchecked; + +import com.clerk.backend_api.SDKConfiguration; +import com.clerk.backend_api.SecuritySource; +import com.clerk.backend_api.models.components.SCIMDirectory; +import com.clerk.backend_api.models.errors.ClerkErrors; +import com.clerk.backend_api.models.errors.SDKError; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryRequest; +import com.clerk.backend_api.models.operations.UpdateSCIMDirectoryResponse; +import com.clerk.backend_api.utils.BackoffStrategy; +import com.clerk.backend_api.utils.HTTPClient; +import com.clerk.backend_api.utils.HTTPRequest; +import com.clerk.backend_api.utils.Headers; +import com.clerk.backend_api.utils.Hook.AfterErrorContextImpl; +import com.clerk.backend_api.utils.Hook.AfterSuccessContextImpl; +import com.clerk.backend_api.utils.Hook.BeforeRequestContextImpl; +import com.clerk.backend_api.utils.Options; +import com.clerk.backend_api.utils.Retries; +import com.clerk.backend_api.utils.RetryConfig; +import com.clerk.backend_api.utils.SerializedBody; +import com.clerk.backend_api.utils.Utils.JsonShape; +import com.clerk.backend_api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + + +public class UpdateSCIMDirectory { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final List retryStatusCodes; + final RetryConfig retryConfig; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + options + .ifPresent(o -> o.validate(List.of(Options.Option.RETRY_CONFIG))); + this.retryStatusCodes = List.of("5XX"); + this.retryConfig = options + .flatMap(Options::retryConfig) + .or(sdkConfiguration::retryConfig) + .orElse(RetryConfig.builder().backoff(BackoffStrategy.builder() + .initialInterval(500, TimeUnit.MILLISECONDS) + .maxInterval(60000, TimeUnit.MILLISECONDS) + .baseFactor((double) (1.5)) + .maxElapsedTime(3600000, TimeUnit.MILLISECONDS) + .retryConnectError(true) + .build()) + .build()); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "UpdateSCIMDirectory", + java.util.Optional.empty(), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/scim_directories/{scim_directory_id}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional options, + Headers _headers) { + super( + sdkConfiguration, options, + _headers); + } + + private HttpRequest onBuildRequest(UpdateSCIMDirectoryRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateSCIMDirectoryRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateSCIMDirectoryRequest request) { + Retries retries = Retries.builder() + .action(() -> { + HttpRequest r; + try { + r = onBuildRequest(request); + } catch (Exception e) { + throw new NonRetryableException(e); + } + try { + HttpResponse httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + return onError(httpRes, null); + } + return httpRes; + } catch (Exception e) { + return onError(null, e); + } + }) + .retryConfig(retryConfig) + .statusCodes(retryStatusCodes) + .build(); + return unchecked(() -> onSuccess(retries.run())).get(); + } + + + @Override + public UpdateSCIMDirectoryResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateSCIMDirectoryResponse.Builder resBuilder = + UpdateSCIMDirectoryResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateSCIMDirectoryResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withSCIMDirectory(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "403", "404", "422")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ClerkErrors.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/clerk/backend_api/operations/UpsertTemplate.java b/src/main/java/com/clerk/backend_api/operations/UpsertTemplate.java index 3403c1ba..fa1b2f4d 100644 --- a/src/main/java/com/clerk/backend_api/operations/UpsertTemplate.java +++ b/src/main/java/com/clerk/backend_api/operations/UpsertTemplate.java @@ -205,7 +205,7 @@ public UpsertTemplateResponse handleResponse(HttpResponse response) throw SDKError.from("Unexpected content-type received: " + contentType, response); } } - if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "402", "403", "404", "422")) { + if (Utils.statusCodeMatches(response.statusCode(), "400", "401", "402", "403", "404", "422", "423", "429")) { if (Utils.contentTypeMatches(contentType, "application/json")) { throw ClerkErrors.from(response); } else { diff --git a/src/main/java/com/clerk/backend_api/utils/Multipart.java b/src/main/java/com/clerk/backend_api/utils/Multipart.java index 9cc680c5..2f4fe8c2 100644 --- a/src/main/java/com/clerk/backend_api/utils/Multipart.java +++ b/src/main/java/com/clerk/backend_api/utils/Multipart.java @@ -123,7 +123,7 @@ static final class FormField implements Part { FormField(String name, String value, String contentType) { this.name = name; this.value = value; - this.contentType = contentType != null ? contentType : "text/plain; charset=UTF-8"; + this.contentType = stripCrlf(contentType != null ? contentType : "text/plain; charset=UTF-8"); } @Override @@ -153,7 +153,7 @@ static final class FilePart implements Part { FilePart(String name, Blob blob, String filename, String contentType) { this.name = name; this.filename = filename; - this.contentType = contentType != null ? contentType : DEFAULT_FILE_CT; + this.contentType = stripCrlf(contentType != null ? contentType : DEFAULT_FILE_CT); this.blob = blob; } @@ -188,6 +188,12 @@ private static String escapeQuoted(String s) { return out.toString(); } + private static String stripCrlf(String s) { + if (s == null) return null; + if (s.indexOf('\r') < 0 && s.indexOf('\n') < 0) return s; + return s.replace("\r", "").replace("\n", ""); + } + /** * RFC 5987 filename* with ASCII fallback. */ diff --git a/src/main/java/com/clerk/backend_api/utils/Retries.java b/src/main/java/com/clerk/backend_api/utils/Retries.java index 8a74b2e2..6f35e37b 100644 --- a/src/main/java/com/clerk/backend_api/utils/Retries.java +++ b/src/main/java/com/clerk/backend_api/utils/Retries.java @@ -44,10 +44,10 @@ public NonRetryableException(Exception exception) { super(exception); this.exception = exception; } - + public Exception exception() { return exception; - } + } } @SuppressWarnings("serial") @@ -57,7 +57,7 @@ public static final class RetryableException extends Exception { public RetryableException(HttpResponse response) { this.response = response; } - + public HttpResponse response() { return response; } @@ -125,6 +125,15 @@ private HttpResponse getResponse(boolean retryConnectError, boolean } private static long retryAfterMs(HttpResponse response) { + String retryAfterMs = response.headers().firstValue("retry-after-ms").orElse(null); + if (retryAfterMs != null && !retryAfterMs.isEmpty()) { + try { + long milliseconds = Long.parseLong(retryAfterMs); + return milliseconds < 0 ? 0 : milliseconds; + } catch (NumberFormatException ignored) { + } + } + String retryAfter = response.headers().firstValue("retry-after").orElse(null); if (retryAfter == null || retryAfter.isEmpty()) { return 0; diff --git a/src/main/java/com/clerk/backend_api/utils/SpeakeasyHTTPClient.java b/src/main/java/com/clerk/backend_api/utils/SpeakeasyHTTPClient.java index 4f34a98e..bce0929f 100644 --- a/src/main/java/com/clerk/backend_api/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/com/clerk/backend_api/utils/SpeakeasyHTTPClient.java @@ -36,6 +36,15 @@ public class SpeakeasyHTTPClient implements HTTPClient { private final HttpClient client = HttpClient.newHttpClient(); + private static final Set STREAMING_MEDIA_TYPES = + Set.of("text/event-stream", "application/x-ndjson", "application/jsonl"); + + private static boolean isStreamingMediaType(String value) { + int paramsIndex = value.indexOf(';'); + String mediaType = paramsIndex == -1 ? value : value.substring(0, paramsIndex); + return STREAMING_MEDIA_TYPES.contains(mediaType.trim().toLowerCase(Locale.ENGLISH)); + } + /** * Sets debug logging on or off for requests and responses including bodies for JSON content. *

@@ -149,7 +158,7 @@ private static HttpResponse logResponse(HttpResponse r log("Response headers: " + redactHeaders(response.headers())); // skip caching for streaming responses - they may hang - if (contentType.startsWith("text/event-stream") || contentType.startsWith("application/x-ndjson")) { + if (isStreamingMediaType(contentType)) { return response; } diff --git a/src/main/java/com/clerk/backend_api/utils/StreamingParser.java b/src/main/java/com/clerk/backend_api/utils/StreamingParser.java index 6ee37f5c..a941e3c4 100644 --- a/src/main/java/com/clerk/backend_api/utils/StreamingParser.java +++ b/src/main/java/com/clerk/backend_api/utils/StreamingParser.java @@ -176,18 +176,25 @@ private static class JsonLContentProcessor implements StreamContentProcessor eventId = Optional.empty(); + // Scan state preserved across reads; offsets stay valid because the + // parser compacts and resets this state after each boundary. + private int scanPos = 0; + private int lineStart = 0; + // A trailing CR may complete to CRLF on the next read; in that case + // the LF belongs to the same line ending, not a new empty line. + private boolean pendingCRLF = false; + @Override public BoundaryInfo findBoundary(byte[] data, int limit) { - int lineStart = 0, i = lineStart; + int i = scanPos; + if (pendingCRLF) { + pendingCRLF = false; + if (i < limit && data[i] == LF && i == lineStart) { + lineStart = i + 1; + i = i + 1; + } + } while (i < limit) { for (byte[] pattern : BOUNDARY_PATTERNS) { if (matchesPattern(data, i, limit, pattern)) { @@ -229,8 +251,14 @@ public BoundaryInfo findBoundary(byte[] data, int limit) { boundStart--; } int boundLength = (lineStart - boundStart) + pattern.length; + scanPos = 0; + lineStart = 0; + pendingCRLF = false; return new BoundaryInfo(boundStart, boundLength); } + if (pattern.length == 1 && data[i] == CR && i == limit - 1) { + pendingCRLF = true; + } lineStart = i + pattern.length; i = lineStart - 1; break; @@ -238,6 +266,7 @@ public BoundaryInfo findBoundary(byte[] data, int limit) { } i++; } + scanPos = i; return new BoundaryInfo(-1, 0); }