Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: added test for saml in api e2e
=02601b195f90
diff --git a/backend/src/ee/routes/v1/email-domain-router.ts b/backend/src/ee/routes/v1/email-domain-router.tsindex 3f683d3ed3..5327cc4798 100644--- a/backend/src/ee/routes/v1/email-domain-router.ts+++ b/backend/src/ee/routes/v1/email-domain-router.ts@@ -17,6 +17,7 @@ export const registerEmailDomainRouter = async (server: FastifyZodProvider) => {},onRequest: verifyAuth([AuthMode.JWT]),schema: {+ operationId: "createEmailDomain",body: z.object({domain: z.string().trim().toLowerCase().min(1).describe("The domain to verify (e.g., company.com)")}),@@ -69,6 +70,7 @@ export const registerEmailDomainRouter = async (server: FastifyZodProvider) => {},onRequest: verifyAuth([AuthMode.JWT]),schema: {+ operationId: "verifyEmailDomain",params: z.object({emailDomainId: z.string().uuid().describe("The ID of the email domain to verify")}),@@ -124,6 +126,7 @@ export const registerEmailDomainRouter = async (server: FastifyZodProvider) => {},onRequest: verifyAuth([AuthMode.JWT, AuthMode.OAUTH]),schema: {+ operationId: "listEmailDomains",response: {200: z.object({emailDomains: z.array(EmailDomainsSchema)diff --git a/backend/src/ee/routes/v1/saml-router.ts b/backend/src/ee/routes/v1/saml-router.tsindex 24c67b98de..adc0cc93a2 100644--- a/backend/src/ee/routes/v1/saml-router.ts+++ b/backend/src/ee/routes/v1/saml-router.ts@@ -255,6 +255,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {rateLimit: readLimit},schema: {+ operationId: "redirectSamlByDomain",params: z.object({domain: z.string().trim()}),@@ -286,6 +287,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {rateLimit: readLimit},schema: {+ operationId: "redirectSamlByOrgSlug",params: z.object({orgSlug: z.string().trim()}),@@ -317,6 +319,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {rateLimit: readLimit},schema: {+ operationId: "redirectSamlByConfigId",params: z.object({samlConfigId: z.string().trim()}),@@ -348,8 +351,15 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {rateLimit: writeLimit},schema: {+ operationId: "samlAcs",+ consumes: ["application/x-www-form-urlencoded"],params: z.object({samlConfigId: z.string().trim()+ }),+ // Unbounded on purpose: passport reads the body in preValidation, before this schema runs.+ body: z.object({+ SAMLResponse: z.string().optional(),+ RelayState: z.string().optional()})},preValidation: passport.authenticate(@@ -402,6 +412,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {schema: {hide: false,tags: [ApiDocsTags.SamlSso],+ operationId: "getSamlConfig",description: "Get SAML config",security: [{@@ -449,6 +460,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {schema: {hide: false,tags: [ApiDocsTags.SamlSso],+ operationId: "createSamlConfig",description: "Create SAML config",security: [{@@ -513,6 +525,7 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {schema: {hide: false,tags: [ApiDocsTags.SamlSso],+ operationId: "updateSamlConfig",description: "Update SAML config",security: [{diff --git a/tests/clients/api/api.gen.go b/tests/clients/api/api.gen.goindex 2de5f7a400..d2c6442a34 100644--- a/tests/clients/api/api.gen.go+++ b/tests/clients/api/api.gen.go@@ -1509,6 +1509,276 @@ func (e LoginWithUniversalAuth500JSONResponseBodyStatusCode) Valid() bool {}}+// Defines values for ListEmailDomains400JSONResponseBodyStatusCode.+const (+ ListEmailDomains400JSONResponseBodyStatusCodeN400 ListEmailDomains400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the ListEmailDomains400JSONResponseBodyStatusCode enum.+func (e ListEmailDomains400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for ListEmailDomains401JSONResponseBodyStatusCode.+const (+ ListEmailDomains401JSONResponseBodyStatusCodeN401 ListEmailDomains401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the ListEmailDomains401JSONResponseBodyStatusCode enum.+func (e ListEmailDomains401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for ListEmailDomains403JSONResponseBodyStatusCode.+const (+ ListEmailDomains403JSONResponseBodyStatusCodeN403 ListEmailDomains403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the ListEmailDomains403JSONResponseBodyStatusCode enum.+func (e ListEmailDomains403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for ListEmailDomains404JSONResponseBodyStatusCode.+const (+ ListEmailDomains404JSONResponseBodyStatusCodeN404 ListEmailDomains404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the ListEmailDomains404JSONResponseBodyStatusCode enum.+func (e ListEmailDomains404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for ListEmailDomains422JSONResponseBodyStatusCode.+const (+ ListEmailDomains422JSONResponseBodyStatusCodeN422 ListEmailDomains422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the ListEmailDomains422JSONResponseBodyStatusCode enum.+func (e ListEmailDomains422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for ListEmailDomains500JSONResponseBodyStatusCode.+const (+ ListEmailDomains500JSONResponseBodyStatusCodeN500 ListEmailDomains500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the ListEmailDomains500JSONResponseBodyStatusCode enum.+func (e ListEmailDomains500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListEmailDomains500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain400JSONResponseBodyStatusCode.+const (+ CreateEmailDomain400JSONResponseBodyStatusCodeN400 CreateEmailDomain400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the CreateEmailDomain400JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain401JSONResponseBodyStatusCode.+const (+ CreateEmailDomain401JSONResponseBodyStatusCodeN401 CreateEmailDomain401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the CreateEmailDomain401JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain403JSONResponseBodyStatusCode.+const (+ CreateEmailDomain403JSONResponseBodyStatusCodeN403 CreateEmailDomain403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the CreateEmailDomain403JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain404JSONResponseBodyStatusCode.+const (+ CreateEmailDomain404JSONResponseBodyStatusCodeN404 CreateEmailDomain404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the CreateEmailDomain404JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain422JSONResponseBodyStatusCode.+const (+ CreateEmailDomain422JSONResponseBodyStatusCodeN422 CreateEmailDomain422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the CreateEmailDomain422JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for CreateEmailDomain500JSONResponseBodyStatusCode.+const (+ CreateEmailDomain500JSONResponseBodyStatusCodeN500 CreateEmailDomain500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the CreateEmailDomain500JSONResponseBodyStatusCode enum.+func (e CreateEmailDomain500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateEmailDomain500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain400JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain400JSONResponseBodyStatusCodeN400 VerifyEmailDomain400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain400JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain401JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain401JSONResponseBodyStatusCodeN401 VerifyEmailDomain401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain401JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain403JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain403JSONResponseBodyStatusCodeN403 VerifyEmailDomain403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain403JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain404JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain404JSONResponseBodyStatusCodeN404 VerifyEmailDomain404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain404JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain422JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain422JSONResponseBodyStatusCodeN422 VerifyEmailDomain422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain422JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for VerifyEmailDomain500JSONResponseBodyStatusCode.+const (+ VerifyEmailDomain500JSONResponseBodyStatusCodeN500 VerifyEmailDomain500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the VerifyEmailDomain500JSONResponseBodyStatusCode enum.+func (e VerifyEmailDomain500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case VerifyEmailDomain500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}+// Defines values for CreateGroup400JSONResponseBodyStatusCode.const (CreateGroup400JSONResponseBodyStatusCodeN400 CreateGroup400JSONResponseBodyStatusCode = 400@@ -2049,6 +2319,96 @@ func (e VerifyUserToOrganization500JSONResponseBodyStatusCode) Valid() bool {}}+// Defines values for GetOrganizationById400JSONResponseBodyStatusCode.+const (+ GetOrganizationById400JSONResponseBodyStatusCodeN400 GetOrganizationById400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the GetOrganizationById400JSONResponseBodyStatusCode enum.+func (e GetOrganizationById400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for GetOrganizationById401JSONResponseBodyStatusCode.+const (+ GetOrganizationById401JSONResponseBodyStatusCodeN401 GetOrganizationById401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the GetOrganizationById401JSONResponseBodyStatusCode enum.+func (e GetOrganizationById401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for GetOrganizationById403JSONResponseBodyStatusCode.+const (+ GetOrganizationById403JSONResponseBodyStatusCodeN403 GetOrganizationById403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the GetOrganizationById403JSONResponseBodyStatusCode enum.+func (e GetOrganizationById403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for GetOrganizationById404JSONResponseBodyStatusCode.+const (+ GetOrganizationById404JSONResponseBodyStatusCodeN404 GetOrganizationById404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the GetOrganizationById404JSONResponseBodyStatusCode enum.+func (e GetOrganizationById404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for GetOrganizationById422JSONResponseBodyStatusCode.+const (+ GetOrganizationById422JSONResponseBodyStatusCodeN422 GetOrganizationById422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the GetOrganizationById422JSONResponseBodyStatusCode enum.+func (e GetOrganizationById422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for GetOrganizationById500JSONResponseBodyStatusCode.+const (+ GetOrganizationById500JSONResponseBodyStatusCodeN500 GetOrganizationById500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the GetOrganizationById500JSONResponseBodyStatusCode enum.+func (e GetOrganizationById500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrganizationById500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}+// Defines values for UpdateOrganizationJSONBodySecretShareBrandConfigPrimaryColor1.const (UpdateOrganizationJSONBodySecretShareBrandConfigPrimaryColor1Empty UpdateOrganizationJSONBodySecretShareBrandConfigPrimaryColor1 = ""@@ -5232,6 +5592,336 @@ func (e SyncGitHubSecretSync500JSONResponseBodyStatusCode) Valid() bool {}}+// Defines values for GetSamlConfig400JSONResponseBodyStatusCode.+const (+ GetSamlConfig400JSONResponseBodyStatusCodeN400 GetSamlConfig400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the GetSamlConfig400JSONResponseBodyStatusCode enum.+func (e GetSamlConfig400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for GetSamlConfig401JSONResponseBodyStatusCode.+const (+ GetSamlConfig401JSONResponseBodyStatusCodeN401 GetSamlConfig401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the GetSamlConfig401JSONResponseBodyStatusCode enum.+func (e GetSamlConfig401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for GetSamlConfig403JSONResponseBodyStatusCode.+const (+ GetSamlConfig403JSONResponseBodyStatusCodeN403 GetSamlConfig403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the GetSamlConfig403JSONResponseBodyStatusCode enum.+func (e GetSamlConfig403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for GetSamlConfig404JSONResponseBodyStatusCode.+const (+ GetSamlConfig404JSONResponseBodyStatusCodeN404 GetSamlConfig404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the GetSamlConfig404JSONResponseBodyStatusCode enum.+func (e GetSamlConfig404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for GetSamlConfig422JSONResponseBodyStatusCode.+const (+ GetSamlConfig422JSONResponseBodyStatusCodeN422 GetSamlConfig422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the GetSamlConfig422JSONResponseBodyStatusCode enum.+func (e GetSamlConfig422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for GetSamlConfig500JSONResponseBodyStatusCode.+const (+ GetSamlConfig500JSONResponseBodyStatusCodeN500 GetSamlConfig500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the GetSamlConfig500JSONResponseBodyStatusCode enum.+func (e GetSamlConfig500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetSamlConfig500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfigJSONBodyAuthProvider.+const (+ UpdateSamlConfigJSONBodyAuthProviderAuth0Saml UpdateSamlConfigJSONBodyAuthProvider = "auth0-saml"+ UpdateSamlConfigJSONBodyAuthProviderAzureSaml UpdateSamlConfigJSONBodyAuthProvider = "azure-saml"+ UpdateSamlConfigJSONBodyAuthProviderGoogleSaml UpdateSamlConfigJSONBodyAuthProvider = "google-saml"+ UpdateSamlConfigJSONBodyAuthProviderJumpcloudSaml UpdateSamlConfigJSONBodyAuthProvider = "jumpcloud-saml"+ UpdateSamlConfigJSONBodyAuthProviderKeycloakSaml UpdateSamlConfigJSONBodyAuthProvider = "keycloak-saml"+ UpdateSamlConfigJSONBodyAuthProviderOktaSaml UpdateSamlConfigJSONBodyAuthProvider = "okta-saml"+)++// Valid indicates whether the value is a known member of the UpdateSamlConfigJSONBodyAuthProvider enum.+func (e UpdateSamlConfigJSONBodyAuthProvider) Valid() bool {+ switch e {+ case UpdateSamlConfigJSONBodyAuthProviderAuth0Saml:+ return true+ case UpdateSamlConfigJSONBodyAuthProviderAzureSaml:+ return true+ case UpdateSamlConfigJSONBodyAuthProviderGoogleSaml:+ return true+ case UpdateSamlConfigJSONBodyAuthProviderJumpcloudSaml:+ return true+ case UpdateSamlConfigJSONBodyAuthProviderKeycloakSaml:+ return true+ case UpdateSamlConfigJSONBodyAuthProviderOktaSaml:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig400JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig400JSONResponseBodyStatusCodeN400 UpdateSamlConfig400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig400JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig401JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig401JSONResponseBodyStatusCodeN401 UpdateSamlConfig401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig401JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig403JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig403JSONResponseBodyStatusCodeN403 UpdateSamlConfig403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig403JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig404JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig404JSONResponseBodyStatusCodeN404 UpdateSamlConfig404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig404JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig422JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig422JSONResponseBodyStatusCodeN422 UpdateSamlConfig422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig422JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for UpdateSamlConfig500JSONResponseBodyStatusCode.+const (+ UpdateSamlConfig500JSONResponseBodyStatusCodeN500 UpdateSamlConfig500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the UpdateSamlConfig500JSONResponseBodyStatusCode enum.+func (e UpdateSamlConfig500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateSamlConfig500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfigJSONBodyAuthProvider.+const (+ CreateSamlConfigJSONBodyAuthProviderAuth0Saml CreateSamlConfigJSONBodyAuthProvider = "auth0-saml"+ CreateSamlConfigJSONBodyAuthProviderAzureSaml CreateSamlConfigJSONBodyAuthProvider = "azure-saml"+ CreateSamlConfigJSONBodyAuthProviderGoogleSaml CreateSamlConfigJSONBodyAuthProvider = "google-saml"+ CreateSamlConfigJSONBodyAuthProviderJumpcloudSaml CreateSamlConfigJSONBodyAuthProvider = "jumpcloud-saml"+ CreateSamlConfigJSONBodyAuthProviderKeycloakSaml CreateSamlConfigJSONBodyAuthProvider = "keycloak-saml"+ CreateSamlConfigJSONBodyAuthProviderOktaSaml CreateSamlConfigJSONBodyAuthProvider = "okta-saml"+)++// Valid indicates whether the value is a known member of the CreateSamlConfigJSONBodyAuthProvider enum.+func (e CreateSamlConfigJSONBodyAuthProvider) Valid() bool {+ switch e {+ case CreateSamlConfigJSONBodyAuthProviderAuth0Saml:+ return true+ case CreateSamlConfigJSONBodyAuthProviderAzureSaml:+ return true+ case CreateSamlConfigJSONBodyAuthProviderGoogleSaml:+ return true+ case CreateSamlConfigJSONBodyAuthProviderJumpcloudSaml:+ return true+ case CreateSamlConfigJSONBodyAuthProviderKeycloakSaml:+ return true+ case CreateSamlConfigJSONBodyAuthProviderOktaSaml:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig400JSONResponseBodyStatusCode.+const (+ CreateSamlConfig400JSONResponseBodyStatusCodeN400 CreateSamlConfig400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the CreateSamlConfig400JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig401JSONResponseBodyStatusCode.+const (+ CreateSamlConfig401JSONResponseBodyStatusCodeN401 CreateSamlConfig401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the CreateSamlConfig401JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig403JSONResponseBodyStatusCode.+const (+ CreateSamlConfig403JSONResponseBodyStatusCodeN403 CreateSamlConfig403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the CreateSamlConfig403JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig404JSONResponseBodyStatusCode.+const (+ CreateSamlConfig404JSONResponseBodyStatusCodeN404 CreateSamlConfig404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the CreateSamlConfig404JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig422JSONResponseBodyStatusCode.+const (+ CreateSamlConfig422JSONResponseBodyStatusCodeN422 CreateSamlConfig422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the CreateSamlConfig422JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for CreateSamlConfig500JSONResponseBodyStatusCode.+const (+ CreateSamlConfig500JSONResponseBodyStatusCodeN500 CreateSamlConfig500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the CreateSamlConfig500JSONResponseBodyStatusCode enum.+func (e CreateSamlConfig500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case CreateSamlConfig500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}+// Defines values for CreateSecretFolder400JSONResponseBodyStatusCode.const (CreateSecretFolder400JSONResponseBodyStatusCodeN400 CreateSecretFolder400JSONResponseBodyStatusCode = 400@@ -5502,6 +6192,276 @@ func (e DeleteOrganization500JSONResponseBodyStatusCode) Valid() bool {}}+// Defines values for ListOrgMemberships400JSONResponseBodyStatusCode.+const (+ ListOrgMemberships400JSONResponseBodyStatusCodeN400 ListOrgMemberships400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the ListOrgMemberships400JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for ListOrgMemberships401JSONResponseBodyStatusCode.+const (+ ListOrgMemberships401JSONResponseBodyStatusCodeN401 ListOrgMemberships401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the ListOrgMemberships401JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for ListOrgMemberships403JSONResponseBodyStatusCode.+const (+ ListOrgMemberships403JSONResponseBodyStatusCodeN403 ListOrgMemberships403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the ListOrgMemberships403JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for ListOrgMemberships404JSONResponseBodyStatusCode.+const (+ ListOrgMemberships404JSONResponseBodyStatusCodeN404 ListOrgMemberships404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the ListOrgMemberships404JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for ListOrgMemberships422JSONResponseBodyStatusCode.+const (+ ListOrgMemberships422JSONResponseBodyStatusCodeN422 ListOrgMemberships422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the ListOrgMemberships422JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for ListOrgMemberships500JSONResponseBodyStatusCode.+const (+ ListOrgMemberships500JSONResponseBodyStatusCodeN500 ListOrgMemberships500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the ListOrgMemberships500JSONResponseBodyStatusCode enum.+func (e ListOrgMemberships500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case ListOrgMemberships500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership400JSONResponseBodyStatusCode.+const (+ GetOrgMembership400JSONResponseBodyStatusCodeN400 GetOrgMembership400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the GetOrgMembership400JSONResponseBodyStatusCode enum.+func (e GetOrgMembership400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership401JSONResponseBodyStatusCode.+const (+ GetOrgMembership401JSONResponseBodyStatusCodeN401 GetOrgMembership401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the GetOrgMembership401JSONResponseBodyStatusCode enum.+func (e GetOrgMembership401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership403JSONResponseBodyStatusCode.+const (+ GetOrgMembership403JSONResponseBodyStatusCodeN403 GetOrgMembership403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the GetOrgMembership403JSONResponseBodyStatusCode enum.+func (e GetOrgMembership403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership404JSONResponseBodyStatusCode.+const (+ GetOrgMembership404JSONResponseBodyStatusCodeN404 GetOrgMembership404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the GetOrgMembership404JSONResponseBodyStatusCode enum.+func (e GetOrgMembership404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership422JSONResponseBodyStatusCode.+const (+ GetOrgMembership422JSONResponseBodyStatusCodeN422 GetOrgMembership422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the GetOrgMembership422JSONResponseBodyStatusCode enum.+func (e GetOrgMembership422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for GetOrgMembership500JSONResponseBodyStatusCode.+const (+ GetOrgMembership500JSONResponseBodyStatusCodeN500 GetOrgMembership500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the GetOrgMembership500JSONResponseBodyStatusCode enum.+func (e GetOrgMembership500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetOrgMembership500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership400JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership400JSONResponseBodyStatusCodeN400 UpdateOrgMembership400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership400JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership401JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership401JSONResponseBodyStatusCodeN401 UpdateOrgMembership401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership401JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership403JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership403JSONResponseBodyStatusCodeN403 UpdateOrgMembership403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership403JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership404JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership404JSONResponseBodyStatusCodeN404 UpdateOrgMembership404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership404JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership422JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership422JSONResponseBodyStatusCodeN422 UpdateOrgMembership422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership422JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for UpdateOrgMembership500JSONResponseBodyStatusCode.+const (+ UpdateOrgMembership500JSONResponseBodyStatusCodeN500 UpdateOrgMembership500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the UpdateOrgMembership500JSONResponseBodyStatusCode enum.+func (e UpdateOrgMembership500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case UpdateOrgMembership500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}+// Defines values for CreateSecretApprovalPolicyJSONBodyApprovers0Type.const (CreateSecretApprovalPolicyJSONBodyApprovers0TypeGroup CreateSecretApprovalPolicyJSONBodyApprovers0Type = "group"@@ -6234,6 +7194,96 @@ func (e CreateSecretImport500JSONResponseBodyStatusCode) Valid() bool {}}+// Defines values for GetCurrentUser400JSONResponseBodyStatusCode.+const (+ GetCurrentUser400JSONResponseBodyStatusCodeN400 GetCurrentUser400JSONResponseBodyStatusCode = 400+)++// Valid indicates whether the value is a known member of the GetCurrentUser400JSONResponseBodyStatusCode enum.+func (e GetCurrentUser400JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser400JSONResponseBodyStatusCodeN400:+ return true+ default:+ return false+ }+}++// Defines values for GetCurrentUser401JSONResponseBodyStatusCode.+const (+ GetCurrentUser401JSONResponseBodyStatusCodeN401 GetCurrentUser401JSONResponseBodyStatusCode = 401+)++// Valid indicates whether the value is a known member of the GetCurrentUser401JSONResponseBodyStatusCode enum.+func (e GetCurrentUser401JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser401JSONResponseBodyStatusCodeN401:+ return true+ default:+ return false+ }+}++// Defines values for GetCurrentUser403JSONResponseBodyStatusCode.+const (+ GetCurrentUser403JSONResponseBodyStatusCodeN403 GetCurrentUser403JSONResponseBodyStatusCode = 403+)++// Valid indicates whether the value is a known member of the GetCurrentUser403JSONResponseBodyStatusCode enum.+func (e GetCurrentUser403JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser403JSONResponseBodyStatusCodeN403:+ return true+ default:+ return false+ }+}++// Defines values for GetCurrentUser404JSONResponseBodyStatusCode.+const (+ GetCurrentUser404JSONResponseBodyStatusCodeN404 GetCurrentUser404JSONResponseBodyStatusCode = 404+)++// Valid indicates whether the value is a known member of the GetCurrentUser404JSONResponseBodyStatusCode enum.+func (e GetCurrentUser404JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser404JSONResponseBodyStatusCodeN404:+ return true+ default:+ return false+ }+}++// Defines values for GetCurrentUser422JSONResponseBodyStatusCode.+const (+ GetCurrentUser422JSONResponseBodyStatusCodeN422 GetCurrentUser422JSONResponseBodyStatusCode = 422+)++// Valid indicates whether the value is a known member of the GetCurrentUser422JSONResponseBodyStatusCode enum.+func (e GetCurrentUser422JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser422JSONResponseBodyStatusCodeN422:+ return true+ default:+ return false+ }+}++// Defines values for GetCurrentUser500JSONResponseBodyStatusCode.+const (+ GetCurrentUser500JSONResponseBodyStatusCodeN500 GetCurrentUser500JSONResponseBodyStatusCode = 500+)++// Valid indicates whether the value is a known member of the GetCurrentUser500JSONResponseBodyStatusCode enum.+func (e GetCurrentUser500JSONResponseBodyStatusCode) Valid() bool {+ switch e {+ case GetCurrentUser500JSONResponseBodyStatusCodeN500:+ return true+ default:+ return false+ }+}+// Defines values for LoginV3400JSONResponseBodyStatusCode.const (LoginV3400JSONResponseBodyStatusCodeN400 LoginV3400JSONResponseBodyStatusCode = 400@@ -9066,6 +10116,66 @@ type LoginWithUniversalAuth422JSONResponseBodyStatusCode float32// LoginWithUniversalAuth500JSONResponseBodyStatusCode defines parameters for LoginWithUniversalAuth.type LoginWithUniversalAuth500JSONResponseBodyStatusCode float32+// ListEmailDomains400JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains400JSONResponseBodyStatusCode float32++// ListEmailDomains401JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains401JSONResponseBodyStatusCode float32++// ListEmailDomains403JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains403JSONResponseBodyStatusCode float32++// ListEmailDomains404JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains404JSONResponseBodyStatusCode float32++// ListEmailDomains422JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains422JSONResponseBodyStatusCode float32++// ListEmailDomains500JSONResponseBodyStatusCode defines parameters for ListEmailDomains.+type ListEmailDomains500JSONResponseBodyStatusCode float32++// CreateEmailDomainJSONBody defines parameters for CreateEmailDomain.+type CreateEmailDomainJSONBody struct {+ // Domain The domain to verify (e.g., company.com)+ Domain string `json:"domain"`+}++// CreateEmailDomain400JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain400JSONResponseBodyStatusCode float32++// CreateEmailDomain401JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain401JSONResponseBodyStatusCode float32++// CreateEmailDomain403JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain403JSONResponseBodyStatusCode float32++// CreateEmailDomain404JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain404JSONResponseBodyStatusCode float32++// CreateEmailDomain422JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain422JSONResponseBodyStatusCode float32++// CreateEmailDomain500JSONResponseBodyStatusCode defines parameters for CreateEmailDomain.+type CreateEmailDomain500JSONResponseBodyStatusCode float32++// VerifyEmailDomain400JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain400JSONResponseBodyStatusCode float32++// VerifyEmailDomain401JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain401JSONResponseBodyStatusCode float32++// VerifyEmailDomain403JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain403JSONResponseBodyStatusCode float32++// VerifyEmailDomain404JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain404JSONResponseBodyStatusCode float32++// VerifyEmailDomain422JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain422JSONResponseBodyStatusCode float32++// VerifyEmailDomain500JSONResponseBodyStatusCode defines parameters for VerifyEmailDomain.+type VerifyEmailDomain500JSONResponseBodyStatusCode float32+// CreateGroupJSONBody defines parameters for CreateGroup.type CreateGroupJSONBody struct {// Name The name of the group to create.@@ -9222,6 +10332,24 @@ type VerifyUserToOrganization422JSONResponseBodyStatusCode float32// VerifyUserToOrganization500JSONResponseBodyStatusCode defines parameters for VerifyUserToOrganization.type VerifyUserToOrganization500JSONResponseBodyStatusCode float32+// GetOrganizationById400JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById400JSONResponseBodyStatusCode float32++// GetOrganizationById401JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById401JSONResponseBodyStatusCode float32++// GetOrganizationById403JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById403JSONResponseBodyStatusCode float32++// GetOrganizationById404JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById404JSONResponseBodyStatusCode float32++// GetOrganizationById422JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById422JSONResponseBodyStatusCode float32++// GetOrganizationById500JSONResponseBodyStatusCode defines parameters for GetOrganizationById.+type GetOrganizationById500JSONResponseBodyStatusCode float32+// UpdateOrganizationJSONBody defines parameters for UpdateOrganization.type UpdateOrganizationJSONBody struct {// AllowCrossProjectSecretSharing Allow secret imports and references to target secrets in other projects within the organization@@ -10482,6 +11610,146 @@ type SyncGitHubSecretSync422JSONResponseBodyStatusCode float32// SyncGitHubSecretSync500JSONResponseBodyStatusCode defines parameters for SyncGitHubSecretSync.type SyncGitHubSecretSync500JSONResponseBodyStatusCode float32+// GetSamlConfigParams defines parameters for GetSamlConfig.+type GetSamlConfigParams struct {+ // OrganizationId The ID of the organization to get the SAML config for.+ OrganizationId string `form:"organizationId" json:"organizationId"`+}++// GetSamlConfig400JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig400JSONResponseBodyStatusCode float32++// GetSamlConfig401JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig401JSONResponseBodyStatusCode float32++// GetSamlConfig403JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig403JSONResponseBodyStatusCode float32++// GetSamlConfig404JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig404JSONResponseBodyStatusCode float32++// GetSamlConfig422JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig422JSONResponseBodyStatusCode float32++// GetSamlConfig500JSONResponseBodyStatusCode defines parameters for GetSamlConfig.+type GetSamlConfig500JSONResponseBodyStatusCode float32++// UpdateSamlConfigJSONBody defines parameters for UpdateSamlConfig.+type UpdateSamlConfigJSONBody struct {+ // AuthProvider Authentication provider to use for SAML authentication.+ AuthProvider *UpdateSamlConfigJSONBodyAuthProvider `json:"authProvider,omitempty"`++ // Cert The certificate to use for SAML authentication.+ Cert *string `json:"cert,omitempty"`++ // EnableGroupSync Whether to enable automatic synchronization of group memberships from the SAML provider to Infisical groups.+ EnableGroupSync *bool `json:"enableGroupSync,omitempty"`++ // EntryPoint The entry point for the SAML authentication. This is the URL that the user will be redirected to after they have authenticated with the SAML provider.+ EntryPoint *string `json:"entryPoint,omitempty"`++ // IsActive Whether to enable or disable this SAML configuration.+ IsActive *bool `json:"isActive,omitempty"`++ // Issuer The SAML provider issuer URL or entity ID.+ Issuer *string `json:"issuer,omitempty"`++ // OrganizationId The ID of the organization to update the SAML config for.+ OrganizationId string `json:"organizationId"`+}++// UpdateSamlConfigJSONBodyAuthProvider defines parameters for UpdateSamlConfig.+type UpdateSamlConfigJSONBodyAuthProvider string++// UpdateSamlConfig400JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig400JSONResponseBodyStatusCode float32++// UpdateSamlConfig401JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig401JSONResponseBodyStatusCode float32++// UpdateSamlConfig403JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig403JSONResponseBodyStatusCode float32++// UpdateSamlConfig404JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig404JSONResponseBodyStatusCode float32++// UpdateSamlConfig422JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig422JSONResponseBodyStatusCode float32++// UpdateSamlConfig500JSONResponseBodyStatusCode defines parameters for UpdateSamlConfig.+type UpdateSamlConfig500JSONResponseBodyStatusCode float32++// CreateSamlConfigJSONBody defines parameters for CreateSamlConfig.+type CreateSamlConfigJSONBody struct {+ // AuthProvider Authentication provider to use for SAML authentication.+ AuthProvider CreateSamlConfigJSONBodyAuthProvider `json:"authProvider"`++ // Cert The certificate to use for SAML authentication.+ Cert string `json:"cert"`++ // EnableGroupSync Whether to enable automatic synchronization of group memberships from the SAML provider to Infisical groups.+ EnableGroupSync *bool `json:"enableGroupSync,omitempty"`++ // EntryPoint The entry point for the SAML authentication. This is the URL that the user will be redirected to after they have authenticated with the SAML provider.+ EntryPoint string `json:"entryPoint"`++ // IsActive Whether to enable or disable this SAML configuration.+ IsActive bool `json:"isActive"`++ // Issuer The SAML provider issuer URL or entity ID.+ Issuer string `json:"issuer"`++ // OrganizationId The ID of the organization to create the SAML config for.+ OrganizationId string `json:"organizationId"`+}++// CreateSamlConfigJSONBodyAuthProvider defines parameters for CreateSamlConfig.+type CreateSamlConfigJSONBodyAuthProvider string++// CreateSamlConfig400JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig400JSONResponseBodyStatusCode float32++// CreateSamlConfig401JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig401JSONResponseBodyStatusCode float32++// CreateSamlConfig403JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig403JSONResponseBodyStatusCode float32++// CreateSamlConfig404JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig404JSONResponseBodyStatusCode float32++// CreateSamlConfig422JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig422JSONResponseBodyStatusCode float32++// CreateSamlConfig500JSONResponseBodyStatusCode defines parameters for CreateSamlConfig.+type CreateSamlConfig500JSONResponseBodyStatusCode float32++// RedirectOrgSSOParams defines parameters for RedirectOrgSSO.+type RedirectOrgSSOParams struct {+ CallbackPort *string `form:"callback_port,omitempty" json:"callback_port,omitempty"`+}++// RedirectSamlByDomainParams defines parameters for RedirectSamlByDomain.+type RedirectSamlByDomainParams struct {+ CallbackPort *string `form:"callback_port,omitempty" json:"callback_port,omitempty"`+}++// RedirectSamlByOrgSlugParams defines parameters for RedirectSamlByOrgSlug.+type RedirectSamlByOrgSlugParams struct {+ CallbackPort *string `form:"callback_port,omitempty" json:"callback_port,omitempty"`+}++// RedirectSamlByConfigIdParams defines parameters for RedirectSamlByConfigId.+type RedirectSamlByConfigIdParams struct {+ CallbackPort *string `form:"callback_port,omitempty" json:"callback_port,omitempty"`+}++// SamlAcsFormdataBody defines parameters for SamlAcs.+type SamlAcsFormdataBody struct {+ RelayState *string `form:"RelayState,omitempty" json:"RelayState,omitempty"`+ SAMLResponse *string `form:"SAMLResponse,omitempty" json:"SAMLResponse,omitempty"`+}+// CreateSecretFolderJSONBody defines parameters for CreateSecretFolder.type CreateSecretFolderJSONBody struct {// Description An optional description label for the folder.@@ -10559,6 +11827,76 @@ type DeleteOrganization422JSONResponseBodyStatusCode float32// DeleteOrganization500JSONResponseBodyStatusCode defines parameters for DeleteOrganization.type DeleteOrganization500JSONResponseBodyStatusCode float32+// ListOrgMemberships400JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships400JSONResponseBodyStatusCode float32++// ListOrgMemberships401JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships401JSONResponseBodyStatusCode float32++// ListOrgMemberships403JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships403JSONResponseBodyStatusCode float32++// ListOrgMemberships404JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships404JSONResponseBodyStatusCode float32++// ListOrgMemberships422JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships422JSONResponseBodyStatusCode float32++// ListOrgMemberships500JSONResponseBodyStatusCode defines parameters for ListOrgMemberships.+type ListOrgMemberships500JSONResponseBodyStatusCode float32++// GetOrgMembership400JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership400JSONResponseBodyStatusCode float32++// GetOrgMembership401JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership401JSONResponseBodyStatusCode float32++// GetOrgMembership403JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership403JSONResponseBodyStatusCode float32++// GetOrgMembership404JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership404JSONResponseBodyStatusCode float32++// GetOrgMembership422JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership422JSONResponseBodyStatusCode float32++// GetOrgMembership500JSONResponseBodyStatusCode defines parameters for GetOrgMembership.+type GetOrgMembership500JSONResponseBodyStatusCode float32++// UpdateOrgMembershipJSONBody defines parameters for UpdateOrgMembership.+type UpdateOrgMembershipJSONBody struct {+ // IsActive The active status of the membership+ IsActive *bool `json:"isActive,omitempty"`+ Metadata *[]struct {+ // Key The key for user metadata tag.+ Key string `json:"key"`++ // Value The value for user metadata tag.+ Value string `json:"value"`+ } `json:"metadata,omitempty"`++ // Role The new role of the membership.+ Role *string `json:"role,omitempty"`+}++// UpdateOrgMembership400JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership400JSONResponseBodyStatusCode float32++// UpdateOrgMembership401JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership401JSONResponseBodyStatusCode float32++// UpdateOrgMembership403JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership403JSONResponseBodyStatusCode float32++// UpdateOrgMembership404JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership404JSONResponseBodyStatusCode float32++// UpdateOrgMembership422JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership422JSONResponseBodyStatusCode float32++// UpdateOrgMembership500JSONResponseBodyStatusCode defines parameters for UpdateOrgMembership.+type UpdateOrgMembership500JSONResponseBodyStatusCode float32+// CreateSecretApprovalPolicyJSONBody defines parameters for CreateSecretApprovalPolicy.type CreateSecretApprovalPolicyJSONBody struct {AllowedSelfApprovals *bool `json:"allowedSelfApprovals,omitempty"`@@ -10835,6 +12173,24 @@ type CreateSecretImport422JSONResponseBodyStatusCode float32// CreateSecretImport500JSONResponseBodyStatusCode defines parameters for CreateSecretImport.type CreateSecretImport500JSONResponseBodyStatusCode float32+// GetCurrentUser400JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser400JSONResponseBodyStatusCode float32++// GetCurrentUser401JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser401JSONResponseBodyStatusCode float32++// GetCurrentUser403JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser403JSONResponseBodyStatusCode float32++// GetCurrentUser404JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser404JSONResponseBodyStatusCode float32++// GetCurrentUser422JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser422JSONResponseBodyStatusCode float32++// GetCurrentUser500JSONResponseBodyStatusCode defines parameters for GetCurrentUser.+type GetCurrentUser500JSONResponseBodyStatusCode float32+// LoginV3JSONBody defines parameters for LoginV3.type LoginV3JSONBody struct {CaptchaToken *string `json:"captchaToken,omitempty"`@@ -11685,7 +13041,7 @@ type UpdateSecretV4JSONBody struct {SecretReminderNote *string `json:"secretReminderNote,omitempty"`// SecretReminderRecipients An array of user IDs that will receive the reminder email. If not specified, all project members will receive the reminder email.- SecretReminderRecipients *[]string `json:"secretReminderRecipients,omitempty"`+ SecretReminderRecipients *[]openapi_types.UUID `json:"secretReminderRecipients,omitempty"`// SecretReminderRepeatDays Interval for secret rotation notifications, measured in days.SecretReminderRepeatDays *float32 `json:"secretReminderRepeatDays,omitempty"`@@ -11972,6 +13328,9 @@ type CreateUniversalAuthClientSecretJSONRequestBody CreateUniversalAuthClientSec// LoginWithUniversalAuthJSONRequestBody defines body for LoginWithUniversalAuth for application/json ContentType.type LoginWithUniversalAuthJSONRequestBody LoginWithUniversalAuthJSONBody+// CreateEmailDomainJSONRequestBody defines body for CreateEmailDomain for application/json ContentType.+type CreateEmailDomainJSONRequestBody CreateEmailDomainJSONBody+// CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType.type CreateGroupJSONRequestBody CreateGroupJSONBody@@ -12023,12 +13382,24 @@ type UpdateSecretApprovalRequestStatusJSONRequestBody UpdateSecretApprovalReques// CreateGitHubSecretSyncJSONRequestBody defines body for CreateGitHubSecretSync for application/json ContentType.type CreateGitHubSecretSyncJSONRequestBody CreateGitHubSecretSyncJSONBody+// UpdateSamlConfigJSONRequestBody defines body for UpdateSamlConfig for application/json ContentType.+type UpdateSamlConfigJSONRequestBody UpdateSamlConfigJSONBody++// CreateSamlConfigJSONRequestBody defines body for CreateSamlConfig for application/json ContentType.+type CreateSamlConfigJSONRequestBody CreateSamlConfigJSONBody++// SamlAcsFormdataRequestBody defines body for SamlAcs for application/x-www-form-urlencoded ContentType.+type SamlAcsFormdataRequestBody SamlAcsFormdataBody+// CreateSecretFolderJSONRequestBody defines body for CreateSecretFolder for application/json ContentType.type CreateSecretFolderJSONRequestBody CreateSecretFolderJSONBody// CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.type CreateOrganizationJSONRequestBody CreateOrganizationJSONBody+// UpdateOrgMembershipJSONRequestBody defines body for UpdateOrgMembership for application/json ContentType.+type UpdateOrgMembershipJSONRequestBody UpdateOrgMembershipJSONBody+// CreateSecretApprovalPolicyJSONRequestBody defines body for CreateSecretApprovalPolicy for application/json ContentType.type CreateSecretApprovalPolicyJSONRequestBody CreateSecretApprovalPolicyJSONBody@@ -15072,6 +16443,20 @@ type ClientInterface interface {// Login with Universal Auth for machine identity.LoginWithUniversalAuth(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+ // ListEmailDomains performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.+ ListEmailDomains(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateEmailDomainWithBody performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,+ // with any type of body and a specified content type.+ CreateEmailDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateEmailDomain performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.+ // Takes a body of the `application/json` content type.+ CreateEmailDomain(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // VerifyEmailDomain performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.+ VerifyEmailDomain(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)+// CreateGroupWithBody performs a POST /api/v1/groups (the `CreateGroup` operationId) request,// with any type of body and a specified content type.CreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)@@ -15114,6 +16499,9 @@ type ClientInterface interface {// Takes a body of the `application/json` content type.VerifyUserToOrganization(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+ // GetOrganizationById performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.+ GetOrganizationById(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)+// UpdateOrganizationWithBody performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,// with any type of body and a specified content type.UpdateOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)@@ -15286,6 +16674,55 @@ type ClientInterface interface {// Trigger a sync for the specified GitHub Sync.SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)+ // GetSamlConfig performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.+ //+ // Get SAML config.+ GetSamlConfig(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // UpdateSamlConfigWithBody performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,+ // with any type of body and a specified content type.+ //+ // Update SAML config.+ UpdateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // UpdateSamlConfig performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Update SAML config.+ UpdateSamlConfig(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateSamlConfigWithBody performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create SAML config.+ CreateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // CreateSamlConfig performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Create SAML config.+ CreateSamlConfig(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)++ // RedirectOrgSSO performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.+ RedirectOrgSSO(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // RedirectSamlByDomain performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.+ RedirectSamlByDomain(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // RedirectSamlByOrgSlug performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.+ RedirectSamlByOrgSlug(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // RedirectSamlByConfigId performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.+ RedirectSamlByConfigId(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)++ // SamlAcsWithBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,+ // with any type of body and a specified content type.+ SamlAcsWithBody(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // SamlAcsWithFormdataBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.+ // Takes a body of the `application/x-www-form-urlencoded` content type.+ SamlAcsWithFormdataBody(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// CreateSecretFolderWithBody performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,// with any type of body and a specified content type.//@@ -15309,6 +16746,28 @@ type ClientInterface interface {// DeleteOrganization performs a DELETE /api/v2/organizations/{organizationId} (the `DeleteOrganization` operationId) request.DeleteOrganization(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)+ // ListOrgMemberships performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.+ //+ // Return organization user memberships.+ ListOrgMemberships(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)++ // GetOrgMembership performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.+ //+ // Get organization user membership.+ GetOrgMembership(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*http.Response, error)++ // UpdateOrgMembershipWithBody performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,+ // with any type of body and a specified content type.+ //+ // Update organization user memberships.+ UpdateOrgMembershipWithBody(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)++ // UpdateOrgMembership performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.+ // Takes a body of the `application/json` content type.+ //+ // Update organization user memberships.+ UpdateOrgMembership(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+// CreateSecretApprovalPolicyWithBody performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,// with any type of body and a specified content type.CreateSecretApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)@@ -15346,6 +16805,11 @@ type ClientInterface interface {// Create secret imports.CreateSecretImport(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)+ // GetCurrentUser performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.+ //+ // Retrieve the current user on the request.+ GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)+// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,// with any type of body and a specified content type.LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)@@ -15729,6 +17193,60 @@ func (c *Client) LoginWithUniversalAuth(ctx context.Context, body LoginWithUnivereturn c.Client.Do(req)}+// ListEmailDomains performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.+func (c *Client) ListEmailDomains(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewListEmailDomainsRequest(c.Server)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// CreateEmailDomainWithBody performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,+// with any type of body and a specified content type.+func (c *Client) CreateEmailDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateEmailDomainRequestWithBody(c.Server, contentType, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// CreateEmailDomain performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.+// Takes a body of the `application/json` content type.+func (c *Client) CreateEmailDomain(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateEmailDomainRequest(c.Server, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// VerifyEmailDomain performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.+func (c *Client) VerifyEmailDomain(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewVerifyEmailDomainRequest(c.Server, emailDomainId)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}+// CreateGroupWithBody performs a POST /api/v1/groups (the `CreateGroup` operationId) request,// with any type of body and a specified content type.func (c *Client) CreateGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {@@ -15871,6 +17389,19 @@ func (c *Client) VerifyUserToOrganization(ctx context.Context, body VerifyUserToreturn c.Client.Do(req)}+// GetOrganizationById performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.+func (c *Client) GetOrganizationById(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetOrganizationByIdRequest(c.Server, organizationId)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}+// UpdateOrganizationWithBody performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,// with any type of body and a specified content type.func (c *Client) UpdateOrganizationWithBody(ctx context.Context, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {@@ -16403,6 +17934,165 @@ func (c *Client) SyncGitHubSecretSync(ctx context.Context, syncId openapi_types.return c.Client.Do(req)}+// GetSamlConfig performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.+//+// Get SAML config.+func (c *Client) GetSamlConfig(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetSamlConfigRequest(c.Server, params)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// UpdateSamlConfigWithBody performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,+// with any type of body and a specified content type.+//+// Update SAML config.+func (c *Client) UpdateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateSamlConfigRequestWithBody(c.Server, contentType, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// UpdateSamlConfig performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.+// Takes a body of the `application/json` content type.+//+// Update SAML config.+func (c *Client) UpdateSamlConfig(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateSamlConfigRequest(c.Server, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// CreateSamlConfigWithBody performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,+// with any type of body and a specified content type.+//+// Create SAML config.+func (c *Client) CreateSamlConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateSamlConfigRequestWithBody(c.Server, contentType, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// CreateSamlConfig performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.+// Takes a body of the `application/json` content type.+//+// Create SAML config.+func (c *Client) CreateSamlConfig(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewCreateSamlConfigRequest(c.Server, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// RedirectOrgSSO performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.+func (c *Client) RedirectOrgSSO(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewRedirectOrgSSORequest(c.Server, orgSlug, params)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// RedirectSamlByDomain performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.+func (c *Client) RedirectSamlByDomain(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewRedirectSamlByDomainRequest(c.Server, domain, params)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// RedirectSamlByOrgSlug performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.+func (c *Client) RedirectSamlByOrgSlug(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewRedirectSamlByOrgSlugRequest(c.Server, orgSlug, params)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// RedirectSamlByConfigId performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.+func (c *Client) RedirectSamlByConfigId(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewRedirectSamlByConfigIdRequest(c.Server, samlConfigId, params)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// SamlAcsWithBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,+// with any type of body and a specified content type.+func (c *Client) SamlAcsWithBody(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewSamlAcsRequestWithBody(c.Server, samlConfigId, contentType, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// SamlAcsWithFormdataBody performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.+// Takes a body of the `application/x-www-form-urlencoded` content type.+func (c *Client) SamlAcsWithFormdataBody(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewSamlAcsRequestWithFormdataBody(c.Server, samlConfigId, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}+// CreateSecretFolderWithBody performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,// with any type of body and a specified content type.//@@ -16476,6 +18166,68 @@ func (c *Client) DeleteOrganization(ctx context.Context, organizationId string,return c.Client.Do(req)}+// ListOrgMemberships performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.+//+// Return organization user memberships.+func (c *Client) ListOrgMemberships(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewListOrgMembershipsRequest(c.Server, organizationId)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// GetOrgMembership performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.+//+// Get organization user membership.+func (c *Client) GetOrgMembership(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetOrgMembershipRequest(c.Server, organizationId, membershipId)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// UpdateOrgMembershipWithBody performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,+// with any type of body and a specified content type.+//+// Update organization user memberships.+func (c *Client) UpdateOrgMembershipWithBody(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateOrgMembershipRequestWithBody(c.Server, organizationId, membershipId, contentType, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}++// UpdateOrgMembership performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.+// Takes a body of the `application/json` content type.+//+// Update organization user memberships.+func (c *Client) UpdateOrgMembership(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewUpdateOrgMembershipRequest(c.Server, organizationId, membershipId, body)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}+// CreateSecretApprovalPolicyWithBody performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,// with any type of body and a specified content type.func (c *Client) CreateSecretApprovalPolicyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {@@ -16603,6 +18355,21 @@ func (c *Client) CreateSecretImport(ctx context.Context, body CreateSecretImportreturn c.Client.Do(req)}+// GetCurrentUser performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.+//+// Retrieve the current user on the request.+func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {+ req, err := NewGetCurrentUserRequest(c.Server)+ if err != nil {+ return nil, err+ }+ req = req.WithContext(ctx)+ if err := c.applyEditors(ctx, req, reqEditors); err != nil {+ return nil, err+ }+ return c.Client.Do(req)+}+// LoginV3WithBody performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,// with any type of body and a specified content type.func (c *Client) LoginV3WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {@@ -17410,6 +19177,107 @@ func NewLoginWithUniversalAuthRequestWithBody(server string, contentType string,return req, nil}+// NewListEmailDomainsRequest constructs an http.Request for the ListEmailDomains method+func NewListEmailDomainsRequest(server string) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v1/email-domains")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}++// NewCreateEmailDomainRequest calls the generic CreateEmailDomain builder with application/json body+func NewCreateEmailDomainRequest(server string, body CreateEmailDomainJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateEmailDomainRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateEmailDomainRequestWithBody constructs an http.Request for the CreateEmailDomain method, with any body, and a specified content type+func NewCreateEmailDomainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v1/email-domains")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewVerifyEmailDomainRequest constructs an http.Request for the VerifyEmailDomain method+func NewVerifyEmailDomainRequest(server string, emailDomainId openapi_types.UUID) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "emailDomainId", emailDomainId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"})+ if err != nil {+ return nil, err+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v1/email-domains/%s/verify", pathParam0)+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}+// NewCreateGroupRequest calls the generic CreateGroup builder with application/json bodyfunc NewCreateGroupRequest(server string, body CreateGroupJSONRequestBody) (*http.Request, error) {var bodyReader io.Reader@@ -17652,6 +19520,40 @@ func NewVerifyUserToOrganizationRequestWithBody(server string, contentType strinreturn req, nil}+// NewGetOrganizationByIdRequest constructs an http.Request for the GetOrganizationById method+func NewGetOrganizationByIdRequest(server string, organizationId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v1/organization/%s", pathParam0)+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}+// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json bodyfunc NewUpdateOrganizationRequest(server string, organizationId string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) {var bodyReader io.Reader@@ -18871,19 +20773,8 @@ func NewSyncGitHubSecretSyncRequest(server string, syncId openapi_types.UUID) (*return req, nil}-// NewCreateSecretFolderRequest calls the generic CreateSecretFolder builder with application/json body-func NewCreateSecretFolderRequest(server string, body CreateSecretFolderJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)- if err != nil {- return nil, err- }- bodyReader = bytes.NewReader(buf)- return NewCreateSecretFolderRequestWithBody(server, "application/json", bodyReader)-}--// NewCreateSecretFolderRequestWithBody constructs an http.Request for the CreateSecretFolder method, with any body, and a specified content type-func NewCreateSecretFolderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+// NewGetSamlConfigRequest constructs an http.Request for the GetSamlConfig method+func NewGetSamlConfigRequest(server string, params *GetSamlConfigParams) (*http.Request, error) {var err errorserverURL, err := url.Parse(server)@@ -18891,7 +20782,7 @@ func NewCreateSecretFolderRequestWithBody(server string, contentType string, bodreturn nil, err}- operationPath := fmt.Sprintf("/api/v2/folders")+ operationPath := fmt.Sprintf("/api/v1/sso/config")if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -18901,29 +20792,50 @@ func NewCreateSecretFolderRequestWithBody(server string, contentType string, bodreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if params != nil {+ // queryValues collects non-styled parameters (passthrough, JSON)+ // that are safe to round-trip through url.Values.Encode().+ queryValues := queryURL.Query()+ // rawQueryFragments collects pre-encoded query fragments from+ // styled parameters, preserving literal commas as delimiters+ // per the OpenAPI spec (e.g. "color=blue,black,brown").+ var rawQueryFragments []string++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "organizationId", params.OrganizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ if encoded := queryValues.Encode(); encoded != "" {+ rawQueryFragments = append(rawQueryFragments, encoded)+ }+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err}- req.Header.Add("Content-Type", contentType)-return req, nil}-// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body-func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {+// NewUpdateSamlConfigRequest calls the generic UpdateSamlConfig builder with application/json body+func NewUpdateSamlConfigRequest(server string, body UpdateSamlConfigJSONRequestBody) (*http.Request, error) {var bodyReader io.Readerbuf, err := json.Marshal(body)if err != nil {return nil, err}bodyReader = bytes.NewReader(buf)- return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)+ return NewUpdateSamlConfigRequestWithBody(server, "application/json", bodyReader)}-// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type-func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+// NewUpdateSamlConfigRequestWithBody constructs an http.Request for the UpdateSamlConfig method, with any body, and a specified content type+func NewUpdateSamlConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {var err errorserverURL, err := url.Parse(server)@@ -18931,7 +20843,7 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bodreturn nil, err}- operationPath := fmt.Sprintf("/api/v2/organizations")+ operationPath := fmt.Sprintf("/api/v1/sso/config")if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -18941,7 +20853,7 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bodreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)if err != nil {return nil, err}@@ -18951,23 +20863,27 @@ func NewCreateOrganizationRequestWithBody(server string, contentType string, bodreturn req, nil}-// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method-func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {- var err error-- var pathParam0 string-- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+// NewCreateSamlConfigRequest calls the generic CreateSamlConfig builder with application/json body+func NewCreateSamlConfigRequest(server string, body CreateSamlConfigJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)if err != nil {return nil, err}+ bodyReader = bytes.NewReader(buf)+ return NewCreateSamlConfigRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateSamlConfigRequestWithBody constructs an http.Request for the CreateSamlConfig method, with any body, and a specified content type+func NewCreateSamlConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err errorserverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)+ operationPath := fmt.Sprintf("/api/v1/sso/config")if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -18977,35 +20893,33 @@ func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Rreturn nil, err}- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)if err != nil {return nil, err}+ req.Header.Add("Content-Type", contentType)+return req, nil}-// NewCreateSecretApprovalPolicyRequest calls the generic CreateSecretApprovalPolicy builder with application/json body-func NewCreateSecretApprovalPolicyRequest(server string, body CreateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)+// NewRedirectOrgSSORequest constructs an http.Request for the RedirectOrgSSO method+func NewRedirectOrgSSORequest(server string, orgSlug string, params *RedirectOrgSSOParams) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "orgSlug", orgSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}- bodyReader = bytes.NewReader(buf)- return NewCreateSecretApprovalPolicyRequestWithBody(server, "application/json", bodyReader)-}--// NewCreateSecretApprovalPolicyRequestWithBody constructs an http.Request for the CreateSecretApprovalPolicy method, with any body, and a specified content type-func NewCreateSecretApprovalPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err errorserverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-approvals")+ operationPath := fmt.Sprintf("/api/v1/sso/redirect/organizations/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19015,26 +20929,58 @@ func NewCreateSecretApprovalPolicyRequestWithBody(server string, contentType strreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if params != nil {+ // queryValues collects non-styled parameters (passthrough, JSON)+ // that are safe to round-trip through url.Values.Encode().+ queryValues := queryURL.Query()+ // rawQueryFragments collects pre-encoded query fragments from+ // styled parameters, preserving literal commas as delimiters+ // per the OpenAPI spec (e.g. "color=blue,black,brown").+ var rawQueryFragments []string++ if params.CallbackPort != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_port", *params.CallbackPort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ }++ if encoded := queryValues.Encode(); encoded != "" {+ rawQueryFragments = append(rawQueryFragments, encoded)+ }+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err}- req.Header.Add("Content-Type", contentType)-return req, nil}-// NewGetSecretApprovalPolicyBoardRequest constructs an http.Request for the GetSecretApprovalPolicyBoard method-func NewGetSecretApprovalPolicyBoardRequest(server string, params *GetSecretApprovalPolicyBoardParams) (*http.Request, error) {+// NewRedirectSamlByDomainRequest constructs an http.Request for the RedirectSamlByDomain method+func NewRedirectSamlByDomainRequest(server string, domain string, params *RedirectSamlByDomainParams) (*http.Request, error) {var err error+ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain", domain, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }+serverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-approvals/board")+ operationPath := fmt.Sprintf("/api/v1/sso/redirect/saml2/organizations/domain/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19053,28 +20999,16 @@ func NewGetSecretApprovalPolicyBoardRequest(server string, params *GetSecretAppr// per the OpenAPI spec (e.g. "color=blue,black,brown").var rawQueryFragments []string- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {- return nil, err- } else {- for _, qp := range strings.Split(queryFrag, "&") {- rawQueryFragments = append(rawQueryFragments, qp)- }- }+ if params.CallbackPort != nil {- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {- return nil, err- } else {- for _, qp := range strings.Split(queryFrag, "&") {- rawQueryFragments = append(rawQueryFragments, qp)+ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_port", *params.CallbackPort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }}- }- if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {- return nil, err- } else {- for _, qp := range strings.Split(queryFrag, "&") {- rawQueryFragments = append(rawQueryFragments, qp)- }}if encoded := queryValues.Encode(); encoded != "" {@@ -19091,13 +21025,13 @@ func NewGetSecretApprovalPolicyBoardRequest(server string, params *GetSecretApprreturn req, nil}-// NewDeleteSecretApprovalPolicyRequest constructs an http.Request for the DeleteSecretApprovalPolicy method-func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {+// NewRedirectSamlByOrgSlugRequest constructs an http.Request for the RedirectSamlByOrgSlug method+func NewRedirectSamlByOrgSlugRequest(server string, orgSlug string, params *RedirectSamlByOrgSlugParams) (*http.Request, error) {var err errorvar pathParam0 string- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "orgSlug", orgSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}@@ -19107,7 +21041,7 @@ func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Rereturn nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ operationPath := fmt.Sprintf("/api/v1/sso/redirect/saml2/organizations/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19117,7 +21051,34 @@ func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Rereturn nil, err}- req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)+ if params != nil {+ // queryValues collects non-styled parameters (passthrough, JSON)+ // that are safe to round-trip through url.Values.Encode().+ queryValues := queryURL.Query()+ // rawQueryFragments collects pre-encoded query fragments from+ // styled parameters, preserving literal commas as delimiters+ // per the OpenAPI spec (e.g. "color=blue,black,brown").+ var rawQueryFragments []string++ if params.CallbackPort != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_port", *params.CallbackPort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ }++ if encoded := queryValues.Encode(); encoded != "" {+ rawQueryFragments = append(rawQueryFragments, encoded)+ }+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err}@@ -19125,13 +21086,13 @@ func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Rereturn req, nil}-// NewGetSecretApprovalPolicyRequest constructs an http.Request for the GetSecretApprovalPolicy method-func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {+// NewRedirectSamlByConfigIdRequest constructs an http.Request for the RedirectSamlByConfigId method+func NewRedirectSamlByConfigIdRequest(server string, samlConfigId string, params *RedirectSamlByConfigIdParams) (*http.Request, error) {var err errorvar pathParam0 string- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "samlConfigId", samlConfigId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}@@ -19141,7 +21102,7 @@ func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Requereturn nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ operationPath := fmt.Sprintf("/api/v1/sso/redirect/saml2/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19151,6 +21112,33 @@ func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Requereturn nil, err}+ if params != nil {+ // queryValues collects non-styled parameters (passthrough, JSON)+ // that are safe to round-trip through url.Values.Encode().+ queryValues := queryURL.Query()+ // rawQueryFragments collects pre-encoded query fragments from+ // styled parameters, preserving literal commas as delimiters+ // per the OpenAPI spec (e.g. "color=blue,black,brown").+ var rawQueryFragments []string++ if params.CallbackPort != nil {++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "callback_port", *params.CallbackPort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ }++ if encoded := queryValues.Encode(); encoded != "" {+ rawQueryFragments = append(rawQueryFragments, encoded)+ }+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")+ }+req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err@@ -19159,24 +21147,24 @@ func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Requereturn req, nil}-// NewUpdateSecretApprovalPolicyRequest calls the generic UpdateSecretApprovalPolicy builder with application/json body-func NewUpdateSecretApprovalPolicyRequest(server string, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {+// NewSamlAcsRequestWithFormdataBody calls the generic SamlAcs builder with application/x-www-form-urlencoded body+func NewSamlAcsRequestWithFormdataBody(server string, samlConfigId string, body SamlAcsFormdataRequestBody) (*http.Request, error) {var bodyReader io.Reader- buf, err := json.Marshal(body)+ bodyStr, err := runtime.MarshalForm(body, nil)if err != nil {return nil, err}- bodyReader = bytes.NewReader(buf)- return NewUpdateSecretApprovalPolicyRequestWithBody(server, sapId, "application/json", bodyReader)+ bodyReader = strings.NewReader(bodyStr.Encode())+ return NewSamlAcsRequestWithBody(server, samlConfigId, "application/x-www-form-urlencoded", bodyReader)}-// NewUpdateSecretApprovalPolicyRequestWithBody constructs an http.Request for the UpdateSecretApprovalPolicy method, with any body, and a specified content type-func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, contentType string, body io.Reader) (*http.Request, error) {+// NewSamlAcsRequestWithBody constructs an http.Request for the SamlAcs method, with any body, and a specified content type+func NewSamlAcsRequestWithBody(server string, samlConfigId string, contentType string, body io.Reader) (*http.Request, error) {var err errorvar pathParam0 string- pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "samlConfigId", samlConfigId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}@@ -19186,7 +21174,7 @@ func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, creturn nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ operationPath := fmt.Sprintf("/api/v1/sso/saml2/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19196,7 +21184,7 @@ func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, creturn nil, err}- req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)if err != nil {return nil, err}@@ -19206,19 +21194,19 @@ func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, creturn req, nil}-// NewCreateSecretImportRequest calls the generic CreateSecretImport builder with application/json body-func NewCreateSecretImportRequest(server string, body CreateSecretImportJSONRequestBody) (*http.Request, error) {+// NewCreateSecretFolderRequest calls the generic CreateSecretFolder builder with application/json body+func NewCreateSecretFolderRequest(server string, body CreateSecretFolderJSONRequestBody) (*http.Request, error) {var bodyReader io.Readerbuf, err := json.Marshal(body)if err != nil {return nil, err}bodyReader = bytes.NewReader(buf)- return NewCreateSecretImportRequestWithBody(server, "application/json", bodyReader)+ return NewCreateSecretFolderRequestWithBody(server, "application/json", bodyReader)}-// NewCreateSecretImportRequestWithBody constructs an http.Request for the CreateSecretImport method, with any body, and a specified content type-func NewCreateSecretImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+// NewCreateSecretFolderRequestWithBody constructs an http.Request for the CreateSecretFolder method, with any body, and a specified content type+func NewCreateSecretFolderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {var err errorserverURL, err := url.Parse(server)@@ -19226,7 +21214,7 @@ func NewCreateSecretImportRequestWithBody(server string, contentType string, bodreturn nil, err}- operationPath := fmt.Sprintf("/api/v2/secret-imports")+ operationPath := fmt.Sprintf("/api/v2/folders")if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19246,19 +21234,19 @@ func NewCreateSecretImportRequestWithBody(server string, contentType string, bodreturn req, nil}-// NewLoginV3Request calls the generic LoginV3 builder with application/json body-func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {+// NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body+func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error) {var bodyReader io.Readerbuf, err := json.Marshal(body)if err != nil {return nil, err}bodyReader = bytes.NewReader(buf)- return NewLoginV3RequestWithBody(server, "application/json", bodyReader)+ return NewCreateOrganizationRequestWithBody(server, "application/json", bodyReader)}-// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type-func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+// NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type+func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {var err errorserverURL, err := url.Parse(server)@@ -19266,7 +21254,7 @@ func NewLoginV3RequestWithBody(server string, contentType string, body io.Readerreturn nil, err}- operationPath := fmt.Sprintf("/api/v3/auth/login")+ operationPath := fmt.Sprintf("/api/v2/organizations")if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19286,27 +21274,23 @@ func NewLoginV3RequestWithBody(server string, contentType string, body io.Readerreturn req, nil}-// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body-func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)+// NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method+func NewDeleteOrganizationRequest(server string, organizationId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}- bodyReader = bytes.NewReader(buf)- return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)-}--// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type-func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err errorserverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v3/auth/select-organization")+ operationPath := fmt.Sprintf("/api/v2/organizations/%s", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19316,37 +21300,31 @@ func NewSelectOrganizationV3RequestWithBody(server string, contentType string, breturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)if err != nil {return nil, err}- req.Header.Add("Content-Type", contentType)-return req, nil}-// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body-func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)+// NewListOrgMembershipsRequest constructs an http.Request for the ListOrgMemberships method+func NewListOrgMembershipsRequest(server string, organizationId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}- bodyReader = bytes.NewReader(buf)- return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)-}--// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type-func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err errorserverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v3/signup/complete-account")+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships", pathParam0)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19356,37 +21334,38 @@ func NewCompleteAccountSignupV3RequestWithBody(server string, contentType stringreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err}- req.Header.Add("Content-Type", contentType)-return req, nil}-// NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body-func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {- var bodyReader io.Reader- buf, err := json.Marshal(body)+// NewGetOrgMembershipRequest constructs an http.Request for the GetOrgMembership method+func NewGetOrgMembershipRequest(server string, organizationId string, membershipId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})if err != nil {return nil, err}- bodyReader = bytes.NewReader(buf)- return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)-}-// NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type-func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {- var err error+ var pathParam1 string++ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "membershipId", membershipId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }serverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v3/signup/email/signup")+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships/%s", pathParam0, pathParam1)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19396,37 +21375,49 @@ func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, bodreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)if err != nil {return nil, err}- req.Header.Add("Content-Type", contentType)-return req, nil}-// NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body-func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {+// NewUpdateOrgMembershipRequest calls the generic UpdateOrgMembership builder with application/json body+func NewUpdateOrgMembershipRequest(server string, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody) (*http.Request, error) {var bodyReader io.Readerbuf, err := json.Marshal(body)if err != nil {return nil, err}bodyReader = bytes.NewReader(buf)- return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)+ return NewUpdateOrgMembershipRequestWithBody(server, organizationId, membershipId, "application/json", bodyReader)}-// NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type-func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+// NewUpdateOrgMembershipRequestWithBody constructs an http.Request for the UpdateOrgMembership method, with any body, and a specified content type+func NewUpdateOrgMembershipRequestWithBody(server string, organizationId string, membershipId string, contentType string, body io.Reader) (*http.Request, error) {var err error+ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "organizationId", organizationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ var pathParam1 string++ pathParam1, err = runtime.StyleParamWithOptions("simple", false, "membershipId", membershipId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }+serverURL, err := url.Parse(server)if err != nil {return nil, err}- operationPath := fmt.Sprintf("/api/v3/signup/email/verify")+ operationPath := fmt.Sprintf("/api/v2/organizations/%s/memberships/%s", pathParam0, pathParam1)if operationPath[0] == '/' {operationPath = "." + operationPath}@@ -19436,7 +21427,7 @@ func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, boreturn nil, err}- req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)if err != nil {return nil, err}@@ -19446,11 +21437,499 @@ func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, boreturn req, nil}-// NewListSecretsV4Request constructs an http.Request for the ListSecretsV4 method-func NewListSecretsV4Request(server string, params *ListSecretsV4Params) (*http.Request, error) {- var err error-- serverURL, err := url.Parse(server)+// NewCreateSecretApprovalPolicyRequest calls the generic CreateSecretApprovalPolicy builder with application/json body+func NewCreateSecretApprovalPolicyRequest(server string, body CreateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateSecretApprovalPolicyRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateSecretApprovalPolicyRequestWithBody constructs an http.Request for the CreateSecretApprovalPolicy method, with any body, and a specified content type+func NewCreateSecretApprovalPolicyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-approvals")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewGetSecretApprovalPolicyBoardRequest constructs an http.Request for the GetSecretApprovalPolicyBoard method+func NewGetSecretApprovalPolicyBoardRequest(server string, params *GetSecretApprovalPolicyBoardParams) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-approvals/board")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ if params != nil {+ // queryValues collects non-styled parameters (passthrough, JSON)+ // that are safe to round-trip through url.Values.Encode().+ queryValues := queryURL.Query()+ // rawQueryFragments collects pre-encoded query fragments from+ // styled parameters, preserving literal commas as delimiters+ // per the OpenAPI spec (e.g. "color=blue,black,brown").+ var rawQueryFragments []string++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectId", params.ProjectId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "environment", params.Environment, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secretPath", params.SecretPath, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {+ return nil, err+ } else {+ for _, qp := range strings.Split(queryFrag, "&") {+ rawQueryFragments = append(rawQueryFragments, qp)+ }+ }++ if encoded := queryValues.Encode(); encoded != "" {+ rawQueryFragments = append(rawQueryFragments, encoded)+ }+ queryURL.RawQuery = strings.Join(rawQueryFragments, "&")+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}++// NewDeleteSecretApprovalPolicyRequest constructs an http.Request for the DeleteSecretApprovalPolicy method+func NewDeleteSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}++// NewGetSecretApprovalPolicyRequest constructs an http.Request for the GetSecretApprovalPolicy method+func NewGetSecretApprovalPolicyRequest(server string, sapId string) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}++// NewUpdateSecretApprovalPolicyRequest calls the generic UpdateSecretApprovalPolicy builder with application/json body+func NewUpdateSecretApprovalPolicyRequest(server string, sapId string, body UpdateSecretApprovalPolicyJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewUpdateSecretApprovalPolicyRequestWithBody(server, sapId, "application/json", bodyReader)+}++// NewUpdateSecretApprovalPolicyRequestWithBody constructs an http.Request for the UpdateSecretApprovalPolicy method, with any body, and a specified content type+func NewUpdateSecretApprovalPolicyRequestWithBody(server string, sapId string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ var pathParam0 string++ pathParam0, err = runtime.StyleParamWithOptions("simple", false, "sapId", sapId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})+ if err != nil {+ return nil, err+ }++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-approvals/%s", pathParam0)+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewCreateSecretImportRequest calls the generic CreateSecretImport builder with application/json body+func NewCreateSecretImportRequest(server string, body CreateSecretImportJSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCreateSecretImportRequestWithBody(server, "application/json", bodyReader)+}++// NewCreateSecretImportRequestWithBody constructs an http.Request for the CreateSecretImport method, with any body, and a specified content type+func NewCreateSecretImportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/secret-imports")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewGetCurrentUserRequest constructs an http.Request for the GetCurrentUser method+func NewGetCurrentUserRequest(server string) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v2/users/me")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)+ if err != nil {+ return nil, err+ }++ return req, nil+}++// NewLoginV3Request calls the generic LoginV3 builder with application/json body+func NewLoginV3Request(server string, body LoginV3JSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewLoginV3RequestWithBody(server, "application/json", bodyReader)+}++// NewLoginV3RequestWithBody constructs an http.Request for the LoginV3 method, with any body, and a specified content type+func NewLoginV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v3/auth/login")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewSelectOrganizationV3Request calls the generic SelectOrganizationV3 builder with application/json body+func NewSelectOrganizationV3Request(server string, body SelectOrganizationV3JSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewSelectOrganizationV3RequestWithBody(server, "application/json", bodyReader)+}++// NewSelectOrganizationV3RequestWithBody constructs an http.Request for the SelectOrganizationV3 method, with any body, and a specified content type+func NewSelectOrganizationV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v3/auth/select-organization")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewCompleteAccountSignupV3Request calls the generic CompleteAccountSignupV3 builder with application/json body+func NewCompleteAccountSignupV3Request(server string, body CompleteAccountSignupV3JSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewCompleteAccountSignupV3RequestWithBody(server, "application/json", bodyReader)+}++// NewCompleteAccountSignupV3RequestWithBody constructs an http.Request for the CompleteAccountSignupV3 method, with any body, and a specified content type+func NewCompleteAccountSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v3/signup/complete-account")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewBeginEmailSignupV3Request calls the generic BeginEmailSignupV3 builder with application/json body+func NewBeginEmailSignupV3Request(server string, body BeginEmailSignupV3JSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewBeginEmailSignupV3RequestWithBody(server, "application/json", bodyReader)+}++// NewBeginEmailSignupV3RequestWithBody constructs an http.Request for the BeginEmailSignupV3 method, with any body, and a specified content type+func NewBeginEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v3/signup/email/signup")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewVerifyEmailSignupV3Request calls the generic VerifyEmailSignupV3 builder with application/json body+func NewVerifyEmailSignupV3Request(server string, body VerifyEmailSignupV3JSONRequestBody) (*http.Request, error) {+ var bodyReader io.Reader+ buf, err := json.Marshal(body)+ if err != nil {+ return nil, err+ }+ bodyReader = bytes.NewReader(buf)+ return NewVerifyEmailSignupV3RequestWithBody(server, "application/json", bodyReader)+}++// NewVerifyEmailSignupV3RequestWithBody constructs an http.Request for the VerifyEmailSignupV3 method, with any body, and a specified content type+func NewVerifyEmailSignupV3RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)+ if err != nil {+ return nil, err+ }++ operationPath := fmt.Sprintf("/api/v3/signup/email/verify")+ if operationPath[0] == '/' {+ operationPath = "." + operationPath+ }++ queryURL, err := serverURL.Parse(operationPath)+ if err != nil {+ return nil, err+ }++ req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)+ if err != nil {+ return nil, err+ }++ req.Header.Add("Content-Type", contentType)++ return req, nil+}++// NewListSecretsV4Request constructs an http.Request for the ListSecretsV4 method+func NewListSecretsV4Request(server string, params *ListSecretsV4Params) (*http.Request, error) {+ var err error++ serverURL, err := url.Parse(server)if err != nil {return nil, err}@@ -20417,6 +22896,26 @@ type ClientWithResponsesInterface interface {// Login with Universal Auth for machine identity.LoginWithUniversalAuthWithResponse(ctx context.Context, body LoginWithUniversalAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithUniversalAuthResponse, error)+ // ListEmailDomainsWithResponse performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ ListEmailDomainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEmailDomainsResponse, error)++ // CreateEmailDomainWithBodyWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateEmailDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)++ // CreateEmailDomainWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ CreateEmailDomainWithResponse(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error)++ // VerifyEmailDomainWithResponse performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ VerifyEmailDomainWithResponse(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyEmailDomainResponse, error)+// CreateGroupWithBodyWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request,// with any type of body and a specified content type.//@@ -20471,6 +22970,11 @@ type ClientWithResponsesInterface interface {// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).VerifyUserToOrganizationWithResponse(ctx context.Context, body VerifyUserToOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserToOrganizationResponse, error)+ // GetOrganizationByIdWithResponse performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ GetOrganizationByIdWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationByIdResponse, error)+// UpdateOrganizationWithBodyWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,// with any type of body and a specified content type.//@@ -20689,6 +23193,71 @@ type ClientWithResponsesInterface interface {// Returns a wrapper object for the known response body format(s).SyncGitHubSecretSyncWithResponse(ctx context.Context, syncId openapi_types.UUID, reqEditors ...RequestEditorFn) (*SyncGitHubSecretSyncResponse, error)+ // GetSamlConfigWithResponse performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.+ //+ // Get SAML config.+ //+ // Returns a wrapper object for the known response body format(s).+ GetSamlConfigWithResponse(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*GetSamlConfigResponse, error)++ // UpdateSamlConfigWithBodyWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,+ // with any type of body and a specified content type.+ //+ // Update SAML config.+ //+ // Returns a wrapper object for the known response body format(s).+ UpdateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)++ // UpdateSamlConfigWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Update SAML config.+ UpdateSamlConfigWithResponse(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error)++ // CreateSamlConfigWithBodyWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,+ // with any type of body and a specified content type.+ //+ // Create SAML config.+ //+ // Returns a wrapper object for the known response body format(s).+ CreateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)++ // CreateSamlConfigWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Create SAML config.+ CreateSamlConfigWithResponse(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error)++ // RedirectOrgSSOWithResponse performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ RedirectOrgSSOWithResponse(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*RedirectOrgSSOResponse, error)++ // RedirectSamlByDomainWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ RedirectSamlByDomainWithResponse(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*RedirectSamlByDomainResponse, error)++ // RedirectSamlByOrgSlugWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ RedirectSamlByOrgSlugWithResponse(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*RedirectSamlByOrgSlugResponse, error)++ // RedirectSamlByConfigIdWithResponse performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.+ //+ // Returns a wrapper object for the known response body format(s).+ RedirectSamlByConfigIdWithResponse(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*RedirectSamlByConfigIdResponse, error)++ // SamlAcsWithBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,+ // with any type of body and a specified content type.+ //+ // Returns a wrapper object for the known response body format(s).+ SamlAcsWithBodyWithResponse(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)++ // SamlAcsWithFormdataBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.+ // Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).+ SamlAcsWithFormdataBodyWithResponse(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error)+// CreateSecretFolderWithBodyWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,// with any type of body and a specified content type.//@@ -20718,6 +23287,34 @@ type ClientWithResponsesInterface interface {// Returns a wrapper object for the known response body format(s).DeleteOrganizationWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)+ // ListOrgMembershipsWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.+ //+ // Return organization user memberships.+ //+ // Returns a wrapper object for the known response body format(s).+ ListOrgMembershipsWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*ListOrgMembershipsResponse, error)++ // GetOrgMembershipWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.+ //+ // Get organization user membership.+ //+ // Returns a wrapper object for the known response body format(s).+ GetOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*GetOrgMembershipResponse, error)++ // UpdateOrgMembershipWithBodyWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,+ // with any type of body and a specified content type.+ //+ // Update organization user memberships.+ //+ // Returns a wrapper object for the known response body format(s).+ UpdateOrgMembershipWithBodyWithResponse(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)++ // UpdateOrgMembershipWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.+ // Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+ //+ // Update organization user memberships.+ UpdateOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error)+// CreateSecretApprovalPolicyWithBodyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,// with any type of body and a specified content type.//@@ -20767,6 +23364,13 @@ type ClientWithResponsesInterface interface {// Create secret imports.CreateSecretImportWithResponse(ctx context.Context, body CreateSecretImportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecretImportResponse, error)+ // GetCurrentUserWithResponse performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.+ //+ // Retrieve the current user on the request.+ //+ // Returns a wrapper object for the known response body format(s).+ GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)+// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,// with any type of body and a specified content type.//@@ -22518,6 +25122,531 @@ func (r LoginWithUniversalAuthResponse) ContentType() string {return ""}+type ListEmailDomainsResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ EmailDomains []struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomains"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r ListEmailDomainsResponse) GetJSON200() *struct {+ EmailDomains []struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomains"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r ListEmailDomainsResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r ListEmailDomainsResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r ListEmailDomainsResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r ListEmailDomainsResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r ListEmailDomainsResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r ListEmailDomainsResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r ListEmailDomainsResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r ListEmailDomainsResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r ListEmailDomainsResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r ListEmailDomainsResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateEmailDomainResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateEmailDomainResponse) GetJSON200() *struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateEmailDomainResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateEmailDomainResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateEmailDomainResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateEmailDomainResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateEmailDomainResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateEmailDomainResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateEmailDomainResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateEmailDomainResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateEmailDomainResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r CreateEmailDomainResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type VerifyEmailDomainResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON200() *struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r VerifyEmailDomainResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r VerifyEmailDomainResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r VerifyEmailDomainResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r VerifyEmailDomainResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r VerifyEmailDomainResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}+type CreateGroupResponse struct {Body []byteHTTPResponse *http.Response@@ -23506,6 +26635,227 @@ func (r VerifyUserToOrganizationResponse) ContentType() string {return ""}+type GetOrganizationByIdResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Organization struct {+ AgentVaultProjectId *string `json:"agentVaultProjectId"`+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ PamProjectId *string `json:"pamProjectId"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON200() *struct {+ Organization struct {+ AgentVaultProjectId *string `json:"agentVaultProjectId"`+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ PamProjectId *string `json:"pamProjectId"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r GetOrganizationByIdResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r GetOrganizationByIdResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r GetOrganizationByIdResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r GetOrganizationByIdResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r GetOrganizationByIdResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}+type UpdateOrganizationResponse struct {Body []byteHTTPResponse *http.Response@@ -25726,7 +29076,7 @@ type ListSecretApprovalRequestsResponse struct {Name string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Status string `json:"status"`UserId string `json:"userId"`@@ -25831,7 +29181,7 @@ func (r ListSecretApprovalRequestsResponse) GetJSON200() *struct {Name string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Status string `json:"status"`UserId string `json:"userId"`@@ -26207,7 +29557,7 @@ type GetSecretApprovalRequestResponse struct {Name string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Comment *string `json:"comment,omitempty"`CreatedAt time.Time `json:"createdAt"`@@ -26389,7 +29739,7 @@ func (r GetSecretApprovalRequestResponse) GetJSON200() *struct {Name string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Comment *string `json:"comment,omitempty"`CreatedAt time.Time `json:"createdAt"`@@ -28337,159 +31687,153 @@ func (r SyncGitHubSecretSyncResponse) ContentType() string {return ""}-type CreateSecretFolderResponse struct {+type GetSamlConfigResponse struct {Body []byteHTTPResponse *http.Response// JSON200 the response for an HTTP 200 `application/json` responseJSON200 *struct {- Folder struct {- CreatedAt time.Time `json:"createdAt"`- Description *string `json:"description,omitempty"`- EnvId openapi_types.UUID `json:"envId"`- Id openapi_types.UUID `json:"id"`- IsReserved *bool `json:"isReserved,omitempty"`- LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`- Name string `json:"name"`- ParentId *openapi_types.UUID `json:"parentId,omitempty"`- Path string `json:"path"`- UpdatedAt time.Time `json:"updatedAt"`- Version *float32 `json:"version,omitempty"`- } `json:"folder"`+ AuthProvider string `json:"authProvider"`+ Cert string `json:"cert"`+ EnableGroupSync *bool `json:"enableGroupSync,omitempty"`+ EntryPoint string `json:"entryPoint"`+ Id string `json:"id"`+ IsActive bool `json:"isActive"`+ Issuer string `json:"issuer"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId string `json:"orgId"`+ Organization string `json:"organization"`}// JSON400 the response for an HTTP 400 `application/json` responseJSON400 *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`}// JSON401 the response for an HTTP 401 `application/json` responseJSON401 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`}// JSON403 the response for an HTTP 403 `application/json` responseJSON403 *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`}// JSON404 the response for an HTTP 404 `application/json` responseJSON404 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`}// JSON422 the response for an HTTP 422 `application/json` responseJSON422 *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`}// JSON500 the response for an HTTP 500 `application/json` responseJSON500 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`}}// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r CreateSecretFolderResponse) GetJSON200() *struct {- Folder struct {- CreatedAt time.Time `json:"createdAt"`- Description *string `json:"description,omitempty"`- EnvId openapi_types.UUID `json:"envId"`- Id openapi_types.UUID `json:"id"`- IsReserved *bool `json:"isReserved,omitempty"`- LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`- Name string `json:"name"`- ParentId *openapi_types.UUID `json:"parentId,omitempty"`- Path string `json:"path"`- UpdatedAt time.Time `json:"updatedAt"`- Version *float32 `json:"version,omitempty"`- } `json:"folder"`+func (r GetSamlConfigResponse) GetJSON200() *struct {+ AuthProvider string `json:"authProvider"`+ Cert string `json:"cert"`+ EnableGroupSync *bool `json:"enableGroupSync,omitempty"`+ EntryPoint string `json:"entryPoint"`+ Id string `json:"id"`+ IsActive bool `json:"isActive"`+ Issuer string `json:"issuer"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId string `json:"orgId"`+ Organization string `json:"organization"`} {return r.JSON200}// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r CreateSecretFolderResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder400JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON400}// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r CreateSecretFolderResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder401JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON401}// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r CreateSecretFolderResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder403JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON403}// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r CreateSecretFolderResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder404JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON404}// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r CreateSecretFolderResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder422JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON422}// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r CreateSecretFolderResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateSecretFolder500JSONResponseBodyStatusCode `json:"statusCode"`+func (r GetSamlConfigResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON500}// GetBody returns the raw response body bytes-func (r CreateSecretFolderResponse) GetBody() []byte {+func (r GetSamlConfigResponse) GetBody() []byte {return r.Body}// Status returns HTTPResponse.Status-func (r CreateSecretFolderResponse) Status() string {+func (r GetSamlConfigResponse) Status() string {if r.HTTPResponse != nil {return r.HTTPResponse.Status}@@ -28497,7 +31841,7 @@ func (r CreateSecretFolderResponse) Status() string {}// StatusCode returns HTTPResponse.StatusCode-func (r CreateSecretFolderResponse) StatusCode() int {+func (r GetSamlConfigResponse) StatusCode() int {if r.HTTPResponse != nil {return r.HTTPResponse.StatusCode}@@ -28505,208 +31849,154 @@ func (r CreateSecretFolderResponse) StatusCode() int {}// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r CreateSecretFolderResponse) ContentType() string {+func (r GetSamlConfigResponse) ContentType() string {if r.HTTPResponse != nil {return r.HTTPResponse.Header.Get("Content-Type")}return ""}-type CreateOrganizationResponse struct {+type UpdateSamlConfigResponse struct {Body []byteHTTPResponse *http.Response// JSON200 the response for an HTTP 200 `application/json` responseJSON200 *struct {- Organization struct {- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`- AuthEnforced *bool `json:"authEnforced,omitempty"`- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`- CreatedAt time.Time `json:"createdAt"`- CustomerId *string `json:"customerId,omitempty"`- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`- EnforceMfa *bool `json:"enforceMfa,omitempty"`- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`- Id openapi_types.UUID `json:"id"`- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`- MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`- Name string `json:"name"`- ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`- RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`- RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`- ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`- ScimEnabled *bool `json:"scimEnabled,omitempty"`- SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`- SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`- SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`- ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`- ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`- Slug string `json:"slug"`- UpdatedAt time.Time `json:"updatedAt"`- UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`- } `json:"organization"`+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`}// JSON400 the response for an HTTP 400 `application/json` responseJSON400 *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`}// JSON401 the response for an HTTP 401 `application/json` responseJSON401 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`}// JSON403 the response for an HTTP 403 `application/json` responseJSON403 *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`}// JSON404 the response for an HTTP 404 `application/json` responseJSON404 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`}// JSON422 the response for an HTTP 422 `application/json` responseJSON422 *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`}// JSON500 the response for an HTTP 500 `application/json` responseJSON500 *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`}}// GetJSON200 returns the response for an HTTP 200 `application/json` response-func (r CreateOrganizationResponse) GetJSON200() *struct {- Organization struct {- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`- AuthEnforced *bool `json:"authEnforced,omitempty"`- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`- CreatedAt time.Time `json:"createdAt"`- CustomerId *string `json:"customerId,omitempty"`- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`- EnforceMfa *bool `json:"enforceMfa,omitempty"`- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`- Id openapi_types.UUID `json:"id"`- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`- MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`- Name string `json:"name"`- ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`- RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`- RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`- ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`- ScimEnabled *bool `json:"scimEnabled,omitempty"`- SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`- SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`- SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`- ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`- ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`- Slug string `json:"slug"`- UpdatedAt time.Time `json:"updatedAt"`- UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`- } `json:"organization"`+func (r UpdateSamlConfigResponse) GetJSON200() *struct {+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`} {return r.JSON200}// GetJSON400 returns the response for an HTTP 400 `application/json` response-func (r CreateOrganizationResponse) GetJSON400() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON400}// GetJSON401 returns the response for an HTTP 401 `application/json` response-func (r CreateOrganizationResponse) GetJSON401() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON401}// GetJSON403 returns the response for an HTTP 403 `application/json` response-func (r CreateOrganizationResponse) GetJSON403() *struct {- Details interface{} `json:"details,omitempty"`- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON403}// GetJSON404 returns the response for an HTTP 404 `application/json` response-func (r CreateOrganizationResponse) GetJSON404() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON404}// GetJSON422 returns the response for an HTTP 422 `application/json` response-func (r CreateOrganizationResponse) GetJSON422() *struct {- Error string `json:"error"`- Message interface{} `json:"message,omitempty"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON422}// GetJSON500 returns the response for an HTTP 500 `application/json` response-func (r CreateOrganizationResponse) GetJSON500() *struct {- Error string `json:"error"`- Message string `json:"message"`- ReqId string `json:"reqId"`- StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+func (r UpdateSamlConfigResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`} {return r.JSON500}// GetBody returns the raw response body bytes-func (r CreateOrganizationResponse) GetBody() []byte {+func (r UpdateSamlConfigResponse) GetBody() []byte {return r.Body}// Status returns HTTPResponse.Status-func (r CreateOrganizationResponse) Status() string {+func (r UpdateSamlConfigResponse) Status() string {if r.HTTPResponse != nil {return r.HTTPResponse.Status}@@ -28714,7 +32004,7 @@ func (r CreateOrganizationResponse) Status() string {}// StatusCode returns HTTPResponse.StatusCode-func (r CreateOrganizationResponse) StatusCode() int {+func (r UpdateSamlConfigResponse) StatusCode() int {if r.HTTPResponse != nil {return r.HTTPResponse.StatusCode}@@ -28722,34 +32012,759 @@ func (r CreateOrganizationResponse) StatusCode() int {}// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers-func (r CreateOrganizationResponse) ContentType() string {+func (r UpdateSamlConfigResponse) ContentType() string {if r.HTTPResponse != nil {return r.HTTPResponse.Header.Get("Content-Type")}return ""}-type DeleteOrganizationResponse struct {+type CreateSamlConfigResponse struct {Body []byteHTTPResponse *http.Response// JSON200 the response for an HTTP 200 `application/json` responseJSON200 *struct {- AccessToken string `json:"accessToken"`- Organization struct {- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`- AuthEnforced *bool `json:"authEnforced,omitempty"`- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`- CreatedAt time.Time `json:"createdAt"`- CustomerId *string `json:"customerId,omitempty"`- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`- EnforceMfa *bool `json:"enforceMfa,omitempty"`- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`- Id openapi_types.UUID `json:"id"`- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateSamlConfigResponse) GetJSON200() *struct {+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateSamlConfigResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateSamlConfigResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateSamlConfigResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateSamlConfigResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateSamlConfigResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateSamlConfigResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateSamlConfigResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateSamlConfigResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateSamlConfigResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r CreateSamlConfigResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type RedirectOrgSSOResponse struct {+ Body []byte+ HTTPResponse *http.Response+}++// GetBody returns the raw response body bytes+func (r RedirectOrgSSOResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r RedirectOrgSSOResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r RedirectOrgSSOResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r RedirectOrgSSOResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type RedirectSamlByDomainResponse struct {+ Body []byte+ HTTPResponse *http.Response+}++// GetBody returns the raw response body bytes+func (r RedirectSamlByDomainResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r RedirectSamlByDomainResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r RedirectSamlByDomainResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r RedirectSamlByDomainResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type RedirectSamlByOrgSlugResponse struct {+ Body []byte+ HTTPResponse *http.Response+}++// GetBody returns the raw response body bytes+func (r RedirectSamlByOrgSlugResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r RedirectSamlByOrgSlugResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r RedirectSamlByOrgSlugResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r RedirectSamlByOrgSlugResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type RedirectSamlByConfigIdResponse struct {+ Body []byte+ HTTPResponse *http.Response+}++// GetBody returns the raw response body bytes+func (r RedirectSamlByConfigIdResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r RedirectSamlByConfigIdResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r RedirectSamlByConfigIdResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r RedirectSamlByConfigIdResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type SamlAcsResponse struct {+ Body []byte+ HTTPResponse *http.Response+}++// GetBody returns the raw response body bytes+func (r SamlAcsResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r SamlAcsResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r SamlAcsResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r SamlAcsResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateSecretFolderResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Folder struct {+ CreatedAt time.Time `json:"createdAt"`+ Description *string `json:"description,omitempty"`+ EnvId openapi_types.UUID `json:"envId"`+ Id openapi_types.UUID `json:"id"`+ IsReserved *bool `json:"isReserved,omitempty"`+ LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`+ Name string `json:"name"`+ ParentId *openapi_types.UUID `json:"parentId,omitempty"`+ Path string `json:"path"`+ UpdatedAt time.Time `json:"updatedAt"`+ Version *float32 `json:"version,omitempty"`+ } `json:"folder"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateSecretFolderResponse) GetJSON200() *struct {+ Folder struct {+ CreatedAt time.Time `json:"createdAt"`+ Description *string `json:"description,omitempty"`+ EnvId openapi_types.UUID `json:"envId"`+ Id openapi_types.UUID `json:"id"`+ IsReserved *bool `json:"isReserved,omitempty"`+ LastSecretModified *time.Time `json:"lastSecretModified,omitempty"`+ Name string `json:"name"`+ ParentId *openapi_types.UUID `json:"parentId,omitempty"`+ Path string `json:"path"`+ UpdatedAt time.Time `json:"updatedAt"`+ Version *float32 `json:"version,omitempty"`+ } `json:"folder"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateSecretFolderResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateSecretFolderResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateSecretFolderResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateSecretFolderResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateSecretFolderResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateSecretFolderResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSecretFolder500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateSecretFolderResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateSecretFolderResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateSecretFolderResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r CreateSecretFolderResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type CreateOrganizationResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Organization struct {+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r CreateOrganizationResponse) GetJSON200() *struct {+ Organization struct {+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r CreateOrganizationResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r CreateOrganizationResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r CreateOrganizationResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r CreateOrganizationResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r CreateOrganizationResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r CreateOrganizationResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r CreateOrganizationResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r CreateOrganizationResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r CreateOrganizationResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r CreateOrganizationResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type DeleteOrganizationResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ AccessToken string `json:"accessToken"`+ Organization struct {+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`Name string `json:"name"`ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`@@ -28948,6 +32963,593 @@ func (r DeleteOrganizationResponse) ContentType() string {return ""}+type ListOrgMembershipsResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Users []struct {+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"users"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON200() *struct {+ Users []struct {+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"users"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r ListOrgMembershipsResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListOrgMemberships500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r ListOrgMembershipsResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r ListOrgMembershipsResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r ListOrgMembershipsResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r ListOrgMembershipsResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type GetOrgMembershipResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Membership struct {+ CustomRoleSlug *string `json:"customRoleSlug,omitempty"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r GetOrgMembershipResponse) GetJSON200() *struct {+ Membership struct {+ CustomRoleSlug *string `json:"customRoleSlug,omitempty"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r GetOrgMembershipResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r GetOrgMembershipResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r GetOrgMembershipResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r GetOrgMembershipResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r GetOrgMembershipResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r GetOrgMembershipResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r GetOrgMembershipResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r GetOrgMembershipResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r GetOrgMembershipResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r GetOrgMembershipResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}++type UpdateOrgMembershipResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ Membership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON200() *struct {+ Membership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r UpdateOrgMembershipResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r UpdateOrgMembershipResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r UpdateOrgMembershipResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r UpdateOrgMembershipResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r UpdateOrgMembershipResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}+type CreateSecretApprovalPolicyResponse struct {Body []byteHTTPResponse *http.Response@@ -30148,6 +34750,225 @@ func (r CreateSecretImportResponse) ContentType() string {return ""}+type GetCurrentUserResponse struct {+ Body []byte+ HTTPResponse *http.Response+ // JSON200 the response for an HTTP 200 `application/json` response+ JSON200 *struct {+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ ConsecutiveFailedMfaAttempts *float32 `json:"consecutiveFailedMfaAttempts,omitempty"`+ ConsecutiveFailedPasswordAttempts *float32 `json:"consecutiveFailedPasswordAttempts,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Devices interface{} `json:"devices,omitempty"`+ Email *string `json:"email,omitempty"`+ EncryptedPrivateKey *string `json:"encryptedPrivateKey,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsAccepted *bool `json:"isAccepted,omitempty"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ IsGhost *bool `json:"isGhost,omitempty"`+ IsGitHubVerified *bool `json:"isGitHubVerified,omitempty"`+ IsGitLabVerified *bool `json:"isGitLabVerified,omitempty"`+ IsGoogleVerified *bool `json:"isGoogleVerified,omitempty"`+ IsLocked *bool `json:"isLocked,omitempty"`+ IsMfaEnabled *bool `json:"isMfaEnabled,omitempty"`+ Iv *string `json:"iv,omitempty"`+ LastName *string `json:"lastName,omitempty"`++ // MfaMethods Deprecated: no longer used and always null. Use selectedMfaMethod instead.+ // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set+ MfaMethods *[]string `json:"mfaMethods,omitempty"`+ ProtectedKey *string `json:"protectedKey,omitempty"`+ ProtectedKeyIV *string `json:"protectedKeyIV,omitempty"`+ ProtectedKeyTag *string `json:"protectedKeyTag,omitempty"`+ Salt *string `json:"salt,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ Tag *string `json:"tag,omitempty"`+ TemporaryLockDateEnd *time.Time `json:"temporaryLockDateEnd,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ Username string `json:"username"`+ } `json:"user"`+ }+ // JSON400 the response for an HTTP 400 `application/json` response+ JSON400 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON401 the response for an HTTP 401 `application/json` response+ JSON401 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON403 the response for an HTTP 403 `application/json` response+ JSON403 *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON404 the response for an HTTP 404 `application/json` response+ JSON404 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON422 the response for an HTTP 422 `application/json` response+ JSON422 *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ // JSON500 the response for an HTTP 500 `application/json` response+ JSON500 *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser500JSONResponseBodyStatusCode `json:"statusCode"`+ }+}++// GetJSON200 returns the response for an HTTP 200 `application/json` response+func (r GetCurrentUserResponse) GetJSON200() *struct {+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ ConsecutiveFailedMfaAttempts *float32 `json:"consecutiveFailedMfaAttempts,omitempty"`+ ConsecutiveFailedPasswordAttempts *float32 `json:"consecutiveFailedPasswordAttempts,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Devices interface{} `json:"devices,omitempty"`+ Email *string `json:"email,omitempty"`+ EncryptedPrivateKey *string `json:"encryptedPrivateKey,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsAccepted *bool `json:"isAccepted,omitempty"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ IsGhost *bool `json:"isGhost,omitempty"`+ IsGitHubVerified *bool `json:"isGitHubVerified,omitempty"`+ IsGitLabVerified *bool `json:"isGitLabVerified,omitempty"`+ IsGoogleVerified *bool `json:"isGoogleVerified,omitempty"`+ IsLocked *bool `json:"isLocked,omitempty"`+ IsMfaEnabled *bool `json:"isMfaEnabled,omitempty"`+ Iv *string `json:"iv,omitempty"`+ LastName *string `json:"lastName,omitempty"`++ // MfaMethods Deprecated: no longer used and always null. Use selectedMfaMethod instead.+ // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set+ MfaMethods *[]string `json:"mfaMethods,omitempty"`+ ProtectedKey *string `json:"protectedKey,omitempty"`+ ProtectedKeyIV *string `json:"protectedKeyIV,omitempty"`+ ProtectedKeyTag *string `json:"protectedKeyTag,omitempty"`+ Salt *string `json:"salt,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ Tag *string `json:"tag,omitempty"`+ TemporaryLockDateEnd *time.Time `json:"temporaryLockDateEnd,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ Username string `json:"username"`+ } `json:"user"`+} {+ return r.JSON200+}++// GetJSON400 returns the response for an HTTP 400 `application/json` response+func (r GetCurrentUserResponse) GetJSON400() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser400JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON400+}++// GetJSON401 returns the response for an HTTP 401 `application/json` response+func (r GetCurrentUserResponse) GetJSON401() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser401JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON401+}++// GetJSON403 returns the response for an HTTP 403 `application/json` response+func (r GetCurrentUserResponse) GetJSON403() *struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser403JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON403+}++// GetJSON404 returns the response for an HTTP 404 `application/json` response+func (r GetCurrentUserResponse) GetJSON404() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser404JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON404+}++// GetJSON422 returns the response for an HTTP 422 `application/json` response+func (r GetCurrentUserResponse) GetJSON422() *struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser422JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON422+}++// GetJSON500 returns the response for an HTTP 500 `application/json` response+func (r GetCurrentUserResponse) GetJSON500() *struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser500JSONResponseBodyStatusCode `json:"statusCode"`+} {+ return r.JSON500+}++// GetBody returns the raw response body bytes+func (r GetCurrentUserResponse) GetBody() []byte {+ return r.Body+}++// Status returns HTTPResponse.Status+func (r GetCurrentUserResponse) Status() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Status+ }+ return http.StatusText(0)+}++// StatusCode returns HTTPResponse.StatusCode+func (r GetCurrentUserResponse) StatusCode() int {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.StatusCode+ }+ return 0+}++// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers+func (r GetCurrentUserResponse) ContentType() string {+ if r.HTTPResponse != nil {+ return r.HTTPResponse.Header.Get("Content-Type")+ }+ return ""+}+type LoginV3Response struct {Body []byteHTTPResponse *http.Response@@ -33422,6 +38243,50 @@ func (c *ClientWithResponses) LoginWithUniversalAuthWithResponse(ctx context.Conreturn ParseLoginWithUniversalAuthResponse(rsp)}+// ListEmailDomainsWithResponse performs a GET /api/v1/email-domains (the `ListEmailDomains` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) ListEmailDomainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEmailDomainsResponse, error) {+ rsp, err := c.ListEmailDomains(ctx, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseListEmailDomainsResponse(rsp)+}++// CreateEmailDomainWithBodyWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request,+// with any type of body and a specified content type.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateEmailDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error) {+ rsp, err := c.CreateEmailDomainWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateEmailDomainResponse(rsp)+}++// CreateEmailDomainWithResponse performs a POST /api/v1/email-domains (the `CreateEmailDomain` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateEmailDomainWithResponse(ctx context.Context, body CreateEmailDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailDomainResponse, error) {+ rsp, err := c.CreateEmailDomain(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateEmailDomainResponse(rsp)+}++// VerifyEmailDomainWithResponse performs a POST /api/v1/email-domains/{emailDomainId}/verify (the `VerifyEmailDomain` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) VerifyEmailDomainWithResponse(ctx context.Context, emailDomainId openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyEmailDomainResponse, error) {+ rsp, err := c.VerifyEmailDomain(ctx, emailDomainId, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseVerifyEmailDomainResponse(rsp)+}+// CreateGroupWithBodyWithResponse performs a POST /api/v1/groups (the `CreateGroup` operationId) request,// with any type of body and a specified content type.//@@ -33536,6 +38401,17 @@ func (c *ClientWithResponses) VerifyUserToOrganizationWithResponse(ctx context.Creturn ParseVerifyUserToOrganizationResponse(rsp)}+// GetOrganizationByIdWithResponse performs a GET /api/v1/organization/{organizationId} (the `GetOrganizationById` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetOrganizationByIdWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationByIdResponse, error) {+ rsp, err := c.GetOrganizationById(ctx, organizationId, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetOrganizationByIdResponse(rsp)+}+// UpdateOrganizationWithBodyWithResponse performs a PATCH /api/v1/organization/{organizationId} (the `UpdateOrganization` operationId) request,// with any type of body and a specified content type.//@@ -33970,6 +38846,137 @@ func (c *ClientWithResponses) SyncGitHubSecretSyncWithResponse(ctx context.Contereturn ParseSyncGitHubSecretSyncResponse(rsp)}+// GetSamlConfigWithResponse performs a GET /api/v1/sso/config (the `GetSamlConfig` operationId) request.+//+// Get SAML config.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetSamlConfigWithResponse(ctx context.Context, params *GetSamlConfigParams, reqEditors ...RequestEditorFn) (*GetSamlConfigResponse, error) {+ rsp, err := c.GetSamlConfig(ctx, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetSamlConfigResponse(rsp)+}++// UpdateSamlConfigWithBodyWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request,+// with any type of body and a specified content type.+//+// Update SAML config.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) UpdateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error) {+ rsp, err := c.UpdateSamlConfigWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateSamlConfigResponse(rsp)+}++// UpdateSamlConfigWithResponse performs a PATCH /api/v1/sso/config (the `UpdateSamlConfig` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Update SAML config.+func (c *ClientWithResponses) UpdateSamlConfigWithResponse(ctx context.Context, body UpdateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSamlConfigResponse, error) {+ rsp, err := c.UpdateSamlConfig(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateSamlConfigResponse(rsp)+}++// CreateSamlConfigWithBodyWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request,+// with any type of body and a specified content type.+//+// Create SAML config.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) CreateSamlConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error) {+ rsp, err := c.CreateSamlConfigWithBody(ctx, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateSamlConfigResponse(rsp)+}++// CreateSamlConfigWithResponse performs a POST /api/v1/sso/config (the `CreateSamlConfig` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Create SAML config.+func (c *ClientWithResponses) CreateSamlConfigWithResponse(ctx context.Context, body CreateSamlConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSamlConfigResponse, error) {+ rsp, err := c.CreateSamlConfig(ctx, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseCreateSamlConfigResponse(rsp)+}++// RedirectOrgSSOWithResponse performs a GET /api/v1/sso/redirect/organizations/{orgSlug} (the `RedirectOrgSSO` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) RedirectOrgSSOWithResponse(ctx context.Context, orgSlug string, params *RedirectOrgSSOParams, reqEditors ...RequestEditorFn) (*RedirectOrgSSOResponse, error) {+ rsp, err := c.RedirectOrgSSO(ctx, orgSlug, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseRedirectOrgSSOResponse(rsp)+}++// RedirectSamlByDomainWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/domain/{domain} (the `RedirectSamlByDomain` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) RedirectSamlByDomainWithResponse(ctx context.Context, domain string, params *RedirectSamlByDomainParams, reqEditors ...RequestEditorFn) (*RedirectSamlByDomainResponse, error) {+ rsp, err := c.RedirectSamlByDomain(ctx, domain, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseRedirectSamlByDomainResponse(rsp)+}++// RedirectSamlByOrgSlugWithResponse performs a GET /api/v1/sso/redirect/saml2/organizations/{orgSlug} (the `RedirectSamlByOrgSlug` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) RedirectSamlByOrgSlugWithResponse(ctx context.Context, orgSlug string, params *RedirectSamlByOrgSlugParams, reqEditors ...RequestEditorFn) (*RedirectSamlByOrgSlugResponse, error) {+ rsp, err := c.RedirectSamlByOrgSlug(ctx, orgSlug, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseRedirectSamlByOrgSlugResponse(rsp)+}++// RedirectSamlByConfigIdWithResponse performs a GET /api/v1/sso/redirect/saml2/{samlConfigId} (the `RedirectSamlByConfigId` operationId) request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) RedirectSamlByConfigIdWithResponse(ctx context.Context, samlConfigId string, params *RedirectSamlByConfigIdParams, reqEditors ...RequestEditorFn) (*RedirectSamlByConfigIdResponse, error) {+ rsp, err := c.RedirectSamlByConfigId(ctx, samlConfigId, params, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseRedirectSamlByConfigIdResponse(rsp)+}++// SamlAcsWithBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request,+// with any type of body and a specified content type.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) SamlAcsWithBodyWithResponse(ctx context.Context, samlConfigId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error) {+ rsp, err := c.SamlAcsWithBody(ctx, samlConfigId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseSamlAcsResponse(rsp)+}++// SamlAcsWithFormdataBodyWithResponse performs a POST /api/v1/sso/saml2/{samlConfigId} (the `SamlAcs` operationId) request.+// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) SamlAcsWithFormdataBodyWithResponse(ctx context.Context, samlConfigId string, body SamlAcsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SamlAcsResponse, error) {+ rsp, err := c.SamlAcsWithFormdataBody(ctx, samlConfigId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseSamlAcsResponse(rsp)+}+// CreateSecretFolderWithBodyWithResponse performs a POST /api/v2/folders (the `CreateSecretFolder` operationId) request,// with any type of body and a specified content type.//@@ -34029,6 +39036,58 @@ func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Contextreturn ParseDeleteOrganizationResponse(rsp)}+// ListOrgMembershipsWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships (the `ListOrgMemberships` operationId) request.+//+// Return organization user memberships.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) ListOrgMembershipsWithResponse(ctx context.Context, organizationId string, reqEditors ...RequestEditorFn) (*ListOrgMembershipsResponse, error) {+ rsp, err := c.ListOrgMemberships(ctx, organizationId, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseListOrgMembershipsResponse(rsp)+}++// GetOrgMembershipWithResponse performs a GET /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `GetOrgMembership` operationId) request.+//+// Get organization user membership.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, reqEditors ...RequestEditorFn) (*GetOrgMembershipResponse, error) {+ rsp, err := c.GetOrgMembership(ctx, organizationId, membershipId, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetOrgMembershipResponse(rsp)+}++// UpdateOrgMembershipWithBodyWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request,+// with any type of body and a specified content type.+//+// Update organization user memberships.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) UpdateOrgMembershipWithBodyWithResponse(ctx context.Context, organizationId string, membershipId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error) {+ rsp, err := c.UpdateOrgMembershipWithBody(ctx, organizationId, membershipId, contentType, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateOrgMembershipResponse(rsp)+}++// UpdateOrgMembershipWithResponse performs a PATCH /api/v2/organizations/{organizationId}/memberships/{membershipId} (the `UpdateOrgMembership` operationId) request.+// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).+//+// Update organization user memberships.+func (c *ClientWithResponses) UpdateOrgMembershipWithResponse(ctx context.Context, organizationId string, membershipId string, body UpdateOrgMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgMembershipResponse, error) {+ rsp, err := c.UpdateOrgMembership(ctx, organizationId, membershipId, body, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseUpdateOrgMembershipResponse(rsp)+}+// CreateSecretApprovalPolicyWithBodyWithResponse performs a POST /api/v2/secret-approvals (the `CreateSecretApprovalPolicy` operationId) request,// with any type of body and a specified content type.//@@ -34132,6 +39191,19 @@ func (c *ClientWithResponses) CreateSecretImportWithResponse(ctx context.Contextreturn ParseCreateSecretImportResponse(rsp)}+// GetCurrentUserWithResponse performs a GET /api/v2/users/me (the `GetCurrentUser` operationId) request.+//+// Retrieve the current user on the request.+//+// Returns a wrapper object for the known response body format(s).+func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error) {+ rsp, err := c.GetCurrentUser(ctx, reqEditors...)+ if err != nil {+ return nil, err+ }+ return ParseGetCurrentUserResponse(rsp)+}+// LoginV3WithBodyWithResponse performs a POST /api/v3/auth/login (the `LoginV3` operationId) request,// with any type of body and a specified content type.//@@ -35527,6 +40599,348 @@ func ParseLoginWithUniversalAuthResponse(rsp *http.Response) (*LoginWithUniversareturn response, nil}+// ParseListEmailDomainsResponse parses an HTTP response from a ListEmailDomainsWithResponse call+func ParseListEmailDomainsResponse(rsp *http.Response) (*ListEmailDomainsResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &ListEmailDomainsResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ EmailDomains []struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomains"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode ListEmailDomains500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseCreateEmailDomainResponse parses an HTTP response from a CreateEmailDomainWithResponse call+func ParseCreateEmailDomainResponse(rsp *http.Response) (*CreateEmailDomainResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &CreateEmailDomainResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseVerifyEmailDomainResponse parses an HTTP response from a VerifyEmailDomainWithResponse call+func ParseVerifyEmailDomainResponse(rsp *http.Response) (*VerifyEmailDomainResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &VerifyEmailDomainResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ EmailDomain struct {+ CodeExpiresAt time.Time `json:"codeExpiresAt"`+ CreatedAt time.Time `json:"createdAt"`+ Domain string `json:"domain"`+ Id openapi_types.UUID `json:"id"`+ OrgId openapi_types.UUID `json:"orgId"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ VerificationCode string `json:"verificationCode"`+ VerificationMethod *string `json:"verificationMethod,omitempty"`+ VerificationRecordName string `json:"verificationRecordName"`+ VerifiedAt *time.Time `json:"verifiedAt,omitempty"`+ } `json:"emailDomain"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode VerifyEmailDomain500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}+// ParseCreateGroupResponse parses an HTTP response from a CreateGroupWithResponse callfunc ParseCreateGroupResponse(rsp *http.Response) (*CreateGroupResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)@@ -36180,6 +41594,143 @@ func ParseVerifyUserToOrganizationResponse(rsp *http.Response) (*VerifyUserToOrgreturn response, nil}+// ParseGetOrganizationByIdResponse parses an HTTP response from a GetOrganizationByIdWithResponse call+func ParseGetOrganizationByIdResponse(rsp *http.Response) (*GetOrganizationByIdResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &GetOrganizationByIdResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Organization struct {+ AgentVaultProjectId *string `json:"agentVaultProjectId"`+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ PamProjectId *string `json:"pamProjectId"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrganizationById500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}+// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse callfunc ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)@@ -37644,7 +43195,7 @@ func ParseListSecretApprovalRequestsResponse(rsp *http.Response) (*ListSecretAppName string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Status string `json:"status"`UserId string `json:"userId"`@@ -37969,7 +43520,7 @@ func ParseGetSecretApprovalRequestResponse(rsp *http.Response) (*GetSecretApprovName string `json:"name"`SecretPath *string `json:"secretPath,omitempty"`} `json:"policy"`- PolicyId openapi_types.UUID `json:"policyId"`+ PolicyId *openapi_types.UUID `json:"policyId"`Reviewers []struct {Comment *string `json:"comment,omitempty"`CreatedAt time.Time `json:"createdAt"`@@ -39205,6 +44756,413 @@ func ParseSyncGitHubSecretSyncResponse(rsp *http.Response) (*SyncGitHubSecretSynreturn response, nil}+// ParseGetSamlConfigResponse parses an HTTP response from a GetSamlConfigWithResponse call+func ParseGetSamlConfigResponse(rsp *http.Response) (*GetSamlConfigResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &GetSamlConfigResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AuthProvider string `json:"authProvider"`+ Cert string `json:"cert"`+ EnableGroupSync *bool `json:"enableGroupSync,omitempty"`+ EntryPoint string `json:"entryPoint"`+ Id string `json:"id"`+ IsActive bool `json:"isActive"`+ Issuer string `json:"issuer"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId string `json:"orgId"`+ Organization string `json:"organization"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseUpdateSamlConfigResponse parses an HTTP response from a UpdateSamlConfigWithResponse call+func ParseUpdateSamlConfigResponse(rsp *http.Response) (*UpdateSamlConfigResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &UpdateSamlConfigResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseCreateSamlConfigResponse parses an HTTP response from a CreateSamlConfigWithResponse call+func ParseCreateSamlConfigResponse(rsp *http.Response) (*CreateSamlConfigResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &CreateSamlConfigResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AuthProvider string `json:"authProvider"`+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ IsActive bool `json:"isActive"`+ LastUsed *time.Time `json:"lastUsed,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ UpdatedAt time.Time `json:"updatedAt"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateSamlConfig500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseRedirectOrgSSOResponse parses an HTTP response from a RedirectOrgSSOWithResponse call+func ParseRedirectOrgSSOResponse(rsp *http.Response) (*RedirectOrgSSOResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &RedirectOrgSSOResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ return response, nil+}++// ParseRedirectSamlByDomainResponse parses an HTTP response from a RedirectSamlByDomainWithResponse call+func ParseRedirectSamlByDomainResponse(rsp *http.Response) (*RedirectSamlByDomainResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &RedirectSamlByDomainResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ return response, nil+}++// ParseRedirectSamlByOrgSlugResponse parses an HTTP response from a RedirectSamlByOrgSlugWithResponse call+func ParseRedirectSamlByOrgSlugResponse(rsp *http.Response) (*RedirectSamlByOrgSlugResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &RedirectSamlByOrgSlugResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ return response, nil+}++// ParseRedirectSamlByConfigIdResponse parses an HTTP response from a RedirectSamlByConfigIdWithResponse call+func ParseRedirectSamlByConfigIdResponse(rsp *http.Response) (*RedirectSamlByConfigIdResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &RedirectSamlByConfigIdResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ return response, nil+}++// ParseSamlAcsResponse parses an HTTP response from a SamlAcsWithResponse call+func ParseSamlAcsResponse(rsp *http.Response) (*SamlAcsResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &SamlAcsResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ return response, nil+}+// ParseCreateSecretFolderResponse parses an HTTP response from a CreateSecretFolderWithResponse callfunc ParseCreateSecretFolderResponse(rsp *http.Response) (*CreateSecretFolderResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)@@ -39381,7 +45339,143 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode CreateOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call+func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &DeleteOrganizationResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ AccessToken string `json:"accessToken"`+ Organization struct {+ AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`+ AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`+ AuthEnforced *bool `json:"authEnforced,omitempty"`+ BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`+ BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ CustomerId *string `json:"customerId,omitempty"`+ DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`+ EnforceMfa *bool `json:"enforceMfa,omitempty"`+ GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`+ Id openapi_types.UUID `json:"id"`+ KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`+ KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`+ MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`+ MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`+ Name string `json:"name"`+ ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`+ PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`+ PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`+ PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`+ RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`+ RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`+ ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`+ ScimEnabled *bool `json:"scimEnabled,omitempty"`+ SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`+ SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`+ ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`+ Slug string `json:"slug"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`+ } `json:"organization"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39393,7 +45487,7 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode CreateOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39406,7 +45500,7 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode CreateOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39418,7 +45512,7 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode CreateOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39430,7 +45524,7 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message interface{} `json:"message,omitempty"`ReqId string `json:"reqId"`- StatusCode CreateOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39442,7 +45536,7 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode CreateOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39454,15 +45548,15 @@ func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResreturn response, nil}-// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call-func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) {+// ParseListOrgMembershipsResponse parses an HTTP response from a ListOrgMembershipsWithResponse call+func ParseListOrgMembershipsResponse(rsp *http.Response) (*ListOrgMembershipsResponse, error) {bodyBytes, err := io.ReadAll(rsp.Body)defer func() { _ = rsp.Body.Close() }()if err != nil {return nil, err}- response := &DeleteOrganizationResponse{+ response := &ListOrgMembershipsResponse{Body: bodyBytes,HTTPResponse: rsp,}@@ -39470,41 +45564,30 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResswitch {case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:var dest struct {- AccessToken string `json:"accessToken"`- Organization struct {- AllowCrossProjectSecretSharing *bool `json:"allowCrossProjectSecretSharing,omitempty"`- AllowSecretSharingOutsideOrganization *bool `json:"allowSecretSharingOutsideOrganization,omitempty"`- AuthEnforced *bool `json:"authEnforced,omitempty"`- BlockDuplicateSecretSyncDestinations *bool `json:"blockDuplicateSecretSyncDestinations,omitempty"`- BypassOrgAuthEnabled *bool `json:"bypassOrgAuthEnabled,omitempty"`- CreatedAt time.Time `json:"createdAt"`- CustomerId *string `json:"customerId,omitempty"`- DefaultMembershipRole *string `json:"defaultMembershipRole,omitempty"`- EnforceMfa *bool `json:"enforceMfa,omitempty"`- GoogleSsoAuthEnforced *bool `json:"googleSsoAuthEnforced,omitempty"`- Id openapi_types.UUID `json:"id"`- KmsDefaultKeyId *openapi_types.UUID `json:"kmsDefaultKeyId,omitempty"`- KmsProductEnabled *bool `json:"kmsProductEnabled,omitempty"`- MaxSharedSecretLifetime *float32 `json:"maxSharedSecretLifetime,omitempty"`- MaxSharedSecretViewLimit *float32 `json:"maxSharedSecretViewLimit,omitempty"`- Name string `json:"name"`- ParentOrgId *openapi_types.UUID `json:"parentOrgId,omitempty"`- PkiProductEnabled *bool `json:"pkiProductEnabled,omitempty"`- PrivilegeUpgradeInitiatedAt *time.Time `json:"privilegeUpgradeInitiatedAt,omitempty"`- PrivilegeUpgradeInitiatedByUsername *string `json:"privilegeUpgradeInitiatedByUsername,omitempty"`- RequireGatewayPools *bool `json:"requireGatewayPools,omitempty"`- RootOrgId *openapi_types.UUID `json:"rootOrgId,omitempty"`- ScannerProductEnabled *bool `json:"scannerProductEnabled,omitempty"`- ScimEnabled *bool `json:"scimEnabled,omitempty"`- SecretShareBrandConfig interface{} `json:"secretShareBrandConfig,omitempty"`- SecretsProductEnabled *bool `json:"secretsProductEnabled,omitempty"`- SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`- ShareSecretsProductEnabled *bool `json:"shareSecretsProductEnabled,omitempty"`- ShouldUseNewPrivilegeSystem *bool `json:"shouldUseNewPrivilegeSystem,omitempty"`- Slug string `json:"slug"`- UpdatedAt time.Time `json:"updatedAt"`- UserTokenExpiration *string `json:"userTokenExpiration,omitempty"`- } `json:"organization"`+ Users []struct {+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"users"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39517,7 +45600,7 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization400JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships400JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39529,7 +45612,7 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization401JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships401JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39542,7 +45625,7 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization403JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships403JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39554,7 +45637,7 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization404JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships404JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39566,7 +45649,7 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message interface{} `json:"message,omitempty"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization422JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships422JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -39578,7 +45661,255 @@ func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResError string `json:"error"`Message string `json:"message"`ReqId string `json:"reqId"`- StatusCode DeleteOrganization500JSONResponseBodyStatusCode `json:"statusCode"`+ StatusCode ListOrgMemberships500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseGetOrgMembershipResponse parses an HTTP response from a GetOrgMembershipWithResponse call+func ParseGetOrgMembershipResponse(rsp *http.Response) (*GetOrgMembershipResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &GetOrgMembershipResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Membership struct {+ CustomRoleSlug *string `json:"customRoleSlug,omitempty"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ Metadata *[]struct {+ Id string `json:"id"`+ Key string `json:"key"`+ Value string `json:"value"`+ } `json:"metadata,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ Email *string `json:"email,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ LastName *string `json:"lastName,omitempty"`+ PublicKey *string `json:"publicKey,omitempty"`+ Username string `json:"username"`+ } `json:"user"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}++// ParseUpdateOrgMembershipResponse parses an HTTP response from a UpdateOrgMembershipWithResponse call+func ParseUpdateOrgMembershipResponse(rsp *http.Response) (*UpdateOrgMembershipResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &UpdateOrgMembershipResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ Membership struct {+ CreatedAt time.Time `json:"createdAt"`+ Id openapi_types.UUID `json:"id"`+ InviteEmail *string `json:"inviteEmail,omitempty"`+ IsActive *bool `json:"isActive,omitempty"`+ LastInvitedAt *time.Time `json:"lastInvitedAt,omitempty"`+ LastLoginAuthMethod *string `json:"lastLoginAuthMethod,omitempty"`+ LastLoginTime *time.Time `json:"lastLoginTime,omitempty"`+ OrgId openapi_types.UUID `json:"orgId"`+ ProjectFavorites *[]string `json:"projectFavorites,omitempty"`+ Role string `json:"role"`+ RoleId *openapi_types.UUID `json:"roleId,omitempty"`+ Status *string `json:"status,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ UserId *openapi_types.UUID `json:"userId,omitempty"`+ } `json:"membership"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode UpdateOrgMembership500JSONResponseBodyStatusCode `json:"statusCode"`}if err := json.Unmarshal(bodyBytes, &dest); err != nil {return nil, err@@ -40349,6 +46680,142 @@ func ParseCreateSecretImportResponse(rsp *http.Response) (*CreateSecretImportResreturn response, nil}+// ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call+func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error) {+ bodyBytes, err := io.ReadAll(rsp.Body)+ defer func() { _ = rsp.Body.Close() }()+ if err != nil {+ return nil, err+ }++ response := &GetCurrentUserResponse{+ Body: bodyBytes,+ HTTPResponse: rsp,+ }++ switch {+ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:+ var dest struct {+ User struct {+ AuthMethods *[]string `json:"authMethods,omitempty"`+ ConsecutiveFailedMfaAttempts *float32 `json:"consecutiveFailedMfaAttempts,omitempty"`+ ConsecutiveFailedPasswordAttempts *float32 `json:"consecutiveFailedPasswordAttempts,omitempty"`+ CreatedAt time.Time `json:"createdAt"`+ Devices interface{} `json:"devices,omitempty"`+ Email *string `json:"email,omitempty"`+ EncryptedPrivateKey *string `json:"encryptedPrivateKey,omitempty"`+ FirstName *string `json:"firstName,omitempty"`+ Id openapi_types.UUID `json:"id"`+ IsAccepted *bool `json:"isAccepted,omitempty"`+ IsEmailVerified *bool `json:"isEmailVerified,omitempty"`+ IsGhost *bool `json:"isGhost,omitempty"`+ IsGitHubVerified *bool `json:"isGitHubVerified,omitempty"`+ IsGitLabVerified *bool `json:"isGitLabVerified,omitempty"`+ IsGoogleVerified *bool `json:"isGoogleVerified,omitempty"`+ IsLocked *bool `json:"isLocked,omitempty"`+ IsMfaEnabled *bool `json:"isMfaEnabled,omitempty"`+ Iv *string `json:"iv,omitempty"`+ LastName *string `json:"lastName,omitempty"`++ // MfaMethods Deprecated: no longer used and always null. Use selectedMfaMethod instead.+ // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set+ MfaMethods *[]string `json:"mfaMethods,omitempty"`+ ProtectedKey *string `json:"protectedKey,omitempty"`+ ProtectedKeyIV *string `json:"protectedKeyIV,omitempty"`+ ProtectedKeyTag *string `json:"protectedKeyTag,omitempty"`+ Salt *string `json:"salt,omitempty"`+ SelectedMfaMethod *string `json:"selectedMfaMethod,omitempty"`+ SuperAdmin *bool `json:"superAdmin,omitempty"`+ Tag *string `json:"tag,omitempty"`+ TemporaryLockDateEnd *time.Time `json:"temporaryLockDateEnd,omitempty"`+ UpdatedAt time.Time `json:"updatedAt"`+ Username string `json:"username"`+ } `json:"user"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON200 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser400JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON400 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser401JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON401 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403:+ var dest struct {+ Details interface{} `json:"details,omitempty"`+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser403JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON403 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser404JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON404 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422:+ var dest struct {+ Error string `json:"error"`+ Message interface{} `json:"message,omitempty"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser422JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON422 = &dest++ case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:+ var dest struct {+ Error string `json:"error"`+ Message string `json:"message"`+ ReqId string `json:"reqId"`+ StatusCode GetCurrentUser500JSONResponseBodyStatusCode `json:"statusCode"`+ }+ if err := json.Unmarshal(bodyBytes, &dest); err != nil {+ return nil, err+ }+ response.JSON500 = &dest++ }++ return response, nil+}+// ParseLoginV3Response parses an HTTP response from a LoginV3WithResponse callfunc ParseLoginV3Response(rsp *http.Response) (*LoginV3Response, error) {bodyBytes, err := io.ReadAll(rsp.Body)diff --git a/tests/clients/api/oapi-codegen.yaml b/tests/clients/api/oapi-codegen.yamlindex 1098c340d5..d2c6275d5e 100644--- a/tests/clients/api/oapi-codegen.yaml+++ b/tests/clients/api/oapi-codegen.yaml@@ -81,3 +81,19 @@ output-options:- addUserToGroup- removeUserFromGroup- createProjectGroupMembership+ - getSamlConfig+ - createSamlConfig+ - updateSamlConfig+ - redirectSamlByOrgSlug+ - redirectSamlByDomain+ - redirectSamlByConfigId+ - redirectOrgSSO+ - samlAcs+ - createEmailDomain+ - verifyEmailDomain+ - listEmailDomains+ - getOrganizationById+ - listOrgMemberships+ - getOrgMembership+ - updateOrgMembership+ - getCurrentUserdiff --git a/tests/cmd/fakenet/main.go b/tests/cmd/fakenet/main.goindex 84489bf5e0..ef67727612 100644--- a/tests/cmd/fakenet/main.go+++ b/tests/cmd/fakenet/main.go@@ -41,7 +41,7 @@ func main() {log.Fatalf("fakenet: smtp listener: %v", err)}- go func() { log.Fatalf("fakenet: %v", fakenet.ServeDNS(":53", selfIP)) }()+ go func() { log.Fatalf("fakenet: %v", srv.ServeDNS(":53", selfIP)) }()go func() {log.Fatalf("fakenet: admin listener: %v", http.ListenAndServe(":8080", srv.Admin(ca)))diff --git a/tests/docs/client.md b/tests/docs/client.mdindex 6305befc9d..fa9ddb6114 100644--- a/tests/docs/client.md+++ b/tests/docs/client.md@@ -30,3 +30,18 @@ the harness image with `NODE_ENV=development`.every one of them succeeds whichever branch the server sent, and the wrong one handsback zero values instead of an error. After unwrapping, require a field that only theexpected branch carries before trusting the result.++## Redirects and unauthenticated routes++Clients follow redirects by default. When the redirect is the outcome, such as an SSO+start or a SAML ACS answer, opt in to receiving it:++```go+browser := tn.Anonymous(t, infisical.NoRedirects()) // no token, tenant's rate-limit bucket+res, _ := browser.RedirectSamlByOrgSlugWithResponse(ctx, tn.OrgSlug, nil)+res.HTTPResponse.Header.Get("Location")+res.HTTPResponse.Cookies()+```++`tn.Client(t, token, infisical.NoRedirects())` does the same for a principal. Send a+cookie back with a per-call request editor rather than a cookie jar.diff --git a/tests/docs/fakes.md b/tests/docs/fakes.mdindex 1e46c70ae3..0e37832458 100644--- a/tests/docs/fakes.md+++ b/tests/docs/fakes.md@@ -104,6 +104,15 @@ type SecretDeleted struct{ SecretDetail }func (SecretDeleted) EventName() string { return "github.secret-deleted" }```+## DNS records++Every A query resolves to fakenet. A product that proves domain ownership reads a TXT+record, so publish it first; it is removed when the test ends.++```go+fakenet.SetTXT(t, fixture.FakenetAdmin(t, tn), "_infisical-verification.acme.test", "value")+```+## Test plumbing onceSecret sync is tested end to end through GitHub. A new sync provider gets tests only fordiff --git a/tests/fakes/samlidp/samlidp.go b/tests/fakes/samlidp/samlidp.gonew file mode 100644index 0000000000..732d36afdf--- /dev/null+++ b/tests/fakes/samlidp/samlidp.go@@ -0,0 +1,294 @@+// Package samlidp is a SAML identity provider that runs inside the test process.+//+// Infisical never calls the IdP: the browser carries the AuthnRequest out and the+// SAMLResponse back, and in a test the test is the browser. So this fake is not a+// fakenet service. It holds a key pair, reads the request Infisical redirected to it,+// and mints the response, with knobs to break exactly one property of it.+package samlidp++import (+ "bytes"+ "compress/flate"+ "crypto/rand"+ "crypto/rsa"+ "crypto/x509"+ "crypto/x509/pkix"+ "encoding/base64"+ "encoding/pem"+ "io"+ "math/big"+ "net/url"+ "testing"+ "time"++ "github.com/Infisical/infisical/tests/internal/id"+ "github.com/beevik/etree"+ dsig "github.com/russellhaering/goxmldsig"+)++const (+ nsProtocol = "urn:oasis:names:tc:SAML:2.0:protocol"+ nsAssertion = "urn:oasis:names:tc:SAML:2.0:assertion"+ nsXSI = "http://www.w3.org/2001/XMLSchema-instance"+ nsXS = "http://www.w3.org/2001/XMLSchema"++ StatusSuccess = "urn:oasis:names:tc:SAML:2.0:status:Success"+ StatusResponder = "urn:oasis:names:tc:SAML:2.0:status:Responder"++ // EntraEmailClaim is the attribute name Entra ID sends the mailbox under.+ EntraEmailClaim = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/email"+)++// Signing says which elements of a response carry a signature. The zero value signs+// both, which is what every provider accepts.+type Signing int++const (+ SignBoth Signing = iota+ SignAssertionOnly+ SignResponseOnly+ SignNone+)++// IdP is one identity provider: an entity id, an SSO URL and a signing key.+type IdP struct {+ EntityID string+ EntryPoint string++ key *rsa.PrivateKey+ cert []byte+}++func New(t *testing.T) *IdP {+ t.Helper()+ key, err := rsa.GenerateKey(rand.Reader, 2048)+ if err != nil {+ t.Fatalf("samlidp: generating key: %v", err)+ }+ host := "idp-" + id.Short() + ".test"+ template := &x509.Certificate{+ SerialNumber: big.NewInt(1),+ Subject: pkix.Name{CommonName: host},+ NotBefore: time.Now().Add(-time.Hour),+ NotAfter: time.Now().Add(24 * time.Hour),+ }+ cert, err := x509.CreateCertificate(rand.Reader, template, template, &key.PublicKey, key)+ if err != nil {+ t.Fatalf("samlidp: creating certificate: %v", err)+ }+ return &IdP{+ EntityID: "https://" + host + "/metadata",+ EntryPoint: "https://" + host + "/sso",+ key: key,+ cert: cert,+ }+}++// CertPEM is the signing certificate, in the form the SAML config takes.+func (i *IdP) CertPEM() string {+ return string(pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: i.cert}))+}++func (i *IdP) GetKeyPair() (*rsa.PrivateKey, []byte, error) { return i.key, i.cert, nil }++// Request is what Infisical asked for when it redirected the browser here.+type Request struct {+ ID string+ Issuer string+ ACSURL string+ RelayState string+}++// ParseRedirect reads the AuthnRequest out of an HTTP-Redirect binding Location.+func (i *IdP) ParseRedirect(t *testing.T, location string) Request {+ t.Helper()+ u, err := url.Parse(location)+ if err != nil {+ t.Fatalf("samlidp: parsing redirect %q: %v", location, err)+ }+ deflated, err := base64.StdEncoding.DecodeString(u.Query().Get("SAMLRequest"))+ if err != nil {+ t.Fatalf("samlidp: SAMLRequest is not base64: %v", err)+ }+ raw, err := io.ReadAll(flate.NewReader(bytes.NewReader(deflated)))+ if err != nil {+ t.Fatalf("samlidp: SAMLRequest does not inflate: %v", err)+ }+ doc := etree.NewDocument()+ if err := doc.ReadFromBytes(raw); err != nil {+ t.Fatalf("samlidp: SAMLRequest is not XML: %v", err)+ }+ root := doc.Root()+ req := Request{+ ID: root.SelectAttrValue("ID", ""),+ ACSURL: root.SelectAttrValue("AssertionConsumerServiceURL", ""),+ RelayState: u.Query().Get("RelayState"),+ }+ if issuer := root.FindElement("./Issuer"); issuer != nil {+ req.Issuer = issuer.Text()+ }+ return req+}++// Response is one SAMLResponse. Fields left empty are omitted from the XML, so a test+// drops an attribute by not setting it.+type Response struct {+ Destination string+ Audience string+ InResponseTo string+ RelayState string++ NameID string // defaults to Email+ Email string+ FirstName string+ LastName string+ Attributes map[string][]string++ NotBefore time.Time // defaults to a minute ago+ NotOnOrAfter time.Time // defaults to five minutes from now++ Signing Signing+ SignedBy *IdP // defaults to this IdP; another one stands in for a key Infisical does not trust+ Status string // defaults to StatusSuccess; any other status carries no assertion++ // AlterSigned rewrites the XML after it is signed, to prove a signature covers it.+ AlterSigned func(xml string) string+}++// Respond builds and signs a response, returning the form the browser would post.+func (i *IdP) Respond(t *testing.T, r Response) url.Values {+ t.Helper()+ now := time.Now().UTC()+ if r.NotBefore.IsZero() {+ r.NotBefore = now.Add(-time.Minute)+ }+ if r.NotOnOrAfter.IsZero() {+ r.NotOnOrAfter = now.Add(5 * time.Minute)+ }+ if r.NameID == "" {+ r.NameID = r.Email+ }+ if r.Status == "" {+ r.Status = StatusSuccess+ }+ signer := i+ if r.SignedBy != nil {+ signer = r.SignedBy+ }++ response := etree.NewElement("samlp:Response")+ response.CreateAttr("xmlns:samlp", nsProtocol)+ response.CreateAttr("xmlns:saml", nsAssertion)+ response.CreateAttr("ID", "_"+id.Nonce())+ response.CreateAttr("Version", "2.0")+ response.CreateAttr("IssueInstant", instant(now))+ response.CreateAttr("Destination", r.Destination)+ if r.InResponseTo != "" {+ response.CreateAttr("InResponseTo", r.InResponseTo)+ }+ response.CreateElement("saml:Issuer").SetText(i.EntityID)+ response.CreateElement("samlp:Status").CreateElement("samlp:StatusCode").CreateAttr("Value", r.Status)++ if r.Status == StatusSuccess {+ assertion := i.assertion(r, now)+ if r.Signing == SignBoth || r.Signing == SignAssertionOnly {+ assertion = sign(t, signer, assertion)+ }+ response.AddChild(assertion)+ }+ if r.Signing == SignBoth || r.Signing == SignResponseOnly {+ response = sign(t, signer, response)+ }++ doc := etree.NewDocument()+ doc.SetRoot(response)+ xml, err := doc.WriteToString()+ if err != nil {+ t.Fatalf("samlidp: serialising response: %v", err)+ }+ if r.AlterSigned != nil {+ xml = r.AlterSigned(xml)+ }++ form := url.Values{"SAMLResponse": {base64.StdEncoding.EncodeToString([]byte(xml))}}+ if r.RelayState != "" {+ form.Set("RelayState", r.RelayState)+ }+ return form+}++func (i *IdP) assertion(r Response, now time.Time) *etree.Element {+ // Namespaces are declared on the assertion itself so it canonicalises the same+ // signed on its own as it does inside the response.+ a := etree.NewElement("saml:Assertion")+ a.CreateAttr("xmlns:saml", nsAssertion)+ a.CreateAttr("xmlns:xsi", nsXSI)+ a.CreateAttr("xmlns:xs", nsXS)+ a.CreateAttr("ID", "_"+id.Nonce())+ a.CreateAttr("Version", "2.0")+ a.CreateAttr("IssueInstant", instant(now))+ a.CreateElement("saml:Issuer").SetText(i.EntityID)++ subject := a.CreateElement("saml:Subject")+ nameID := subject.CreateElement("saml:NameID")+ nameID.CreateAttr("Format", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress")+ nameID.SetText(r.NameID)+ confirmation := subject.CreateElement("saml:SubjectConfirmation")+ confirmation.CreateAttr("Method", "urn:oasis:names:tc:SAML:2.0:cm:bearer")+ data := confirmation.CreateElement("saml:SubjectConfirmationData")+ data.CreateAttr("NotOnOrAfter", instant(r.NotOnOrAfter))+ data.CreateAttr("Recipient", r.Destination)+ if r.InResponseTo != "" {+ data.CreateAttr("InResponseTo", r.InResponseTo)+ }++ conditions := a.CreateElement("saml:Conditions")+ conditions.CreateAttr("NotBefore", instant(r.NotBefore))+ conditions.CreateAttr("NotOnOrAfter", instant(r.NotOnOrAfter))+ conditions.CreateElement("saml:AudienceRestriction").CreateElement("saml:Audience").SetText(r.Audience)++ authn := a.CreateElement("saml:AuthnStatement")+ authn.CreateAttr("AuthnInstant", instant(now))+ authn.CreateAttr("SessionIndex", "_"+id.Short())+ authn.CreateElement("saml:AuthnContext").CreateElement("saml:AuthnContextClassRef").+ SetText("urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport")++ statement := a.CreateElement("saml:AttributeStatement")+ attribute := func(name string, values ...string) {+ el := statement.CreateElement("saml:Attribute")+ el.CreateAttr("Name", name)+ for _, v := range values {+ value := el.CreateElement("saml:AttributeValue")+ value.CreateAttr("xsi:type", "xs:string")+ value.SetText(v)+ }+ }+ for name, value := range map[string]string{"email": r.Email, "firstName": r.FirstName, "lastName": r.LastName} {+ if value != "" {+ attribute(name, value)+ }+ }+ for name, values := range r.Attributes {+ attribute(name, values...)+ }+ return a+}++// sign returns el with an enveloped signature placed right after its Issuer, where+// the SAML schema puts it.+func sign(t *testing.T, signer *IdP, el *etree.Element) *etree.Element {+ t.Helper()+ ctx := dsig.NewDefaultSigningContext(signer)+ ctx.Canonicalizer = dsig.MakeC14N10ExclusiveCanonicalizerWithPrefixList("")+ if err := ctx.SetSignatureMethod(dsig.RSASHA256SignatureMethod); err != nil {+ t.Fatalf("samlidp: %v", err)+ }+ signature, err := ctx.ConstructSignature(el, true)+ if err != nil {+ t.Fatalf("samlidp: signing %s: %v", el.Tag, err)+ }+ el.InsertChildAt(el.SelectElement("Issuer").Index()+1, signature)+ return el+}++func instant(at time.Time) string { return at.UTC().Format("2006-01-02T15:04:05Z") }diff --git a/tests/fakes/samlidp/samlidp_test.go b/tests/fakes/samlidp/samlidp_test.gonew file mode 100644index 0000000000..2003eb78d6--- /dev/null+++ b/tests/fakes/samlidp/samlidp_test.go@@ -0,0 +1,149 @@+package samlidp++import (+ "bytes"+ "compress/flate"+ "crypto/x509"+ "encoding/base64"+ "net/url"+ "strings"+ "testing"++ "github.com/beevik/etree"+ dsig "github.com/russellhaering/goxmldsig"+ "github.com/stretchr/testify/require"+)++func TestIdP_ParseRedirect(t *testing.T) {+ t.Parallel()++ t.Run("should read the request id, issuer and ACS URL when given a redirect", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp := New(t)+ location := redirectTo(t, idp.EntryPoint, `<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_req1" AssertionConsumerServiceURL="http://app:4000/api/v1/sso/saml2/cfg"><saml:Issuer>sp-entity</saml:Issuer></samlp:AuthnRequest>`, `{"spInitiated":true}`)++ // Action+ req := idp.ParseRedirect(t, location)++ // Assert+ require.Equal(t, Request{ID: "_req1", Issuer: "sp-entity", ACSURL: "http://app:4000/api/v1/sso/saml2/cfg", RelayState: `{"spInitiated":true}`}, req)+ })+}++func TestIdP_Respond(t *testing.T) {+ t.Parallel()++ base := Response{Destination: "http://app/acs", Audience: "http://app", Email: "[email protected]", FirstName: "Alice", LastName: "Doe"}++ t.Run("should sign the response and the assertion when signing both", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp := New(t)++ // Action+ root := decode(t, idp.Respond(t, base))++ // Assert+ require.NoError(t, verify(idp, root))+ require.NoError(t, verify(idp, root.SelectElement("Assertion")))+ require.Equal(t, "Issuer", root.ChildElements()[0].Tag)+ require.Equal(t, "Signature", root.ChildElements()[1].Tag)+ })++ t.Run("should leave the response unsigned when signing only the assertion", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp := New(t)+ r := base+ r.Signing = SignAssertionOnly++ // Action+ root := decode(t, idp.Respond(t, r))++ // Assert+ require.Nil(t, root.SelectElement("Signature"))+ require.NoError(t, verify(idp, root.SelectElement("Assertion")))+ })++ t.Run("should fail verification when the assertion is altered after signing", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp := New(t)+ r := base+ r.AlterSigned = func(xml string) string { return strings.ReplaceAll(xml, "[email protected]", "[email protected]") }++ // Action+ root := decode(t, idp.Respond(t, r))++ // Assert+ require.Error(t, verify(idp, root.SelectElement("Assertion")))+ })++ t.Run("should fail verification when another IdP signed it", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp, other := New(t), New(t)+ r := base+ r.SignedBy = other++ // Action+ root := decode(t, idp.Respond(t, r))++ // Assert+ require.Error(t, verify(idp, root))+ require.NoError(t, verify(other, root))+ })++ t.Run("should carry no assertion when the status is not success", func(t *testing.T) {+ t.Parallel()++ // Setup+ idp := New(t)+ r := base+ r.Status = StatusResponder++ // Action+ root := decode(t, idp.Respond(t, r))++ // Assert+ require.Nil(t, root.SelectElement("Assertion"))+ })+}++func redirectTo(t *testing.T, entryPoint, request, relayState string) string {+ t.Helper()+ var buf bytes.Buffer+ w, err := flate.NewWriter(&buf, flate.DefaultCompression)+ require.NoError(t, err)+ _, err = w.Write([]byte(request))+ require.NoError(t, err)+ require.NoError(t, w.Close())+ return entryPoint + "?" + url.Values{+ "SAMLRequest": {base64.StdEncoding.EncodeToString(buf.Bytes())},+ "RelayState": {relayState},+ }.Encode()+}++func decode(t *testing.T, form url.Values) *etree.Element {+ t.Helper()+ raw, err := base64.StdEncoding.DecodeString(form.Get("SAMLResponse"))+ require.NoError(t, err)+ doc := etree.NewDocument()+ require.NoError(t, doc.ReadFromBytes(raw))+ return doc.Root()+}++func verify(idp *IdP, el *etree.Element) error {+ cert, err := x509.ParseCertificate(idp.cert)+ if err != nil {+ return err+ }+ _, err = dsig.NewDefaultValidationContext(&dsig.MemoryX509CertificateStore{Roots: []*x509.Certificate{cert}}).Validate(el.Copy())+ return err+}diff --git a/tests/go.mod b/tests/go.modindex ebac1c8741..7be8d88b36 100644--- a/tests/go.mod+++ b/tests/go.mod@@ -3,10 +3,12 @@ module github.com/Infisical/infisical/testsgo 1.27.0require (+ github.com/beevik/etree v1.8.1github.com/google/uuid v1.6.0github.com/moby/moby/api v1.55.0github.com/mocktools/go-smtp-mock/v2 v2.5.4github.com/oapi-codegen/runtime v1.7.0+ github.com/russellhaering/goxmldsig v1.6.1github.com/stretchr/testify v1.11.1github.com/testcontainers/testcontainers-go v0.44.0golang.org/x/crypto v0.54.0@@ -38,6 +40,7 @@ require (github.com/go-ole/go-ole v1.3.0 // indirectgithub.com/go-openapi/jsonpointer v0.23.1 // indirectgithub.com/go-openapi/swag/jsonname v0.26.0 // indirect+ github.com/jonboulle/clockwork v0.5.0 // indirectgithub.com/klauspost/compress v1.18.6 // indirectgithub.com/lufia/plan9stats v0.0.0-20260330125221-c963978e514e // indirectgithub.com/magiconair/properties v1.8.10 // indirectdiff --git a/tests/go.sum b/tests/go.sumindex b7fef67460..ff572edd45 100644--- a/tests/go.sum+++ b/tests/go.sum@@ -11,6 +11,8 @@ github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEAgithub.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk=github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ=github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk=+github.com/beevik/etree v1.8.1 h1:MchsAnqPGCGsfQezhwcouHPlAHlcAOqWpyCVZoyWfjU=+github.com/beevik/etree v1.8.1/go.mod h1:bh4zJxiIr62SOf9pRzN7UUYaEDa9HEKafK25+sLc0Gc=github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w=github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=@@ -90,6 +92,8 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=+github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I=+github.com/jonboulle/clockwork v0.5.0/go.mod h1:3mZlmanh0g2NDKO5TWZVJAfofYk64M7XN3SzBPjZF60=github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE=github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=@@ -160,6 +164,8 @@ github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVtgithub.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=+github.com/russellhaering/goxmldsig v1.6.1 h1:SB7R5ttvrGIDB2juJAK/i7DQ2Ivr7agG+ohfNJjwyYU=+github.com/russellhaering/goxmldsig v1.6.1/go.mod h1:haZkRcLs9W/Xp989fIjP3BrTdbFQveRF0QNZSYoH09w=github.com/santhosh-tekuri/jsonschema/v6 v6.0.3 h1:1EYB5IzjZawrrnELUi78f9fPu57HuXjmddZPjrls/28=github.com/santhosh-tekuri/jsonschema/v6 v6.0.3/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=diff --git a/tests/harness/infisical/client.go b/tests/harness/infisical/client.goindex fd19ed5ffa..91d72e6789 100644--- a/tests/harness/infisical/client.go+++ b/tests/harness/infisical/client.go@@ -20,16 +20,13 @@ const userAgent = "infisical-harness"// is no hand-written HTTP path: a route the generated client cannot reach is a route// missing an operationId, and the fix is upstream in the router rather than an// escape hatch here.-func NewClient(baseURL string, editors ...api.RequestEditorFn) (*api.ClientWithResponses, error) {- opts := []api.ClientOption{+func NewClient(baseURL string, opts ...api.ClientOption) (*api.ClientWithResponses, error) {+ opts = append([]api.ClientOption{api.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {req.Header.Set("User-Agent", userAgent)return nil}),- }- for _, e := range editors {- opts = append(opts, api.WithRequestEditorFn(e))- }+ }, opts...)c, err := api.NewClientWithResponses(baseURL, opts...)if err != nil {@@ -53,19 +50,27 @@ func NewClient(baseURL string, editors ...api.RequestEditorFn) (*api.ClientWithR// share. If it stops being honoured the limits collapse back to per-process, which is// slow and flaky rather than wrong, and the fallback is raising them through the// super-admin API.-func ForwardedFor(ip string) api.RequestEditorFn {- return func(_ context.Context, req *http.Request) error {+func ForwardedFor(ip string) api.ClientOption {+ return api.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {req.Header.Set("X-Forwarded-For", ip)return nil- }+ })}// BearerAuth attaches a token to every request.-func BearerAuth(token string) api.RequestEditorFn {- return func(_ context.Context, req *http.Request) error {+func BearerAuth(token string) api.ClientOption {+ return api.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {req.Header.Set("Authorization", "Bearer "+token)return nil- }+ })+}++// NoRedirects hands back a redirect as the response instead of following it, so the+// caller can read its Location and Set-Cookie.+func NoRedirects() api.ClientOption {+ return api.WithHTTPClient(&http.Client{+ CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse },+ })}// apiError renders a non-2xx response in a form worth reading.diff --git a/tests/harness/infisical/client_test.go b/tests/harness/infisical/client_test.gonew file mode 100644index 0000000000..4bed890359--- /dev/null+++ b/tests/harness/infisical/client_test.go@@ -0,0 +1,58 @@+package infisical_test++import (+ "net/http"+ "net/http/httptest"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/harness/infisical"+ "github.com/stretchr/testify/require"+)++func TestNewClient_Redirects(t *testing.T) {+ t.Parallel()++ server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {+ if r.URL.Path == "/landed" {+ w.WriteHeader(http.StatusOK)+ return+ }+ http.SetCookie(w, &http.Cookie{Name: "jid", Value: "refresh", Path: "/api"})+ http.Redirect(w, r, "/landed", http.StatusFound)+ }))+ t.Cleanup(server.Close)++ t.Run("should follow a redirect when NoRedirects is not passed", func(t *testing.T) {+ t.Parallel()++ // Setup+ client, err := infisical.NewClient(server.URL)+ require.NoError(t, err)++ // Action+ res, err := client.RedirectSamlByOrgSlugWithResponse(t.Context(), "acme", nil)++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusOK, res.StatusCode())+ })++ t.Run("should return the redirect with its location and cookie when NoRedirects is passed", func(t *testing.T) {+ t.Parallel()++ // Setup+ client, err := infisical.NewClient(server.URL, infisical.NoRedirects())+ require.NoError(t, err)++ // Action+ res, err := client.RedirectSamlByOrgSlugWithResponse(t.Context(), "acme", &api.RedirectSamlByOrgSlugParams{})++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusFound, res.StatusCode())+ require.Equal(t, "/landed", res.HTTPResponse.Header.Get("Location"))+ require.Len(t, res.HTTPResponse.Cookies(), 1)+ require.Equal(t, "jid", res.HTTPResponse.Cookies()[0].Name)+ })+}diff --git a/tests/harness/infisical/infisical.go b/tests/harness/infisical/infisical.goindex d27bc89294..444de9b509 100644--- a/tests/harness/infisical/infisical.go+++ b/tests/harness/infisical/infisical.go@@ -169,6 +169,10 @@ func (h *Handle) Image() Image { return h.image }// BaseURL is the API root. Almost always External: the Go test process calls it.func (h *Handle) BaseURL(m infra.Mode) string { return h.Endpoint(m).URL("http") }+// SiteURL is the SITE_URL the server was started with: the SAML audience, and the+// origin of every redirect it builds. Not reachable from the test process.+func (h *Handle) SiteURL() string { return h.BaseURL(infra.Internal) }+// Logs is what a failure dumps. Under a Shared profile one instance serves every// parallel tenant, so a caller filters by org id rather than printing all of it.func (h *Handle) Logs(ctx context.Context) (string, error) { return h.c.Logs(ctx) }diff --git a/tests/harness/tenant.go b/tests/harness/tenant.goindex c67617e00d..fe145cb035 100644--- a/tests/harness/tenant.go+++ b/tests/harness/tenant.go@@ -336,9 +336,20 @@ func (s *Stack) scopeToOrg(t *testing.T, unscoped string, orgID uuid.UUID, ip st// loses the tenant's X-Forwarded-For address, and the calls then draw down whatever// bucket the default source address lands in -- which is shared with every other// test, so the symptom is a 429 somewhere unrelated.-func (t *Tenant) Client(tt *testing.T, token string) *api.ClientWithResponses {+func (t *Tenant) Client(tt *testing.T, token string, opts ...api.ClientOption) *api.ClientWithResponses {tt.Helper()- return t.stack.client(tt, token, t.ip)+ return t.stack.client(tt, token, t.ip, opts...)+}++// Anonymous builds a client with no credentials, on this tenant's rate-limit bucket.+func (t *Tenant) Anonymous(tt *testing.T, opts ...api.ClientOption) *api.ClientWithResponses {+ tt.Helper()+ c, err := infisical.NewClient(t.stack.app.BaseURL(infra.External),+ append([]api.ClientOption{infisical.ForwardedFor(t.ip)}, opts...)...)+ if err != nil {+ tt.Fatalf("harness: %v", err)+ }+ return c}// Module returns a container handle, or fails the test naming the profile to use.@@ -350,10 +361,10 @@ func (t *Tenant) Module(tt *testing.T, key infra.ModuleKey, option string) infra}// client builds an API client carrying a token and a rate-limit bucket.-func (s *Stack) client(t *testing.T, token, ip string) *api.ClientWithResponses {+func (s *Stack) client(t *testing.T, token, ip string, opts ...api.ClientOption) *api.ClientWithResponses {t.Helper()c, err := infisical.NewClient(s.app.BaseURL(infra.External),- infisical.BearerAuth(token), infisical.ForwardedFor(ip))+ append([]api.ClientOption{infisical.BearerAuth(token), infisical.ForwardedFor(ip)}, opts...)...)if err != nil {t.Fatalf("harness: %v", err)}diff --git a/tests/infra/fakenet/admin.go b/tests/infra/fakenet/admin.goindex 5200675565..d600e5b2a6 100644--- a/tests/infra/fakenet/admin.go+++ b/tests/infra/fakenet/admin.go@@ -103,6 +103,21 @@ func (s *Server) Admin(ca *CA) http.Handler {_ = json.NewEncoder(w).Encode(calls)})+ mux.HandleFunc("PUT "+AdminPrefix+"/dns/txt/{name}", func(w http.ResponseWriter, r *http.Request) {+ var values []string+ if err := json.NewDecoder(r.Body).Decode(&values); err != nil {+ http.Error(w, err.Error(), http.StatusBadRequest)+ return+ }+ s.txt.set(r.PathValue("name"), values)+ w.WriteHeader(http.StatusNoContent)+ })++ mux.HandleFunc("DELETE "+AdminPrefix+"/dns/txt/{name}", func(w http.ResponseWriter, r *http.Request) {+ s.txt.remove(r.PathValue("name"))+ w.WriteHeader(http.StatusNoContent)+ })+mux.HandleFunc("DELETE "+AdminPrefix+"/scopes/{host}/{key}", func(w http.ResponseWriter, r *http.Request) {s.mu.Lock()delete(s.scopes, scopeID{r.PathValue("host"), r.PathValue("key")})diff --git a/tests/infra/fakenet/client.go b/tests/infra/fakenet/client.goindex 030c4dc4a5..f42e10a328 100644--- a/tests/infra/fakenet/client.go+++ b/tests/infra/fakenet/client.go@@ -169,3 +169,35 @@ func (s *Scope[S]) do(method, suffix string, in, out any) error {}return nil}++// SetTXT publishes TXT records for a name until the test ends.+func SetTXT(tt *testing.T, adminURL, name string, values ...string) {+ tt.Helper()+ recordURL := strings.TrimSuffix(adminURL, "/") + AdminPrefix + "/dns/txt/" + url.PathEscape(name)+ raw, err := json.Marshal(values)+ if err != nil {+ tt.Fatalf("fakenet: encoding TXT for %s: %v", name, err)+ }+ if err := adminDo(http.MethodPut, recordURL, raw); err != nil {+ tt.Fatalf("fakenet: setting TXT for %s: %v", name, err)+ }+ tt.Cleanup(func() { _ = adminDo(http.MethodDelete, recordURL, nil) })+}++func adminDo(method, target string, body []byte) error {+ req, err := http.NewRequest(method, target, bytes.NewReader(body))+ if err != nil {+ return err+ }+ req.Header.Set("Content-Type", "application/json")+ res, err := (&http.Client{Timeout: 10 * time.Second}).Do(req)+ if err != nil {+ return err+ }+ defer func() { _ = res.Body.Close() }()+ if res.StatusCode >= 300 {+ raw, _ := io.ReadAll(res.Body)+ return fmt.Errorf("%s %s returned %d: %s", method, target, res.StatusCode, strings.TrimSpace(string(raw)))+ }+ return nil+}diff --git a/tests/infra/fakenet/dns.go b/tests/infra/fakenet/dns.goindex da8e9be6df..f299a5bf14 100644--- a/tests/infra/fakenet/dns.go+++ b/tests/infra/fakenet/dns.go@@ -4,9 +4,46 @@ import ("encoding/binary""fmt""net"+ "strings"+ "sync")-// ServeDNS answers every A query with selfIP. It only returns on a listen failure.+const (+ typeA = 1+ typeTXT = 16+)++// txtRecords is what fakenet answers for TXT queries. Products that prove domain+// ownership look one up, so a test publishes the record here first.+type txtRecords struct {+ mu sync.Mutex+ byName map[string][]string+}++func newTXTRecords() *txtRecords { return &txtRecords{byName: map[string][]string{}} }++func (r *txtRecords) set(name string, values []string) {+ r.mu.Lock()+ defer r.mu.Unlock()+ r.byName[canonicalName(name)] = values+}++func (r *txtRecords) remove(name string) {+ r.mu.Lock()+ defer r.mu.Unlock()+ delete(r.byName, canonicalName(name))+}++func (r *txtRecords) lookup(name string) []string {+ r.mu.Lock()+ defer r.mu.Unlock()+ return r.byName[canonicalName(name)]+}++func canonicalName(name string) string { return strings.ToLower(strings.TrimSuffix(name, ".")) }++// ServeDNS answers every A query with selfIP, and TXT queries from the records a test+// published. It only returns on a listen failure.//// This is what makes the suite hermetic, and it is not optional. Measured: with plain// Docker network aliases and no DNS of our own, a hostname nobody faked resolves@@ -16,7 +53,7 @@ import (//// Docker's embedded resolver still answers container names first and only forwards// what it cannot, so postgres and redis keep resolving normally.-func ServeDNS(addr, selfIP string) error {+func (s *Server) ServeDNS(addr, selfIP string) error {ip := net.ParseIP(selfIP).To4()if ip == nil {return fmt.Errorf("fakenet: %q is not an IPv4 address", selfIP)@@ -33,7 +70,7 @@ func ServeDNS(addr, selfIP string) error {if rErr != nil || n < 12 {continue}- resp, ok := answer(buf[:n], ip)+ resp, ok := answer(buf[:n], ip, s.txt)if !ok {continue}@@ -41,16 +78,18 @@ func ServeDNS(addr, selfIP string) error {}}-// answer builds a reply by echoing the header and question and appending one A-// record. Hand-rolled because the alternative is a dependency for about forty lines+// answer builds a reply by echoing the header and question and appending the+// records. Hand-rolled because the alternative is a dependency for a few dozen lines// of well-specified byte layout.-func answer(q []byte, ip net.IP) ([]byte, bool) {+func answer(q []byte, ip net.IP, txt *txtRecords) ([]byte, bool) {+ var labels []stringoff := 12for off < len(q) && q[off] != 0 {l := int(q[off])if l >= 0xC0 || off+1+l > len(q) {return nil, false // a pointer in a question is malformed}+ labels = append(labels, string(q[off+1:off+1+l]))off += 1 + l}off++ // the terminating zero label@@ -65,14 +104,44 @@ func answer(q []byte, ip net.IP) ([]byte, bool) {resp[2] = 0x81 // QR=1, plus the RD bit the client setresp[3] = 0x80 // RA=1binary.BigEndian.PutUint16(resp[6:8], 0)+ binary.BigEndian.PutUint16(resp[8:10], 0)+ binary.BigEndian.PutUint16(resp[10:12], 0)- // Anything other than A gets NOERROR with no answers rather than silence, so a- // client asking AAAA first falls straight through to A instead of waiting out a+ // Anything without a record gets NOERROR with no answers rather than silence, so+ // a client asking AAAA first falls straight through to A instead of waiting out a// resolver timeout.- if qtype == 1 {+ switch qtype {+ case typeA:binary.BigEndian.PutUint16(resp[6:8], 1)- resp = append(resp, 0xC0, 0x0C, 0, 1, 0, 1, 0, 0, 0, 60, 0, 4)+ resp = append(resp, 0xC0, 0x0C, 0, typeA, 0, 1, 0, 0, 0, 60, 0, 4)resp = append(resp, ip...)+ case typeTXT:+ values := txt.lookup(strings.Join(labels, "."))+ binary.BigEndian.PutUint16(resp[6:8], uint16(len(values)))+ for _, v := range values {+ resp = appendTXT(resp, v)+ }}return resp, true}++// appendTXT adds one TXT record whose RDATA is the value split into character+// strings, which are capped at 255 bytes each.+func appendTXT(resp []byte, value string) []byte {+ var rdata []byte+ for rest := value; ; {+ chunk := rest+ if len(chunk) > 255 {+ chunk = chunk[:255]+ }+ rdata = append(rdata, byte(len(chunk)))+ rdata = append(rdata, chunk...)+ rest = rest[len(chunk):]+ if rest == "" {+ break+ }+ }+ resp = append(resp, 0xC0, 0x0C, 0, typeTXT, 0, 1, 0, 0, 0, 0)+ resp = binary.BigEndian.AppendUint16(resp, uint16(len(rdata)))+ return append(resp, rdata...)+}diff --git a/tests/infra/fakenet/dns_test.go b/tests/infra/fakenet/dns_test.gonew file mode 100644index 0000000000..0b5eb05991--- /dev/null+++ b/tests/infra/fakenet/dns_test.go@@ -0,0 +1,84 @@+package fakenet++import (+ "context"+ "net"+ "strings"+ "testing"++ "github.com/stretchr/testify/require"+)++func TestDNS_Answers(t *testing.T) {+ t.Parallel()++ selfIP := net.ParseIP("10.201.0.53").To4()+ txt := newTXTRecords()+ resolver := localResolver(t, selfIP, txt)+ long := strings.Repeat("v", 300)++ t.Run("should answer TXT with the published values when a record is set", func(t *testing.T) {+ t.Parallel()++ // Setup+ txt.set("_infisical-verification.acme.test", []string{"infisical-domain-verification=abc", long})++ // Action+ values, err := resolver.LookupTXT(t.Context(), "_INFISICAL-verification.acme.test.")++ // Assert+ require.NoError(t, err)+ require.Equal(t, []string{"infisical-domain-verification=abc", long}, values)+ })++ t.Run("should answer TXT with no records when nothing was published", func(t *testing.T) {+ t.Parallel()++ // Action+ values, err := resolver.LookupTXT(t.Context(), "unpublished.acme.test")++ // Assert+ require.Error(t, err)+ require.Empty(t, values)+ })++ t.Run("should answer A with fakenet's address when any name is asked", func(t *testing.T) {+ t.Parallel()++ // Action+ addrs, err := resolver.LookupIP(t.Context(), "ip4", "api.github.com")++ // Assert+ require.NoError(t, err)+ require.Len(t, addrs, 1)+ require.True(t, addrs[0].Equal(selfIP))+ })+}++func localResolver(t *testing.T, selfIP net.IP, txt *txtRecords) *net.Resolver {+ t.Helper()+ pc, err := net.ListenPacket("udp", "127.0.0.1:0")+ require.NoError(t, err)+ t.Cleanup(func() { _ = pc.Close() })++ go func() {+ buf := make([]byte, 512)+ for {+ n, from, rErr := pc.ReadFrom(buf)+ if rErr != nil {+ return+ }+ if resp, ok := answer(buf[:n], selfIP, txt); ok {+ _, _ = pc.WriteTo(resp, from)+ }+ }+ }()++ return &net.Resolver{+ PreferGo: true,+ Dial: func(ctx context.Context, _, _ string) (net.Conn, error) {+ var d net.Dialer+ return d.DialContext(ctx, "udp", pc.LocalAddr().String())+ },+ }+}diff --git a/tests/infra/fakenet/fakenet.go b/tests/infra/fakenet/fakenet.goindex 1a0e1dff08..1c55e55d00 100644--- a/tests/infra/fakenet/fakenet.go+++ b/tests/infra/fakenet/fakenet.go@@ -88,6 +88,7 @@ type Server struct {denied []Deniedevents *eventLog+ txt *txtRecords}// Denied is one outbound call that reached no fake.@@ -99,7 +100,7 @@ type Denied struct {}func New(services ...Service) *Server {- s := &Server{services: map[string]Service{}, scopes: map[scopeID]*scope{}, events: newEventLog()}+ s := &Server{services: map[string]Service{}, scopes: map[scopeID]*scope{}, events: newEventLog(), txt: newTXTRecords()}for _, svc := range services {s.services[svc.Host()] = svc}diff --git a/tests/suites/sso/saml/assertion_test.go b/tests/suites/sso/saml/assertion_test.gonew file mode 100644index 0000000000..e885a2c1c2--- /dev/null+++ b/tests/suites/sso/saml/assertion_test.go@@ -0,0 +1,154 @@+package saml_test++import (+ "net/http"+ "strings"+ "testing"+ "time"++ "github.com/Infisical/infisical/tests/fakes/samlidp"+ "github.com/Infisical/infisical/tests/harness"+ "github.com/Infisical/infisical/tests/internal/id"+ "github.com/google/uuid"+ "github.com/stretchr/testify/require"+)++func TestSAMLAssertion_Rejected(t *testing.T) {+ t.Parallel()++ cases := []struct {+ name string+ corrupt func(t *testing.T, s *sso, r *samlidp.Response)+ reason string+ }{+ {+ name: "should reject the response when it is signed by a key other than the configured cert",+ corrupt: func(t *testing.T, _ *sso, r *samlidp.Response) { r.SignedBy = samlidp.New(t) },+ reason: "Invalid document signature",+ },+ {+ name: "should reject the response when the assertion is altered after signing",+ corrupt: func(_ *testing.T, s *sso, r *samlidp.Response) {+ original := r.Email+ r.AlterSigned = func(xml string) string {+ return strings.ReplaceAll(xml, original, s.tn.Email("admin"))+ }+ },+ reason: "Invalid document signature",+ },+ {+ name: "should reject the response when the audience is not this server",+ corrupt: func(_ *testing.T, _ *sso, r *samlidp.Response) { r.Audience = "https://other-app.test" },+ reason: "audience mismatch",+ },+ {+ name: "should reject the response when the assertion has expired",+ corrupt: func(_ *testing.T, _ *sso, r *samlidp.Response) {+ r.NotBefore = time.Now().Add(-20 * time.Minute)+ r.NotOnOrAfter = time.Now().Add(-10 * time.Minute)+ },+ reason: "expired",+ },+ {+ name: "should reject the response when the assertion is not yet valid",+ corrupt: func(_ *testing.T, _ *sso, r *samlidp.Response) { r.NotBefore = time.Now().Add(10 * time.Minute) },+ reason: "not yet valid",+ },+ {+ name: "should reject the response when the IdP reports a failed status",+ corrupt: func(_ *testing.T, _ *sso, r *samlidp.Response) { r.Status = samlidp.StatusResponder },+ reason: "Responder error",+ },+ {+ name: "should reject the response when email or first name is missing",+ corrupt: func(_ *testing.T, _ *sso, r *samlidp.Response) {+ r.NameID = r.Email+ r.Email = ""+ },+ reason: "Missing email or first name",+ },+ }++ for _, c := range cases {+ t.Run(c.name, func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()+ r := alice+ c.corrupt(t, s, &r)++ // Action+ res := s.spLogin(t, r)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Saml authentication failed.")+ require.Contains(t, string(res.Body), c.reason)+ require.Nil(t, refreshCookie(res))+ require.Nil(t, membershipOf(t, s.tn, alice.Email))+ })+ }++ t.Run("should reject the response when the config id does not exist", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()+ alice.Audience = s.siteURL+ form := s.idp.Respond(t, alice)++ // Action+ res := s.acs(t, uuid.New(), form)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Saml authentication failed. Failed to find SSO data")+ require.Nil(t, refreshCookie(res))+ require.Nil(t, membershipOf(t, s.tn, alice.Email))+ })+}++func TestSAMLAssertion_EmailDomain(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("should reject login when the email domain is not verified by the org", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ stranger := s.person()+ stranger.Email = "user@unverified-" + id.Short() + ".test"++ // Action+ res := s.spLogin(t, stranger)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "not a part of the accepted domains")+ require.Nil(t, membershipOf(t, s.tn, stranger.Email))+ })++ t.Run("should reject login when the email domain is verified by another org", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ theirs := h.NewTenant(t)+ verifiedDomain(t, theirs)+ victim := s.person()+ victim.Email = theirs.Email("victim-" + id.Short())++ // Action+ res := s.spLogin(t, victim)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "not a part of the accepted domains")+ require.Nil(t, membershipOf(t, s.tn, victim.Email))+ require.Nil(t, membershipOf(t, theirs, victim.Email))+ })+}diff --git a/tests/suites/sso/saml/config_test.go b/tests/suites/sso/saml/config_test.gonew file mode 100644index 0000000000..a4f73c5426--- /dev/null+++ b/tests/suites/sso/saml/config_test.go@@ -0,0 +1,218 @@+package saml_test++import (+ "net/http"+ "strings"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/fakes/license"+ "github.com/Infisical/infisical/tests/fakes/samlidp"+ "github.com/Infisical/infisical/tests/harness"+ "github.com/Infisical/infisical/tests/internal/apierr"+ "github.com/Infisical/infisical/tests/internal/spec"+ "github.com/stretchr/testify/require"+)++func TestSAMLConfig_Create(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("should store the IdP settings when an admin creates a config", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t)+ body := configBody(tn, samlidp.New(t), okta)++ // Action+ res, err := tn.Admin.API.CreateSamlConfigWithResponse(t.Context(), body)++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ require.NotContains(t, string(res.Body), "BEGIN CERTIFICATE")+ stored := readConfig(t, tn, tn.Admin)+ require.Equal(t, body.EntryPoint, stored.EntryPoint)+ require.Equal(t, body.Issuer, stored.Issuer)+ require.Equal(t, strings.TrimSpace(body.Cert), stored.Cert)+ require.True(t, stored.IsActive)+ })++ t.Run("should reject creation when the plan lacks SAML SSO", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t, harness.WithPlan(license.Enterprise().Without(license.SAMLSSO)))++ // Action+ res, err := tn.Admin.API.CreateSamlConfigWithResponse(t.Context(), configBody(tn, samlidp.New(t), okta))++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "due to plan restriction")+ requireNoConfig(t, tn)+ })++ t.Run("should reject creation when the actor is a member without SSO permission", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t)+ member := tn.NewUser(t)++ // Action+ res, err := member.API.CreateSamlConfigWithResponse(t.Context(), configBody(tn, samlidp.New(t), okta))++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusForbidden, res.StatusCode())+ requireNoConfig(t, tn)+ })++ t.Run("should reject creation when the admin belongs to another organization", func(t *testing.T) {+ t.Parallel()++ // Setup+ mine, theirs := h.NewTenant(t), h.NewTenant(t)++ // Action+ res, err := theirs.Admin.API.CreateSamlConfigWithResponse(t.Context(), configBody(mine, samlidp.New(t), okta))++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusForbidden, res.StatusCode())+ requireNoConfig(t, mine)+ })++ t.Run("should reject group sync when the provider is not Google", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t)+ body := configBody(tn, samlidp.New(t), okta)+ body.EnableGroupSync = new(true)++ // Action+ res, err := tn.Admin.API.CreateSamlConfigWithResponse(t.Context(), body)++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Group sync is not supported for this SAML provider.")+ requireNoConfig(t, tn)+ })+}++func TestSAMLConfig_Read(t *testing.T) {+ t.Parallel()+ h := harness.From(t)++ t.Run("should return not found when the organization has no config", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t)++ // Action+ res, err := tn.Admin.API.GetSamlConfigWithResponse(t.Context(), &api.GetSamlConfigParams{OrganizationId: tn.OrgID.String()})++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusNotFound, res.StatusCode())+ require.Contains(t, string(res.Body), "SAML configuration for organization with ID '"+tn.OrgID.String()+"' not found")+ })++ t.Run("should return the config when a machine identity has SSO read", func(t *testing.T) {+ t.Parallel()++ // Setup+ tn := h.NewTenant(t)+ body := configBody(tn, samlidp.New(t), okta)+ createConfig(t, tn, body)+ identity := tn.NewMachineIdentity(t, harness.OrgRole("admin"))++ // Action+ stored := readConfig(t, tn, identity)++ // Assert+ require.Equal(t, body.EntryPoint, stored.EntryPoint)+ })+}++func TestSAMLConfig_Update(t *testing.T) {+ t.Parallel()++ t.Run("should apply new IdP settings when an admin updates the config", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ replacement := samlidp.New(t)++ // Action+ res, err := s.tn.Admin.API.UpdateSamlConfigWithResponse(t.Context(), api.UpdateSamlConfigJSONRequestBody{+ OrganizationId: s.tn.OrgID.String(),+ EntryPoint: new(replacement.EntryPoint),+ Cert: new(replacement.CertPEM()),+ })++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ stored := readConfig(t, s.tn, s.tn.Admin)+ require.Equal(t, replacement.EntryPoint, stored.EntryPoint)+ require.Equal(t, strings.TrimSpace(replacement.CertPEM()), stored.Cert)+ require.Equal(t, s.issuer, stored.Issuer)+ })++ t.Run("should turn off SSO enforcement when the config is updated", func(t *testing.T) {+ t.Parallel()+ spec.Why(t, "Pins current behaviour: every config update clears authEnforced and lastUsed, "++ "so an admin who rotates a certificate silently drops SSO enforcement.")++ // Setup+ s := setup(t, okta)+ s.enforce(t)++ // Action+ res, err := s.tn.Admin.API.UpdateSamlConfigWithResponse(t.Context(), api.UpdateSamlConfigJSONRequestBody{+ OrganizationId: s.tn.OrgID.String(),+ Cert: new(s.idp.CertPEM()),+ })++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ org, err := s.tn.Admin.API.GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, org.StatusCode(), "%s", apierr.Body(org.Body))+ require.False(t, *org.JSON200.Organization.AuthEnforced)+ })+}++type storedConfig struct {+ EntryPoint, Issuer, Cert string+ IsActive bool+}++func readConfig(t *testing.T, tn *harness.Tenant, actor *harness.Principal) storedConfig {+ t.Helper()+ res, err := actor.API.GetSamlConfigWithResponse(t.Context(), &api.GetSamlConfigParams{OrganizationId: tn.OrgID.String()})+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "reading SAML config: %s", apierr.Body(res.Body))+ return storedConfig{+ EntryPoint: res.JSON200.EntryPoint,+ Issuer: res.JSON200.Issuer,+ Cert: res.JSON200.Cert,+ IsActive: res.JSON200.IsActive,+ }+}++func requireNoConfig(t *testing.T, tn *harness.Tenant) {+ t.Helper()+ res, err := tn.Admin.API.GetSamlConfigWithResponse(t.Context(), &api.GetSamlConfigParams{OrganizationId: tn.OrgID.String()})+ require.NoError(t, err)+ require.Equalf(t, http.StatusNotFound, res.StatusCode(), "a SAML config exists: %s", apierr.Body(res.Body))+}diff --git a/tests/suites/sso/saml/enforcement_test.go b/tests/suites/sso/saml/enforcement_test.gonew file mode 100644index 0000000000..7e637473cf--- /dev/null+++ b/tests/suites/sso/saml/enforcement_test.go@@ -0,0 +1,135 @@+package saml_test++import (+ "net/http"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/fakes/smtp"+ "github.com/Infisical/infisical/tests/harness"+ "github.com/Infisical/infisical/tests/internal/apierr"+ "github.com/stretchr/testify/require"+)++func TestSAMLEnforcement(t *testing.T) {+ t.Parallel()++ t.Run("should refuse enforcement when nobody has logged in with SAML yet", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)++ // Action+ res, err := s.tn.Admin.API.UpdateOrganizationWithResponse(t.Context(), s.tn.OrgID.String(),+ api.UpdateOrganizationJSONRequestBody{AuthEnforced: new(true)})++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "please log in via SAML at least once")+ require.False(t, authEnforced(t, s.tn))+ })++ t.Run("should enable enforcement when a SAML login has succeeded", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ s.signedUp(t)++ // Action+ res, err := s.tn.Admin.API.UpdateOrganizationWithResponse(t.Context(), s.tn.OrgID.String(),+ api.UpdateOrganizationJSONRequestBody{AuthEnforced: new(true), BypassOrgAuthEnabled: new(true)})++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ require.True(t, authEnforced(t, s.tn))+ })++ t.Run("should block org resources when a password session is used under enforcement", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ member := s.tn.NewUser(t)+ s.enforce(t)++ // Action+ res, err := member.API.GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusForbidden, res.StatusCode())+ require.Contains(t, string(res.Body), "Organization authentication is enforced")+ })++ t.Run("should refuse org selection when a password user logs in under enforcement", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ member := s.tn.NewUser(t)+ s.enforce(t)+ login, err := s.tn.Anonymous(t).LoginV3WithResponse(t.Context(), api.LoginV3JSONRequestBody{+ Email: member.Email,+ Password: harness.UserPassword,+ })+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, login.StatusCode(), "password login: %s", apierr.Body(login.Body))++ // Action+ res, err := s.tn.Client(t, login.JSON200.AccessToken).SelectOrganizationV3WithResponse(t.Context(),+ api.SelectOrganizationV3JSONRequestBody{OrganizationId: s.tn.OrgID.String()})++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusForbidden, res.StatusCode(), "%s", apierr.Body(res.Body))+ require.Contains(t, string(res.Body), "Organization authentication is enforced")+ })++ t.Run("should let an admin through and notify admins when bypass is enabled", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ otherAdmin := s.tn.NewUser(t, harness.OrgRole("admin"))+ s.enforce(t)++ // Action+ res, err := s.tn.Admin.API.SelectOrganizationV3WithResponse(t.Context(),+ api.SelectOrganizationV3JSONRequestBody{OrganizationId: s.tn.OrgID.String()})++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ alert := s.tn.Mail(t).Expect(t, otherAdmin.Email, smtp.Subject("SSO Bypass"))+ require.Contains(t, alert.Body, s.tn.Admin.Email)+ })++ t.Run("should allow org resources when the session came from SAML", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.signedUp(t)+ s.enforce(t)+ session := s.session(t, s.spLogin(t, alice))++ // Action+ res, err := session.GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "%s", apierr.Body(res.Body))+ })+}++func authEnforced(t *testing.T, tn *harness.Tenant) bool {+ t.Helper()+ res, err := tn.Admin.API.GetOrganizationByIdWithResponse(t.Context(), tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "reading the org: %s", apierr.Body(res.Body))+ return res.JSON200.Organization.AuthEnforced != nil && *res.JSON200.Organization.AuthEnforced+}diff --git a/tests/suites/sso/saml/helpers_test.go b/tests/suites/sso/saml/helpers_test.gonew file mode 100644index 0000000000..298ff55c28--- /dev/null+++ b/tests/suites/sso/saml/helpers_test.go@@ -0,0 +1,295 @@+package saml_test++import (+ "bytes"+ "context"+ "encoding/base64"+ "encoding/json"+ "net/http"+ "net/url"+ "strings"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/fakes/samlidp"+ "github.com/Infisical/infisical/tests/fakes/smtp"+ "github.com/Infisical/infisical/tests/fixture"+ "github.com/Infisical/infisical/tests/harness"+ "github.com/Infisical/infisical/tests/harness/infisical"+ "github.com/Infisical/infisical/tests/infra/fakenet"+ "github.com/Infisical/infisical/tests/internal/apierr"+ "github.com/Infisical/infisical/tests/internal/id"+ "github.com/Infisical/infisical/tests/internal/mail"+ "github.com/google/uuid"+ "github.com/stretchr/testify/require"+)++const (+ okta = api.CreateSamlConfigJSONBodyAuthProviderOktaSaml+ azure = api.CreateSamlConfigJSONBodyAuthProviderAzureSaml+ google = api.CreateSamlConfigJSONBodyAuthProviderGoogleSaml+)++// sso is a tenant with SAML configured against its own IdP, and a browser to log in+// through it. The browser stops at redirects, because the redirect is the outcome.+type sso struct {+ tn *harness.Tenant+ idp *samlidp.IdP+ configID uuid.UUID+ issuer string+ siteURL string+ browser *api.ClientWithResponses+}++func setup(t *testing.T, provider api.CreateSamlConfigJSONBodyAuthProvider) *sso {+ t.Helper()+ h := harness.From(t)+ tn := h.NewTenant(t)+ verifiedDomain(t, tn)+ idp := samlidp.New(t)+ body := configBody(tn, idp, provider)+ return &sso{+ tn: tn,+ idp: idp,+ configID: createConfig(t, tn, body),+ issuer: body.Issuer,+ siteURL: h.App().SiteURL(),+ browser: tn.Anonymous(t, infisical.NoRedirects()),+ }+}++// verifiedDomain proves the tenant owns its mail domain, which every SAML login+// requires: the asserted email must sit on a domain the org has verified.+func verifiedDomain(t *testing.T, tn *harness.Tenant) {+ t.Helper()+ ctx := t.Context()+ domain := strings.SplitN(tn.Email("x"), "@", 2)[1]++ created, err := tn.Admin.API.CreateEmailDomainWithResponse(ctx, api.CreateEmailDomainJSONRequestBody{Domain: domain})+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, created.StatusCode(), "creating email domain: %s", apierr.Body(created.Body))+ record := created.JSON200.EmailDomain++ fakenet.SetTXT(t, fixture.FakenetAdmin(t, tn), record.VerificationRecordName,+ "infisical-domain-verification="+record.VerificationCode)++ verified, err := tn.Admin.API.VerifyEmailDomainWithResponse(ctx, record.Id)+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, verified.StatusCode(), "verifying email domain: %s", apierr.Body(verified.Body))+}++func createConfig(t *testing.T, tn *harness.Tenant, body api.CreateSamlConfigJSONRequestBody) uuid.UUID {+ t.Helper()+ res, err := tn.Admin.API.CreateSamlConfigWithResponse(t.Context(), body)+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "creating SAML config: %s", apierr.Body(res.Body))+ return res.JSON200.Id+}++func configBody(tn *harness.Tenant, idp *samlidp.IdP, provider api.CreateSamlConfigJSONBodyAuthProvider) api.CreateSamlConfigJSONRequestBody {+ return api.CreateSamlConfigJSONRequestBody{+ OrganizationId: tn.OrgID.String(),+ AuthProvider: provider,+ IsActive: true,+ EntryPoint: idp.EntryPoint,+ Issuer: "infisical-" + id.Short(),+ Cert: idp.CertPEM(),+ }+}++// person is a user the IdP asserts, on the tenant's verified domain.+func (s *sso) person() samlidp.Response {+ return samlidp.Response{+ Email: s.tn.Email("user-" + id.Short()),+ FirstName: "Ada",+ LastName: "Lovelace",+ }+}++// startLogin begins an SP-initiated login the way the login page does.+func (s *sso) startLogin(t *testing.T, params *api.RedirectSamlByOrgSlugParams) samlidp.Request {+ t.Helper()+ res, err := s.browser.RedirectSamlByOrgSlugWithResponse(t.Context(), s.tn.OrgSlug, params)+ require.NoError(t, err)+ require.Equalf(t, http.StatusFound, res.StatusCode(), "starting SAML login: %s", apierr.Body(res.Body))+ return s.idp.ParseRedirect(t, res.HTTPResponse.Header.Get("Location"))+}++// spLogin runs an SP-initiated login end to end and returns the ACS answer. The+// response answers the request Infisical made unless r says otherwise.+func (s *sso) spLogin(t *testing.T, r samlidp.Response) *api.SamlAcsResponse {+ t.Helper()+ return s.answer(t, s.startLogin(t, nil), r)+}++// answer posts the IdP's response to a request Infisical made.+func (s *sso) answer(t *testing.T, req samlidp.Request, r samlidp.Response) *api.SamlAcsResponse {+ t.Helper()+ r.Destination = req.ACSURL+ r.InResponseTo = req.ID+ r.RelayState = req.RelayState+ return s.post(t, r)+}++// idpLogin posts an unsolicited response, as an IdP tile in the user's dashboard does.+func (s *sso) idpLogin(t *testing.T, r samlidp.Response) *api.SamlAcsResponse {+ t.Helper()+ r.Destination = s.siteURL + "/api/v1/sso/saml2/" + s.configID.String()+ return s.post(t, r)+}++func (s *sso) post(t *testing.T, r samlidp.Response) *api.SamlAcsResponse {+ t.Helper()+ if r.Audience == "" {+ r.Audience = s.siteURL+ }+ return s.acs(t, s.configID, s.idp.Respond(t, r))+}++func (s *sso) acs(t *testing.T, configID uuid.UUID, form url.Values) *api.SamlAcsResponse {+ t.Helper()+ body := api.SamlAcsFormdataRequestBody{SAMLResponse: new(form.Get("SAMLResponse"))}+ if relay := form.Get("RelayState"); relay != "" {+ body.RelayState = new(relay)+ }+ res, err := s.browser.SamlAcsWithFormdataBodyWithResponse(t.Context(), configID.String(), body)+ require.NoError(t, err)+ return res+}++// redirect is where the ACS sent the browser, relative to SITE_URL.+func (s *sso) redirect(t *testing.T, res *api.SamlAcsResponse) *url.URL {+ t.Helper()+ require.Equalf(t, http.StatusFound, res.StatusCode(), "ACS did not redirect: %s", apierr.Body(res.Body))+ loc, err := url.Parse(res.HTTPResponse.Header.Get("Location"))+ require.NoError(t, err)+ require.Equal(t, s.siteURL, loc.Scheme+"://"+loc.Host)+ return loc+}++// signupClaims decodes the signup token the ACS handed the SSO signup page.+func (s *sso) signupClaims(t *testing.T, res *api.SamlAcsResponse) map[string]any {+ t.Helper()+ loc := s.redirect(t, res)+ require.Equal(t, "/signup/sso", loc.Path)+ parts := strings.Split(loc.Query().Get("token"), ".")+ require.Len(t, parts, 3, "signup token is not a JWT")+ raw, err := base64.RawURLEncoding.DecodeString(parts[1])+ require.NoError(t, err)+ var claims map[string]any+ require.NoError(t, json.Unmarshal(raw, &claims))+ return claims+}++func refreshCookie(res *api.SamlAcsResponse) *http.Cookie {+ for _, c := range res.HTTPResponse.Cookies() {+ if c.Name == "jid" {+ return c+ }+ }+ return nil+}++// session turns the refresh cookie from a SAML login into an org-scoped client, the+// way the select-organization page does.+func (s *sso) session(t *testing.T, res *api.SamlAcsResponse) *api.ClientWithResponses {+ t.Helper()+ ctx := t.Context()+ jid := refreshCookie(res)+ require.NotNil(t, jid, "the ACS set no refresh cookie")++ refreshed, err := s.tn.Anonymous(t).RefreshAuthTokenWithResponse(ctx, func(_ context.Context, req *http.Request) error {+ req.AddCookie(jid)+ return nil+ })+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, refreshed.StatusCode(), "refreshing the SAML session: %s", apierr.Body(refreshed.Body))++ selected, err := s.tn.Client(t, refreshed.JSON200.Token).SelectOrganizationV3WithResponse(ctx,+ api.SelectOrganizationV3JSONRequestBody{OrganizationId: s.tn.OrgID.String()})+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, selected.StatusCode(), "selecting the organization: %s", apierr.Body(selected.Body))+ return s.tn.Client(t, selected.JSON200.Token)+}++// verificationCode is the code Infisical mails a user whose SAML account it has not+// verified yet.+func (s *sso) verificationCode(t *testing.T, email string) string {+ t.Helper()+ msg := s.tn.Mail(t).Expect(t, email, smtp.Subject("confirmation code"))+ code, err := mail.Code(msg, 6)+ require.NoError(t, err)+ return code+}++// completeSignup finishes SSO signup with the mailed code, as the SSO signup page+// does, and returns the response.+func (s *sso) completeSignup(t *testing.T, acs *api.SamlAcsResponse, code string) *api.CompleteAccountSignupV3Response {+ t.Helper()+ token := s.redirect(t, acs).Query().Get("token")++ var union api.CompleteAccountSignupV3JSONBody+ require.NoError(t, union.FromCompleteAccountSignupV3JSONBody1(api.CompleteAccountSignupV3JSONBody1{+ Type: api.CompleteAccountSignupV3JSONBody1Type("alias"),+ Code: code,+ }))+ raw, err := json.Marshal(union)+ require.NoError(t, err)++ res, err := s.tn.Client(t, token).CompleteAccountSignupV3WithBodyWithResponse(t.Context(), "application/json", bytes.NewReader(raw))+ require.NoError(t, err)+ return res+}++// signedUp logs a new person in through SAML and completes their signup, leaving an+// accepted member with a verified SAML account.+func (s *sso) signedUp(t *testing.T) samlidp.Response {+ t.Helper()+ person := s.person()+ acs := s.spLogin(t, person)+ res := s.completeSignup(t, acs, s.verificationCode(t, person.Email))+ require.Equalf(t, http.StatusOK, res.StatusCode(), "completing SSO signup: %s", apierr.Body(res.Body))+ return person+}++type membership struct {+ id uuid.UUID+ userID uuid.UUID+ status string+ isActive bool+}++// membershipOf is the org membership for an email, as the admin sees it, or nil when+// there is none.+func membershipOf(t *testing.T, tn *harness.Tenant, email string) *membership {+ t.Helper()+ res, err := tn.Admin.API.ListOrgMembershipsWithResponse(t.Context(), tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "listing memberships: %s", apierr.Body(res.Body))+ for _, m := range res.JSON200.Users {+ if m.User.Email != nil && strings.EqualFold(*m.User.Email, email) {+ out := &membership{id: m.Id, userID: m.User.Id}+ if m.Status != nil {+ out.status = *m.Status+ }+ if m.IsActive != nil {+ out.isActive = *m.IsActive+ }+ return out+ }+ }+ return nil+}++// enforce makes SAML the org's required login, which needs one SAML login first.+// Admin bypass stays on so the tenant's password-based admin can keep managing it.+func (s *sso) enforce(t *testing.T) {+ t.Helper()+ s.signedUp(t)+ res, err := s.tn.Admin.API.UpdateOrganizationWithResponse(t.Context(), s.tn.OrgID.String(), api.UpdateOrganizationJSONRequestBody{+ AuthEnforced: new(true),+ BypassOrgAuthEnabled: new(true),+ })+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, res.StatusCode(), "enforcing SAML: %s", apierr.Body(res.Body))+}diff --git a/tests/suites/sso/saml/login_test.go b/tests/suites/sso/saml/login_test.gonew file mode 100644index 0000000000..2fb95b938d--- /dev/null+++ b/tests/suites/sso/saml/login_test.go@@ -0,0 +1,250 @@+package saml_test++import (+ "net/http"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/fakes/samlidp"+ "github.com/Infisical/infisical/tests/internal/apierr"+ "github.com/stretchr/testify/require"+)++func TestSAMLLogin_NewUser(t *testing.T) {+ t.Parallel()++ t.Run("should send the user to SSO signup when they log in for the first time", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()++ // Action+ res := s.spLogin(t, alice)++ // Assert+ claims := s.signupClaims(t, res)+ require.Equal(t, "signupToken", claims["authTokenType"])+ require.Equal(t, string(okta), claims["authMethod"])+ require.Equal(t, alice.Email, claims["email"])+ require.Equal(t, alice.FirstName, claims["firstName"])+ require.Equal(t, alice.LastName, claims["lastName"])+ require.Equal(t, s.tn.OrgID.String(), claims["organizationId"])+ require.Nil(t, refreshCookie(res))+ require.Len(t, s.verificationCode(t, alice.Email), 6)+ })++ t.Run("should send the user to SSO signup when the login is IdP-initiated", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()++ // Action+ res := s.idpLogin(t, alice)++ // Assert+ claims := s.signupClaims(t, res)+ require.Equal(t, alice.Email, claims["email"])+ require.Equal(t, s.tn.OrgID.String(), claims["organizationId"])+ require.Nil(t, refreshCookie(res))+ })++ t.Run("should accept the user into the org when signup completes with the mailed code", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()+ acs := s.spLogin(t, alice)++ // Action+ res := s.completeSignup(t, acs, s.verificationCode(t, alice.Email))++ // Assert+ require.Equalf(t, http.StatusOK, res.StatusCode(), "completing SSO signup: %s", apierr.Body(res.Body))+ require.Equal(t, "accepted", membershipOf(t, s.tn, alice.Email).status)+ session := s.session(t, s.spLogin(t, alice))+ org, err := session.GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, org.StatusCode(), "reading the org: %s", apierr.Body(org.Body))+ })++ t.Run("should keep the user out when signup completes with a wrong code", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.person()+ acs := s.spLogin(t, alice)+ code := s.verificationCode(t, alice.Email)+ wrong := "000000"+ if code == wrong {+ wrong = "111111"+ }++ // Action+ res := s.completeSignup(t, acs, wrong)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Invalid token")+ require.Equal(t, "invited", membershipOf(t, s.tn, alice.Email).status)+ again := s.spLogin(t, alice)+ require.Equal(t, "/signup/sso", s.redirect(t, again).Path)+ })++ t.Run("should start a session without verification when the org enforces SAML", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ s.enforce(t)+ alice := s.person()++ // Action+ res := s.spLogin(t, alice)++ // Assert+ require.Equal(t, "/login/select-organization", s.redirect(t, res).Path)+ session := s.session(t, res)+ org, err := session.GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, org.StatusCode(), "reading the org: %s", apierr.Body(org.Body))+ require.Equal(t, "accepted", membershipOf(t, s.tn, alice.Email).status)+ })+}++func TestSAMLLogin_ReturningUser(t *testing.T) {+ t.Parallel()++ t.Run("should start a session when a verified user logs in again", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.signedUp(t)++ // Action+ res := s.spLogin(t, alice)++ // Assert+ require.Equal(t, "/login/select-organization", s.redirect(t, res).Path)+ jid := refreshCookie(res)+ require.NotNil(t, jid)+ require.True(t, jid.HttpOnly)+ require.Equal(t, "/api", jid.Path)+ org, err := s.session(t, res).GetOrganizationByIdWithResponse(t.Context(), s.tn.OrgID.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, org.StatusCode(), "reading the org: %s", apierr.Body(org.Body))+ })++ t.Run("should keep the callback port when the CLI starts the login", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.signedUp(t)+ req := s.startLogin(t, &api.RedirectSamlByOrgSlugParams{CallbackPort: new("5555")})++ // Action+ res := s.answer(t, req, alice)++ // Assert+ loc := s.redirect(t, res)+ require.Equal(t, "/login/select-organization", loc.Path)+ require.Equal(t, "5555", loc.Query().Get("callback_port"))+ })++ t.Run("should link to the existing account when a password user logs in with SAML", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ bob := s.tn.NewUser(t)+ person := s.person()+ person.Email = bob.Email++ // Action+ res := s.spLogin(t, person)++ // Assert+ claims := s.signupClaims(t, res)+ require.Equal(t, bob.ID.String(), claims["userId"])+ require.Equal(t, bob.ID, membershipOf(t, s.tn, bob.Email).userID)+ })++ t.Run("should refuse login when the membership is deactivated", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.signedUp(t)+ m := membershipOf(t, s.tn, alice.Email)+ deactivated, err := s.tn.Admin.API.UpdateOrgMembershipWithResponse(t.Context(), s.tn.OrgID.String(), m.id.String(),+ api.UpdateOrgMembershipJSONRequestBody{IsActive: new(false)})+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, deactivated.StatusCode(), "deactivating: %s", apierr.Body(deactivated.Body))++ // Action+ res := s.spLogin(t, alice)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Saml authentication failed. User organization membership is inactive")+ require.Nil(t, refreshCookie(res))+ require.False(t, membershipOf(t, s.tn, alice.Email).isActive)+ })+}++func TestSAMLLogin_Attributes(t *testing.T) {+ t.Parallel()++ t.Run("should accept the email when the IdP sends the Entra email claim", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, azure)+ alice := s.person()+ entra := samlidp.Response{+ NameID: alice.Email,+ FirstName: alice.FirstName,+ Attributes: map[string][]string{samlidp.EntraEmailClaim: {alice.Email}},+ }++ // Action+ res := s.idpLogin(t, entra)++ // Assert+ require.Equal(t, alice.Email, s.signupClaims(t, res)["email"])+ })++ t.Run("should store extra attributes as identity metadata when the IdP sends them", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ alice := s.signedUp(t)+ alice.Attributes = map[string][]string{+ "department": {"Engineering"},+ "http://schemas.example.com/claims/costcenter": {"cc-42"},+ }++ // Action+ res := s.spLogin(t, alice)++ // Assert+ require.Equal(t, "/login/select-organization", s.redirect(t, res).Path)+ m := membershipOf(t, s.tn, alice.Email)+ got, err := s.tn.Admin.API.GetOrgMembershipWithResponse(t.Context(), s.tn.OrgID.String(), m.id.String())+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, got.StatusCode(), "reading membership: %s", apierr.Body(got.Body))+ metadata := map[string]string{}+ for _, kv := range *got.JSON200.Membership.Metadata {+ metadata[kv.Key] = kv.Value+ }+ require.Equal(t, map[string]string{"department": "Engineering", "costcenter": "cc-42"}, metadata)+ })+}diff --git a/tests/suites/sso/saml/main_test.go b/tests/suites/sso/saml/main_test.gonew file mode 100644index 0000000000..d8a55ed78d--- /dev/null+++ b/tests/suites/sso/saml/main_test.go@@ -0,0 +1,9 @@+package saml_test++import (+ "testing"++ "github.com/Infisical/infisical/tests/harness"+)++func TestMain(m *testing.M) { harness.Main(m, harness.Shared) }diff --git a/tests/suites/sso/saml/provider_test.go b/tests/suites/sso/saml/provider_test.gonew file mode 100644index 0000000000..c403e7971e--- /dev/null+++ b/tests/suites/sso/saml/provider_test.go@@ -0,0 +1,92 @@+package saml_test++import (+ "net/http"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/fakes/samlidp"+ "github.com/Infisical/infisical/tests/internal/spec"+ "github.com/stretchr/testify/require"+)++func TestSAMLProvider_Signing(t *testing.T) {+ t.Parallel()+ spec.Why(t, "Each provider relaxes one signature (saml-router.ts provider switch). The accepted "++ "cases keep that IdP's default signing working; the rejected cases prove a relaxation never "++ "loosens the other side, and that an unsigned response is refused even on the most relaxed provider.")++ cases := []struct {+ name string+ provider api.CreateSamlConfigJSONBodyAuthProvider+ signing samlidp.Signing+ rejected string // empty when the login is accepted+ }{+ {"should reject a response with only the assertion signed when the provider is Okta", okta, samlidp.SignAssertionOnly, "Invalid document signature"},+ {"should reject a response with only the outer response signed when the provider is Okta", okta, samlidp.SignResponseOnly, "Invalid signature"},+ {"should accept a response with only the assertion signed when the provider is Azure", azure, samlidp.SignAssertionOnly, ""},+ {"should accept a response with only the outer response signed when the provider is Google", google, samlidp.SignResponseOnly, ""},+ {"should reject a response with only the assertion signed when the provider is Google", google, samlidp.SignAssertionOnly, "Invalid document signature"},+ {"should reject a response with no signature when the provider is Azure", azure, samlidp.SignNone, "Invalid signature"},+ }++ for _, c := range cases {+ t.Run(c.name, func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, c.provider)+ alice := s.person()+ alice.Signing = c.signing++ // Action+ res := s.idpLogin(t, alice)++ // Assert+ if c.rejected == "" {+ require.Equal(t, "/signup/sso", s.redirect(t, res).Path)+ require.NotNil(t, membershipOf(t, s.tn, alice.Email))+ return+ }+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), c.rejected)+ require.Nil(t, membershipOf(t, s.tn, alice.Email))+ })+ }+}++func TestSAMLProvider_AzureAudience(t *testing.T) {+ t.Parallel()++ t.Run("should accept the spn audience when an Azure login is SP-initiated", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, azure)+ alice := s.person()+ alice.Audience = "spn:" + s.issuer++ // Action+ res := s.spLogin(t, alice)++ // Assert+ require.Equal(t, "/signup/sso", s.redirect(t, res).Path)+ })++ t.Run("should reject the spn audience when an Azure login is IdP-initiated", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, azure)+ alice := s.person()+ alice.Audience = "spn:" + s.issuer++ // Action+ res := s.idpLogin(t, alice)++ // Assert+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "audience mismatch")+ require.Nil(t, membershipOf(t, s.tn, alice.Email))+ })+}diff --git a/tests/suites/sso/saml/redirect_test.go b/tests/suites/sso/saml/redirect_test.gonew file mode 100644index 0000000000..7453cf96ad--- /dev/null+++ b/tests/suites/sso/saml/redirect_test.go@@ -0,0 +1,145 @@+package saml_test++import (+ "encoding/json"+ "net/http"+ "net/url"+ "strings"+ "testing"++ "github.com/Infisical/infisical/tests/clients/api"+ "github.com/Infisical/infisical/tests/internal/apierr"+ "github.com/Infisical/infisical/tests/internal/id"+ "github.com/stretchr/testify/require"+)++func TestSAMLRedirect(t *testing.T) {+ t.Parallel()++ t.Run("should redirect to the IdP with a SAML request when started by org slug", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)++ // Action+ res, err := s.browser.RedirectSamlByOrgSlugWithResponse(t.Context(), s.tn.OrgSlug, nil)++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusFound, res.StatusCode(), "%s", apierr.Body(res.Body))+ location := res.HTTPResponse.Header.Get("Location")+ require.True(t, strings.HasPrefix(location, s.idp.EntryPoint+"?"), "redirected to %s", location)+ req := s.idp.ParseRedirect(t, location)+ require.Equal(t, s.issuer, req.Issuer)+ require.Equal(t, s.siteURL+"/api/v1/sso/saml2/"+s.configID.String(), req.ACSURL)+ require.Equal(t, map[string]any{"spInitiated": true, "callbackPort": ""}, relayState(t, req.RelayState))+ })++ t.Run("should carry the callback port in RelayState when callback_port is set", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)++ // Action+ req := s.startLogin(t, &api.RedirectSamlByOrgSlugParams{CallbackPort: new("5555")})++ // Assert+ require.Equal(t, "5555", relayState(t, req.RelayState)["callbackPort"])+ })++ t.Run("should redirect to the IdP when started by a verified email domain", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ domain := strings.SplitN(s.tn.Email("x"), "@", 2)[1]++ // Action+ res, err := s.browser.RedirectSamlByDomainWithResponse(t.Context(), domain, nil)++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusFound, res.StatusCode(), "%s", apierr.Body(res.Body))+ req := s.idp.ParseRedirect(t, res.HTTPResponse.Header.Get("Location"))+ require.Equal(t, s.siteURL+"/api/v1/sso/saml2/"+s.configID.String(), req.ACSURL)+ })++ t.Run("should forward to SAML when the generic SSO redirect finds SAML configured", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)++ // Action+ res, err := s.browser.RedirectOrgSSOWithResponse(t.Context(), s.tn.OrgSlug, nil)++ // Assert+ require.NoError(t, err)+ require.Equalf(t, http.StatusFound, res.StatusCode(), "%s", apierr.Body(res.Body))+ forwarded, err := url.Parse(res.HTTPResponse.Header.Get("Location"))+ require.NoError(t, err)+ require.Equal(t, "/api/v1/sso/redirect/saml2/organizations/"+s.tn.OrgSlug, forwarded.Path)+ })++ t.Run("should return not found when the org slug does not exist", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ slug := "missing-" + id.Short()++ // Action+ res, err := s.browser.RedirectSamlByOrgSlugWithResponse(t.Context(), slug, nil)++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusNotFound, res.StatusCode())+ require.Contains(t, string(res.Body), "Organization with slug '"+slug+"' not found")+ })++ t.Run("should return not found when the email domain is not verified", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ domain := "unverified-" + id.Short() + ".test"++ // Action+ res, err := s.browser.RedirectSamlByDomainWithResponse(t.Context(), domain, nil)++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusNotFound, res.StatusCode())+ require.Contains(t, string(res.Body), "No verified domain found for '"+domain+"'")+ })++ t.Run("should refuse to start when the config is inactive", func(t *testing.T) {+ t.Parallel()++ // Setup+ s := setup(t, okta)+ updated, err := s.tn.Admin.API.UpdateSamlConfigWithResponse(t.Context(), api.UpdateSamlConfigJSONRequestBody{+ OrganizationId: s.tn.OrgID.String(),+ IsActive: new(false),+ })+ require.NoError(t, err)+ require.Equalf(t, http.StatusOK, updated.StatusCode(), "deactivating: %s", apierr.Body(updated.Body))++ // Action+ res, err := s.browser.RedirectSamlByConfigIdWithResponse(t.Context(), s.configID.String(), nil)++ // Assert+ require.NoError(t, err)+ require.Equal(t, http.StatusBadRequest, res.StatusCode())+ require.Contains(t, string(res.Body), "Failed to authenticate with SAML SSO")+ })+}++func relayState(t *testing.T, raw string) map[string]any {+ t.Helper()+ var state map[string]any+ require.NoError(t, json.Unmarshal([]byte(raw), &state), "RelayState is not JSON: %q", raw)+ return state+}